langtools/src/share/classes/com/sun/tools/javac/code/Source.java
changeset 4417 fc5cc811d2dd
parent 4142 bd950c8f4fb3
child 5320 e2aaa958b02d
--- a/langtools/src/share/classes/com/sun/tools/javac/code/Source.java	Mon Nov 23 19:58:05 2009 -0800
+++ b/langtools/src/share/classes/com/sun/tools/javac/code/Source.java	Thu Dec 03 14:03:53 2009 -0800
@@ -110,9 +110,6 @@
     }
 
     /** Allow encoding errors, giving only warnings. */
-    public boolean allowStringsInSwitch() {
-        return compareTo(JDK1_7) >= 0;
-    }
     public boolean allowEncodingErrors() {
         return compareTo(JDK1_6) < 0;
     }
@@ -168,6 +165,9 @@
     public boolean allowUnderscoresInLiterals() {
         return compareTo(JDK1_7) >= 0;
     }
+    public boolean allowStringsInSwitch() {
+        return compareTo(JDK1_7) >= 0;
+    }
     public static SourceVersion toSourceVersion(Source source) {
         switch(source) {
         case JDK1_2: