diff options
Diffstat (limited to 'src/test/resources/com/puppycrawl/tools/checkstyle')
-rw-r--r-- | src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/methodtypeparametername/InputMethodTypeParameterName.java | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/methodtypeparametername/InputMethodTypeParameterName.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/methodtypeparametername/InputMethodTypeParameterName.java new file mode 100644 index 000000000..008016dbc --- /dev/null +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/methodtypeparametername/InputMethodTypeParameterName.java @@ -0,0 +1,62 @@ +package com.puppycrawl.tools.checkstyle.checks.naming.methodtypeparametername; + +import java.io.Serializable; + +public class InputMethodTypeParameterName <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 { + +} |