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: |