diff options
author | Dmytro Kytsmen <dmitrokytsmen@gmail.com> | 2017-04-29 00:44:42 +0300 |
---|---|---|
committer | rnveach <rveach02@gmail.com> | 2017-04-29 10:25:11 -0400 |
commit | 784200a5ae9f29b624dfa97de13688fcaa0b5f5c (patch) | |
tree | 7890b3668f79d5c28d5fbe83330ef7808e091369 /src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/interfacetypeparametername | |
parent | 54fcf8467e754ef583855478dc05ae986485ebba (diff) | |
download | checkstyle-784200a5ae9f29b624dfa97de13688fcaa0b5f5c.tar.gz |
Issue #4142: Split and Organize Checkstyle inputs by Test for InterfaceTypeParameterName
Diffstat (limited to 'src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/interfacetypeparametername')
-rw-r--r-- | src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/interfacetypeparametername/InputInterfaceTypeParameterName.java | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/interfacetypeparametername/InputInterfaceTypeParameterName.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/interfacetypeparametername/InputInterfaceTypeParameterName.java new file mode 100644 index 000000000..014ac6d27 --- /dev/null +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/interfacetypeparametername/InputInterfaceTypeParameterName.java @@ -0,0 +1,62 @@ +package com.puppycrawl.tools.checkstyle.checks.naming.interfacetypeparametername; + +import java.io.Serializable; + +public class InputInterfaceTypeParameterName<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 { + +} |