Fix #1368081: First suggestion in #1368081 seems to be working better
authoraxelcl <axelcl>
Mon, 19 Dec 2005 23:15:50 +0000 (23:15 +0000)
committeraxelcl <axelcl>
Mon, 19 Dec 2005 23:15:50 +0000 (23:15 +0000)
net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/parser/Parser.java

index 7314c8d..c1e2cf7 100644 (file)
@@ -3124,15 +3124,7 @@ public class Parser implements ITerminalSymbols, CompilerModifiers, ParserBasicI
                                }
                                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();