From 3bbebdcabdf206a6b67d4e23c0bddb6225c3c74f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Mart=C3=ADn=20Sotuyo=20Dodero?= Date: Sun, 20 May 2018 02:32:10 -0300 Subject: [PATCH] Fix checkstyle --- .../pmd/typeresolution/testdata/LocalGenericClass.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pmd-java/src/test/java/net/sourceforge/pmd/typeresolution/testdata/LocalGenericClass.java b/pmd-java/src/test/java/net/sourceforge/pmd/typeresolution/testdata/LocalGenericClass.java index 636e4b1404..35cf462ad7 100644 --- a/pmd-java/src/test/java/net/sourceforge/pmd/typeresolution/testdata/LocalGenericClass.java +++ b/pmd-java/src/test/java/net/sourceforge/pmd/typeresolution/testdata/LocalGenericClass.java @@ -12,15 +12,18 @@ public class LocalGenericClass { @Override public void accept(T t) { } + @Override public Optional get() { return Optional.empty(); } + @Override public void combine(MyLocalClass other) { accept(other.state); } } + new MyLocalClass(); } @@ -28,12 +31,14 @@ public class LocalGenericClass { void combine(T t); } - private static interface MyConsumer { + private interface MyConsumer { void accept(R r); } - private static interface MySupplier { + + private interface MySupplier { S get(); } + private static class Optional { public static Optional empty() { return new Optional();