From b30425df872adc7cab0a9f0b3334364aad213350 Mon Sep 17 00:00:00 2001 From: Sebastien Brisard Date: Wed, 12 Sep 2012 03:46:31 +0000 Subject: [PATCH] Added new localized error message "entry {0}" to signal null entries in FieldVectors. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1383747 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/commons/math3/exception/util/LocalizedFormats.java | 1 + .../commons/math3/exception/util/LocalizedFormats_fr.properties | 1 + .../commons/math3/exception/util/LocalizedFormatsTest.java | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/apache/commons/math3/exception/util/LocalizedFormats.java b/src/main/java/org/apache/commons/math3/exception/util/LocalizedFormats.java index 27c21fbc3..acaf826d1 100644 --- a/src/main/java/org/apache/commons/math3/exception/util/LocalizedFormats.java +++ b/src/main/java/org/apache/commons/math3/exception/util/LocalizedFormats.java @@ -97,6 +97,7 @@ 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 */ diff --git a/src/main/resources/assets/org/apache/commons/math3/exception/util/LocalizedFormats_fr.properties b/src/main/resources/assets/org/apache/commons/math3/exception/util/LocalizedFormats_fr.properties index 7a18b8fde..15a16ce2d 100644 --- a/src/main/resources/assets/org/apache/commons/math3/exception/util/LocalizedFormats_fr.properties +++ b/src/main/resources/assets/org/apache/commons/math3/exception/util/LocalizedFormats_fr.properties @@ -69,6 +69,7 @@ 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 diff --git a/src/test/java/org/apache/commons/math3/exception/util/LocalizedFormatsTest.java b/src/test/java/org/apache/commons/math3/exception/util/LocalizedFormatsTest.java index 22a0a5288..8f8928ebe 100644 --- a/src/test/java/org/apache/commons/math3/exception/util/LocalizedFormatsTest.java +++ b/src/test/java/org/apache/commons/math3/exception/util/LocalizedFormatsTest.java @@ -36,7 +36,7 @@ public class LocalizedFormatsTest { @Test public void testMessageNumber() { - Assert.assertEquals(310, LocalizedFormats.values().length); + Assert.assertEquals(311, LocalizedFormats.values().length); } @Test