diff options
author | Dmytro Kytsmen <dmitrokytsmen@gmail.com> | 2017-04-24 19:21:28 +0300 |
---|---|---|
committer | rnveach <rveach02@gmail.com> | 2017-04-27 08:55:41 -0400 |
commit | a5e3c7acfe96a4ee502dfd4c79ebbe66c89a95e7 (patch) | |
tree | 5da506bb8c8dd93ba120f84468a0903d220381a2 /src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming | |
parent | ad30ad313cd3f2ebc83db91d3787a0042443a44c (diff) | |
download | checkstyle-a5e3c7acfe96a4ee502dfd4c79ebbe66c89a95e7.tar.gz |
Issue #4137: Split and Organize Checkstyle inputs by Test for ClassTypeParameterName
Diffstat (limited to 'src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming')
-rw-r--r-- | src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/classtypeparametername/InputClassTypeParameterName.java | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/classtypeparametername/InputClassTypeParameterName.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/classtypeparametername/InputClassTypeParameterName.java new file mode 100644 index 000000000..101bbc8e8 --- /dev/null +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/classtypeparametername/InputClassTypeParameterName.java @@ -0,0 +1,62 @@ +package com.puppycrawl.tools.checkstyle.checks.naming.classtypeparametername; + +import java.io.Serializable; + +public class InputClassTypeParameterName<t> +{ + public <TT> void foo() { } + + <e_e> void foo(int i) { + } +} + +class Other <foo extends Serializable & Cloneable> { + + foo getOne() { + return null;//comment + } + + <Tfo$o2T extends foo> /*comment*/Tfo$o2T getTwo(Tfo$o2T a) { + return null; + } + + <foo extends Runnable> foo getShadow() { + return null; + } + + static class Junk <foo> { + <_fo extends foo> void getMoreFoo() { + } + } +} + +class MoreOther <T extends Cloneable> { + + <E extends T> void getMore() { + new Other() { + <T> void getMoreFoo() { + } + }; + +// Other o = new Other() { +// <EE> void getMoreFoo() { +// } +// }; + } +} + +interface Boo<Input> { + Input boo(); +} + +interface FooInterface<T> { + T foo(); +} + +interface FooInterface2 { + Input foo(); +} + +class Input { + +} |