}
getNextToken();
} else if (token == TokenNameLBRACKET) {
- if (ref != null && ref instanceof FieldReference) {
- FieldReference fref = (FieldReference) ref;
- if (!containsVariableSet(fref.token)) {
- problemReporter.uninitializedLocalVariable(new String(fref.token), fref.sourceStart(), fref.sourceEnd(),
- referenceContext, compilationUnit.compilationResult);
- addVariableSet(fref.token);
- }
- }
- ref = null;
+ // To remove "ref = null;" here, is probably better than the patch commented in #1368081 - axelcl
getNextToken();
if (token != TokenNameRBRACKET) {
expr();