sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject svn commit: r1499828 - in /sis/branches/0.3/core: sis-metadata/src/main/java/org/apache/sis/internal/jaxb/gml/ sis-metadata/src/main/java/org/apache/sis/internal/metadata/ sis-utility/src/main/java/org/apache/sis/internal/util/
Date Thu, 04 Jul 2013 17:57:32 GMT
Author: desruisseaux
Date: Thu Jul  4 17:57:32 2013
New Revision: 1499828

URL: http://svn.apache.org/r1499828
Log:
(0.3 branch only): replaced "module XXX is required" error messages by "Not supported in Apache
SIS 0.3" messages,
since adding the "missing" module while not fix the error (those optional functionalities
are not yet implemented).

Modified:
    sis/branches/0.3/core/sis-metadata/src/main/java/org/apache/sis/internal/jaxb/gml/SC_VerticalCRS.java
    sis/branches/0.3/core/sis-metadata/src/main/java/org/apache/sis/internal/metadata/ReferencingServices.java
    sis/branches/0.3/core/sis-utility/src/main/java/org/apache/sis/internal/util/TemporalUtilities.java

Modified: sis/branches/0.3/core/sis-metadata/src/main/java/org/apache/sis/internal/jaxb/gml/SC_VerticalCRS.java
URL: http://svn.apache.org/viewvc/sis/branches/0.3/core/sis-metadata/src/main/java/org/apache/sis/internal/jaxb/gml/SC_VerticalCRS.java?rev=1499828&r1=1499827&r2=1499828&view=diff
==============================================================================
--- sis/branches/0.3/core/sis-metadata/src/main/java/org/apache/sis/internal/jaxb/gml/SC_VerticalCRS.java
[UTF-8] (original)
+++ sis/branches/0.3/core/sis-metadata/src/main/java/org/apache/sis/internal/jaxb/gml/SC_VerticalCRS.java
[UTF-8] Thu Jul  4 17:57:32 2013
@@ -116,12 +116,11 @@ 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 = new LogRecord(Level.WARNING, "Not supported in Apache SIS
0.3.");
         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/0.3/core/sis-metadata/src/main/java/org/apache/sis/internal/metadata/ReferencingServices.java
URL: http://svn.apache.org/viewvc/sis/branches/0.3/core/sis-metadata/src/main/java/org/apache/sis/internal/metadata/ReferencingServices.java?rev=1499828&r1=1499827&r2=1499828&view=diff
==============================================================================
--- sis/branches/0.3/core/sis-metadata/src/main/java/org/apache/sis/internal/metadata/ReferencingServices.java
[UTF-8] (original)
+++ sis/branches/0.3/core/sis-metadata/src/main/java/org/apache/sis/internal/metadata/ReferencingServices.java
[UTF-8] Thu Jul  4 17:57:32 2013
@@ -77,8 +77,7 @@ public abstract class ReferencingService
         if (instance == null) try {
             instance = (ReferencingServices) Class.forName("org.apache.sis.internal.referencing.ServicesForMetadata").newInstance();
         } catch (ClassNotFoundException exception) {
-            throw new UnsupportedOperationException(Errors.format(
-                    Errors.Keys.MissingRequiredModule_1, "sis-referencing"), exception);
+            throw new UnsupportedOperationException("Not supported in Apache SIS 0.3.", exception);
         } catch (Exception exception) { // (ReflectiveOperationException) on JDK7 branch.
             // Should never happen if we didn't broke our helper class.
             throw new AssertionError(exception);

Modified: sis/branches/0.3/core/sis-utility/src/main/java/org/apache/sis/internal/util/TemporalUtilities.java
URL: http://svn.apache.org/viewvc/sis/branches/0.3/core/sis-utility/src/main/java/org/apache/sis/internal/util/TemporalUtilities.java?rev=1499828&r1=1499827&r2=1499828&view=diff
==============================================================================
--- sis/branches/0.3/core/sis-utility/src/main/java/org/apache/sis/internal/util/TemporalUtilities.java
[UTF-8] (original)
+++ sis/branches/0.3/core/sis-utility/src/main/java/org/apache/sis/internal/util/TemporalUtilities.java
[UTF-8] Thu Jul  4 17:57:32 2013
@@ -53,7 +53,7 @@ public final class TemporalUtilities ext
         if (factory != null) {
             return factory;
         }
-        throw new UnsupportedOperationException(Errors.format(Errors.Keys.MissingRequiredModule_1,
"sis-temporal"));
+        throw new UnsupportedOperationException("Not supported in Apache SIS 0.3.");
     }
 
     /**



Mime
View raw message