equal
deleted
inserted
replaced
169 return compareTo(JDK1_7) >= 0; |
169 return compareTo(JDK1_7) >= 0; |
170 } |
170 } |
171 public boolean allowUnderscoresInLiterals() { |
171 public boolean allowUnderscoresInLiterals() { |
172 return compareTo(JDK1_7) >= 0; |
172 return compareTo(JDK1_7) >= 0; |
173 } |
173 } |
174 public boolean allowStringsInSwitch() { |
174 public boolean allowExoticIdentifiers() { |
175 return compareTo(JDK1_7) >= 0; |
175 return compareTo(JDK1_7) >= 0; |
176 } |
176 } |
177 // JSR 292: recognize @PolymorphicSignature on java/dyn names |
177 public boolean allowStringsInSwitch() { |
178 public boolean allowPolymorphicSignature() { |
|
179 return compareTo(JDK1_7) >= 0; |
178 return compareTo(JDK1_7) >= 0; |
180 } |
179 } |
181 public static SourceVersion toSourceVersion(Source source) { |
180 public static SourceVersion toSourceVersion(Source source) { |
182 switch(source) { |
181 switch(source) { |
183 case JDK1_2: |
182 case JDK1_2: |