REDUN.DEFA redundant operation is one that does not have any effect, such as:
Even if this is not an error on its own, it may indicate a larger error in the code. A REDUND.DEF error indicates there is a redundant operation, in this case assignment of a variable to itself. Example 19 public void test() { 10 String s = "String"; 11 s = s; 12 } REDUN.DEF is reported for line 11: Assignment of 's' to itself |