< prev index next >

test/langtools/tools/javac/T6873849.java

Print this page
@@ -66,11 +66,11 @@
              throw new Exception("unexpected output from compiler");
      }
  
      void m(List t) {
          // force a note about unchecked usage
-         t.add(new Object());
+         t.add(new Object() {});
      }
  
      private File testSrc = new File(System.getProperty("test.src", "."));
      private File testClasses = new File(System.getProperty("test.classes", "."));
      private String newline = System.getProperty("line.separator");
< prev index next >