You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2023/11/26 15:31:09 UTC

(commons-beanutils) branch master updated: Remove extra blank lines

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 501ad421 Remove extra blank lines
501ad421 is described below

commit 501ad421030fcdef78a3ab8ceb5b0019725d3f5e
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Nov 26 10:31:05 2023 -0500

    Remove extra blank lines
---
 src/main/java/org/apache/commons/beanutils2/BeanMap.java |  6 ------
 .../beanutils2/BeanPropertyValueChangeConsumer.java      |  1 -
 .../beanutils2/BeanToPropertyValueTransformer.java       |  1 -
 .../java/org/apache/commons/beanutils2/BeanUtils.java    | 16 ----------------
 .../org/apache/commons/beanutils2/ConstructorUtils.java  |  1 -
 .../java/org/apache/commons/beanutils2/ConvertUtils.java |  1 -
 .../java/org/apache/commons/beanutils2/LazyDynaBean.java |  2 --
 .../java/org/apache/commons/beanutils2/LazyDynaList.java |  4 ----
 .../java/org/apache/commons/beanutils2/LazyDynaMap.java  |  6 ------
 .../commons/beanutils2/MappedPropertyDescriptor.java     |  2 --
 .../java/org/apache/commons/beanutils2/MethodUtils.java  |  2 --
 .../org/apache/commons/beanutils2/PropertyUtils.java     |  2 --
 .../org/apache/commons/beanutils2/WeakFastHashMap.java   |  5 -----
 .../org/apache/commons/beanutils2/WrapDynaClass.java     |  2 --
 .../commons/beanutils2/converters/BooleanConverter.java  |  1 -
 .../commons/beanutils2/converters/DateTimeConverter.java |  1 -
 16 files changed, 53 deletions(-)

diff --git a/src/main/java/org/apache/commons/beanutils2/BeanMap.java b/src/main/java/org/apache/commons/beanutils2/BeanMap.java
index 76c29ae4..651bcdcc 100644
--- a/src/main/java/org/apache/commons/beanutils2/BeanMap.java
+++ b/src/main/java/org/apache/commons/beanutils2/BeanMap.java
@@ -117,7 +117,6 @@ public class BeanMap extends AbstractMap<String, Object> implements Cloneable {
 
     // Constructors
 
-
     private final transient HashMap<String, Class<? extends Object>> types = new HashMap<>();
 
     /**
@@ -128,7 +127,6 @@ public class BeanMap extends AbstractMap<String, Object> implements Cloneable {
 
     // Map interface
 
-
     /**
      * Constructs a new {@code BeanMap} that operates on the specified bean. If the given bean is
      * {@code null}, then this map will be empty.
@@ -452,7 +450,6 @@ public class BeanMap extends AbstractMap<String, Object> implements Cloneable {
 
     // Helper methods
 
-
     /**
      * Returns the accessor for the property with the given name.
      *
@@ -497,7 +494,6 @@ public class BeanMap extends AbstractMap<String, Object> implements Cloneable {
 
     // Properties
 
-
     /**
      * Returns the mutator for the property with the given name.
      *
@@ -565,7 +561,6 @@ public class BeanMap extends AbstractMap<String, Object> implements Cloneable {
 
     // Implementation methods
 
-
     /**
      * Gets the keys for this BeanMap.
      * <p>
@@ -656,7 +651,6 @@ public class BeanMap extends AbstractMap<String, Object> implements Cloneable {
 
     // Implementation classes
 
-
     /**
      * Reinitializes this bean. Called during {@link #setBean(Object)}. Does introspection to find properties.
      */
diff --git a/src/main/java/org/apache/commons/beanutils2/BeanPropertyValueChangeConsumer.java b/src/main/java/org/apache/commons/beanutils2/BeanPropertyValueChangeConsumer.java
index ea66c526..57c3e716 100644
--- a/src/main/java/org/apache/commons/beanutils2/BeanPropertyValueChangeConsumer.java
+++ b/src/main/java/org/apache/commons/beanutils2/BeanPropertyValueChangeConsumer.java
@@ -23,7 +23,6 @@ import java.util.function.Consumer;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 
-
 /**
  * <p>{@code Closure} that sets a property.</p>
  * <p>
diff --git a/src/main/java/org/apache/commons/beanutils2/BeanToPropertyValueTransformer.java b/src/main/java/org/apache/commons/beanutils2/BeanToPropertyValueTransformer.java
index c9bf9190..0df8ae0b 100644
--- a/src/main/java/org/apache/commons/beanutils2/BeanToPropertyValueTransformer.java
+++ b/src/main/java/org/apache/commons/beanutils2/BeanToPropertyValueTransformer.java
@@ -23,7 +23,6 @@ import java.util.function.Function;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 
-
 /**
  * <p>{@code Transformer} that outputs a property value.</p>
  *
diff --git a/src/main/java/org/apache/commons/beanutils2/BeanUtils.java b/src/main/java/org/apache/commons/beanutils2/BeanUtils.java
index 14e79764..afba4a27 100644
--- a/src/main/java/org/apache/commons/beanutils2/BeanUtils.java
+++ b/src/main/java/org/apache/commons/beanutils2/BeanUtils.java
@@ -15,14 +15,11 @@
  * limitations under the License.
  */
 
-
 package org.apache.commons.beanutils2;
 
 import java.lang.reflect.InvocationTargetException;
 import java.util.Map;
 
-
-
 /**
  * <p>Utility methods for populating JavaBeans properties via reflection.</p>
  *
@@ -38,11 +35,9 @@ public class BeanUtils {
     /** An empty class array */
     static final Class<?>[] EMPTY_CLASS_ARRAY = {};
 
-
     /** An empty object array */
     static final Object[] EMPTY_OBJECT_ARRAY = {};
 
-
     /**
      * <p>Clone a bean based on the available property getters and setters,
      * even if the bean class itself does not implement Cloneable.</p>
@@ -70,7 +65,6 @@ public class BeanUtils {
 
     }
 
-
     /**
      * <p>Copy property values from the origin bean to the destination bean
      * for all cases where the property names are the same.</p>
@@ -96,7 +90,6 @@ public class BeanUtils {
         BeanUtilsBean.getInstance().copyProperties(dest, orig);
     }
 
-
     /**
      * <p>Copy the specified property value to the specified destination bean,
      * performing any type conversion that is required.</p>
@@ -119,7 +112,6 @@ public class BeanUtils {
         BeanUtilsBean.getInstance().copyProperty(bean, name, value);
     }
 
-
     /**
      * Create a cache.
      * @param <K> the key type of the cache
@@ -131,7 +123,6 @@ public class BeanUtils {
         return new WeakFastHashMap<>();
     }
 
-
     /**
      * <p>Return the entire set of properties for which the specified bean
      * provides a read method.</p>
@@ -156,7 +147,6 @@ public class BeanUtils {
         return BeanUtilsBean.getInstance().describe(bean);
     }
 
-
     /**
      * <p>Return the value of the specified array property of the specified
      * bean, as a String array.</p>
@@ -182,7 +172,6 @@ public class BeanUtils {
         return BeanUtilsBean.getInstance().getArrayProperty(bean, name);
     }
 
-
     /**
      * <p>Return the value of the specified indexed property of the specified
      * bean, as a String.</p>
@@ -210,7 +199,6 @@ public class BeanUtils {
 
     }
 
-
     /**
      * Gets the value of the specified indexed property of the specified
      * bean, as a String.  The index is specified as a method parameter and
@@ -240,7 +228,6 @@ public class BeanUtils {
 
     }
 
-
     /**
      * <p>Return the value of the specified indexed property of the specified
      * bean, as a String.</p>
@@ -268,7 +255,6 @@ public class BeanUtils {
 
     }
 
-
     /**
      * <p>Return the value of the specified mapped property of the specified
      * bean, as a String.</p>
@@ -297,7 +283,6 @@ public class BeanUtils {
 
     }
 
-
     /**
      * <p>Return the value of the (possibly nested) property of the specified
      * name, for the specified bean, as a String.</p>
@@ -326,7 +311,6 @@ public class BeanUtils {
 
     }
 
-
     /**
      * <p>Return the value of the specified property of the specified bean,
      * no matter which property reference format is used, as a String.</p>
diff --git a/src/main/java/org/apache/commons/beanutils2/ConstructorUtils.java b/src/main/java/org/apache/commons/beanutils2/ConstructorUtils.java
index 59be6c28..668bd75e 100644
--- a/src/main/java/org/apache/commons/beanutils2/ConstructorUtils.java
+++ b/src/main/java/org/apache/commons/beanutils2/ConstructorUtils.java
@@ -437,7 +437,6 @@ public class ConstructorUtils {
         return (T[]) Array.newInstance(componentType, length);
     }
 
-
     private static Object[] toArray(final Object arg) {
         Object[] args = null;
         if (arg != null) {
diff --git a/src/main/java/org/apache/commons/beanutils2/ConvertUtils.java b/src/main/java/org/apache/commons/beanutils2/ConvertUtils.java
index bf2ae597..5704e9cd 100644
--- a/src/main/java/org/apache/commons/beanutils2/ConvertUtils.java
+++ b/src/main/java/org/apache/commons/beanutils2/ConvertUtils.java
@@ -15,7 +15,6 @@
  * limitations under the License.
  */
 
-
 package org.apache.commons.beanutils2;
 
 /**
diff --git a/src/main/java/org/apache/commons/beanutils2/LazyDynaBean.java b/src/main/java/org/apache/commons/beanutils2/LazyDynaBean.java
index 4425bd6b..6f46a4c3 100644
--- a/src/main/java/org/apache/commons/beanutils2/LazyDynaBean.java
+++ b/src/main/java/org/apache/commons/beanutils2/LazyDynaBean.java
@@ -246,8 +246,6 @@ public class LazyDynaBean implements DynaBean, Serializable {
         }
     }
 
-
-
     /**
      * Create a new Instance of an 'Indexed' Property
      * @param name The name of the property
diff --git a/src/main/java/org/apache/commons/beanutils2/LazyDynaList.java b/src/main/java/org/apache/commons/beanutils2/LazyDynaList.java
index cdc2f754..41531ce9 100644
--- a/src/main/java/org/apache/commons/beanutils2/LazyDynaList.java
+++ b/src/main/java/org/apache/commons/beanutils2/LazyDynaList.java
@@ -392,8 +392,6 @@ public class LazyDynaList extends ArrayList<Object> {
         }
     }
 
-
-
     /**
      * <p>Set the element at the specified position.</p>
      *
@@ -502,8 +500,6 @@ public class LazyDynaList extends ArrayList<Object> {
         }
     }
 
-
-
     /**
      * <p>Converts the List to an Array.</p>
      *
diff --git a/src/main/java/org/apache/commons/beanutils2/LazyDynaMap.java b/src/main/java/org/apache/commons/beanutils2/LazyDynaMap.java
index 1b57737f..19597ff0 100644
--- a/src/main/java/org/apache/commons/beanutils2/LazyDynaMap.java
+++ b/src/main/java/org/apache/commons/beanutils2/LazyDynaMap.java
@@ -137,8 +137,6 @@ public class LazyDynaMap extends LazyDynaBean implements MutableDynaClass {
         this.dynaClass = this;
     }
 
-
-
     /**
      * Add a new dynamic property.
      *
@@ -163,8 +161,6 @@ public class LazyDynaMap extends LazyDynaBean implements MutableDynaClass {
         add(name, null);
     }
 
-
-
     /**
      * Add a new dynamic property with the specified data type, but with
      * no restrictions on readability or writeability.
@@ -195,8 +191,6 @@ public class LazyDynaMap extends LazyDynaBean implements MutableDynaClass {
         }
     }
 
-
-
     /**
      * <p>Add a new dynamic property with the specified data type, readability,
      * and writeability.</p>
diff --git a/src/main/java/org/apache/commons/beanutils2/MappedPropertyDescriptor.java b/src/main/java/org/apache/commons/beanutils2/MappedPropertyDescriptor.java
index c907cc45..28867d9a 100644
--- a/src/main/java/org/apache/commons/beanutils2/MappedPropertyDescriptor.java
+++ b/src/main/java/org/apache/commons/beanutils2/MappedPropertyDescriptor.java
@@ -17,7 +17,6 @@
 
 package org.apache.commons.beanutils2;
 
-
 import java.beans.IntrospectionException;
 import java.beans.PropertyDescriptor;
 import java.lang.ref.Reference;
@@ -26,7 +25,6 @@ import java.lang.ref.WeakReference;
 import java.lang.reflect.Method;
 import java.lang.reflect.Modifier;
 
-
 /**
  * A MappedPropertyDescriptor describes one mapped property.
  * Mapped properties are multivalued properties like indexed properties
diff --git a/src/main/java/org/apache/commons/beanutils2/MethodUtils.java b/src/main/java/org/apache/commons/beanutils2/MethodUtils.java
index 744b7d5a..74824591 100644
--- a/src/main/java/org/apache/commons/beanutils2/MethodUtils.java
+++ b/src/main/java/org/apache/commons/beanutils2/MethodUtils.java
@@ -820,8 +820,6 @@ public class MethodUtils {
         return invokeExactStaticMethod (objectClass, methodName, args);
     }
 
-
-
     /**
      * <p>Invoke a static method whose parameter types match exactly the object
      * types.</p>
diff --git a/src/main/java/org/apache/commons/beanutils2/PropertyUtils.java b/src/main/java/org/apache/commons/beanutils2/PropertyUtils.java
index cb50ec3e..f29562a0 100644
--- a/src/main/java/org/apache/commons/beanutils2/PropertyUtils.java
+++ b/src/main/java/org/apache/commons/beanutils2/PropertyUtils.java
@@ -15,7 +15,6 @@
  * limitations under the License.
  */
 
-
 package org.apache.commons.beanutils2;
 
 import java.beans.PropertyDescriptor;
@@ -23,7 +22,6 @@ import java.lang.reflect.InvocationTargetException;
 import java.lang.reflect.Method;
 import java.util.Map;
 
-
 /**
  * <p>Utility methods for using Java Reflection APIs to facilitate generic
  * property getter and setter operations on Java objects.</p>
diff --git a/src/main/java/org/apache/commons/beanutils2/WeakFastHashMap.java b/src/main/java/org/apache/commons/beanutils2/WeakFastHashMap.java
index bb9c09d0..966fdac0 100644
--- a/src/main/java/org/apache/commons/beanutils2/WeakFastHashMap.java
+++ b/src/main/java/org/apache/commons/beanutils2/WeakFastHashMap.java
@@ -320,7 +320,6 @@ public class WeakFastHashMap<K, V> extends HashMap<K, V> {
 
     // Constructors
 
-
     /**
      * Collection implementation over the values of the FastHashMap
      */
@@ -351,7 +350,6 @@ public class WeakFastHashMap<K, V> extends HashMap<K, V> {
 
     // Property access
 
-
     /**
      * Constructs an empty map.
      */
@@ -482,7 +480,6 @@ public class WeakFastHashMap<K, V> extends HashMap<K, V> {
 
     // Basic object methods
 
-
     protected Map<K, V> createMap(final int capacity, final float factor) {
         return new WeakHashMap<>(capacity, factor);
     }
@@ -503,7 +500,6 @@ public class WeakFastHashMap<K, V> extends HashMap<K, V> {
 
     // Map views
 
-
     /**
      * Compare the specified object with this list for equality.  This
      * implementation uses exactly the code that is used to define the
@@ -592,7 +588,6 @@ public class WeakFastHashMap<K, V> extends HashMap<K, V> {
 
     // Abstractions on Map creations (for subclasses such as WeakFastHashMap)
 
-
     /**
      * Gets the hash code value for this map.  This implementation uses
      * exactly the code that is used to define the list hash function in the
diff --git a/src/main/java/org/apache/commons/beanutils2/WrapDynaClass.java b/src/main/java/org/apache/commons/beanutils2/WrapDynaClass.java
index 08dd7fae..d85164a5 100644
--- a/src/main/java/org/apache/commons/beanutils2/WrapDynaClass.java
+++ b/src/main/java/org/apache/commons/beanutils2/WrapDynaClass.java
@@ -17,7 +17,6 @@
 
 package org.apache.commons.beanutils2;
 
-
 import java.beans.PropertyDescriptor;
 import java.lang.ref.Reference;
 import java.lang.ref.SoftReference;
@@ -25,7 +24,6 @@ import java.util.HashMap;
 import java.util.Map;
 import java.util.WeakHashMap;
 
-
 /**
  * Implementation of {@link DynaClass} that wrap
  * standard JavaBean instances.
diff --git a/src/main/java/org/apache/commons/beanutils2/converters/BooleanConverter.java b/src/main/java/org/apache/commons/beanutils2/converters/BooleanConverter.java
index 7656ea19..a946debe 100644
--- a/src/main/java/org/apache/commons/beanutils2/converters/BooleanConverter.java
+++ b/src/main/java/org/apache/commons/beanutils2/converters/BooleanConverter.java
@@ -194,7 +194,6 @@ public final class BooleanConverter extends AbstractConverter<Boolean> {
         throw conversionException(type, value);
     }
 
-
     /**
      * Gets the default type this {@code Converter} handles.
      *
diff --git a/src/main/java/org/apache/commons/beanutils2/converters/DateTimeConverter.java b/src/main/java/org/apache/commons/beanutils2/converters/DateTimeConverter.java
index 387930cb..5bf7aed4 100644
--- a/src/main/java/org/apache/commons/beanutils2/converters/DateTimeConverter.java
+++ b/src/main/java/org/apache/commons/beanutils2/converters/DateTimeConverter.java
@@ -217,7 +217,6 @@ public abstract class DateTimeConverter<D> extends AbstractConverter<D> {
         // Handle java.sql.Timestamp
         if (value instanceof java.sql.Timestamp) {
 
-
             // N.B. Prior to JDK 1.4 the Timestamp's getTime() method
             //      didn't include the milliseconds. The following code
             //      ensures it works consistently across JDK versions