From 77251f076eee469494e68b8e0d0d696ceb3f800b Mon Sep 17 00:00:00 2001 From: Janine Freitas Date: Tue, 11 Apr 2017 12:11:53 +0100 Subject: Issue #4168: Split and Organize Checkstyle inputs by Test for MethodTypeParameterName --- .../InputMethodTypeParameterName.java | 62 ++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/methodtypeparametername/InputMethodTypeParameterName.java (limited to 'src/test/resources/com/puppycrawl/tools/checkstyle') 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 +{ + public void foo() { } + + void foo(int i) { + } +} + +class Other { + + foo getOne() { + return null;//comment + } + + /*comment*/Tfo$o2T getTwo(Tfo$o2T a) { + return null; + } + + foo getShadow() { + return null; + } + + static class Junk { + <_fo extends foo> void getMoreFoo() { + } + } +} + +class MoreOther { + + void getMore() { + new Other() { + void getMoreFoo() { + } + }; + +// Other o = new Other() { +// void getMoreFoo() { +// } +// }; + } +} + +interface Boo { + Input boo(); +} + +interface FooInterface { + T foo(); +} + +interface FooInterface2 { + Input foo(); +} + +class Input { + +} -- cgit v1.2.3