changeset 3149 | 0cd06d598d6f |
parent 2982 | 090c71af18f6 |
child 3765 | 9548183897cb |
--- a/langtools/src/share/classes/com/sun/tools/javac/code/Source.java Fri Jun 26 12:22:40 2009 -0700 +++ b/langtools/src/share/classes/com/sun/tools/javac/code/Source.java Fri Jun 26 18:51:39 2009 -0700 @@ -153,6 +153,9 @@ public boolean enforceMandatoryWarnings() { return compareTo(JDK1_5) >= 0; } + public boolean allowTypeAnnotations() { + return compareTo(JDK1_7) >= 0; + } public static SourceVersion toSourceVersion(Source source) { switch(source) { case JDK1_2: