sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject svn commit: r1499939 - in /sis/branches/JDK7/core/sis-metadata/src: main/java/org/apache/sis/internal/jaxb/gml/SC_VerticalCRS.java test/java/org/apache/sis/metadata/iso/ImmutableIdentifierTest.java
Date Fri, 05 Jul 2013 08:36:06 GMT
Author: desruisseaux
Date: Fri Jul  5 08:36:06 2013
New Revision: 1499939

URL: http://svn.apache.org/r1499939
Log:
Minor localization in log record, and a javadoc fix.

Modified:
    sis/branches/JDK7/core/sis-metadata/src/main/java/org/apache/sis/internal/jaxb/gml/SC_VerticalCRS.java
    sis/branches/JDK7/core/sis-metadata/src/test/java/org/apache/sis/metadata/iso/ImmutableIdentifierTest.java

Modified: sis/branches/JDK7/core/sis-metadata/src/main/java/org/apache/sis/internal/jaxb/gml/SC_VerticalCRS.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK7/core/sis-metadata/src/main/java/org/apache/sis/internal/jaxb/gml/SC_VerticalCRS.java?rev=1499939&r1=1499938&r2=1499939&view=diff
==============================================================================
--- sis/branches/JDK7/core/sis-metadata/src/main/java/org/apache/sis/internal/jaxb/gml/SC_VerticalCRS.java
[UTF-8] (original)
+++ sis/branches/JDK7/core/sis-metadata/src/main/java/org/apache/sis/internal/jaxb/gml/SC_VerticalCRS.java
[UTF-8] Fri Jul  5 08:36:06 2013
@@ -116,12 +116,12 @@ public class SC_VerticalCRS extends Prop
      */
     @XmlAnyElement(lax = true)
     public Object getElement() {
-        final LogRecord record = new LogRecord(Level.WARNING, Errors.format(
-                Errors.Keys.MissingRequiredModule_1, "sis-referencing"));
+        final LogRecord record = Errors.getResources(null).getLogRecord(Level.WARNING,
+                Errors.Keys.MissingRequiredModule_1, "sis-referencing");
         record.setSourceClassName(SC_VerticalCRS.class.getName());
         record.setSourceMethodName("getElement");
         final Context context = Context.current();
-        context.warningOccured(context, metadata, record);
+        Context.warningOccured(context, metadata, record);
         return null;
     }
 

Modified: sis/branches/JDK7/core/sis-metadata/src/test/java/org/apache/sis/metadata/iso/ImmutableIdentifierTest.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK7/core/sis-metadata/src/test/java/org/apache/sis/metadata/iso/ImmutableIdentifierTest.java?rev=1499939&r1=1499938&r2=1499939&view=diff
==============================================================================
--- sis/branches/JDK7/core/sis-metadata/src/test/java/org/apache/sis/metadata/iso/ImmutableIdentifierTest.java
[UTF-8] (original)
+++ sis/branches/JDK7/core/sis-metadata/src/test/java/org/apache/sis/metadata/iso/ImmutableIdentifierTest.java
[UTF-8] Fri Jul  5 08:36:06 2013
@@ -74,7 +74,7 @@ public final strictfp class ImmutableIde
     }
 
     /**
-     * Tests the constructor with the {@code "remarks"} attribute as an {@link InternationalString}.
+     * Tests the constructor with the {@code "remarks"} attribute as a {@link SimpleInternationalString}.
      */
     @Test
     @DependsOnMethod("testConstructorWithStringValues")
@@ -105,9 +105,9 @@ public final strictfp class ImmutableIde
         final ImmutableIdentifier identifier = new ImmutableIdentifier(properties);
         Validators.validate(identifier);
 
-        assertEquals(CODE_KEY,        "This is a code",        identifier.getCode());
-        assertEquals(AUTHORITY_KEY,   "An other authority",    identifier.getAuthority().getTitle().toString());
-        assertEquals(VERSION_KEY,     "This is a version",     identifier.getVersion());
+        assertEquals(CODE_KEY,        "This is a code",       identifier.getCode());
+        assertEquals(AUTHORITY_KEY,   "An other authority",   identifier.getAuthority().getTitle().toString());
+        assertEquals(VERSION_KEY,     "This is a version",    identifier.getVersion());
         assertEquals("remarks",       "There is remarks",     identifier.getRemarks().toString(Locale.ENGLISH));
         assertEquals("remarks_fr",    "Voici des remarques",  identifier.getRemarks().toString(Locale.FRENCH));
         assertEquals("remarks_fr_CA", "Pareil",               identifier.getRemarks().toString(Locale.CANADA_FRENCH));



Mime
View raw message