Affects PMD Version: 5.8.0
Rule: AvoidArrayLoops
Description:
The rule sees an assignment to foo[ i ]
and an add-assignment from foo[ i ]
.
The rule thinks it sees an assignment from foo[ i ]
to foo[ i ]
.
Code Sample demonstrating the issue:
public class Test { public static void main( String[] args ) { double[] foo = new double[ 100 ]; double bar = 0.0; for ( int i = 0; i < exps.length; i++ ) { double value = Math.random(); foo[ i ] = Math.exp( value ); bar += foo[ i ]; } } }
Running PMD through: Eclipse Plugin 4.0.15
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4