From b68263831ea77b61f5802f7697e437302358a63c Mon Sep 17 00:00:00 2001 From: Stephan Schroevers Date: Sun, 8 Oct 2023 10:37:20 +0200 Subject: [PATCH] Track a thought --- .../tech/picnic/errorprone/bugpatterns/IdentityConversion.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/IdentityConversion.java b/error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/IdentityConversion.java index 0d4d3f2769a..fb11dbc86e7 100644 --- a/error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/IdentityConversion.java +++ b/error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/IdentityConversion.java @@ -37,6 +37,8 @@ // the target method such a modification may change the code's semantics or performance. // XXX: Also flag `Stream#map`, `Mono#map` and `Flux#map` invocations where the given transformation // is effectively the identity operation. +// XXX: Also flag nullary instance method invocations that represent an identity conversion, such as +// `Boolean#booleanValue()`, `Byte#byteValue()` and friends. @AutoService(BugChecker.class) @BugPattern( summary = "Avoid or clarify identity conversions",