equal
deleted
inserted
replaced
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; |