Skip to content

Commit 9f8b6c0

Browse files
committed
Javadoc
1 parent 2fd2ed1 commit 9f8b6c0

41 files changed

Lines changed: 136 additions & 136 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/main/java/org/apache/commons/beanutils/BaseDynaBeanMapDecorator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ public boolean containsValue(final Object value) {
173173
/**
174174
* Converts the name of a property to the key type of this decorator.
175175
*
176-
* @param propertyName the name of a property
176+
* @param propertyName The name of a property
177177
* @return The converted key to be used in the decorated map
178178
*/
179179
protected abstract K convertKey(String propertyName);

src/main/java/org/apache/commons/beanutils/BeanAccessLanguageException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public BeanAccessLanguageException() {
3838
/**
3939
* Constructs a {@code BeanAccessLanguageException} without a detail message.
4040
*
41-
* @param message the detail message explaining this exception
41+
* @param message The detail message explaining this exception
4242
*/
4343
public BeanAccessLanguageException(final String message) {
4444
super(message);

src/main/java/org/apache/commons/beanutils/BeanComparator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,8 @@ public int hashCode() {
209209
* <em>Note</em>: This comparison cannot be performed in a type-safe way; so
210210
* {@code ClassCastException} exceptions may be thrown.
211211
*
212-
* @param val1 the first value to be compared
213-
* @param val2 the second value to be compared
212+
* @param val1 The first value to be compared
213+
* @param val2 The second value to be compared
214214
* @return The result of the comparison
215215
*/
216216
private int internalCompare(final Object val1, final Object val2) {

src/main/java/org/apache/commons/beanutils/BeanIntrospectionData.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class BeanIntrospectionData {
4949
* they may get lost when the GC claims soft references used by the
5050
* {@code PropertyDescriptor} objects.
5151
*
52-
* @param descs the array with the descriptors of the available properties
52+
* @param descs The array with the descriptors of the available properties
5353
* @return The map with the names of write methods for properties
5454
*/
5555
private static Map<String, String> setUpWriteMethodNames(final PropertyDescriptor[] descs) {
@@ -73,7 +73,7 @@ private static Map<String, String> setUpWriteMethodNames(final PropertyDescripto
7373
* Creates a new instance of {@code BeanIntrospectionData} and initializes its
7474
* completely.
7575
*
76-
* @param descs the array with the descriptors of the available properties
76+
* @param descs The array with the descriptors of the available properties
7777
*/
7878
public BeanIntrospectionData(final PropertyDescriptor[] descs) {
7979
this(descs, setUpWriteMethodNames(descs));
@@ -83,8 +83,8 @@ public BeanIntrospectionData(final PropertyDescriptor[] descs) {
8383
* Creates a new instance of {@code BeanIntrospectionData} and allows setting the map
8484
* with write method names. This constructor is mainly used for testing purposes.
8585
*
86-
* @param descs the array with the descriptors of the available properties
87-
* @param writeMethNames the map with the names of write methods
86+
* @param descs The array with the descriptors of the available properties
87+
* @param writeMethNames The map with the names of write methods
8888
*/
8989
BeanIntrospectionData(final PropertyDescriptor[] descs, final Map<String, String> writeMethNames) {
9090
descriptors = descs;
@@ -95,7 +95,7 @@ public BeanIntrospectionData(final PropertyDescriptor[] descs) {
9595
* Returns the {@code PropertyDescriptor} for the property with the specified name. If
9696
* this property is unknown, result is {@code null}.
9797
*
98-
* @param name the name of the property in question
98+
* @param name The name of the property in question
9999
* @return The {@code PropertyDescriptor} for this property or {@code null}
100100
*/
101101
public PropertyDescriptor getDescriptor(final String name) {
@@ -125,8 +125,8 @@ public PropertyDescriptor[] getDescriptors() {
125125
* additional information stored in this object is necessary to obtain the method
126126
* again.
127127
*
128-
* @param beanCls the class of the affected bean
129-
* @param desc the {@code PropertyDescriptor} of the desired property
128+
* @param beanCls The class of the affected bean
129+
* @param desc The {@code PropertyDescriptor} of the desired property
130130
* @return The write method for this property or {@code null} if there is none
131131
*/
132132
public Method getWriteMethod(final Class<?> beanCls, final PropertyDescriptor desc) {

src/main/java/org/apache/commons/beanutils/BeanIntrospector.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public interface BeanIntrospector {
4444
* properties according to the rules it implements, and add them to the
4545
* passed in context object.
4646
*
47-
* @param icontext the context object for interaction with the initiator of
47+
* @param icontext The context object for interaction with the initiator of
4848
* the introspection request
4949
* @throws IntrospectionException if an error occurs during introspection
5050
*/

src/main/java/org/apache/commons/beanutils/BeanMap.java

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ protected static class Entry extends AbstractMapEntry {
5353
/**
5454
* Constructs a new {@code Entry}.
5555
*
56-
* @param owner the BeanMap this entry belongs to
57-
* @param key the key for this entry
58-
* @param value the value for this entry
56+
* @param owner The BeanMap this entry belongs to
57+
* @param key The key for this entry
58+
* @param value The value for this entry
5959
*/
6060
protected Entry(final BeanMap owner, final Object key, final Object value) {
6161
super(key, value);
@@ -65,7 +65,7 @@ protected Entry(final BeanMap owner, final Object key, final Object value) {
6565
/**
6666
* Sets the value.
6767
*
68-
* @param value the new value for the entry
68+
* @param value The new value for the entry
6969
* @return The old value for the entry
7070
*/
7171
@Override
@@ -197,7 +197,7 @@ public BeanMap() {
197197
/**
198198
* Constructs a new {@code BeanMap} that operates on the specified bean. If the given bean is {@code null}, then this map will be empty.
199199
*
200-
* @param bean the bean for this map to operate on
200+
* @param bean The bean for this map to operate on
201201
*/
202202
public BeanMap(final Object bean) {
203203
this.bean = bean;
@@ -287,7 +287,7 @@ public Object clone() throws CloneNotSupportedException {
287287
* <p>
288288
* Write-only properties will not be matched as the test operates against property read methods.
289289
*
290-
* @param name the name of the property to check
290+
* @param name The name of the property to check
291291
* @return false if the given name is null or is not a {@code String}; false if the bean does not define a property with that name; or true if the bean
292292
* does define a property with that name
293293
*/
@@ -300,7 +300,7 @@ public boolean containsKey(final Object name) {
300300
/**
301301
* Returns true if the bean defines a property whose current value is the given object.
302302
*
303-
* @param value the value to check
303+
* @param value The value to check
304304
* @return false true if the bean has at least one property whose current value is that object, false otherwise
305305
*/
306306
@Override
@@ -322,8 +322,8 @@ public boolean containsValue(final Object value) {
322322
* If no special constructor exists and the given type is not a primitive type, this method returns the original value.
323323
* </p>
324324
*
325-
* @param newType the type to convert the value to
326-
* @param value the value to convert
325+
* @param newType The type to convert the value to
326+
* @param value The value to convert
327327
* @return The converted value
328328
* @throws NumberFormatException if newType is a primitive type, and the string representation of the given value cannot be converted to that type
329329
* @throws InstantiationException if the constructor found with reflection raises it
@@ -354,8 +354,8 @@ protected Object convertType(final Class<?> newType, final Object value)
354354
* Creates an array of parameters to pass to the given mutator method. If the given object is not the right type to pass to the method directly, it will be
355355
* converted using {@link #convertType(Class,Object)}.
356356
*
357-
* @param method the mutator method
358-
* @param value the value to pass to the mutator method
357+
* @param method The mutator method
358+
* @param value The value to pass to the mutator method
359359
* @return An array containing one object that is either the given value or a transformed value
360360
* @throws IllegalAccessException if {@link #convertType(Class,Object)} raises it
361361
* @throws IllegalArgumentException if any other exception is raised by {@link #convertType(Class,Object)}
@@ -436,9 +436,9 @@ public int size() {
436436
* Called during a successful {@link #put(Object,Object)} operation. Default implementation does nothing. Override to be notified of property changes in the
437437
* bean caused by this map.
438438
*
439-
* @param key the name of the property that changed
440-
* @param oldValue the old value for that property
441-
* @param newValue the new value for that property
439+
* @param key The name of the property that changed
440+
* @param oldValue The old value for that property
441+
* @param newValue The new value for that property
442442
*/
443443
protected void firePropertyChange(final Object key, final Object oldValue, final Object newValue) {
444444
}
@@ -451,7 +451,7 @@ protected void firePropertyChange(final Object key, final Object oldValue, final
451451
* <p>
452452
* Write-only properties will not be matched as the test operates against property read methods.
453453
*
454-
* @param name the name of the property whose value to return
454+
* @param name The name of the property whose value to return
455455
* @return The value of the property with that name
456456
*/
457457
@Override
@@ -483,7 +483,7 @@ public Object getBean() {
483483
/**
484484
* Returns the accessor for the property with the given name.
485485
*
486-
* @param name the name of the property
486+
* @param name The name of the property
487487
* @return null if the name is null; null if the name is not a {@link String}; null if no such property exists; or the accessor method for that property
488488
*/
489489
protected Method getReadMethod(final Object name) {
@@ -493,7 +493,7 @@ protected Method getReadMethod(final Object name) {
493493
/**
494494
* Returns the accessor for the property with the given name.
495495
*
496-
* @param name the name of the property
496+
* @param name The name of the property
497497
* @return The accessor method for the property, or null
498498
*/
499499
public Method getReadMethod(final String name) {
@@ -503,7 +503,7 @@ public Method getReadMethod(final String name) {
503503
/**
504504
* Returns the type of the property with the given name.
505505
*
506-
* @param name the name of the property
506+
* @param name The name of the property
507507
* @return The type of the property, or {@code null} if no such property exists
508508
*/
509509
public Class<?> getType(final String name) {
@@ -513,7 +513,7 @@ public Class<?> getType(final String name) {
513513
/**
514514
* Returns a transformer for the given primitive type.
515515
*
516-
* @param aType the primitive type whose transformer to return
516+
* @param aType The primitive type whose transformer to return
517517
* @return A transformer that will convert strings into that type, or null if the given type is not a primitive type
518518
*/
519519
protected Transformer getTypeTransformer(final Class<?> aType) {
@@ -525,7 +525,7 @@ protected Transformer getTypeTransformer(final Class<?> aType) {
525525
/**
526526
* Returns the mutator for the property with the given name.
527527
*
528-
* @param name the name of the
528+
* @param name The name of the
529529
* @return null if the name is null; null if the name is not a {@link String}; null if no such property exists; null if the property is read-only; or the
530530
* mutator method for that property
531531
*/
@@ -536,7 +536,7 @@ protected Method getWriteMethod(final Object name) {
536536
/**
537537
* Returns the mutator for the property with the given name.
538538
*
539-
* @param name the name of the property
539+
* @param name The name of the property
540540
* @return The mutator method for the property, or null
541541
*/
542542
public Method getWriteMethod(final String name) {
@@ -608,7 +608,7 @@ public Set<Object> keySet() {
608608
/**
609609
* Logs the given exception to {@code System.out}. Used to display warnings while accessing/mutating the bean.
610610
*
611-
* @param ex the exception to log
611+
* @param ex The exception to log
612612
*/
613613
protected void logInfo(final Exception ex) {
614614
// Deliberately do not use LOG4J or Commons Logging to avoid dependencies
@@ -618,7 +618,7 @@ protected void logInfo(final Exception ex) {
618618
/**
619619
* Logs the given exception to {@code System.err}. Used to display errors while accessing/mutating the bean.
620620
*
621-
* @param ex the exception to log
621+
* @param ex The exception to log
622622
*/
623623
protected void logWarn(final Exception ex) {
624624
// Deliberately do not use LOG4J or Commons Logging to avoid dependencies
@@ -629,8 +629,8 @@ protected void logWarn(final Exception ex) {
629629
/**
630630
* Sets the bean property with the given name to the given value.
631631
*
632-
* @param name the name of the property to set
633-
* @param value the value to set that property to
632+
* @param name The name of the property to set
633+
* @param value The value to set that property to
634634
* @return The previous value of that property
635635
* @throws IllegalArgumentException if the given name is null; if the given name is not a {@link String}; if the bean doesn't define a property with that
636636
* name; or if the bean property with that name is read-only
@@ -661,7 +661,7 @@ public Object put(final Object name, final Object value) throws IllegalArgumentE
661661
/**
662662
* Puts all of the writable properties from the given BeanMap into this BeanMap. Read-only and Write-only properties will be ignored.
663663
*
664-
* @param map the BeanMap whose properties to put
664+
* @param map The BeanMap whose properties to put
665665
*/
666666
public void putAllWriteable(final BeanMap map) {
667667
for (final Object key : map.readMethods.keySet()) {
@@ -686,7 +686,7 @@ protected void reinitialise() {
686686
/**
687687
* Sets the bean to be operated on by this map. The given value may be null, in which case this map will be empty.
688688
*
689-
* @param newBean the new bean to operate on
689+
* @param newBean The new bean to operate on
690690
*/
691691
public void setBean(final Object newBean) {
692692
bean = newBean;

src/main/java/org/apache/commons/beanutils/BeanPredicate.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ public class BeanPredicate implements Predicate {
4343
* Constructs a {@code BeanPredicate} that applies the given
4444
* {@code Predicate} to the named property value.
4545
*
46-
* @param propertyName the name of the property whose value is to be predicated,
46+
* @param propertyName The name of the property whose value is to be predicated,
4747
* not null
48-
* @param predicate the {@code Predicate} to be applied,
48+
* @param predicate The {@code Predicate} to be applied,
4949
* not null
5050
*/
5151
public BeanPredicate(final String propertyName, final Predicate predicate) {
@@ -123,7 +123,7 @@ public void setPredicate(final Predicate predicate) {
123123
/**
124124
* Sets the name of the property whose value is to be predicated.
125125
*
126-
* @param propertyName the name of the property whose value is to be predicated,
126+
* @param propertyName The name of the property whose value is to be predicated,
127127
* not null
128128
*/
129129
public void setPropertyName(final String propertyName) {

src/main/java/org/apache/commons/beanutils/BeanUtilsBean.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ protected BeanUtilsBean initialValue() {
6060
* Determines the type of a {@code DynaProperty}. Here a special treatment
6161
* is needed for mapped properties.
6262
*
63-
* @param dynaProperty the property descriptor
64-
* @param value the value object to be set for this property
63+
* @param dynaProperty The property descriptor
64+
* @param value The value object to be set for this property
6565
* @return The type of this property
6666
*/
6767
private static Class<?> dynaPropertyType(final DynaProperty dynaProperty,
@@ -198,8 +198,8 @@ protected Object convert(final Object value, final Class<?> type) {
198198
* bean. This method delegates to {@link #convert(Object, Class)}, but {@code null}
199199
* values are not converted. This causes {@code null} values to be copied verbatim.
200200
*
201-
* @param value the value to be converted and copied
202-
* @param type the target type of the conversion
201+
* @param value The value to be converted and copied
202+
* @param type The target type of the conversion
203203
* @return The converted value
204204
*/
205205
private Object convertForCopy(final Object value, final Class<?> type) {

0 commit comments

Comments
 (0)