New Warning: "Uninitialized local variable"
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / internal / compiler / ast / QualifiedNameReference.java
index ca262ed..94a6180 100644 (file)
@@ -71,18 +71,18 @@ public class QualifiedNameReference extends NameReference {
                                        }
                                }
                                break;
-                       case LOCAL :
-                               // first binding is a local variable
-                               LocalVariableBinding localBinding;
-                               if (!flowInfo
-                                       .isDefinitelyAssigned(localBinding = (LocalVariableBinding) binding)) {
-                                       currentScope.problemReporter().uninitializedLocalVariable(localBinding, this);
-                               }
-                               if (flowInfo.isReachable()) {
-                                       localBinding.useFlag = LocalVariableBinding.USED;
-                               } else if (localBinding.useFlag == LocalVariableBinding.UNUSED) {
-                                       localBinding.useFlag = LocalVariableBinding.FAKE_USED;
-                               }
+//                     case LOCAL :
+//                             // first binding is a local variable
+//                             LocalVariableBinding localBinding;
+//                             if (!flowInfo
+//                                     .isDefinitelyAssigned(localBinding = (LocalVariableBinding) binding)) {
+//                                     currentScope.problemReporter().uninitializedLocalVariable(localBinding, this);
+//                             }
+//                             if (flowInfo.isReachable()) {
+//                                     localBinding.useFlag = LocalVariableBinding.USED;
+//                             } else if (localBinding.useFlag == LocalVariableBinding.UNUSED) {
+//                                     localBinding.useFlag = LocalVariableBinding.FAKE_USED;
+//                             }
                }
                
                if (needValue) {
@@ -208,17 +208,17 @@ public class QualifiedNameReference extends NameReference {
                                        currentScope.problemReporter().uninitializedBlankFinalField(fieldBinding, this);
                                }
                                break;
-                       case LOCAL : // reading a local variable
-                               LocalVariableBinding localBinding;
-                               if (!flowInfo
-                                       .isDefinitelyAssigned(localBinding = (LocalVariableBinding) binding)) {
-                                       currentScope.problemReporter().uninitializedLocalVariable(localBinding, this);
-                               }
-                               if (flowInfo.isReachable()) {
-                                       localBinding.useFlag = LocalVariableBinding.USED;
-                               } else if (localBinding.useFlag == LocalVariableBinding.UNUSED) {
-                                       localBinding.useFlag = LocalVariableBinding.FAKE_USED;
-                               }
+//                     case LOCAL : // reading a local variable
+//                             LocalVariableBinding localBinding;
+//                             if (!flowInfo
+//                                     .isDefinitelyAssigned(localBinding = (LocalVariableBinding) binding)) {
+//                                     currentScope.problemReporter().uninitializedLocalVariable(localBinding, this);
+//                             }
+//                             if (flowInfo.isReachable()) {
+//                                     localBinding.useFlag = LocalVariableBinding.USED;
+//                             } else if (localBinding.useFlag == LocalVariableBinding.UNUSED) {
+//                                     localBinding.useFlag = LocalVariableBinding.FAKE_USED;
+//                             }
                }
                if (needValue) {
                        manageEnclosingInstanceAccessIfNecessary(currentScope);