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

changeset 984
4c5f13798b8d
parent 962
0ff2bbd38f10
child 1042
defdd98cb7ce
equal deleted inserted replaced
983:fb84cfca28a1 984:4c5f13798b8d
182 } 182 }
183 public boolean allowStringsInSwitch() { 183 public boolean allowStringsInSwitch() {
184 return compareTo(JDK1_7) >= 0; 184 return compareTo(JDK1_7) >= 0;
185 } 185 }
186 public boolean allowSimplifiedVarargs() { 186 public boolean allowSimplifiedVarargs() {
187 return compareTo(JDK1_7) >= 0;
188 }
189 public boolean allowObjectToPrimitiveCast() {
187 return compareTo(JDK1_7) >= 0; 190 return compareTo(JDK1_7) >= 0;
188 } 191 }
189 public static SourceVersion toSourceVersion(Source source) { 192 public static SourceVersion toSourceVersion(Source source) {
190 switch(source) { 193 switch(source) {
191 case JDK1_2: 194 case JDK1_2:

mercurial