Skip to content

Commit

Permalink
Rename rule
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephan202 committed Dec 7, 2022
1 parent 66a897c commit cc3af0f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ BigDecimal after() {
// XXX: Ideally we also rewrite `new BigDecimal("<some-integer-value>")` in cases where the
// specified number can be represented as an `int` or `long`, but that requires a custom
// `BugChecker`.
static final class BigDecimalFactoryMethod {
static final class BigDecimalValueOf {
@BeforeTemplate
BigDecimal before(double value) {
return new BigDecimal(value);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ ImmutableSet<BigDecimal> testBigDecimalTen() {
return ImmutableSet.of(BigDecimal.valueOf(10), BigDecimal.valueOf(10L), new BigDecimal("10"));
}

ImmutableSet<BigDecimal> testBigDecimalFactoryMethod() {
ImmutableSet<BigDecimal> testBigDecimalValueOf() {
return ImmutableSet.of(new BigDecimal(2), new BigDecimal(2L), new BigDecimal(2.0));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ ImmutableSet<BigDecimal> testBigDecimalTen() {
return ImmutableSet.of(BigDecimal.TEN, BigDecimal.TEN, BigDecimal.TEN);
}

ImmutableSet<BigDecimal> testBigDecimalFactoryMethod() {
ImmutableSet<BigDecimal> testBigDecimalValueOf() {
return ImmutableSet.of(BigDecimal.valueOf(2), BigDecimal.valueOf(2L), BigDecimal.valueOf(2.0));
}
}

0 comments on commit cc3af0f

Please sign in to comment.