langtools/src/share/classes/com/sun/tools/javac/code/Source.java
changeset 11143 9dbe313bfb74
parent 10180 b293c1f36ac4
child 11144 8a4ae514eedf
equal deleted inserted replaced
11142:45d0ec1e7463 11143:9dbe313bfb74
   191     public boolean allowSimplifiedVarargs() {
   191     public boolean allowSimplifiedVarargs() {
   192         return compareTo(JDK1_7) >= 0;
   192         return compareTo(JDK1_7) >= 0;
   193     }
   193     }
   194     public boolean allowObjectToPrimitiveCast() {
   194     public boolean allowObjectToPrimitiveCast() {
   195         return compareTo(JDK1_7) >= 0;
   195         return compareTo(JDK1_7) >= 0;
       
   196     }
       
   197     public boolean allowLambda() {
       
   198         return compareTo(JDK1_8) >= 0;
   196     }
   199     }
   197     public static SourceVersion toSourceVersion(Source source) {
   200     public static SourceVersion toSourceVersion(Source source) {
   198         switch(source) {
   201         switch(source) {
   199         case JDK1_2:
   202         case JDK1_2:
   200             return RELEASE_2;
   203             return RELEASE_2;