aboutsummaryrefslogtreecommitdiff
path: root/src/test/resources/com/puppycrawl/tools/checkstyle/naming/InputTypeParameterName.java
blob: f2d7d8c79e0e93686e7b61db659036a9bf8fe5c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
package com.puppycrawl.tools.checkstyle.naming;

import java.io.Serializable;

public class InputTypeParameterName <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 {

}