summaryrefslogtreecommitdiffstats
path: root/java/sca/modules/assembly-xml/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'java/sca/modules/assembly-xml/src/main')
-rw-r--r--java/sca/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/CompositeProcessor.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/java/sca/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/CompositeProcessor.java b/java/sca/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/CompositeProcessor.java
index d8bb24f1fa..16ba2f81b5 100644
--- a/java/sca/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/CompositeProcessor.java
+++ b/java/sca/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/CompositeProcessor.java
@@ -1093,8 +1093,8 @@ public class CompositeProcessor extends BaseAssemblyProcessor implements StAXArt
if (component.getRequiredIntents().contains(excluded)) {
component.getRequiredIntents().remove(excluded);
}
- for (Iterator i = component.getPolicySets().iterator(); i.hasNext(); ) {
- PolicySet cmpPolicySet = (PolicySet) i.next();
+ for (Iterator<PolicySet> i = component.getPolicySets().iterator(); i.hasNext(); ) {
+ PolicySet cmpPolicySet = i.next();
if (cmpPolicySet.getProvidedIntents().contains(excluded)) {
i.remove();
}
@@ -1107,8 +1107,8 @@ public class CompositeProcessor extends BaseAssemblyProcessor implements StAXArt
if (component.getRequiredIntents().contains(excluded)) {
component.getRequiredIntents().remove(excluded);
}
- for (Iterator i = component.getPolicySets().iterator(); i.hasNext(); ) {
- PolicySet cmpPolicySet = (PolicySet) i.next();
+ for (Iterator<PolicySet> i = component.getPolicySets().iterator(); i.hasNext(); ) {
+ PolicySet cmpPolicySet = i.next();
if (cmpPolicySet.getProvidedIntents().contains(excluded)) {
i.remove();
}
@@ -1146,8 +1146,8 @@ public class CompositeProcessor extends BaseAssemblyProcessor implements StAXArt
if (compConfOp.getRequiredIntents().contains(excluded)) {
compConfOp.getRequiredIntents().remove(excluded);
}
- for (Iterator i = compConfOp.getPolicySets().iterator(); i.hasNext(); ) {
- PolicySet cmpPolicySet = (PolicySet) i.next();
+ for (Iterator<PolicySet> i = compConfOp.getPolicySets().iterator(); i.hasNext(); ) {
+ PolicySet cmpPolicySet = i.next();
if (cmpPolicySet.getProvidedIntents().contains(excluded)) {
i.remove();
}