diff --git a/src/main/java/org/apache/commons/lang3/ArrayUtils.java b/src/main/java/org/apache/commons/lang3/ArrayUtils.java index 32ca5a131..804f7038e 100644 --- a/src/main/java/org/apache/commons/lang3/ArrayUtils.java +++ b/src/main/java/org/apache/commons/lang3/ArrayUtils.java @@ -137,7 +137,7 @@ public class ArrayUtils { /** *

ArrayUtils instances should NOT be constructed in standard programming. - * Instead, the class should be used as {@code ArrayUtils.clone(new int[] {2})}.

+ * Instead, the class should be used as ArrayUtils.clone(new int[] {2}).

* *

This constructor is public to permit tools that require a JavaBean instance * to operate.

@@ -146,6 +146,10 @@ public class ArrayUtils { super(); } + + // N.B. Cannot use {@code} to enclose text which includes {}, but is OK + + // Basic methods handling multi-dimensional arrays //----------------------------------------------------------------------- /** @@ -154,7 +158,7 @@ public class ArrayUtils { *

Multi-dimensional arrays are handled correctly, including * multi-dimensional primitive arrays.

* - *

The format is that of Java source code, for example {@code {a,b}}.

+ *

The format is that of Java source code, for example {a,b}.

* * @param array the array to get a toString for, may be {@code null} * @return a String representation of the array, '{}' if null array input @@ -169,7 +173,7 @@ public class ArrayUtils { *

Multi-dimensional arrays are handled correctly, including * multi-dimensional primitive arrays.

* - *

The format is that of Java source code, for example {@code {a,b}}.

+ *

The format is that of Java source code, for example {a,b}.

* * @param array the array to get a toString for, may be {@code null} * @param stringIfNull the String to return if the array is {@code null} @@ -294,7 +298,7 @@ public class ArrayUtils { * type explicitly like in * Number[] array = ArrayUtils.<Number>toArray(new Integer(42), new Double(Math.PI)), * there is no real advantage when compared to - * {@code new Number[] {new Integer(42), new Double(Math.PI)}}.

+ * new Number[] {new Integer(42), new Double(Math.PI)}.

* * @param the array's element type * @param items the varargs array items, null allowed