Skip to content

Commit 350c1b1

Browse files
committed
Suppress removal warning for boxed number in test
1 parent 43d42ff commit 350c1b1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/trino-cache/src/test/java/io/trino/cache/TestEvictableCache.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ public void testLoadFailure()
350350
private static Integer newInteger(int value)
351351
{
352352
Integer integer = value;
353-
@SuppressWarnings({"UnnecessaryBoxing", "deprecation", "BoxedPrimitiveConstructor"})
353+
@SuppressWarnings({"UnnecessaryBoxing", "BoxedPrimitiveConstructor", "CachedNumberConstructorCall", "removal"})
354354
Integer newInteger = new Integer(value);
355355
assertNotSame(integer, newInteger);
356356
return newInteger;

lib/trino-cache/src/test/java/io/trino/cache/TestEvictableLoadingCache.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ public void testLoadStats()
284284
private static Integer newInteger(int value)
285285
{
286286
Integer integer = value;
287-
@SuppressWarnings({"UnnecessaryBoxing", "deprecation", "BoxedPrimitiveConstructor"})
287+
@SuppressWarnings({"UnnecessaryBoxing", "BoxedPrimitiveConstructor", "CachedNumberConstructorCall", "removal"})
288288
Integer newInteger = new Integer(value);
289289
assertNotSame(integer, newInteger);
290290
return newInteger;

0 commit comments

Comments
 (0)