172 return compareTo(JDK1_7) >= 0; |
172 return compareTo(JDK1_7) >= 0; |
173 } |
173 } |
174 public boolean allowUnderscoresInLiterals() { |
174 public boolean allowUnderscoresInLiterals() { |
175 return compareTo(JDK1_7) >= 0; |
175 return compareTo(JDK1_7) >= 0; |
176 } |
176 } |
177 public boolean allowExoticIdentifiers() { |
|
178 return compareTo(JDK1_7) >= 0; |
|
179 } |
|
180 public boolean allowStringsInSwitch() { |
177 public boolean allowStringsInSwitch() { |
181 return compareTo(JDK1_7) >= 0; |
178 return compareTo(JDK1_7) >= 0; |
182 } |
179 } |
183 public static SourceVersion toSourceVersion(Source source) { |
180 public static SourceVersion toSourceVersion(Source source) { |
184 switch(source) { |
181 switch(source) { |