diff options
author | rnveach <rveach02@gmail.com> | 2016-04-16 08:55:44 -0400 |
---|---|---|
committer | Roman Ivanov <romani@users.noreply.github.com> | 2016-04-16 05:55:44 -0700 |
commit | e18195de775c9ee707f31760820bc45cd1c9aa91 (patch) | |
tree | dbf87ba057985b9d8331c1ccdd283f8e43e18dcd /src/test/resources/com/puppycrawl/tools/checkstyle/checks | |
parent | 740e1a01f3fe7a19f84ded63e463869b47bdeb9e (diff) | |
download | checkstyle-e18195de775c9ee707f31760820bc45cd1c9aa91.tar.gz |
Issue #3106: fixed annotation location check with no modifiers (#3108)
Diffstat (limited to 'src/test/resources/com/puppycrawl/tools/checkstyle/checks')
-rw-r--r-- | src/test/resources/com/puppycrawl/tools/checkstyle/checks/annotation/InputAnnotationLocation3.java | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/annotation/InputAnnotationLocation3.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/annotation/InputAnnotationLocation3.java new file mode 100644 index 000000000..d8512ef6f --- /dev/null +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/annotation/InputAnnotationLocation3.java @@ -0,0 +1,20 @@ +package com.puppycrawl.tools.checkstyle.checks.annotation; + +public class InputAnnotationLocation3 { + public static void main(String[] args) { + final Foo foo = new Foo(); + foo.bar(new Bar<Foo>() { + public void foo() { + } + }); + } + + static class Foo { + void bar(Bar<Foo> bar) { + } + } + + static abstract class Bar<T> { + abstract void foo(); + } +} |