sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject svn commit: r1636288 - in /sis/branches/JDK8/core: sis-build-helper/src/main/java/org/apache/sis/util/resources/ sis-utility/src/main/java/org/apache/sis/util/resources/
Date Mon, 03 Nov 2014 08:35:18 GMT
Author: desruisseaux
Date: Mon Nov  3 08:35:18 2014
New Revision: 1636288

URL: http://svn.apache.org/r1636288
Log:
Flag automatically generated code.

Modified:
    sis/branches/JDK8/core/sis-build-helper/src/main/java/org/apache/sis/util/resources/IndexedResourceCompiler.java
    sis/branches/JDK8/core/sis-utility/src/main/java/org/apache/sis/util/resources/Errors.java
    sis/branches/JDK8/core/sis-utility/src/main/java/org/apache/sis/util/resources/Messages.java
    sis/branches/JDK8/core/sis-utility/src/main/java/org/apache/sis/util/resources/Vocabulary.java

Modified: sis/branches/JDK8/core/sis-build-helper/src/main/java/org/apache/sis/util/resources/IndexedResourceCompiler.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-build-helper/src/main/java/org/apache/sis/util/resources/IndexedResourceCompiler.java?rev=1636288&r1=1636287&r2=1636288&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-build-helper/src/main/java/org/apache/sis/util/resources/IndexedResourceCompiler.java
[UTF-8] (original)
+++ sis/branches/JDK8/core/sis-build-helper/src/main/java/org/apache/sis/util/resources/IndexedResourceCompiler.java
[UTF-8] Mon Nov  3 08:35:18 2014
@@ -340,7 +340,6 @@ class IndexedResourceCompiler implements
             if (argumentCount != expected) {
                 final String suffix = ARGUMENT_COUNT_PREFIX + expected;
                 warning(file, key, "Key name should ends with \"" + suffix + "\".", null);
-                continue;
             }
         }
         /*
@@ -385,8 +384,8 @@ search: for (int i=0; i<buffer.length();
                      */
                     if (i+2 < buffer.length()  &&  buffer.charAt(i+2) == '\'')
{
                         switch (buffer.charAt(i+1)) {
-                            case '{': i += 2; continue search;
-                            case '}': i += 2; continue search;
+                            case '{': i += 2; continue;
+                            case '}': i += 2; continue;
                         }
                     }
                     if (level <= 0) {
@@ -394,7 +393,7 @@ search: for (int i=0; i<buffer.length();
                          * If we weren't between braces, we must double the quotes.
                          */
                         buffer.insert(i++, '\'');
-                        continue search;
+                        continue;
                     }
                     /*
                      * If we find ourselves between braces, we don't normally need to double
@@ -408,7 +407,6 @@ search: for (int i=0; i<buffer.length();
                         final int end = scan + choice.length();
                         if (end < buffer.length() && buffer.substring(scan, end).equalsIgnoreCase(choice))
{
                             buffer.insert(i++, '\'');
-                            continue search;
                         }
                     }
                 }

Modified: sis/branches/JDK8/core/sis-utility/src/main/java/org/apache/sis/util/resources/Errors.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-utility/src/main/java/org/apache/sis/util/resources/Errors.java?rev=1636288&r1=1636287&r2=1636288&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-utility/src/main/java/org/apache/sis/util/resources/Errors.java
[UTF-8] (original)
+++ sis/branches/JDK8/core/sis-utility/src/main/java/org/apache/sis/util/resources/Errors.java
[UTF-8] Mon Nov  3 08:35:18 2014
@@ -20,6 +20,7 @@ import java.net.URL;
 import java.util.Map;
 import java.util.Locale;
 import java.util.MissingResourceException;
+import javax.annotation.Generated;
 import org.opengis.util.InternationalString;
 
 
@@ -48,9 +49,9 @@ public final class Errors extends Indexe
      *
      * @author  Martin Desruisseaux (IRD, Geomatys)
      * @since   0.3 (derived from geotk-2.2)
-     * @version 0.3
      * @module
      */
+    @Generated("org.apache.sis.util.resources.IndexedResourceCompiler")
     public static final class Keys extends KeyConstants {
         /**
          * The unique instance of key constants handler.

Modified: sis/branches/JDK8/core/sis-utility/src/main/java/org/apache/sis/util/resources/Messages.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-utility/src/main/java/org/apache/sis/util/resources/Messages.java?rev=1636288&r1=1636287&r2=1636288&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-utility/src/main/java/org/apache/sis/util/resources/Messages.java
[UTF-8] (original)
+++ sis/branches/JDK8/core/sis-utility/src/main/java/org/apache/sis/util/resources/Messages.java
[UTF-8] Mon Nov  3 08:35:18 2014
@@ -19,6 +19,7 @@ package org.apache.sis.util.resources;
 import java.net.URL;
 import java.util.Locale;
 import java.util.MissingResourceException;
+import javax.annotation.Generated;
 import org.opengis.util.InternationalString;
 
 
@@ -39,9 +40,9 @@ public final class Messages extends Inde
      *
      * @author  Martin Desruisseaux (IRD, Geomatys)
      * @since   0.3 (derived from geotk-2.2)
-     * @version 0.3
      * @module
      */
+    @Generated("org.apache.sis.util.resources.IndexedResourceCompiler")
     public static final class Keys extends KeyConstants {
         /**
          * The unique instance of key constants handler.

Modified: sis/branches/JDK8/core/sis-utility/src/main/java/org/apache/sis/util/resources/Vocabulary.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-utility/src/main/java/org/apache/sis/util/resources/Vocabulary.java?rev=1636288&r1=1636287&r2=1636288&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-utility/src/main/java/org/apache/sis/util/resources/Vocabulary.java
[UTF-8] (original)
+++ sis/branches/JDK8/core/sis-utility/src/main/java/org/apache/sis/util/resources/Vocabulary.java
[UTF-8] Mon Nov  3 08:35:18 2014
@@ -19,6 +19,7 @@ package org.apache.sis.util.resources;
 import java.net.URL;
 import java.util.Locale;
 import java.util.MissingResourceException;
+import javax.annotation.Generated;
 import org.opengis.util.InternationalString;
 
 
@@ -39,9 +40,9 @@ public final class Vocabulary extends In
      *
      * @author  Martin Desruisseaux (IRD, Geomatys)
      * @since   0.3 (derived from geotk-2.2)
-     * @version 0.3
      * @module
      */
+    @Generated("org.apache.sis.util.resources.IndexedResourceCompiler")
     public static final class Keys extends KeyConstants {
         /**
          * The unique instance of key constants handler.



Mime
View raw message