blob: 008016dbc6e488b310657d67672a16a18f4dd0c0 (
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.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 {
}
|