diff --git a/processing/src/main/java/org/apache/druid/java/util/common/DefineClassUtils.java b/processing/src/main/java/org/apache/druid/java/util/common/DefineClassUtils.java index a76121f9e870..d79c517ae3d1 100644 --- a/processing/src/main/java/org/apache/druid/java/util/common/DefineClassUtils.java +++ b/processing/src/main/java/org/apache/druid/java/util/common/DefineClassUtils.java @@ -175,7 +175,7 @@ private static MethodHandle defineClassJava8(MethodHandles.Lookup lookup) throws * This method is referenced in Java 8 using method handle, therefore it is not actually unused, and shouldn't be * removed (till Java 8 is supported) */ - //noinspection unused + @SuppressWarnings("unused") // method is referenced and used in defineClassJava8 static int getArrayLength(byte[] bytes) { return bytes.length;