Skip to content

Commit

Permalink
Merge pull request #1981 from gerjantd/ELY-2591
Browse files Browse the repository at this point in the history
[ELY-2591] Move min method into the PeriodicRotatingFileAuditEndpoint…
  • Loading branch information
darranl committed Mar 8, 2024
2 parents 6907d9c + fa47fd5 commit f99b312
Showing 1 changed file with 4 additions and 3 deletions.
Expand Up @@ -233,9 +233,10 @@ public Builder setSuffix(String suffix) throws IllegalArgumentException {
public AuditEndpoint build() throws IOException {
return new PeriodicRotatingFileAuditEndpoint(this);
}
}

private static <T extends Comparable<? super T>> T min(T a, T b) {
return a.compareTo(b) <= 0 ? a : b;
private static <T extends Comparable<? super T>> T min(T a, T b) {
return a.compareTo(b) <= 0 ? a : b;
}
}

}

0 comments on commit f99b312

Please sign in to comment.