View Javadoc
1   package com.google.checkstyle.test.chapter5naming.rule528typevariablenames;
2   
3   import java.io.Serializable;
4   
5   class InputTypeParameterName1 <t>
6   {
7       public <TT> void foo() { }
8       
9       <e_e> void foo(int i) { //warn
10      }
11  }
12  
13  class Other2 <foo extends Serializable & Cloneable> {
14      
15      foo getOne() {
16      return null;
17      }
18      
19      <Tfo$o2T extends foo> Tfo$o2T getTwo(Tfo$o2T a) { //warn
20      return null;
21      }
22      
23      <foo_ extends Runnable> foo getShadow() { //warn
24      return null;
25      }
26      
27      static class Junk <$foo> {
28          <_abc extends $foo> void getMoreFoo() { //warn
29      }
30      }
31  }
32  
33  class MoreOther3 <T extends Cloneable> {
34      
35      <E extends T> void getMore() {
36          new Other2() {
37              <T$> void getMoreFoo() { //warn
38          }
39      };
40      
41          Other2 o = new Other2() {
42              <EE> void getMoreFoo() { //warn
43              }
44          };
45      }
46  }