From c9bcfee408649110427bbd5a8c2e80e48d4a0016 Mon Sep 17 00:00:00 2001 From: urielch Date: Thu, 14 Mar 2024 14:31:43 +0100 Subject: [PATCH] update @SuppressWarnings --- accessors-smart/src/main/java/net/minidev/asm/BeansAccess.java | 1 - .../src/main/java/net/minidev/asm/DynamicClassLoader.java | 1 - .../src/test/java/com/mindev/pojos/AccessorTestPojo.java | 1 + 3 files changed, 1 insertion(+), 2 deletions(-) diff --git a/accessors-smart/src/main/java/net/minidev/asm/BeansAccess.java b/accessors-smart/src/main/java/net/minidev/asm/BeansAccess.java index c8d8977..1cbff52 100644 --- a/accessors-smart/src/main/java/net/minidev/asm/BeansAccess.java +++ b/accessors-smart/src/main/java/net/minidev/asm/BeansAccess.java @@ -83,7 +83,6 @@ static public

BeansAccess

get(Class

type) { * @param

working type * @return the BeansAccess */ - @SuppressWarnings("deprecation") static public

BeansAccess

get(Class

type, FieldFilter filter) { { @SuppressWarnings("unchecked") diff --git a/accessors-smart/src/main/java/net/minidev/asm/DynamicClassLoader.java b/accessors-smart/src/main/java/net/minidev/asm/DynamicClassLoader.java index 5337b98..589629b 100644 --- a/accessors-smart/src/main/java/net/minidev/asm/DynamicClassLoader.java +++ b/accessors-smart/src/main/java/net/minidev/asm/DynamicClassLoader.java @@ -50,7 +50,6 @@ public static Class directLoad(Class parent, String clsName, return clzz; } - @SuppressWarnings("deprecation") public static T directInstance(Class parent, String clsName, byte[] clsData) throws InstantiationException, IllegalAccessException { Class clzz = directLoad(parent, clsName, clsData); return clzz.newInstance(); diff --git a/accessors-smart/src/test/java/com/mindev/pojos/AccessorTestPojo.java b/accessors-smart/src/test/java/com/mindev/pojos/AccessorTestPojo.java index 315a7be..8903f3f 100644 --- a/accessors-smart/src/test/java/com/mindev/pojos/AccessorTestPojo.java +++ b/accessors-smart/src/test/java/com/mindev/pojos/AccessorTestPojo.java @@ -3,6 +3,7 @@ public class AccessorTestPojo { // Field with only setter method + @SuppressWarnings("unused") private int writeOnlyField; // Field with only getter method