View Javadoc
1   package com.puppycrawl.tools.checkstyle.checks.coding.finallocalvariable;
2   
3   class Foo1 {
4       public void foo(String text) {
5           System.identityHashCode(text);
6   
7           class Bar {
8               void bar (String text) {
9                   text = "xxx";
10              }
11          }
12      }
13  }
14  
15  class Foo2 {
16      public void foo() {
17          int x;
18          class Bar {
19              void bar () {
20                  int x = 1;
21                  x++;
22                  x++;
23              }
24          }
25      }
26  }
27  
28  enum InputFinalLocalVariableNameShadowingEnum{
29      test;
30      final String foo1 = "error";
31      InputFinalLocalVariableNameShadowingEnum()
32      {
33          String foo = foo1;
34          foo += foo1;
35      }
36  
37  }