Skip to content

Commit

Permalink
Tweak comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephan202 committed Dec 7, 2022
1 parent 25ca321 commit 6b473b6
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@ BigDecimal after() {
}

/** Prefer {@link BigDecimal#valueOf(double)} over the associated constructor. */
// XXX: Ideally we'd also rewrite `new BigDecimal("<some-integer-value>")`, but it doesn't
// appear that's currently possible with Error Prone.
// 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 {
@BeforeTemplate
BigDecimal before(double value) {
Expand Down

0 comments on commit 6b473b6

Please sign in to comment.