Skip to content

Commit

Permalink
Replace 4x, 3x, and 2x empty lines with a single one
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Dec 26, 2024
1 parent a5ef8b1 commit 13c9f98
Show file tree
Hide file tree
Showing 156 changed files with 0 additions and 1,544 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ public Object setValue(final Object value) {
private final DynaBean dynaBean;
private final boolean readOnly;


private transient Set<K> keySet;

/**
Expand All @@ -104,9 +103,6 @@ public BaseDynaBeanMapDecorator(final DynaBean dynaBean) {
this(dynaBean, true);
}




/**
* Construct a Map for the specified {@link DynaBean}.
*
Expand All @@ -123,7 +119,6 @@ public BaseDynaBeanMapDecorator(final DynaBean dynaBean, final boolean readOnly)
this.readOnly = readOnly;
}


/**
* Always throws UnsupportedOperationException because this operation is unsupported.
*
Expand Down Expand Up @@ -315,7 +310,6 @@ public Object put(final K key, final Object value) {
return previous;
}


/**
* Copy the contents of a Map to the decorated {@link DynaBean}.
*
Expand Down Expand Up @@ -345,7 +339,6 @@ public Object remove(final Object key) {
throw new UnsupportedOperationException();
}


/**
* Returns the number properties in the decorated
* {@link DynaBean}.
Expand Down
25 changes: 0 additions & 25 deletions src/main/java/org/apache/commons/beanutils/BasicDynaBean.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,14 @@
* limitations under the License.
*/


package org.apache.commons.beanutils;


import java.io.Serializable;
import java.lang.reflect.Array;
import java.util.HashMap;
import java.util.List;
import java.util.Map;


/**
* <p>Minimal implementation of the <code>DynaBean</code> interface. Can be
* used as a convenience base class for more sophisticated implementations.</p>
Expand All @@ -41,9 +38,6 @@

public class BasicDynaBean implements DynaBean, Serializable {




private static final long serialVersionUID = 1L;

/**
Expand All @@ -52,15 +46,11 @@ public class BasicDynaBean implements DynaBean, Serializable {
*/
protected DynaClass dynaClass;




/**
* The set of property values for this DynaBean, keyed by property name.
*/
protected HashMap<String, Object> values = new HashMap<>();


/** Map decorator for this DynaBean */
private transient Map<String, Object> mapDecorator;

Expand Down Expand Up @@ -104,8 +94,6 @@ public boolean contains(final String name, final String key) {

}



/**
* Return the value of a simple property with the specified name.
*
Expand Down Expand Up @@ -157,7 +145,6 @@ public Object get(final String name) {
return null;
}


/**
* Return the value of an indexed property with the specified name.
*
Expand Down Expand Up @@ -192,7 +179,6 @@ public Object get(final String name, final int index) {

}


/**
* Return the value of a mapped property with the specified name,
* or <code>null</code> if there is no value for the specified key.
Expand Down Expand Up @@ -221,7 +207,6 @@ public Object get(final String name, final String key) {

}


/**
* Return the <code>DynaClass</code> instance that describes the set of
* properties available for this DynaBean.
Expand All @@ -235,7 +220,6 @@ public DynaClass getDynaClass() {

}


/**
* Return the property descriptor for the specified property name.
*
Expand All @@ -255,7 +239,6 @@ protected DynaProperty getDynaProperty(final String name) {

}


/**
* Return a Map representation of this DynaBean.
* <p>
Expand All @@ -277,7 +260,6 @@ public Map<String, Object> getMap() {

}


/**
* Is an object of the source class assignable to the destination class?
*
Expand All @@ -303,7 +285,6 @@ protected boolean isAssignable(final Class<?> dest, final Class<?> source) {

}


/**
* Remove any existing value for the specified key on the
* specified mapped property.
Expand All @@ -330,7 +311,6 @@ public void remove(final String name, final String key) {

}


/**
* Set the value of an indexed property with the specified name.
*
Expand Down Expand Up @@ -374,9 +354,6 @@ public void set(final String name, final int index, final Object value) {

}




/**
* Set the value of a simple property with the specified name.
*
Expand Down Expand Up @@ -409,7 +386,6 @@ public void set(final String name, final Object value) {

}


/**
* Set the value of a mapped property with the specified name.
*
Expand Down Expand Up @@ -444,5 +420,4 @@ public void set(final String name, final String key, final Object value) {

}


}
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@

public class BeanAccessLanguageException extends IllegalArgumentException {


private static final long serialVersionUID = 1L;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@ public boolean equals(final Object o) {
return true;
}


/**
* Gets the Comparator being used to compare beans.
*
Expand All @@ -191,7 +190,6 @@ public Comparator<?> getComparator() {
return comparator;
}


/**
* Gets the property attribute of the BeanComparator
*
Expand Down
6 changes: 0 additions & 6 deletions src/main/java/org/apache/commons/beanutils/BeanMap.java
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,6 @@ private static Map<Class<? extends Object>, Transformer> createTypeTransformers(

private transient HashMap<String, Method> writeMethods = new HashMap<>();


// Constructors
//-------------------------------------------------------------------------

Expand Down Expand Up @@ -315,7 +314,6 @@ public Object clone() throws CloneNotSupportedException {
return newMap;
}


/**
* Returns true if the bean defines a property with the given name.
* <p>
Expand Down Expand Up @@ -487,7 +485,6 @@ public int size() {
});
}


/**
* Called during a successful {@link #put(Object,Object)} operation.
* Default implementation does nothing. Override to be notified of
Expand Down Expand Up @@ -541,7 +538,6 @@ public Object getBean() {
return bean;
}


// Helper methods
//-------------------------------------------------------------------------

Expand Down Expand Up @@ -589,7 +585,6 @@ protected Transformer getTypeTransformer( final Class<?> aType ) {
return typeTransformers.get( aType );
}


// Properties
//-------------------------------------------------------------------------

Expand Down Expand Up @@ -660,7 +655,6 @@ public Iterator<String> keyIterator() {
return readMethods.keySet().iterator();
}


// Implementation methods
//-------------------------------------------------------------------------

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;


/**
* <p><code>Closure</code> that sets a property.</p>
* <p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;


/**
* <p><code>Predicate</code> that evaluates a property value against a specified value.</p>
* <p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;


/**
* <p><code>Transformer</code> that outputs a property value.</p>
*
Expand Down
1 change: 0 additions & 1 deletion src/main/java/org/apache/commons/beanutils/BeanUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,6 @@ public static String getProperty(final Object bean, final String name)
return BeanUtilsBean.getInstance().getProperty(bean, name);
}


/**
* <p>Return the value of the specified simple property of the specified
* bean, converted to a String.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ public static <T> Constructor<T> getAccessibleConstructor(final Constructor<T> c
return null;
}


/**
* <p>Find an accessible constructor with compatible parameters.
* Compatible parameters mean that every method parameter is assignable from
Expand Down
Loading

0 comments on commit 13c9f98

Please sign in to comment.