diff --git a/test/fixtures/java/classLiteral.java b/test/fixtures/java/classLiteral.java new file mode 100644 index 000000000..a4381fdf3 --- /dev/null +++ b/test/fixtures/java/classLiteral.java @@ -0,0 +1,5 @@ +class Dino { + void normalError() { + error(TestException.class); + } +} diff --git a/test/fixtures/java/corpus/classBody.java b/test/fixtures/java/corpus/classBody.java new file mode 100644 index 000000000..75d7b610b --- /dev/null +++ b/test/fixtures/java/corpus/classBody.java @@ -0,0 +1,6 @@ +class Dino { + public void dispose() { + Test.flat(new Function() { + }); + } +} diff --git a/test/fixtures/java/corpus/tryWithResourcesStatement.java b/test/fixtures/java/corpus/tryWithResourcesStatement.java new file mode 100644 index 000000000..f6ef073a6 --- /dev/null +++ b/test/fixtures/java/corpus/tryWithResourcesStatement.java @@ -0,0 +1,6 @@ +class Dino { + void hi() { + try (CustomAnalyzer analyzer = new CustomAnalyzer()){ + } + } +}