Skip to content

Commit

Permalink
Semi-related tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
rickie committed May 2, 2023
1 parent 6a23424 commit 0cfc32d
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,13 @@ boolean after(double a, double b) {
/** Prefer {@link Math#toIntExact(long)} over the Guava alternative. */
static final class LongToIntExact {
@BeforeTemplate
int before(long a) {
return Ints.checkedCast(a);
int before(long l) {
return Ints.checkedCast(l);
}

@AfterTemplate
int after(long a) {
return Math.toIntExact(a);
int after(long l) {
return Math.toIntExact(l);
}
}

Expand Down

0 comments on commit 0cfc32d

Please sign in to comment.