From: axelcl Date: Mon, 19 Dec 2005 23:15:50 +0000 (+0000) Subject: Fix #1368081: First suggestion in #1368081 seems to be working better X-Git-Url: http://git.phpeclipse.com Fix #1368081: First suggestion in #1368081 seems to be working better --- diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/parser/Parser.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/parser/Parser.java index 7314c8d..c1e2cf7 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/parser/Parser.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/parser/Parser.java @@ -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();