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

changeset 752
03177f49411d
parent 700
7b413ac1a720
child 795
7b99f98b3035
equal deleted inserted replaced
751:abaceae7c9f8 752:03177f49411d
172 return compareTo(JDK1_7) >= 0; 172 return compareTo(JDK1_7) >= 0;
173 } 173 }
174 public boolean allowUnderscoresInLiterals() { 174 public boolean allowUnderscoresInLiterals() {
175 return compareTo(JDK1_7) >= 0; 175 return compareTo(JDK1_7) >= 0;
176 } 176 }
177 public boolean allowExoticIdentifiers() {
178 return compareTo(JDK1_7) >= 0;
179 }
180 public boolean allowStringsInSwitch() { 177 public boolean allowStringsInSwitch() {
181 return compareTo(JDK1_7) >= 0; 178 return compareTo(JDK1_7) >= 0;
182 } 179 }
183 public static SourceVersion toSourceVersion(Source source) { 180 public static SourceVersion toSourceVersion(Source source) {
184 switch(source) { 181 switch(source) {

mercurial