Removed LocalizedFormats.ENTRY previously introduced in r1383747, as LocalizedFormats.INDEX will do nicely.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1383770 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f0921e844d
commit
47e5bb380e
|
@ -97,7 +97,6 @@ public enum LocalizedFormats implements Localizable {
|
|||
EMPTY_SELECTED_ROW_INDEX_ARRAY("empty selected row index array"),
|
||||
EMPTY_STRING_FOR_IMAGINARY_CHARACTER("empty string for imaginary character"),
|
||||
ENDPOINTS_NOT_AN_INTERVAL("endpoints do not specify an interval: [{0}, {1}]"),
|
||||
ENTRY("entry {0}"),
|
||||
EQUAL_VERTICES_IN_SIMPLEX("equal vertices {0} and {1} in simplex configuration"),
|
||||
EULER_ANGLES_SINGULARITY("Euler angles singularity"),
|
||||
EVALUATION("evaluation"), /* keep */
|
||||
|
|
|
@ -560,7 +560,7 @@ public class ArrayFieldVector<T extends FieldElement<T>> implements FieldVector<
|
|||
try {
|
||||
out[i] = one.divide(data[i]);
|
||||
} catch (final MathArithmeticException e) {
|
||||
throw new MathArithmeticException(LocalizedFormats.ENTRY, i);
|
||||
throw new MathArithmeticException(LocalizedFormats.INDEX, i);
|
||||
}
|
||||
}
|
||||
return new ArrayFieldVector<T>(field, out, false);
|
||||
|
@ -573,7 +573,7 @@ public class ArrayFieldVector<T extends FieldElement<T>> implements FieldVector<
|
|||
try {
|
||||
data[i] = one.divide(data[i]);
|
||||
} catch (final MathArithmeticException e) {
|
||||
throw new MathArithmeticException(LocalizedFormats.ENTRY, i);
|
||||
throw new MathArithmeticException(LocalizedFormats.INDEX, i);
|
||||
}
|
||||
}
|
||||
return this;
|
||||
|
@ -623,7 +623,7 @@ public class ArrayFieldVector<T extends FieldElement<T>> implements FieldVector<
|
|||
try {
|
||||
out[i] = data[i].divide(v.getEntry(i));
|
||||
} catch (final MathArithmeticException e) {
|
||||
throw new MathArithmeticException(LocalizedFormats.ENTRY, i);
|
||||
throw new MathArithmeticException(LocalizedFormats.INDEX, i);
|
||||
}
|
||||
}
|
||||
return new ArrayFieldVector<T>(field, out, false);
|
||||
|
@ -646,7 +646,7 @@ public class ArrayFieldVector<T extends FieldElement<T>> implements FieldVector<
|
|||
try {
|
||||
out[i] = data[i].divide(v.data[i]);
|
||||
} catch (final MathArithmeticException e) {
|
||||
throw new MathArithmeticException(LocalizedFormats.ENTRY, i);
|
||||
throw new MathArithmeticException(LocalizedFormats.INDEX, i);
|
||||
}
|
||||
}
|
||||
return new ArrayFieldVector<T>(field, out, false);
|
||||
|
|
|
@ -69,7 +69,6 @@ EMPTY_SELECTED_COLUMN_INDEX_ARRAY = tableau des indices de colonnes s\u00e9lecti
|
|||
EMPTY_SELECTED_ROW_INDEX_ARRAY = tableau des indices de lignes s\u00e9lectionn\u00e9es vide
|
||||
EMPTY_STRING_FOR_IMAGINARY_CHARACTER = cha\u00eene vide pour le caract\u00e8 imaginaire
|
||||
ENDPOINTS_NOT_AN_INTERVAL = les bornes ne d\u00e9finissent pas un intervalle : [{0}, {1}]
|
||||
ENTRY = \u00e9l\u00e9ment {0}
|
||||
EQUAL_VERTICES_IN_SIMPLEX = sommets {0} et {1} \u00e9gaux dans la configuration du simplex
|
||||
EULER_ANGLES_SINGULARITY = singularit\u00e9 d''angles d''Euler
|
||||
EVALUATION = \u00e9valuation
|
||||
|
|
|
@ -36,7 +36,7 @@ public class LocalizedFormatsTest {
|
|||
|
||||
@Test
|
||||
public void testMessageNumber() {
|
||||
Assert.assertEquals(311, LocalizedFormats.values().length);
|
||||
Assert.assertEquals(310, LocalizedFormats.values().length);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Reference in New Issue