[hotbug] @regression: DefaultInferenceProvider is always enabled
DefaultInferrenceProvider is not added to InferrenceManager in case of InferrenceProvider.ONLY_THIS option is used.
The fix for Bug 419871 is packported to R3_5_maintenance branch
Signed-off-by: vrubezhny <vrubezhny@exadel.com>
diff --git a/bundles/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/core/infer/InferrenceManager.java b/bundles/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/core/infer/InferrenceManager.java
index abf69fe..93d827a 100644
--- a/bundles/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/core/infer/InferrenceManager.java
+++ b/bundles/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/core/infer/InferrenceManager.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2013 IBM Corporation and others.
+ * Copyright (c) 2005, 2014 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -109,7 +109,7 @@
case InferrenceProvider.ONLY_THIS:
proposedProviders.clear();
- proposedProviders.add(inferenceProviders[0]);
+// proposedProviders.add(inferenceProviders[0]);
proposedProviders.add(inferenceProviders[i]);
return (InferrenceProvider [] )proposedProviders.toArray(new InferrenceProvider[proposedProviders.size()]);