Modified: sis/trunk/core/sis-utility/src/main/java/org/apache/sis/util/ArraysExt.java URL: http://svn.apache.org/viewvc/sis/trunk/core/sis-utility/src/main/java/org/apache/sis/util/ArraysExt.java?rev=1554743&r1=1554742&r2=1554743&view=diff ============================================================================== --- sis/trunk/core/sis-utility/src/main/java/org/apache/sis/util/ArraysExt.java [UTF-8] (original) +++ sis/trunk/core/sis-utility/src/main/java/org/apache/sis/util/ArraysExt.java [UTF-8] Thu Jan 2 06:08:48 2014 @@ -35,7 +35,7 @@ import org.apache.sis.internal.jdk7.Obje * {@code null} arrays and do not copy anything if the given array already has the * requested length. *
If the {@code length} argument is 0, then this method returns the {@code array} + *
If the {@code length} argument is 0, then this method returns the {@code array} * reference unchanged. Otherwise this method creates a new array. * In every cases, the given array is never modified.
* @@ -396,7 +396,7 @@ public final class ArraysExt extends Sta * removed elements, or {@code array} (which may be null) if {@code length} is 0. * @throws NullArgumentException If {@code array} is null and {@code length} is different than 0. * @throws IllegalArgumentException If {@code length} is negative. - * @throws IndexOutOfBoundsException If {@code first} or {@code first+length} is out of array bounds. + * @throws IndexOutOfBoundsException If {@code first} or {@code first+length} is out of array bounds. */ private staticIf the {@code length} argument is 0, then this method returns + *
If the {@code length} argument is 0, then this method returns * the {@code array} reference unchanged (except if empty). Otherwise this method * creates a new array. In every cases, the given array is never modified.
* @@ -430,7 +430,7 @@ public final class ArraysExt extends Sta * removed elements, or {@code array} (which may be null) if {@code length} is 0. * @throws NullArgumentException If {@code array} is null and {@code length} is different than 0. * @throws IllegalArgumentException If {@code length} is negative. - * @throws IndexOutOfBoundsException If {@code first} or {@code first+length} is out of array bounds. + * @throws IndexOutOfBoundsException If {@code first} or {@code first+length} is out of array bounds. * * @see #insert(Object[], int, int) */ @@ -444,7 +444,7 @@ public final class ArraysExt extends Sta * Returns an array containing the same elements than the given array except for * the given range. * - *If the {@code length} argument is 0, then this method returns the {@code array} + *
If the {@code length} argument is 0, then this method returns the {@code array} * reference unchanged, except for {@linkplain #EMPTY_DOUBLE empty} arrays. Otherwise * this method creates a new array. In every cases, the given array is never modified.
* @@ -455,7 +455,7 @@ public final class ArraysExt extends Sta * removed elements, or {@code array} (which may be null) if {@code length} is 0. * @throws NullArgumentException If {@code array} is null and {@code length} is different than 0. * @throws IllegalArgumentException If {@code length} is negative. - * @throws IndexOutOfBoundsException If {@code first} or {@code first+length} is out of array bounds. + * @throws IndexOutOfBoundsException If {@code first} or {@code first+length} is out of array bounds. * * @see #insert(double[], int, int) */ @@ -470,7 +470,7 @@ public final class ArraysExt extends Sta * Returns an array containing the same elements than the given array except for * the given range. * - *If the {@code length} argument is 0, then this method returns the {@code array} + *
If the {@code length} argument is 0, then this method returns the {@code array} * reference unchanged, except for {@linkplain #EMPTY_FLOAT empty} arrays. Otherwise * this method creates a new array. In every cases, the given array is never modified.
* @@ -481,7 +481,7 @@ public final class ArraysExt extends Sta * removed elements, or {@code array} (which may be null) if {@code length} is 0. * @throws NullArgumentException If {@code array} is null and {@code length} is different than 0. * @throws IllegalArgumentException If {@code length} is negative. - * @throws IndexOutOfBoundsException If {@code first} or {@code first+length} is out of array bounds. + * @throws IndexOutOfBoundsException If {@code first} or {@code first+length} is out of array bounds. * * @see #insert(float[], int, int) */ @@ -496,7 +496,7 @@ public final class ArraysExt extends Sta * Returns an array containing the same elements than the given array except for * the given range. * - *If the {@code length} argument is 0, then this method returns the {@code array} + *
If the {@code length} argument is 0, then this method returns the {@code array} * reference unchanged, except for {@linkplain #EMPTY_LONG empty} arrays. Otherwise * this method creates a new array. In every cases, the given array is never modified.
* @@ -507,7 +507,7 @@ public final class ArraysExt extends Sta * removed elements, or {@code array} (which may be null) if {@code length} is 0. * @throws NullArgumentException If {@code array} is null and {@code length} is different than 0. * @throws IllegalArgumentException If {@code length} is negative. - * @throws IndexOutOfBoundsException If {@code first} or {@code first+length} is out of array bounds. + * @throws IndexOutOfBoundsException If {@code first} or {@code first+length} is out of array bounds. * * @see #insert(long[], int, int) */ @@ -522,7 +522,7 @@ public final class ArraysExt extends Sta * Returns an array containing the same elements than the given array except for * the given range. * - *If the {@code length} argument is 0, then this method returns the {@code array} + *
If the {@code length} argument is 0, then this method returns the {@code array} * reference unchanged, except for {@linkplain #EMPTY_INT empty} arrays. Otherwise * this method creates a new array. In every cases, the given array is never modified.
* @@ -533,7 +533,7 @@ public final class ArraysExt extends Sta * removed elements, or {@code array} (which may be null) if {@code length} is 0. * @throws NullArgumentException If {@code array} is null and {@code length} is different than 0. * @throws IllegalArgumentException If {@code length} is negative. - * @throws IndexOutOfBoundsException If {@code first} or {@code first+length} is out of array bounds. + * @throws IndexOutOfBoundsException If {@code first} or {@code first+length} is out of array bounds. * * @see #insert(int[], int, int) */ @@ -548,7 +548,7 @@ public final class ArraysExt extends Sta * Returns an array containing the same elements than the given array except for * the given range. * - *If the {@code length} argument is 0, then this method returns the {@code array} + *
If the {@code length} argument is 0, then this method returns the {@code array} * reference unchanged, except for {@linkplain #EMPTY_SHORT empty} arrays. Otherwise * this method creates a new array. In every cases, the given array is never modified.
* @@ -559,7 +559,7 @@ public final class ArraysExt extends Sta * removed elements, or {@code array} (which may be null) if {@code length} is 0. * @throws NullArgumentException If {@code array} is null and {@code length} is different than 0. * @throws IllegalArgumentException If {@code length} is negative. - * @throws IndexOutOfBoundsException If {@code first} or {@code first+length} is out of array bounds. + * @throws IndexOutOfBoundsException If {@code first} or {@code first+length} is out of array bounds. * * @see #insert(short[], int, int) */ @@ -574,7 +574,7 @@ public final class ArraysExt extends Sta * Returns an array containing the same elements than the given array except for * the given range. * - *If the {@code length} argument is 0, then this method returns the {@code array} + *
If the {@code length} argument is 0, then this method returns the {@code array} * reference unchanged, except for {@linkplain #EMPTY_BYTE empty} arrays. Otherwise * this method creates a new array. In every cases, the given array is never modified.
* @@ -585,7 +585,7 @@ public final class ArraysExt extends Sta * removed elements, or {@code array} (which may be null) if {@code length} is 0. * @throws NullArgumentException If {@code array} is null and {@code length} is different than 0. * @throws IllegalArgumentException If {@code length} is negative. - * @throws IndexOutOfBoundsException If {@code first} or {@code first+length} is out of array bounds. + * @throws IndexOutOfBoundsException If {@code first} or {@code first+length} is out of array bounds. * * @see #insert(byte[], int, int) */ @@ -600,7 +600,7 @@ public final class ArraysExt extends Sta * Returns an array containing the same elements than the given array except for * the given range. * - *If the {@code length} argument is 0, then this method returns the {@code array} + *
If the {@code length} argument is 0, then this method returns the {@code array} * reference unchanged, except for {@linkplain #EMPTY_CHAR empty} arrays. Otherwise * this method creates a new array. In every cases, the given array is never modified.
* @@ -611,7 +611,7 @@ public final class ArraysExt extends Sta * removed elements, or {@code array} (which may be null) if {@code length} is 0. * @throws NullArgumentException If {@code array} is null and {@code length} is different than 0. * @throws IllegalArgumentException If {@code length} is negative. - * @throws IndexOutOfBoundsException If {@code first} or {@code first+length} is out of array bounds. + * @throws IndexOutOfBoundsException If {@code first} or {@code first+length} is out of array bounds. * * @see #insert(char[], int, int) */ @@ -626,7 +626,7 @@ public final class ArraysExt extends Sta * Returns an array containing the same elements than the given array except for * the given range. * - *If the {@code length} argument is 0, then this method returns the {@code array} + *
If the {@code length} argument is 0, then this method returns the {@code array} * reference unchanged, except for {@linkplain #EMPTY_BOOLEAN empty} arrays. Otherwise * this method creates a new array. In every cases, the given array is never modified.
* @@ -637,7 +637,7 @@ public final class ArraysExt extends Sta * removed elements, or {@code array} (which may be null) if {@code length} is 0. * @throws NullArgumentException If {@code array} is null and {@code length} is different than 0. * @throws IllegalArgumentException If {@code length} is negative. - * @throws IndexOutOfBoundsException If {@code first} or {@code first+length} is out of array bounds. + * @throws IndexOutOfBoundsException If {@code first} or {@code first+length} is out of array bounds. * * @see #insert(boolean[], int, int) */ @@ -652,7 +652,7 @@ public final class ArraysExt extends Sta * Returns an array containing the same elements than the given array, with additional * "spaces" in the given range. These "spaces" will be made up of {@code null} elements. * - *If the {@code length} argument is 0, then this method returns the {@code array} + *
If the {@code length} argument is 0, then this method returns the {@code array} * reference unchanged. Otherwise this method creates a new array. In every cases, * the given array is never modified.
* @@ -665,7 +665,7 @@ public final class ArraysExt extends Sta * inserted, or {@code array} (which may be null) if {@code length} is 0. * @throws NullArgumentException If {@code array} is null and {@code length} is different than 0. * @throws IllegalArgumentException If {@code length} is negative. - * @throws IndexOutOfBoundsException If {@code first} or {@code first+length} is out of array bounds. + * @throws IndexOutOfBoundsException If {@code first} or {@code first+length} is out of array bounds. */ private staticIf the {@code length} argument is 0, then this method returns the {@code array} + *
If the {@code length} argument is 0, then this method returns the {@code array} * reference unchanged. Otherwise this method creates a new array. In every cases, * the given array is never modified.
* @@ -700,7 +700,7 @@ public final class ArraysExt extends Sta * inserted, or {@code array} (which may be null) if {@code length} is 0. * @throws NullArgumentException If {@code array} is null and {@code length} is different than 0. * @throws IllegalArgumentException If {@code length} is negative. - * @throws IndexOutOfBoundsException If {@code first} or {@code first+length} is out of array bounds. + * @throws IndexOutOfBoundsException If {@code first} or {@code first+length} is out of array bounds. * * @see #insert(Object[], int, Object[], int, int) * @see #remove(Object[], int, int) @@ -716,7 +716,7 @@ public final class ArraysExt extends Sta * "spaces" in the given range. These "spaces" will be made up of elements initialized * to zero. * - *If the {@code length} argument is 0, then this method returns the {@code array} + *
If the {@code length} argument is 0, then this method returns the {@code array} * reference unchanged. Otherwise this method creates a new array. In every cases, * the given array is never modified.
* @@ -728,7 +728,7 @@ public final class ArraysExt extends Sta * inserted, or {@code array} (which may be null) if {@code length} is 0. * @throws NullArgumentException If {@code array} is null and {@code length} is different than 0. * @throws IllegalArgumentException If {@code length} is negative. - * @throws IndexOutOfBoundsException If {@code first} or {@code first+length} is out of array bounds. + * @throws IndexOutOfBoundsException If {@code first} or {@code first+length} is out of array bounds. * * @see #insert(double[], int, double[], int, int) * @see #remove(double[], int, int) @@ -744,7 +744,7 @@ public final class ArraysExt extends Sta * "spaces" in the given range. These "spaces" will be made up of elements initialized * to zero. * - *If the {@code length} argument is 0, then this method returns the {@code array} + *
If the {@code length} argument is 0, then this method returns the {@code array} * reference unchanged. Otherwise this method creates a new array. In every cases, * the given array is never modified.
* @@ -756,7 +756,7 @@ public final class ArraysExt extends Sta * inserted, or {@code array} (which may be null) if {@code length} is 0. * @throws NullArgumentException If {@code array} is null and {@code length} is different than 0. * @throws IllegalArgumentException If {@code length} is negative. - * @throws IndexOutOfBoundsException If {@code first} or {@code first+length} is out of array bounds. + * @throws IndexOutOfBoundsException If {@code first} or {@code first+length} is out of array bounds. * * @see #insert(float[], int, float[], int, int) * @see #remove(float[], int, int) @@ -772,7 +772,7 @@ public final class ArraysExt extends Sta * "spaces" in the given range. These "spaces" will be made up of elements initialized * to zero. * - *If the {@code length} argument is 0, then this method returns the {@code array} + *
If the {@code length} argument is 0, then this method returns the {@code array} * reference unchanged. Otherwise this method creates a new array. In every cases, * the given array is never modified.
* @@ -784,7 +784,7 @@ public final class ArraysExt extends Sta * inserted, or {@code array} (which may be null) if {@code length} is 0. * @throws NullArgumentException If {@code array} is null and {@code length} is different than 0. * @throws IllegalArgumentException If {@code length} is negative. - * @throws IndexOutOfBoundsException If {@code first} or {@code first+length} is out of array bounds. + * @throws IndexOutOfBoundsException If {@code first} or {@code first+length} is out of array bounds. * * @see #insert(long[], int, long[], int, int) * @see #remove(long[], int, int) @@ -800,7 +800,7 @@ public final class ArraysExt extends Sta * "spaces" in the given range. These "spaces" will be made up of elements initialized * to zero. * - *If the {@code length} argument is 0, then this method returns the {@code array} + *
If the {@code length} argument is 0, then this method returns the {@code array} * reference unchanged. Otherwise this method creates a new array. In every cases, * the given array is never modified.
* @@ -812,7 +812,7 @@ public final class ArraysExt extends Sta * inserted, or {@code array} (which may be null) if {@code length} is 0. * @throws NullArgumentException If {@code array} is null and {@code length} is different than 0. * @throws IllegalArgumentException If {@code length} is negative. - * @throws IndexOutOfBoundsException If {@code first} or {@code first+length} is out of array bounds. + * @throws IndexOutOfBoundsException If {@code first} or {@code first+length} is out of array bounds. * * @see #insert(int[], int, int[], int, int) * @see #remove(int[], int, int) @@ -828,7 +828,7 @@ public final class ArraysExt extends Sta * "spaces" in the given range. These "spaces" will be made up of elements initialized * to zero. * - *If the {@code length} argument is 0, then this method returns the {@code array} + *
If the {@code length} argument is 0, then this method returns the {@code array} * reference unchanged. Otherwise this method creates a new array. In every cases, * the given array is never modified.
* @@ -840,7 +840,7 @@ public final class ArraysExt extends Sta * inserted, or {@code array} (which may be null) if {@code length} is 0. * @throws NullArgumentException If {@code array} is null and {@code length} is different than 0. * @throws IllegalArgumentException If {@code length} is negative. - * @throws IndexOutOfBoundsException If {@code first} or {@code first+length} is out of array bounds. + * @throws IndexOutOfBoundsException If {@code first} or {@code first+length} is out of array bounds. * * @see #insert(short[], int, short[], int, int) * @see #remove(short[], int, int) @@ -856,7 +856,7 @@ public final class ArraysExt extends Sta * "spaces" in the given range. These "spaces" will be made up of elements initialized * to zero. * - *If the {@code length} argument is 0, then this method returns the {@code array} + *
If the {@code length} argument is 0, then this method returns the {@code array} * reference unchanged. Otherwise this method creates a new array. In every cases, * the given array is never modified.
* @@ -868,7 +868,7 @@ public final class ArraysExt extends Sta * inserted, or {@code array} (which may be null) if {@code length} is 0. * @throws NullArgumentException If {@code array} is null and {@code length} is different than 0. * @throws IllegalArgumentException If {@code length} is negative. - * @throws IndexOutOfBoundsException If {@code first} or {@code first+length} is out of array bounds. + * @throws IndexOutOfBoundsException If {@code first} or {@code first+length} is out of array bounds. * * @see #insert(byte[], int, byte[], int, int) * @see #remove(byte[], int, int) @@ -884,7 +884,7 @@ public final class ArraysExt extends Sta * "spaces" in the given range. These "spaces" will be made up of elements initialized * to zero. * - *If the {@code length} argument is 0, then this method returns the {@code array} + *
If the {@code length} argument is 0, then this method returns the {@code array} * reference unchanged. Otherwise this method creates a new array. In every cases, * the given array is never modified.
* @@ -896,7 +896,7 @@ public final class ArraysExt extends Sta * inserted, or {@code array} (which may be null) if {@code length} is 0. * @throws NullArgumentException If {@code array} is null and {@code length} is different than 0. * @throws IllegalArgumentException If {@code length} is negative. - * @throws IndexOutOfBoundsException If {@code first} or {@code first+length} is out of array bounds. + * @throws IndexOutOfBoundsException If {@code first} or {@code first+length} is out of array bounds. * * @see #insert(char[], int, char[], int, int) * @see #remove(char[], int, int) @@ -912,7 +912,7 @@ public final class ArraysExt extends Sta * "spaces" in the given range. These "spaces" will be made up of elements initialized * to {@code false}. * - *If the {@code length} argument is 0, then this method returns the {@code array} + *
If the {@code length} argument is 0, then this method returns the {@code array} * reference unchanged. Otherwise this method creates a new array. In every cases, * the given array is never modified.
* @@ -924,7 +924,7 @@ public final class ArraysExt extends Sta * inserted, or {@code array} (which may be null) if {@code length} is 0. * @throws NullArgumentException If {@code array} is null and {@code length} is different than 0. * @throws IllegalArgumentException If {@code length} is negative. - * @throws IndexOutOfBoundsException If {@code first} or {@code first+length} is out of array bounds. + * @throws IndexOutOfBoundsException If {@code first} or {@code first+length} is out of array bounds. * * @see #insert(boolean[], int, boolean[], int, int) * @see #remove(boolean[], int, int) @@ -939,16 +939,16 @@ public final class ArraysExt extends Sta * Returns an array containing the same elements than the given array, with the content * of an other array inserted at the given index. * - *If the {@code length} argument is 0, then this method returns the {@code dst} + *
If the {@code length} argument is 0, then this method returns the {@code dst} * reference unchanged. Otherwise this method creates a new array. In every cases, * the given arrays are never modified.
* * @paramIf the {@code length} argument is 0, then this method returns the {@code dst} + *
If the {@code length} argument is 0, then this method returns the {@code dst} * reference unchanged. Otherwise this method creates a new array. In every cases, * the given arrays are never modified.
* * @paramIf the {@code length} argument is 0, then this method returns the {@code dst} + *
If the {@code length} argument is 0, then this method returns the {@code dst} * reference unchanged. Otherwise this method creates a new array. In every cases, * the given arrays are never modified.
* * @param src Array to entirely or partially insert into {@code dst}. - * Can be null only if {@code length} is 0. + * Can be null only if {@code length} is 0. * @param srcOff Index of the first element of {@code src} to insert into {@code dst}. * @param dst Array in which to insert {@code src} data. - * Can be null only if {@code length} is 0. + * Can be null only if {@code length} is 0. * @param dstOff Index of the first element in {@code dst} where to insert {@code src} data. * All elements of {@code dst} whose index is equal to or greater than * {@code dstOff} will be moved forward. @@ -1052,15 +1052,15 @@ public final class ArraysExt extends Sta * Returns an array containing the same elements than the given array, with the content * of an other array inserted at the given index. * - *If the {@code length} argument is 0, then this method returns the {@code dst} + *
If the {@code length} argument is 0, then this method returns the {@code dst} * reference unchanged. Otherwise this method creates a new array. In every cases, * the given arrays are never modified.
* * @param src Array to entirely or partially insert into {@code dst}. - * Can be null only if {@code length} is 0. + * Can be null only if {@code length} is 0. * @param srcOff Index of the first element of {@code src} to insert into {@code dst}. * @param dst Array in which to insert {@code src} data. - * Can be null only if {@code length} is 0. + * Can be null only if {@code length} is 0. * @param dstOff Index of the first element in {@code dst} where to insert {@code src} data. * All elements of {@code dst} whose index is equal to or greater than * {@code dstOff} will be moved forward. @@ -1086,15 +1086,15 @@ public final class ArraysExt extends Sta * Returns an array containing the same elements than the given array, with the content * of an other array inserted at the given index. * - *If the {@code length} argument is 0, then this method returns the {@code dst} + *
If the {@code length} argument is 0, then this method returns the {@code dst} * reference unchanged. Otherwise this method creates a new array. In every cases, * the given arrays are never modified.
* * @param src Array to entirely or partially insert into {@code dst}. - * Can be null only if {@code length} is 0. + * Can be null only if {@code length} is 0. * @param srcOff Index of the first element of {@code src} to insert into {@code dst}. * @param dst Array in which to insert {@code src} data. - * Can be null only if {@code length} is 0. + * Can be null only if {@code length} is 0. * @param dstOff Index of the first element in {@code dst} where to insert {@code src} data. * All elements of {@code dst} whose index is equal to or greater than * {@code dstOff} will be moved forward. @@ -1120,15 +1120,15 @@ public final class ArraysExt extends Sta * Returns an array containing the same elements than the given array, with the content * of an other array inserted at the given index. * - *If the {@code length} argument is 0, then this method returns the {@code dst} + *
If the {@code length} argument is 0, then this method returns the {@code dst} * reference unchanged. Otherwise this method creates a new array. In every cases, * the given arrays are never modified.
* * @param src Array to entirely or partially insert into {@code dst}. - * Can be null only if {@code length} is 0. + * Can be null only if {@code length} is 0. * @param srcOff Index of the first element of {@code src} to insert into {@code dst}. * @param dst Array in which to insert {@code src} data. - * Can be null only if {@code length} is 0. + * Can be null only if {@code length} is 0. * @param dstOff Index of the first element in {@code dst} where to insert {@code src} data. * All elements of {@code dst} whose index is equal to or greater than * {@code dstOff} will be moved forward. @@ -1154,15 +1154,15 @@ public final class ArraysExt extends Sta * Returns an array containing the same elements than the given array, with the content * of an other array inserted at the given index. * - *If the {@code length} argument is 0, then this method returns the {@code dst} + *
If the {@code length} argument is 0, then this method returns the {@code dst} * reference unchanged. Otherwise this method creates a new array. In every cases, * the given arrays are never modified.
* * @param src Array to entirely or partially insert into {@code dst}. - * Can be null only if {@code length} is 0. + * Can be null only if {@code length} is 0. * @param srcOff Index of the first element of {@code src} to insert into {@code dst}. * @param dst Array in which to insert {@code src} data. - * Can be null only if {@code length} is 0. + * Can be null only if {@code length} is 0. * @param dstOff Index of the first element in {@code dst} where to insert {@code src} data. * All elements of {@code dst} whose index is equal to or greater than * {@code dstOff} will be moved forward. @@ -1188,15 +1188,15 @@ public final class ArraysExt extends Sta * Returns an array containing the same elements than the given array, with the content * of an other array inserted at the given index. * - *If the {@code length} argument is 0, then this method returns the {@code dst} + *
If the {@code length} argument is 0, then this method returns the {@code dst} * reference unchanged. Otherwise this method creates a new array. In every cases, * the given arrays are never modified.
* * @param src Array to entirely or partially insert into {@code dst}. - * Can be null only if {@code length} is 0. + * Can be null only if {@code length} is 0. * @param srcOff Index of the first element of {@code src} to insert into {@code dst}. * @param dst Array in which to insert {@code src} data. - * Can be null only if {@code length} is 0. + * Can be null only if {@code length} is 0. * @param dstOff Index of the first element in {@code dst} where to insert {@code src} data. * All elements of {@code dst} whose index is equal to or greater than * {@code dstOff} will be moved forward. @@ -1222,15 +1222,15 @@ public final class ArraysExt extends Sta * Returns an array containing the same elements than the given array, with the content * of an other array inserted at the given index. * - *If the {@code length} argument is 0, then this method returns the {@code dst} + *
If the {@code length} argument is 0, then this method returns the {@code dst} * reference unchanged. Otherwise this method creates a new array. In every cases, * the given arrays are never modified.
* * @param src Array to entirely or partially insert into {@code dst}. - * Can be null only if {@code length} is 0. + * Can be null only if {@code length} is 0. * @param srcOff Index of the first element of {@code src} to insert into {@code dst}. * @param dst Array in which to insert {@code src} data. - * Can be null only if {@code length} is 0. + * Can be null only if {@code length} is 0. * @param dstOff Index of the first element in {@code dst} where to insert {@code src} data. * All elements of {@code dst} whose index is equal to or greater than * {@code dstOff} will be moved forward. @@ -1256,15 +1256,15 @@ public final class ArraysExt extends Sta * Returns an array containing the same elements than the given array, with the content * of an other array inserted at the given index. * - *If the {@code length} argument is 0, then this method returns the {@code dst} + *
If the {@code length} argument is 0, then this method returns the {@code dst} * reference unchanged. Otherwise this method creates a new array. In every cases, * the given arrays are never modified.
* * @param src Array to entirely or partially insert into {@code dst}. - * Can be null only if {@code length} is 0. + * Can be null only if {@code length} is 0. * @param srcOff Index of the first element of {@code src} to insert into {@code dst}. * @param dst Array in which to insert {@code src} data. - * Can be null only if {@code length} is 0. + * Can be null only if {@code length} is 0. * @param dstOff Index of the first element in {@code dst} where to insert {@code src} data. * All elements of {@code dst} whose index is equal to or greater than * {@code dstOff} will be moved forward. @@ -1331,7 +1331,7 @@ public final class ArraysExt extends Sta * * @param array Array from which to remove duplicated elements, or {@code null}. * @return The number of remaining elements in the given array, or 0 if the given - * {@code array} was null. + * {@code array} was null. */ public static int removeDuplicated(final Object[] array) { if (array == null) { @@ -2030,7 +2030,7 @@ public final class ArraysExt extends Sta * *The main method of this interface is {@link #apply(Object)}, which receives an object of type * S and returns an object of type T. The set of all S values for which * {@code apply(S)} does not throw {@link UnconvertibleObjectException} is called the domain - * of this function, regardless of whether the T result is {@code null} or not.
+ * of this function, regardless of whether the T result is {@code null} or not. * * {@section Function properties} * Some characteristics about the S to T mapping are given by the Modified: sis/trunk/core/sis-utility/src/main/java/org/apache/sis/util/StringBuilders.java URL: http://svn.apache.org/viewvc/sis/trunk/core/sis-utility/src/main/java/org/apache/sis/util/StringBuilders.java?rev=1554743&r1=1554742&r2=1554743&view=diff ============================================================================== --- sis/trunk/core/sis-utility/src/main/java/org/apache/sis/util/StringBuilders.java [UTF-8] (original) +++ sis/trunk/core/sis-utility/src/main/java/org/apache/sis/util/StringBuilders.java [UTF-8] Thu Jan 2 06:08:48 2014 @@ -172,7 +172,7 @@ public final class StringBuilders extend * been appended to the buffer}, in order to make it appears like an integer when possible. * * @param buffer The buffer to trim if possible. - * @throws NullArgumentException If the given {@code buffer} is null. + * @throws NullArgumentException If the given {@code buffer} is null. * * @see CharSequences#trimFractionalPart(CharSequence) */ @@ -198,7 +198,7 @@ public final class StringBuilders extend * to {@code 00FF}, inclusive. Other characters are left unchanged. * * @param buffer The text to scan for Unicode characters to replace by ASCII characters. - * @throws NullArgumentException If the given {@code buffer} is null. + * @throws NullArgumentException If the given {@code buffer} is null. * * @see CharSequences#toASCII(CharSequence) */ Modified: sis/trunk/core/sis-utility/src/main/java/org/apache/sis/util/collection/Cache.java URL: http://svn.apache.org/viewvc/sis/trunk/core/sis-utility/src/main/java/org/apache/sis/util/collection/Cache.java?rev=1554743&r1=1554742&r2=1554743&view=diff ============================================================================== --- sis/trunk/core/sis-utility/src/main/java/org/apache/sis/util/collection/Cache.java [UTF-8] (original) +++ sis/trunk/core/sis-utility/src/main/java/org/apache/sis/util/collection/Cache.java [UTF-8] Thu Jan 2 06:08:48 2014 @@ -895,7 +895,7 @@ public class CacheThis property can also be set in order to allow some recursivity. If during the creation - * of an object, the program asks to this {@code Cache} for the same object (using the same key), + * of an object, the program asks to this {@code Cache} for the same object (using the same key), * then the default {@code Cache} implementation will consider this situation as a key collision * unless this property has been set to {@code true}.
* Modified: sis/trunk/core/sis-utility/src/main/java/org/apache/sis/util/collection/DefaultTreeTable.java URL: http://svn.apache.org/viewvc/sis/trunk/core/sis-utility/src/main/java/org/apache/sis/util/collection/DefaultTreeTable.java?rev=1554743&r1=1554742&r2=1554743&view=diff ============================================================================== --- sis/trunk/core/sis-utility/src/main/java/org/apache/sis/util/collection/DefaultTreeTable.java [UTF-8] (original) +++ sis/trunk/core/sis-utility/src/main/java/org/apache/sis/util/collection/DefaultTreeTable.java [UTF-8] Thu Jan 2 06:08:48 2014 @@ -97,7 +97,7 @@ public class DefaultTreeTable implements /** * The index of values associated to each column. This is used by the {@link Node} * implementation for storing values in a single flat array. After creation, this - * map shall be read-only since many {@code Node} instances may share it. + * map shall be read-only since many {@code Node} instances may share it. * * {@note This field and the {@link #columns} field could be computed from each other. * But we serialize this field anyway because children nodes will typically hold @@ -390,7 +390,7 @@ public class DefaultTreeTable implements * {@link #getValue(TableColumn)} and {@link #setValue(TableColumn, Object)} * methods for identifying the index where to store values in the {@link #values} array. * - *This map shall be read-only since many {@code Node} instances may share it.
+ *This map shall be read-only since many {@code Node} instances may share it.
* * @see DefaultTreeTable#columnIndices */ @@ -563,7 +563,7 @@ public class DefaultTreeTable implements } /** - * Returns the value in the given column, or {@code null} if none. + * Returns the value in the given column, or {@code null} if none. * * @paramThe {@code mode} argument specifies the parent value to set, as one of the following
Modified: sis/trunk/core/sis-utility/src/main/java/org/apache/sis/util/collection/TreeTable.java
URL: http://svn.apache.org/viewvc/sis/trunk/core/sis-utility/src/main/java/org/apache/sis/util/collection/TreeTable.java?rev=1554743&r1=1554742&r2=1554743&view=diff
==============================================================================
--- sis/trunk/core/sis-utility/src/main/java/org/apache/sis/util/collection/TreeTable.java [UTF-8] (original)
+++ sis/trunk/core/sis-utility/src/main/java/org/apache/sis/util/collection/TreeTable.java [UTF-8] Thu Jan 2 06:08:48 2014
@@ -71,7 +71,7 @@ public interface TreeTable {
/**
* Returns the table columns, in the order they shall be rendered by default.
* This method returns the union of all table columns in every nodes of this
- * tree. However any {@link Node} instance can return {@code null} for a
+ * tree. However any {@link Node} instance can return {@code null} for a
* particular column if the node doesn't have that column.
*
* @return The union of all table columns in every tree node.
@@ -179,7 +179,7 @@ public interface TreeTable {
Node newChild() throws UnsupportedOperationException;
/**
- * Returns the value in the given column, or {@code null} if none.
+ * Returns the value in the given column, or {@code null} if none.
*
* @param Some XML identifiers are difficult to handle as {@link Identifier} objects. Those identifiers are
+ * Some XML identifiers are difficult to handle as {@link Identifier} objects. Those identifiers are
* rather handled using specialized classes like {@link XLink}. This {@code IdentifierMap} interface
* mirrors the standard {@link Map#get(Object) get} and {@link Map#put(Object, Object) put} methods
* with specialized methods, in order to fetch and store identifiers as objects of the specialized
Modified: sis/trunk/core/sis-utility/src/main/java/org/apache/sis/xml/IdentifierSpace.java
URL: http://svn.apache.org/viewvc/sis/trunk/core/sis-utility/src/main/java/org/apache/sis/xml/IdentifierSpace.java?rev=1554743&r1=1554742&r2=1554743&view=diff
==============================================================================
--- sis/trunk/core/sis-utility/src/main/java/org/apache/sis/xml/IdentifierSpace.java [UTF-8] (original)
+++ sis/trunk/core/sis-utility/src/main/java/org/apache/sis/xml/IdentifierSpace.java [UTF-8] Thu Jan 2 06:08:48 2014
@@ -99,7 +99,7 @@ public interface IdentifierSpace Nil objects appear most frequently in XML documents since if a mandatory ISO 19115 attribute
* is absent, then the ISO 19139 standard requires us to said why it is so. The following example
- * shows a {@code CI_Citation} fragment with an ordinary {@code CI_Series} element on the left side,
+ * shows a {@code CI_Citation} fragment with an ordinary {@code CI_Series} element on the left side,
* and an unknown {@code CI_Series} element on the right side: {@code XMLComparator} is namespace aware. The second case in the above-cited choice may happen only
- * if the user provided {@link Node} instances to the constructor. In such case, {@code XMLComparator} has
+ * if the user provided {@link Node} instances to the constructor. In such case, {@code XMLComparator} has
* no control on whether the nodes contain namespaces or not. For example in order to ignore the namespace, type and schema location declaration,
Modified: sis/trunk/core/sis-utility/src/test/java/org/apache/sis/test/XMLTestCase.java
URL: http://svn.apache.org/viewvc/sis/trunk/core/sis-utility/src/test/java/org/apache/sis/test/XMLTestCase.java?rev=1554743&r1=1554742&r2=1554743&view=diff
==============================================================================
--- sis/trunk/core/sis-utility/src/test/java/org/apache/sis/test/XMLTestCase.java [UTF-8] (original)
+++ sis/trunk/core/sis-utility/src/test/java/org/apache/sis/test/XMLTestCase.java [UTF-8] Thu Jan 2 06:08:48 2014
@@ -16,6 +16,7 @@
*/
package org.apache.sis.test;
+import java.net.URL;
import java.util.Map;
import java.util.HashMap;
import java.util.Locale;
@@ -35,13 +36,16 @@ import org.apache.sis.xml.MarshallerPool
import org.apache.sis.xml.XML;
import org.junit.After;
-import static org.opengis.test.Assert.*;
+import static org.apache.sis.test.Assert.*;
/**
- * Base class of XML (un)marshalling tests. SIS (un)marshalling process can be partially controlled
- * by a {@link Context}, which defines (among other) the locale and timezone. Some tests will need
- * to fix the context to a particular locale and timezone before to execute the test.
+ * Base class of tests which contain some XML (un)marshalling.
+ * The subclasses do not need to be fully dedicated to XML.
+ *
+ * SIS (un)marshalling process can be partially controlled by a {@link Context}, which defines (among other)
+ * the locale and timezone. Some tests will need to fix the context to a particular locale and timezone before
+ * to execute the test. The {@link #context} field can be initialized by subclasses either explicitely or by invoking
* a {@code createContext(…)} convenience method. The {@link #clearContext()} method will be invoked
@@ -127,11 +131,11 @@ public abstract strictfp class XMLTestCa
}
/**
- * Initializes the {@link #context} to the given locale and timezone.
+ * Initializes the {@link #context} to the given locale and timezone.
*
* @param marshal {@code true} for setting the {@link Context#MARSHALLING} flag.
- * @param locale The locale, or {@code null} for the default.
- * @param timezone The timezone, or {@code null} for the default.
+ * @param locale The locale, or {@code null} for the default.
+ * @param timezone The timezone, or {@code null} for the default.
*
* @see #clearContext()
*/
@@ -155,11 +159,56 @@ public abstract strictfp class XMLTestCa
}
/**
+ * Returns the URL to the XML file of the given name.
+ * The file shall be in the same package than the final subclass of {@code this}.
+ *
+ * @param filename The name of the XML file.
+ * @return The URL to the given XML file.
+ */
+ private URL getResource(final String filename) {
+ final URL resource = getClass().getResource(filename);
+ assertNotNull(filename, resource);
+ return resource;
+ }
+
+ /**
+ * Appends explicitely {@code "xmlns:xsi"} to the list of attributes to ignore.
+ * This is not needed on JDK7 if the {@code "xmlns:*"} property has been defined,
+ * but required on JDK6. Not sure why...
+ */
+ @org.apache.sis.util.Workaround(library = "JDK", version = "1.6")
+ private static String[] addIgnoreXSI(String[] ignoredAttributes) {
+ final int length = ignoredAttributes.length;
+ ignoredAttributes = java.util.Arrays.copyOf(ignoredAttributes, length + 1);
+ ignoredAttributes[length] = "xmlns:xsi";
+ return ignoredAttributes;
+ }
+
+ /**
+ * Marshals the given object and ensure that the result is equals to the content of the given file.
+ *
+ * @param filename The name of the XML file in the package of the final subclass of {@code this}.
+ * @param object The object to marshal.
+ * @param ignoredAttributes The fully-qualified names of attributes to ignore
+ * (typically {@code "xmlns:*"} and {@code "xsi:schemaLocation"}).
+ * @throws JAXBException If an error occurred during marshalling.
+ *
+ * @see #unmarshalFile(Class, String)
+ */
+ protected final void assertMarshalEqualsFile(final String filename, final Object object,
+ final String... ignoredAttributes) throws JAXBException
+ {
+ assertXmlEquals(getResource(filename), marshal(object), addIgnoreXSI(ignoredAttributes));
+ }
+
+ /**
* Marshals the given object using the {@linkplain #getMarshallerPool() test marshaller pool}.
*
* @param object The object to marshal.
* @return The marshalled object.
* @throws JAXBException If an error occurred while marshalling the object.
+ *
+ * @see #unmarshal(Class, String)
*/
protected final String marshal(final Object object) throws JAXBException {
final MarshallerPool pool = getMarshallerPool();
@@ -176,6 +225,8 @@ public abstract strictfp class XMLTestCa
* @param object The object to marshal.
* @return The marshalled object.
* @throws JAXBException If an error occurred while marshalling the object.
+ *
+ * @see #unmarshal(Unmarshaller, String)
*/
protected final String marshal(final Marshaller marshaller, final Object object) throws JAXBException {
ArgumentChecks.ensureNonNull("marshaller", marshaller);
@@ -189,6 +240,28 @@ public abstract strictfp class XMLTestCa
}
/**
+ * Unmarshals the content of the given test file using the {@linkplain #getMarshallerPool() test marshaller pool}.
+ * The resource is obtained by a call to {@code getClass().getResource(filename)}, which implies that the file
+ * shall be in the same package than the subclass of {@code this}.
+ *
+ * @param
Modified: sis/trunk/core/sis-utility/src/main/java/org/apache/sis/xml/Pooled.java
URL: http://svn.apache.org/viewvc/sis/trunk/core/sis-utility/src/main/java/org/apache/sis/xml/Pooled.java?rev=1554743&r1=1554742&r2=1554743&view=diff
==============================================================================
--- sis/trunk/core/sis-utility/src/main/java/org/apache/sis/xml/Pooled.java [UTF-8] (original)
+++ sis/trunk/core/sis-utility/src/main/java/org/apache/sis/xml/Pooled.java [UTF-8] Thu Jan 2 06:08:48 2014
@@ -450,14 +450,14 @@ abstract class Pooled {
/**
* Sets the given property to the wrapped (un)marshaller. This method is invoked
* automatically when the property given to the {@link #setProperty(String, Object)}
- * method was not one of the {@link XML} constants.
+ * method was not one of the {@link XML} constants.
*/
abstract void setStandardProperty(String name, Object value) throws PropertyException;
/**
* Gets the given property from the wrapped (un)marshaller. This method is invoked
* automatically when the property key given to the {@link #getProperty(String)}
- * method was not one of the {@link XML} constants.
+ * method was not one of the {@link XML} constants.
*/
abstract Object getStandardProperty(String name) throws PropertyException;
Modified: sis/trunk/core/sis-utility/src/main/java/org/apache/sis/xml/XLink.java
URL: http://svn.apache.org/viewvc/sis/trunk/core/sis-utility/src/main/java/org/apache/sis/xml/XLink.java?rev=1554743&r1=1554742&r2=1554743&view=diff
==============================================================================
--- sis/trunk/core/sis-utility/src/main/java/org/apache/sis/xml/XLink.java [UTF-8] (original)
+++ sis/trunk/core/sis-utility/src/main/java/org/apache/sis/xml/XLink.java [UTF-8] Thu Jan 2 06:08:48 2014
@@ -232,7 +232,7 @@ public class XLink implements Serializab
/**
* A pointer to an external resource. Allows the {@link XLink#getHRef() href},
* {@link XLink#getRole() role}, {@link #getTitle() title} and {@link XLink#getLabel()
- * label} attributes, where {@code href} is mandatory and all other are optional.
+ * label} attributes, where {@code href} is mandatory and all other are optional.
*/
@XmlEnumValue("locator")
LOCATOR(0x1 | 0x2 | 0x4 | 0x10 | 0x80, 0x1 | 0x2),
@@ -374,9 +374,9 @@ public class XLink implements Serializab
/**
* Sets the type of link. Any value different than {@link org.apache.sis.xml.XLink.Type#AUTO
* Type.AUTO} (including {@code null}) will overwrite the value inferred automatically by
- * {@link #getType()}. A {@code AUTO} value will enable automatic type detection.
+ * {@link #getType()}. A {@code AUTO} value will enable automatic type detection.
*
- * @param type The new type of link, or {@code null} if none.
+ * @param type The new type of link, or {@code null} if none.
*/
public void setType(final Type type) {
canWrite(0x1, "type", "type"); // We want a non-null value in all cases.
@@ -421,7 +421,7 @@ public class XLink implements Serializab
* attribute allows an XML element to refer to another XML element that has
* a corresponding id
attribute.}
*
- * @return A URN to a resources, or {@code null} if none.
+ * @return A URN to a resources, or {@code null} if none.
*
* @category locator
*/
@@ -433,7 +433,7 @@ public class XLink implements Serializab
/**
* Sets the URN to a resources.
*
- * @param href A URN to a resources, or {@code null} if none.
+ * @param href A URN to a resources, or {@code null} if none.
* @throws UnsupportedOperationException If this {@code xlink} is unmodifiable.
* @throws IllegalStateException If the link type {@linkplain #setType has been explicitely set}.
* and that type does not allow the {@code "href"} attribute.
@@ -448,7 +448,7 @@ public class XLink implements Serializab
/**
* Returns a URI reference for some description of the arc role.
*
- * @return A URI reference for some description of the arc role, or {@code null} if none.
+ * @return A URI reference for some description of the arc role, or {@code null} if none.
*
* @category semantic
*/
@@ -460,7 +460,7 @@ public class XLink implements Serializab
/**
* Sets the URI reference for some description of the arc role.
*
- * @param role A URI reference for some description of the arc role, or {@code null} if none.
+ * @param role A URI reference for some description of the arc role, or {@code null} if none.
* @throws UnsupportedOperationException If this {@code xlink} is unmodifiable.
* @throws IllegalStateException If the link type {@linkplain #setType has been explicitely set}.
* and that type does not allow the {@code "role"} attribute.
@@ -475,7 +475,7 @@ public class XLink implements Serializab
/**
* Returns a URI reference for some description of the arc role.
*
- * @return A URI reference for some description of the arc role, or {@code null} if none.
+ * @return A URI reference for some description of the arc role, or {@code null} if none.
*
* @category semantic
*/
@@ -487,7 +487,7 @@ public class XLink implements Serializab
/**
* Sets a URI reference for some description of the arc role.
*
- * @param arcrole A URI reference for some description of the arc role, or {@code null} if none.
+ * @param arcrole A URI reference for some description of the arc role, or {@code null} if none.
* @throws UnsupportedOperationException If this {@code xlink} is unmodifiable.
* @throws IllegalStateException If the link type {@linkplain #setType has been explicitely set}.
* and that type does not allow the {@code "arcrole"} attribute.
@@ -502,7 +502,7 @@ public class XLink implements Serializab
/**
* Returns a human-readable string with a short description for the arc.
*
- * @return A human-readable string with a short description for the arc, or {@code null} if none.
+ * @return A human-readable string with a short description for the arc, or {@code null} if none.
*
* @category semantic
*/
@@ -515,7 +515,7 @@ public class XLink implements Serializab
* Sets a human-readable string with a short description for the arc.
*
* @param title A human-readable string with a short description for the arc,
- * or {@code null} if none.
+ * or {@code null} if none.
* @throws UnsupportedOperationException If this {@code xlink} is unmodifiable.
* @throws IllegalStateException If the link type {@linkplain #setType has been explicitely set}.
* and that type does not allow the {@code "title"} attribute.
Modified: sis/trunk/core/sis-utility/src/main/java/org/apache/sis/xml/XML.java
URL: http://svn.apache.org/viewvc/sis/trunk/core/sis-utility/src/main/java/org/apache/sis/xml/XML.java?rev=1554743&r1=1554742&r2=1554743&view=diff
==============================================================================
--- sis/trunk/core/sis-utility/src/main/java/org/apache/sis/xml/XML.java [UTF-8] (original)
+++ sis/trunk/core/sis-utility/src/main/java/org/apache/sis/xml/XML.java [UTF-8] Thu Jan 2 06:08:48 2014
@@ -194,7 +194,7 @@ public final class XML extends Static {
* string is not valid), the default behavior is to throw an exception which cause the
* (un)marshalling of the entire document to fail. This default behavior can be customized by
* invoking {@link Marshaller#setProperty(String, Object)} with this {@code CONVERTER} property
- * key and a custom {@link ValueConverter} instance. {@code ValueConverter} can also be used
+ * key and a custom {@link ValueConverter} instance. {@code ValueConverter} can also be used
* for replacing an erroneous URL by a fixed URL. See the {@link ValueConverter} javadoc for
* more details.
*
Modified: sis/trunk/core/sis-utility/src/main/java/org/apache/sis/xml/package-info.java
URL: http://svn.apache.org/viewvc/sis/trunk/core/sis-utility/src/main/java/org/apache/sis/xml/package-info.java?rev=1554743&r1=1554742&r2=1554743&view=diff
==============================================================================
--- sis/trunk/core/sis-utility/src/main/java/org/apache/sis/xml/package-info.java [UTF-8] (original)
+++ sis/trunk/core/sis-utility/src/main/java/org/apache/sis/xml/package-info.java [UTF-8] Thu Jan 2 06:08:48 2014
@@ -43,7 +43,7 @@
*
* {@section Customizing the XML}
* In order to parse and format ISO 19139 compliant documents, SIS needs its own
- * {@link javax.xml.bind.Marshaller} and {@link javax.xml.bind.Unmarshaller} instances
+ * {@link javax.xml.bind.Marshaller} and {@link javax.xml.bind.Unmarshaller} instances
* (which are actually wrappers around standard instances). Those instances are created
* and cached by {@link org.apache.sis.xml.MarshallerPool}, which is used internally by
* the above-cited {@code XML} class. However developers can instantiate their own
Modified: sis/trunk/core/sis-utility/src/test/java/org/apache/sis/math/StatisticsFormatTest.java
URL: http://svn.apache.org/viewvc/sis/trunk/core/sis-utility/src/test/java/org/apache/sis/math/StatisticsFormatTest.java?rev=1554743&r1=1554742&r2=1554743&view=diff
==============================================================================
--- sis/trunk/core/sis-utility/src/test/java/org/apache/sis/math/StatisticsFormatTest.java [UTF-8] (original)
+++ sis/trunk/core/sis-utility/src/test/java/org/apache/sis/math/StatisticsFormatTest.java [UTF-8] Thu Jan 2 06:08:48 2014
@@ -35,7 +35,7 @@ import static org.apache.sis.test.Assert
public final strictfp class StatisticsFormatTest extends TestCase {
/**
* Tests the formatting of {@code Statistics} without column headers.
- * We instantiate the {@link StatisticsFormat} directly in order to fix the locale
+ * We instantiate the {@link StatisticsFormat} directly in order to fix the locale
* to a hard-coded value. But except for the localization, the result should be
* nearly identical to a call to the {@link Statistics#toString()} method.
*/
Modified: sis/trunk/core/sis-utility/src/test/java/org/apache/sis/measure/FormattedCharacterIteratorTest.java
URL: http://svn.apache.org/viewvc/sis/trunk/core/sis-utility/src/test/java/org/apache/sis/measure/FormattedCharacterIteratorTest.java?rev=1554743&r1=1554742&r2=1554743&view=diff
==============================================================================
--- sis/trunk/core/sis-utility/src/test/java/org/apache/sis/measure/FormattedCharacterIteratorTest.java [UTF-8] (original)
+++ sis/trunk/core/sis-utility/src/test/java/org/apache/sis/measure/FormattedCharacterIteratorTest.java [UTF-8] Thu Jan 2 06:08:48 2014
@@ -109,7 +109,7 @@ public final strictfp class FormattedCha
/**
* Returns all expected attribute keys for the tests in this class.
*
- * @param withNumberFields {@code true} for including the keys for {@code NumberFormat} fields.
+ * @param withNumberFields {@code true} for including the keys for {@code NumberFormat} fields.
*/
private static Set