diff --git a/src/main/java/org/apache/commons/beanutils2/BeanUtilsBean.java b/src/main/java/org/apache/commons/beanutils2/BeanUtilsBean.java index af55b537b..6dbc97e95 100644 --- a/src/main/java/org/apache/commons/beanutils2/BeanUtilsBean.java +++ b/src/main/java/org/apache/commons/beanutils2/BeanUtilsBean.java @@ -48,8 +48,8 @@ * *
* 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 - * to upgrade the {@link Converter} implementations so that they could handle conversion to String for their type (e.g. IntegerConverter now handles conversion - * from an Integer to a String as well as String to Integer). + * to upgrade the {@link Converter} implementations so that they could handle conversion to String for their type (for example IntegerConverter now handles + * conversion from an Integer to a String as well as String to Integer). *
* *diff --git a/src/main/java/org/apache/commons/beanutils2/LazyDynaList.java b/src/main/java/org/apache/commons/beanutils2/LazyDynaList.java index c88a53273..942159776 100644 --- a/src/main/java/org/apache/commons/beanutils2/LazyDynaList.java +++ b/src/main/java/org/apache/commons/beanutils2/LazyDynaList.java @@ -100,13 +100,13 @@ * uses the Class to automatically populate elements:
* *{@code - * // e.g. For Maps + * // for example For Maps * List lazyList = new LazyDynaList(TreeMap.class); * - * // e.g. For POJO Beans + * // for example For POJO Beans * List lazyList = new LazyDynaList(MyPojo.class); * - * // e.g. For DynaBeans + * // for example For DynaBeans * List lazyList = new LazyDynaList(MyDynaBean.class); * }* @@ -116,15 +116,15 @@ * the DynaClass to automatically populate elements: * *
{@code - * // e.g. For Maps + * // for example For Maps * DynaClass dynaClass = new LazyDynaMap(new HashMap()); * List lazyList = new LazyDynaList(dynaClass); * - * // e.g. For POJO Beans + * // for example For POJO Beans * DynaClass dynaClass = (new WrapDynaBean(myPojo)).getDynaClass(); * List lazyList = new LazyDynaList(dynaClass); * - * // e.g. For DynaBeans + * // for example For DynaBeans * DynaClass dynaClass = new BasicDynaClass(properties); * List lazyList = new LazyDynaList(dynaClass); * }diff --git a/src/main/java/org/apache/commons/beanutils2/PropertyUtilsBean.java b/src/main/java/org/apache/commons/beanutils2/PropertyUtilsBean.java index 54767948b..833d74ca8 100644 --- a/src/main/java/org/apache/commons/beanutils2/PropertyUtilsBean.java +++ b/src/main/java/org/apache/commons/beanutils2/PropertyUtilsBean.java @@ -803,9 +803,10 @@ protected Object getPropertyOfMapBean(final Map, ?> bean, String propertyName) * 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 * the property itself will be returned. If the last (or only) element has no property with the specified name, {@code null} is returned. *
- * 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 - * 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) - * from the getter method. + * 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 + * 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 + * java.util.List) from the getter method. + *
* * @param bean Bean for which a property descriptor is requested * @param name Possibly indexed and/or nested name of the property for which a property descriptor is requested @@ -873,8 +874,9 @@ public Class> getPropertyType(Object bean, String name) throws IllegalAccessEx * ** 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 - * with the standard code (e.g. that of {@link #getProperty getProperty()}) by calling this method instead of using {@code descriptor.getReadMethod()} - * directly. + * with the standard code (for example that of {@link #getProperty getProperty()}) by calling this method instead of using + * {@code descriptor.getReadMethod()} directly. + *
* * @param clazz The class of the read method will be invoked on * @param descriptor Property descriptor to return a getter for @@ -976,8 +978,9 @@ public Object getSimpleProperty(final Object bean, final String name) throws Ill * ** 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 - * with the standard code (e.g. that of {@link #setProperty setProperty()}) by calling this method instead of using {@code descriptor.getWriteMethod()} - * directly. + * with the standard code (for example that of {@link #setProperty setProperty()}) by calling this method instead of using + * {@code descriptor.getWriteMethod()} directly. + *
* * @param clazz The class of the read method will be invoked on * @param descriptor Property descriptor to return a setter for