From 6b473b6b93205ab27704fbc4dad7209d6a303c42 Mon Sep 17 00:00:00 2001 From: Stephan Schroevers Date: Wed, 7 Dec 2022 09:52:44 +0100 Subject: [PATCH] Tweak comment --- .../picnic/errorprone/refasterrules/BigDecimalRules.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 196df3abc3..07db497a45 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) {