src/share/classes/com/sun/tools/javac/code/Source.java

Print this page

        

*** 108,120 **** if (this.compareTo(JDK1_4) >= 0) return Target.JDK1_4; return Target.JDK1_1; } /** Allow encoding errors, giving only warnings. */ - public boolean allowStringsInSwitch() { - return compareTo(JDK1_7) >= 0; - } public boolean allowEncodingErrors() { return compareTo(JDK1_6) < 0; } public boolean allowAsserts() { return compareTo(JDK1_4) >= 0; --- 108,117 ----
*** 166,175 **** --- 163,175 ---- return compareTo(JDK1_7) >= 0; } 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: return RELEASE_2; case JDK1_3: