langtools/src/share/classes/com/sun/tools/javac/code/Source.java
changeset 3765 9548183897cb
parent 3149 0cd06d598d6f
child 3895 3b3c2a1e5e8a
--- a/langtools/src/share/classes/com/sun/tools/javac/code/Source.java	Wed Aug 26 19:28:51 2009 -0700
+++ b/langtools/src/share/classes/com/sun/tools/javac/code/Source.java	Thu Aug 27 13:40:48 2009 +0100
@@ -122,6 +122,9 @@
     public boolean allowGenerics() {
         return compareTo(JDK1_5) >= 0;
     }
+    public boolean allowDiamond() {
+        return compareTo(JDK1_7) >= 0;
+    }
     public boolean allowEnums() {
         return compareTo(JDK1_5) >= 0;
     }