diff --git a/error-prone-contrib/src/main/java/tech/picnic/errorprone/refasterrules/BigDecimalRules.java b/error-prone-contrib/src/main/java/tech/picnic/errorprone/refasterrules/BigDecimalRules.java index 196df3abc39..07db497a455 100644 --- a/error-prone-contrib/src/main/java/tech/picnic/errorprone/refasterrules/BigDecimalRules.java +++ b/error-prone-contrib/src/main/java/tech/picnic/errorprone/refasterrules/BigDecimalRules.java @@ -51,8 +51,9 @@ BigDecimal after() { } /** Prefer {@link BigDecimal#valueOf(double)} over the associated constructor. */ - // XXX: Ideally we'd also rewrite `new BigDecimal("")`, but it doesn't - // appear that's currently possible with Error Prone. + // XXX: Ideally we also rewrite `new BigDecimal("")` in cases where the + // specified number can be represented as an `int` or `long`, but that requires a custom + // `BugChecker`. static final class BigDecimalFactoryMethod { @BeforeTemplate BigDecimal before(double value) {