Code Inspection: Redundant local variable
Reports unnecessary local variables, which addnothing to the comprehensibility of a function. Variables caught include local variableswhich are immediately returned, local variables that are immediately assigned to anothervariable and then not used, and local variables which always have the same value as anotherlocal variable or parameter.
Use the checkbox below to have this inspection ignore variables which are immediatelyreturned or thrown. Some coding styles suggest using such variables for clarity andease of debugging.