Skip to content

Commit e5bf9c7

Browse files
committed
Comment: Remove unnecessary Latin acronym
1 parent 0123169 commit e5bf9c7

File tree

11 files changed

+18
-18
lines changed

11 files changed

+18
-18
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public Object setValue(final Object value) {
9292
/**
9393
* Maps primitive Class types to transformers. The transformer transform strings into the appropriate primitive wrapper.
9494
*
95-
* N.B. private & unmodifiable replacement for the (public & static) defaultTransformers instance.
95+
* Private & unmodifiable replacement for the (public & static) defaultTransformers instance.
9696
*/
9797
private static final Map<Class<? extends Object>, Function<?, ?>> typeTransformers = Collections.unmodifiableMap(createTypeTransformers());
9898

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -408,9 +408,9 @@ public <T> Converter<T> lookup(final Class<T> clazz) {
408408
* value should be used.
409409
* @param defaultNull {@code true}if the <em>standard</em> converters (see {@link ConvertUtilsBean#registerStandard(boolean, boolean)}) should use a
410410
* default value of {@code null</code>, otherwise <code>false}.
411-
* N.B. This values is ignored if {@code throwException</code> is <code>true}
411+
* This values is ignored if {@code throwException</code> is <code>true}
412412
* @param defaultArraySize The size of the default array value for array converters
413-
* (N.B. This values is ignored if {@code throwException</code> is <code>true}). Specifying a value less than zero causes a {@code null} value to be used
413+
* (This values is ignored if {@code throwException</code> is <code>true}). Specifying a value less than zero causes a {@code null} value to be used
414414
* for the default.
415415
*/
416416
public void register(final boolean throwException, final boolean defaultNull, final int defaultArraySize) {
@@ -461,7 +461,7 @@ private <T> void registerArrayConverter(final Class<T> componentType, final Conv
461461
*
462462
* @param throwException {@code true} if the converters should throw an exception when a conversion error occurs, otherwise {@code false} if a default
463463
* value should be used.
464-
* @param defaultArraySize The size of the default array value for array converters (N.B. This values is ignored if
464+
* @param defaultArraySize The size of the default array value for array converters (This values is ignored if
465465
* {@code throwException</code> is <code>true}). Specifying a value less than zero causes a {@code null} value to be used for the
466466
* default.
467467
*/
@@ -649,7 +649,7 @@ private void registerPrimitives(final boolean throwException) {
649649
* @param defaultNull {@code true}if the <em>standard</em> converters
650650
* (see {@link ConvertUtilsBean#registerStandard(boolean, boolean)})
651651
* should use a default value of {@code null</code>, otherwise <code>false}.
652-
* N.B. This values is ignored if {@code throwException</code> is <code>true}
652+
* This values is ignored if {@code throwException</code> is <code>true}
653653
*/
654654
private void registerStandard(final boolean throwException, final boolean defaultNull) {
655655

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ public class LazyDynaList extends ArrayList<Object> {
169169
/**
170170
* The WrapDynaClass if the List's contains POJO Bean elements.
171171
*
172-
* N.B. WrapDynaClass isn't serializable, which is why its stored separately in a transient instance variable.
172+
* WrapDynaClass isn't serializable, which is why its stored separately in a transient instance variable.
173173
*/
174174
private transient WrapDynaClass wrapDynaClass;
175175

src/main/java/org/apache/commons/beanutils2/converters/AbstractConverter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ public <R> R convert(final Class<R> type, Object value) {
190190
/**
191191
* Returns the first element from an Array (or Collection) or the value unchanged if not an Array (or Collection).
192192
*
193-
* N.B. This needs to be overridden for array/Collection converters.
193+
* This needs to be overridden for array/Collection converters.
194194
*
195195
* @param value The value to convert
196196
* @return The first element in an Array (or Collection) or the value unchanged if not an Array (or Collection)

src/main/java/org/apache/commons/beanutils2/converters/ArrayConverter.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
* <ul>
5858
* <li><em>defaultSize &lt; 0</em> - default is {@code null}</li>
5959
* <li><em>defaultSize = 0</em> - default is an array of length zero</li>
60-
* <li><em>defaultSize &gt; 0</em> - default is an array with a length specified by {@code defaultSize} (N.B. elements in the array will be {@code null})</li>
60+
* <li><em>defaultSize &gt; 0</em> - default is an array with a length specified by {@code defaultSize} (elements in the array will be {@code null})</li>
6161
* </ul>
6262
* </li>
6363
* </ul>
@@ -83,12 +83,12 @@
8383
*
8484
* // Construct an array Converter for an integer array (i.e. int[]) using
8585
* // an IntegerConverter as the element converter.
86-
* // N.B. Uses the default comma (i.e. ",") as the delimiter between individual numbers
86+
* // Uses the default comma (i.e. ",") as the delimiter between individual numbers
8787
* ArrayConverter arrayConverter = new ArrayConverter(int[].class, integerConverter);
8888
*
8989
* // Construct a "Matrix" Converter which converts arrays of integer arrays using
9090
* // the preceding ArrayConverter as the element Converter.
91-
* // N.B. Uses a semicolon (i.e. ";") as the delimiter to separate the different sets of numbers.
91+
* // Uses a semicolon (i.e. ";") as the delimiter to separate the different sets of numbers.
9292
* // Also the delimiter used by the first ArrayConverter needs to be added to the
9393
* // "allowed characters" for this one.
9494
* ArrayConverter matrixConverter = new ArrayConverter(int[][].class, arrayConverter);

src/main/java/org/apache/commons/beanutils2/converters/DateTimeConverter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ protected <T> T convertToType(final Class<T> targetType, final Object value) thr
195195
// Handle java.sql.Timestamp
196196
if (value instanceof java.sql.Timestamp) {
197197

198-
// N.B. Prior to JDK 1.4 the Timestamp's getTime() method
198+
// Prior to JDK 1.4 the Timestamp's getTime() method
199199
// didn't include the milliseconds. The following code
200200
// ensures it works consistently across JDK versions
201201
final java.sql.Timestamp timestamp = (java.sql.Timestamp) value;

src/test/java/org/apache/commons/beanutils2/bugs/Jira87Test.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ protected void tearDown() throws Exception {
6767
public void testJira87() throws Exception {
6868

6969
final Jira87BeanFactory.PublicMappedInterface bean = Jira87BeanFactory.createMappedPropertyBean();
70-
// N.B. The test impl. returns the key value
70+
// The test impl. returns the key value
7171
assertEquals("foo", PropertyUtils.getMappedProperty(bean, "value(foo)"));
7272
}
7373
}

src/test/java/org/apache/commons/beanutils2/converters/AbstractDateConverterTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ public void testConvertNull() {
200200
/**
201201
* Test default String to type conversion
202202
*
203-
* N.B. This method is overridden by test case implementations for java.sql.Date/Time/Timestamp
203+
* This method is overridden by test case implementations for java.sql.Date/Time/Timestamp
204204
*/
205205
@Test
206206
public void testDefaultStringToTypeConvert() {

src/test/java/org/apache/commons/beanutils2/converters/ArrayConverterTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,12 +250,12 @@ public void testTheMatrix() {
250250

251251
// Construct an array Converter for an integer array (i.e. int[]) using
252252
// an IntegerConverter as the element converter.
253-
// N.B. Uses the default comma (i.e. ",") as the delimiter between individual numbers
253+
// Uses the default comma (i.e. ",") as the delimiter between individual numbers
254254
final ArrayConverter arrayConverter = new ArrayConverter(int[].class, integerConverter);
255255

256256
// Construct a "Matrix" Converter which converts arrays of integer arrays using
257257
// the first (int[]) Converter as the element Converter.
258-
// N.B. Uses a semicolon (i.e. ";") as the delimiter to separate the different sets of numbers.
258+
// Uses a semicolon (i.e. ";") as the delimiter to separate the different sets of numbers.
259259
// Also the delimiter for the above array Converter needs to be added to this
260260
// array Converter's "allowed characters"
261261
final ArrayConverter matrixConverter = new ArrayConverter(int[][].class, arrayConverter);

src/test/java/org/apache/commons/beanutils2/converters/ClassConverterTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public void testArray() {
4848
final Converter<Class<?>> converter = new ClassConverter();
4949
// Test Array Class to String
5050
assertEquals("[Ljava.lang.Boolean;", converter.convert(String.class, Boolean[].class), "Array to String");
51-
// *** N.B. for some reason the following works on m1, but not m2
51+
// *** For some reason the following works on m1, but not m2
5252
// Test String to Array Class
5353
// assertEquals("String to Array", Boolean[].class, converter.convert(Class.class, "[Ljava.lang.Boolean;"));
5454
}

0 commit comments

Comments
 (0)