Skip to content

Commit 4e0d329

Browse files
committed
Javadoc: English, not Latin
1 parent f6d9d88 commit 4e0d329

File tree

3 files changed

+18
-15
lines changed

3 files changed

+18
-15
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@
4848
*
4949
* <p>
5050
* 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).
5353
* </p>
5454
*
5555
* <p>

src/main/java/org/apache/commons/beanutils2/LazyDynaList.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,13 @@
100100
* uses the Class to automatically populate elements:</p>
101101
*
102102
* <pre>{@code
103-
* // e.g. For Maps
103+
* // for example For Maps
104104
* List lazyList = new LazyDynaList(TreeMap.class);
105105
*
106-
* // e.g. For POJO Beans
106+
* // for example For POJO Beans
107107
* List lazyList = new LazyDynaList(MyPojo.class);
108108
*
109-
* // e.g. For DynaBeans
109+
* // for example For DynaBeans
110110
* List lazyList = new LazyDynaList(MyDynaBean.class);
111111
* }</pre>
112112
*
@@ -116,15 +116,15 @@
116116
* the DynaClass to automatically populate elements:</p>
117117
*
118118
* <pre>{@code
119-
* // e.g. For Maps
119+
* // for example For Maps
120120
* DynaClass dynaClass = new LazyDynaMap(new HashMap());
121121
* List lazyList = new LazyDynaList(dynaClass);
122122
*
123-
* // e.g. For POJO Beans
123+
* // for example For POJO Beans
124124
* DynaClass dynaClass = (new WrapDynaBean(myPojo)).getDynaClass();
125125
* List lazyList = new LazyDynaList(dynaClass);
126126
*
127-
* // e.g. For DynaBeans
127+
* // for example For DynaBeans
128128
* DynaClass dynaClass = new BasicDynaClass(properties);
129129
* List lazyList = new LazyDynaList(dynaClass);
130130
* }</pre>

src/main/java/org/apache/commons/beanutils2/PropertyUtilsBean.java

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -803,9 +803,10 @@ protected Object getPropertyOfMapBean(final Map<?, ?> bean, String propertyName)
803803
* 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
804804
* the property itself will be returned. If the last (or only) element has no property with the specified name, {@code null} is returned.
805805
* <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>
809810
*
810811
* @param bean Bean for which a property descriptor is requested
811812
* @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
873874
*
874875
* <p>
875876
* 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>
878880
*
879881
* @param clazz The class of the read method will be invoked on
880882
* @param descriptor Property descriptor to return a getter for
@@ -976,8 +978,9 @@ public Object getSimpleProperty(final Object bean, final String name) throws Ill
976978
*
977979
* <p>
978980
* 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>
981984
*
982985
* @param clazz The class of the read method will be invoked on
983986
* @param descriptor Property descriptor to return a setter for

0 commit comments

Comments
 (0)