Niels Basjes - 2008-09-12

I applied 1 minor change to the above class:
protected boolean isViolationArgument(final int argIndex, final String arg) {
return (argIndex == 0);
}

I found a second 'false negative' for this situation.
Line marked as /1/ is marked (correct)
Line marked as /2/ is not marked (incorrect)

    final String[] myArray = { "foo=oof","bar=rab"};

    String firstRecord = myArray[0];
    String[] firstRecordArray = firstRecord.split("=", 2);  /*1*/

    for (String oneElement : myArray) {
        final String[] keyValue = oneElement.split("=", 2); /*2*/
    }