aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzzhongwei2013-03-19 04:14:18 (EDT)
committerzzhongwei2013-03-19 04:14:18 (EDT)
commitc115a319ba12370480116c8b09844fb45617fa27 (patch)
treefa9594860943786df7224f83325c3bc3cd03f3b5
parent59d740c176083faf50dca58605c81ead941f2ee2 (diff)
downloadorg.eclipse.pdt-c115a319ba12370480116c8b09844fb45617fa27.zip
org.eclipse.pdt-c115a319ba12370480116c8b09844fb45617fa27.tar.gz
org.eclipse.pdt-c115a319ba12370480116c8b09844fb45617fa27.tar.bz2
remove duplicate if statement
-rw-r--r--plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/codeassist/strategies/GlobalTypesStrategy.java19
1 files changed, 7 insertions, 12 deletions
diff --git a/plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/codeassist/strategies/GlobalTypesStrategy.java b/plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/codeassist/strategies/GlobalTypesStrategy.java
index d8b5fba..2984b58 100644
--- a/plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/codeassist/strategies/GlobalTypesStrategy.java
+++ b/plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/codeassist/strategies/GlobalTypesStrategy.java
@@ -125,18 +125,13 @@ public class GlobalTypesStrategy extends GlobalElementStrategy {
replacementRange, extraInfo);
}
if (addClassInNamespace && isNamespace) {
- if (PHPFlags.isNamespace(flags)) {
- IType[] subTypes = type.getTypes();
- for (IType subType : subTypes) {
- int subFlags = type.getFlags();
- reporter.reportType(
- subType,
- PHPFlags.isNamespace(subFlags) ? nsSuffix
- : suffix,
- replacementRange,
- extraInfo
- | ProposalExtraInfo.CLASS_IN_NAMESPACE);
- }
+ IType[] subTypes = type.getTypes();
+ for (IType subType : subTypes) {
+ int subFlags = type.getFlags();
+ reporter.reportType(subType, PHPFlags
+ .isNamespace(subFlags) ? nsSuffix : suffix,
+ replacementRange, extraInfo
+ | ProposalExtraInfo.CLASS_IN_NAMESPACE);
}
}
} catch (ModelException e) {