This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-beanutils.git
The following commit(s) were added to refs/heads/master by this push:
new f7d03b74 Fix SpotBugs error.
f7d03b74 is described below
commit f7d03b7488f8f89d129c62bc1e21f7b95eb38258
Author: Gary Gregory <[email protected]>
AuthorDate: Thu Apr 21 19:15:05 2022 -0400
Fix SpotBugs error.
[ERROR] Medium: Unused public or protected field:
org.apache.commons.beanutils2.WrapDynaClass.descriptors
[org.apache.commons.beanutils2.WrapDynaClass] In WrapDynaClass.java
UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD
---
src/changes/changes.xml | 3 +++
src/main/java/org/apache/commons/beanutils2/WrapDynaClass.java | 5 -----
2 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 0a722d00..c47d750e 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -83,6 +83,9 @@
<action dev="ggregory" type="fix" due-to="Gary Gregory">
Fix SpotBugs [ERROR] Medium: Load of known null value in
org.apache.commons.beanutils2.converters.AbstractConverter.convert(Class,
Object) [org.apache.commons.beanutils2.converters.AbstractConverter] At
AbstractConverter.java:[line 163] NP_LOAD_OF_KNOWN_NULL_VALUE.
</action>
+ <action dev="ggregory" type="fix" due-to="Gary Gregory">
+ Fix SpotBugs [ERROR] Medium: Unused public or protected field:
org.apache.commons.beanutils2.WrapDynaClass.descriptors
[org.apache.commons.beanutils2.WrapDynaClass] In WrapDynaClass.java
UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD.
+ </action>
<!-- UPDATES -->
<action dev="ggregory" type="update" due-to="Dependabot, Gary Gregory">
Bump actions/cache from 2 to 3.0.2 #77, #89, #103, #111.
diff --git a/src/main/java/org/apache/commons/beanutils2/WrapDynaClass.java
b/src/main/java/org/apache/commons/beanutils2/WrapDynaClass.java
index daa1009c..d08ac38e 100644
--- a/src/main/java/org/apache/commons/beanutils2/WrapDynaClass.java
+++ b/src/main/java/org/apache/commons/beanutils2/WrapDynaClass.java
@@ -72,11 +72,6 @@ public class WrapDynaClass implements DynaClass {
/** Stores the associated {@code PropertyUtilsBean} instance. */
private final PropertyUtilsBean propertyUtilsBean;
- /**
- * The set of PropertyDescriptors for this bean class.
- */
- protected PropertyDescriptor[] descriptors;
-
/**
* The set of PropertyDescriptors for this bean class, keyed by the
* property name. Individual descriptor instances will be the same