Skip to content

Commit

Permalink
Javadoc: English, not Latin
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Dec 31, 2024
1 parent f6d9d88 commit 4e0d329
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@
*
* <p>
* 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).
* </p>
*
* <p>
Expand Down
12 changes: 6 additions & 6 deletions src/main/java/org/apache/commons/beanutils2/LazyDynaList.java
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,13 @@
* uses the Class to automatically populate elements:</p>
*
* <pre>{@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);
* }</pre>
*
Expand All @@ -116,15 +116,15 @@
* the DynaClass to automatically populate elements:</p>
*
* <pre>{@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);
* }</pre>
Expand Down
17 changes: 10 additions & 7 deletions src/main/java/org/apache/commons/beanutils2/PropertyUtilsBean.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.
* <p>
* 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.
* </p>
*
* @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
Expand Down Expand Up @@ -873,8 +874,9 @@ public Class<?> getPropertyType(Object bean, String name) throws IllegalAccessEx
*
* <p>
* 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.
* </p>
*
* @param clazz The class of the read method will be invoked on
* @param descriptor Property descriptor to return a getter for
Expand Down Expand Up @@ -976,8 +978,9 @@ public Object getSimpleProperty(final Object bean, final String name) throws Ill
*
* <p>
* 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.
* </p>
*
* @param clazz The class of the read method will be invoked on
* @param descriptor Property descriptor to return a setter for
Expand Down

0 comments on commit 4e0d329

Please sign in to comment.