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 53cb150c Fix formatting.
53cb150c is described below
commit 53cb150c1521148a84666a8047080ca5729e0248
Author: Gary Gregory <[email protected]>
AuthorDate: Thu Apr 21 19:02:51 2022 -0400
Fix formatting.
---
.../apache/commons/beanutils2/WrapDynaClass.java | 45 ----------------------
1 file changed, 45 deletions(-)
diff --git a/src/main/java/org/apache/commons/beanutils2/WrapDynaClass.java
b/src/main/java/org/apache/commons/beanutils2/WrapDynaClass.java
index 5863ee4d..daa1009c 100644
--- a/src/main/java/org/apache/commons/beanutils2/WrapDynaClass.java
+++ b/src/main/java/org/apache/commons/beanutils2/WrapDynaClass.java
@@ -41,13 +41,8 @@ import java.util.WeakHashMap;
* </pre>
*
*/
-
public class WrapDynaClass implements DynaClass {
-
-
-
-
/**
* Constructs a new WrapDynaClass for the specified JavaBean class. This
* constructor is private; WrapDynaClass instances will be created as
@@ -62,12 +57,8 @@ public class WrapDynaClass implements DynaClass {
this.beanClassName = beanClass.getName();
propertyUtilsBean = propUtils;
introspect();
-
}
-
-
-
/**
* Name of the JavaBean class represented by this WrapDynaClass.
*/
@@ -86,7 +77,6 @@ public class WrapDynaClass implements DynaClass {
*/
protected PropertyDescriptor[] descriptors;
-
/**
* The set of PropertyDescriptors for this bean class, keyed by the
* property name. Individual descriptor instances will be the same
@@ -94,13 +84,11 @@ public class WrapDynaClass implements DynaClass {
*/
protected HashMap<String, PropertyDescriptor> descriptorsMap = new
HashMap<>();
-
/**
* The set of dynamic properties that are part of this DynaClass.
*/
protected DynaProperty[] properties;
-
/**
* The set of dynamic properties that are part of this DynaClass,
* keyed by the property name. Individual descriptor instances will
@@ -108,10 +96,6 @@ public class WrapDynaClass implements DynaClass {
*/
protected HashMap<String, DynaProperty> propertiesMap = new HashMap<>();
-
-
-
-
private static final ContextClassLoaderLocal<Map<CacheKey, WrapDynaClass>>
CLASSLOADER_CACHE =
new ContextClassLoaderLocal<Map<CacheKey, WrapDynaClass>>() {
@Override
@@ -130,11 +114,6 @@ public class WrapDynaClass implements DynaClass {
return CLASSLOADER_CACHE.get();
}
-
-
-
-
-
/**
* Gets the class of the underlying wrapped bean.
*
@@ -160,7 +139,6 @@ public class WrapDynaClass implements DynaClass {
}
-
/**
* Gets a property descriptor for the specified property, if it exists;
* otherwise, return {@code null}.
@@ -182,7 +160,6 @@ public class WrapDynaClass implements DynaClass {
}
-
/**
* <p>Return an array of {@code PropertyDescriptor} for the properties
* currently defined in this DynaClass. If no properties are defined, a
@@ -201,7 +178,6 @@ public class WrapDynaClass implements DynaClass {
}
-
/**
* <p>Instantiates a new standard JavaBean instance associated with
* this DynaClass and return it wrapped in a new WrapDynaBean
@@ -230,15 +206,9 @@ public class WrapDynaClass implements DynaClass {
@Override
public DynaBean newInstance()
throws IllegalAccessException, InstantiationException {
-
return new WrapDynaBean(getBeanClass().newInstance());
-
}
-
-
-
-
/**
* Gets the PropertyDescriptor for the specified property name, if any;
* otherwise return {@code null}.
@@ -247,25 +217,16 @@ public class WrapDynaClass implements DynaClass {
* @return The descriptor for the specified property
*/
public PropertyDescriptor getPropertyDescriptor(final String name) {
-
return descriptorsMap.get(name);
-
}
-
-
-
-
/**
* Clear our cache of WrapDynaClass instances.
*/
public static void clear() {
-
getClassesCache().clear();
-
}
-
/**
* Create (if necessary) and return a new {@code WrapDynaClass}
* instance for the specified bean class.
@@ -274,12 +235,9 @@ public class WrapDynaClass implements DynaClass {
* @return A new <i>Wrap</i> {@link DynaClass}
*/
public static WrapDynaClass createDynaClass(final Class<?> beanClass) {
-
return createDynaClass(beanClass, null);
-
}
-
/**
* Create (if necessary) and return a new {@code WrapDynaClass} instance
* for the specified bean class using the given {@code PropertyUtilsBean}
@@ -305,9 +263,6 @@ public class WrapDynaClass implements DynaClass {
}
-
-
-
/**
* Returns the {@code PropertyUtilsBean} instance associated with this
class. This
* bean is used for introspection.