You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/java/org/apache/commons/beanutils2/BeanUtilsBean.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -48,8 +48,8 @@
48
48
*
49
49
* <p>
50
50
* BeanUtils 1.7.0 delegated all conversion to String to the converter registered for the {@code String.class}. One of the improvements in BeanUtils 1.8.0 was
51
-
* to upgrade the {@link Converter} implementations so that they could handle conversion to String for their type (e.g. IntegerConverter now handles conversion
52
-
* from an Integer to a String as well as String to Integer).
51
+
* to upgrade the {@link Converter} implementations so that they could handle conversion to String for their type (for example IntegerConverter now handles
52
+
* conversion from an Integer to a String as well as String to Integer).
* method follows the same name resolution rules used by {@code getPropertyDescriptor()}, so if the last element of a name reference is indexed, the type of
804
804
* the property itself will be returned. If the last (or only) element has no property with the specified name, {@code null} is returned.
805
805
* <p>
806
-
* If the property is an indexed property (e.g. {@code String[]}), this method will return the type of the items within that array. Note that from Java 8
807
-
* and newer, this method do not support such index types from items within an Collection, and will instead return the collection type (e.g. java.util.List)
808
-
* from the getter method.
806
+
* If the property is an indexed property (for example {@code String[]}), this method will return the type of the items within that array. Note that from
807
+
* Java 8 and newer, this method do not support such index types from items within an Collection, and will instead return the collection type (for example
808
+
* java.util.List) from the getter method.
809
+
* </p>
809
810
*
810
811
* @param bean Bean for which a property descriptor is requested
811
812
* @param name Possibly indexed and/or nested name of the property for which a property descriptor is requested
* This fairly low-level method shouldn't be needed for most usecases. However, if you do have to implement something extra, you can improve consistency
876
-
* with the standard code (e.g. that of {@link #getProperty getProperty()}) by calling this method instead of using {@code descriptor.getReadMethod()}
877
-
* directly.
877
+
* with the standard code (for example that of {@link #getProperty getProperty()}) by calling this method instead of using
878
+
* {@code descriptor.getReadMethod()} directly.
879
+
* </p>
878
880
*
879
881
* @param clazz The class of the read method will be invoked on
880
882
* @param descriptor Property descriptor to return a getter for
@@ -976,8 +978,9 @@ public Object getSimpleProperty(final Object bean, final String name) throws Ill
976
978
*
977
979
* <p>
978
980
* This fairly low-level method shouldn't be needed for most usecases. However, if you do have to implement something extra, you can improve consistency
979
-
* with the standard code (e.g. that of {@link #setProperty setProperty()}) by calling this method instead of using {@code descriptor.getWriteMethod()}
980
-
* directly.
981
+
* with the standard code (for example that of {@link #setProperty setProperty()}) by calling this method instead of using
982
+
* {@code descriptor.getWriteMethod()} directly.
983
+
* </p>
981
984
*
982
985
* @param clazz The class of the read method will be invoked on
983
986
* @param descriptor Property descriptor to return a setter for
0 commit comments