Skip to content

Commit 1231b38

Browse files
committed
Javadoc: Use semantic tag <strong> instead of style tag <b>
1 parent c0ab89b commit 1231b38

Some content is hidden

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

59 files changed

+189
-188
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,8 @@ public boolean isReadOnly() {
253253
* </p>
254254
*
255255
* <p>
256-
* <b>N.B.</b>For {@link DynaBean}s whose associated {@link DynaClass} is a {@link MutableDynaClass} a new Set is created every time, otherwise the Set is
257-
* created only once and cached.
256+
* <strong>N.B.</strong>For {@link DynaBean}s whose associated {@link DynaClass} is a {@link MutableDynaClass} a new Set is created every time, otherwise
257+
* the Set is created only once and cached.
258258
* </p>
259259
*
260260
* @return An unmodifiable set of the {@link DynaBean}s property names.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ protected DynaProperty getDynaProperty(final String name) {
223223
* <p>
224224
* This, for example, could be used in JSTL in the following way to access a DynaBean's {@code fooProperty}:
225225
* <ul>
226-
* <li>{@code ${myDynaBean.<b>map</b>.fooProperty}}</li>
226+
* <li>{@code ${myDynaBean.<strong>map</strong>.fooProperty}}</li>
227227
* </ul>
228228
*
229229
* @return a Map representation of this DynaBean

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,10 @@ public BeanIntrospectionData(final PropertyDescriptor[] descs) {
8585
}
8686

8787
/**
88-
* Returns the {@code PropertyDescriptor} for the property with the specified name. If this property is unknown, result is <b>null</b>.
88+
* Returns the {@code PropertyDescriptor} for the property with the specified name. If this property is unknown, result is <strong>null</strong>.
8989
*
9090
* @param name the name of the property in question
91-
* @return the {@code PropertyDescriptor} for this property or <b>null</b>
91+
* @return the {@code PropertyDescriptor} for this property or <strong>null</strong>
9292
*/
9393
public PropertyDescriptor getDescriptor(final String name) {
9494
for (final PropertyDescriptor pd : getDescriptors()) {
@@ -116,7 +116,7 @@ public PropertyDescriptor[] getDescriptors() {
116116
*
117117
* @param beanCls the class of the affected bean
118118
* @param desc the {@code PropertyDescriptor} of the desired property
119-
* @return the write method for this property or <b>null</b> if there is none
119+
* @return the write method for this property or <strong>null</strong> if there is none
120120
*/
121121
public Method getWriteMethod(final Class<?> beanCls, final PropertyDescriptor desc) {
122122
Method method = desc.getWriteMethod();

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,8 @@ public Iterator<String> keyIterator() {
515515
/**
516516
* Gets the keys for this BeanMap.
517517
* <p>
518-
* Write-only properties are <b>not</b> included in the returned set of property names, although it is possible to set their value and to get their type.
518+
* Write-only properties are <strong>not</strong> included in the returned set of property names, although it is possible to set their value and to get
519+
* their type.
519520
* </p>
520521
*
521522
* @return BeanMap keys. The Set returned by this method is not modifiable.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ protected <R> Object convert(final Object value, final Class<R> type) {
215215

216216
/**
217217
* Performs a type conversion of a property value before it is copied to a target bean. This method delegates to {@link #convert(Object, Class)}, but
218-
* <b>null</b> values are not converted. This causes <b>null</b> values to be copied verbatim.
218+
* <strong>null</strong> values are not converted. This causes <strong>null</strong> values to be copied verbatim.
219219
*
220220
* @param value the value to be converted and copied
221221
* @param type the target type of the conversion

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
* This, for example, could be used in JSTL in the following way to access a DynaBean's {@code fooProperty}:
4343
* </p>
4444
* <ul>
45-
* <li>{@code ${myDynaBean.<b>map</b>.fooProperty}}</li>
45+
* <li>{@code ${myDynaBean.<strong>map</strong>.fooProperty}}</li>
4646
* </ul>
4747
*
4848
* <h2>Usage</h2>
@@ -56,8 +56,8 @@
5656
* </ul>
5757
*
5858
* <p>
59-
* The above example creates a <b><em>read only</em></b> {@code Map}. To create a {@code Map} which can be modified, construct a
60-
* {@code DynaBeanPropertyMapDecorator} with the <b><em>read only</em></b> attribute set to {@code false}:
59+
* The above example creates a <strong><em>read only</em></strong> {@code Map}. To create a {@code Map} which can be modified, construct a
60+
* {@code DynaBeanPropertyMapDecorator} with the <strong><em>read only</em></strong> attribute set to {@code false}:
6161
* </p>
6262
*
6363
* <ul>
@@ -68,7 +68,7 @@
6868
* <h2>Limitations</h2>
6969
* <p>
7070
* In this implementation the {@code entrySet()</code>, <code>keySet()}
71-
* and {@code values()} methods create an <b><em>unmodifiable</em></b>
71+
* and {@code values()} methods create an <strong><em>unmodifiable</em></strong>
7272
* {@code Set</code> and it does not support the Map's <code>clear()} and {@code remove()} operations.
7373
* </p>
7474
*

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
* </p>
3333
* <p>
3434
* A <em>fluent API</em> allows setting multiple properties using a single statement by supporting so-called <em>method chaining</em>: Methods for setting a
35-
* property value do not return <b>void</b>, but an object which can be called for setting another property. An example of such a fluent API could look as
36-
* follows:
35+
* property value do not return <strong>void</strong>, but an object which can be called for setting another property. An example of such a fluent API could
36+
* look as follows:
3737
* </p>
3838
*
3939
* <pre>
@@ -51,7 +51,7 @@
5151
* </pre>
5252
*
5353
* <p>
54-
* Per default, {@code PropertyUtils} does not detect methods like this because, having a non-<b>void</b> return type, they violate the Java Beans
54+
* Per default, {@code PropertyUtils} does not detect methods like this because, having a non-<strong>void</strong> return type, they violate the Java Beans
5555
* specification.
5656
* </p>
5757
* <p>
@@ -62,8 +62,8 @@
6262
* <p>
6363
* An instance of this class is intended to collaborate with a {@link DefaultBeanIntrospector} object. So best results are achieved by adding this instance as
6464
* custom {@code BeanIntrospector} after the {@code DefaultBeanIntrospector} object. Then default introspection finds read-only properties because it does not
65-
* detect the write methods with a non-<b>void</b> return type. {@code FluentPropertyBeanIntrospector} completes the descriptors for these properties by setting
66-
* the correct write method.
65+
* detect the write methods with a non-<strong>void</strong> return type. {@code FluentPropertyBeanIntrospector} completes the descriptors for these properties
66+
* by setting the correct write method.
6767
* </p>
6868
*
6969
* @since 1.9
@@ -91,8 +91,8 @@ public FluentPropertyBeanIntrospector() {
9191
* Creates a new instance of {@code FluentPropertyBeanIntrospector} and initializes it with the prefix for write methods used by the classes to be
9292
* inspected.
9393
*
94-
* @param writePrefix the prefix for write methods (must not be <b>null</b>)
95-
* @throws IllegalArgumentException if the prefix is <b>null</b>
94+
* @param writePrefix the prefix for write methods (must not be <strong>null</strong>)
95+
* @throws IllegalArgumentException if the prefix is <strong>null</strong>
9696
*/
9797
public FluentPropertyBeanIntrospector(final String writePrefix) {
9898
writeMethodPrefix = Objects.requireNonNull(writePrefix, "writePrefix");

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ public interface IntrospectionContext {
4949
void addPropertyDescriptors(PropertyDescriptor[] descriptors);
5050

5151
/**
52-
* Returns the descriptor for the property with the given name or <b>null</b> if this property is unknown.
52+
* Returns the descriptor for the property with the given name or <strong>null</strong> if this property is unknown.
5353
*
5454
* @param name the name of the property in question
55-
* @return the descriptor for this property or <b>null</b> if this property is unknown
55+
* @return the descriptor for this property or <strong>null</strong> if this property is unknown
5656
*/
5757
PropertyDescriptor getPropertyDescriptor(String name);
5858

@@ -68,7 +68,7 @@ public interface IntrospectionContext {
6868
* that an already existing property descriptor is overridden.
6969
*
7070
* @param name the name of the property in question
71-
* @return <b>true</b> if a descriptor for this property has already been added, <b>false</b> otherwise
71+
* @return <strong>true</strong> if a descriptor for this property has already been added, <strong>false</strong> otherwise
7272
*/
7373
boolean hasProperty(String name);
7474

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@
4747
* {@code set(name, key, value)}</li>
4848
* </ul>
4949
*
50-
* <p><b><u>Getting Property Values</u></b></p>
50+
* <p><strong><u>Getting Property Values</u></strong></p>
5151
* <p>Calling any of the {@code get()} methods, for a property which
5252
* doesn't exist, returns {@code null} in this implementation.</p>
5353
*
54-
* <p><b><u>Setting Simple Properties</u></b></p>
54+
* <p><strong><u>Setting Simple Properties</u></strong></p>
5555
* <p>The {@code LazyDynaBean</code> will automatically add a property to the <code>DynaClass}
5656
* if it doesn't exist when the {@code set(name, value)} method is called.</p>
5757
*
@@ -60,8 +60,8 @@
6060
* myBean.set("myProperty", "myValue");
6161
* }</pre>
6262
*
63-
* <p><b><u>Setting Indexed Properties</u></b></p>
64-
* <p>If the property <b>doesn't</b> exist, the {@code LazyDynaBean} will automatically add
63+
* <p><strong><u>Setting Indexed Properties</u></strong></p>
64+
* <p>If the property <strong>doesn't</strong> exist, the {@code LazyDynaBean} will automatically add
6565
* a property with an {@code ArrayList</code> type to the <code>DynaClass} when
6666
* the {@code set(name, index, value)} method is called.
6767
* It will also instantiate a new {@code ArrayList} and automatically <em>grow</em>
@@ -76,7 +76,7 @@
7676
* myBean.set("myIndexedProperty", 1, "myValue2");
7777
* }</pre>
7878
*
79-
* <p>If the indexed property <b>does</b> exist in the {@code DynaClass} but is set to
79+
* <p>If the indexed property <strong>does</strong> exist in the {@code DynaClass} but is set to
8080
* {@code null</code> in the <code>LazyDynaBean}, then it will instantiate a
8181
* new {@code List</code> or <code>Array} as specified by the property's type
8282
* in the {@code DynaClass</code> and automatically <em>grow</em> the <code>List}
@@ -90,8 +90,8 @@
9090
* myBean.set("myIndexedProperty", 1, Integer.valueOf(20));
9191
* }</pre>
9292
*
93-
* <p><b><u>Setting Mapped Properties</u></b></p>
94-
* <p>If the property <b>doesn't</b> exist, the {@code LazyDynaBean} will automatically add
93+
* <p><strong><u>Setting Mapped Properties</u></strong></p>
94+
* <p>If the property <strong>doesn't</strong> exist, the {@code LazyDynaBean} will automatically add
9595
* a property with a {@code HashMap</code> type to the <code>DynaClass} and
9696
* instantiate a new {@code HashMap} in the DynaBean when the
9797
* {@code set(name, key, value)</code> method is called. <code>HashMap} is the default
@@ -103,7 +103,7 @@
103103
* myBean.set("myMappedProperty", "myKey", "myValue");
104104
* }</pre>
105105
*
106-
* <p>If the mapped property <b>does</b> exist in the {@code DynaClass} but is set to
106+
* <p>If the mapped property <strong>does</strong> exist in the {@code DynaClass} but is set to
107107
* {@code null</code> in the <code>LazyDynaBean}, then it will instantiate a
108108
* new {@code Map</code> as specified by the property's type in the <code>DynaClass}.</p>
109109
*
@@ -114,7 +114,7 @@
114114
* myBean.set("myMappedProperty", "myKey", "myValue");
115115
* }</pre>
116116
*
117-
* <p><b><u><em>Restricted</em> DynaClass</u></b></p>
117+
* <p><strong><u><em>Restricted</em> DynaClass</u></strong></p>
118118
* <p>{@code MutableDynaClass</code> have a facility to <em>restrict</em> the <code>DynaClass} so that its properties cannot be modified. If the
119119
* {@code MutableDynaClass} is restricted then calling any of the {@code set()} methods for a property which doesn't exist will result in a
120120
* {@code IllegalArgumentException} being thrown.
@@ -577,7 +577,7 @@ public DynaClass getDynaClass() {
577577
* </p>
578578
* This, for example, could be used in JSTL in the following way to access a DynaBean's {@code fooProperty}:
579579
* <ul>
580-
* <li>{@code ${myDynaBean.<b>map</b>.fooProperty}}</li>
580+
* <li>{@code ${myDynaBean.<strong>map</strong>.fooProperty}}</li>
581581
* </ul>
582582
*
583583
* @return a Map representation of this DynaBean

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
* <li>Mapped properties are automatically instantiated.</li>
3939
* </ul>
4040
*
41-
* <p><b><u><em>Restricted</em> DynaClass</u></b></p>
41+
* <p><strong><u><em>Restricted</em> DynaClass</u></strong></p>
4242
* <p>This class implements the {@code MutableDynaClass} interface.
4343
* {@code MutableDynaClass</code> have a facility to <em>restrict</em> the <code>DynaClass} so that its properties cannot be modified. If the
4444
* {@code MutableDynaClass} is restricted then calling any of the {@code set()} methods for a property which doesn't exist will result in a

0 commit comments

Comments
 (0)