View Javadoc
1   package com.puppycrawl.tools.checkstyle.checks.coding.parameterassignment;
2   /**Input*/
3   public class InputParameterAssignmentWithUnchecked {
4       int field;
5       void foo1(int field) {
6           int i = field;
7           this.field = field;
8           i++;
9           field = 0;
10          field += 1;
11          this.field++;
12          field--;
13      }
14      // without parameters
15      void foo2() {
16          field = 0;
17      }
18      @SuppressWarnings(value = "unchecked")
19      void foo3(String field, int field1) {
20          this.field = (field1 += field.length());
21      }
22  
23      void foo4() {
24          String hidden = "";
25          new NestedClass() {
26              public void test(String hidden) {
27              }
28          };
29          hidden += "test";
30      }
31  
32      public static abstract class NestedClass {
33          public abstract void test(String hidden);
34      }
35  }