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

changeset 1145
3343b22e2761
parent 1144
9448fe783fd2
child 1157
3809292620c9
equal deleted inserted replaced
1144:9448fe783fd2 1145:3343b22e2761
193 } 193 }
194 public boolean allowObjectToPrimitiveCast() { 194 public boolean allowObjectToPrimitiveCast() {
195 return compareTo(JDK1_7) >= 0; 195 return compareTo(JDK1_7) >= 0;
196 } 196 }
197 public boolean allowLambda() { 197 public boolean allowLambda() {
198 return compareTo(JDK1_8) >= 0;
199 }
200 public boolean allowMethodReferences() {
198 return compareTo(JDK1_8) >= 0; 201 return compareTo(JDK1_8) >= 0;
199 } 202 }
200 public static SourceVersion toSourceVersion(Source source) { 203 public static SourceVersion toSourceVersion(Source source) {
201 switch(source) { 204 switch(source) {
202 case JDK1_2: 205 case JDK1_2:

mercurial