Module "Apache Tuscany SCA Node Implementation Model": stop searching after the
first matching component.
---------------------------------------------------------------------------------------------------------
Key: TUSCANY-2803
URL: https://issues.apache.org/jira/browse/TUSCANY-2803
Project: Tuscany
Issue Type: Bug
Affects Versions: Java-SCA-1.4
Reporter: Radu Fantaziu
Priority: Minor
The following code extracted from
org.apache.tuscany.sca.node.impl.NodeImpl.getServiceReference()
....
for (Component compositeComponent : composite.getComponents()) {
if (compositeComponent.getName().equals(componentName)) {
component = compositeComponent;
}
}
....
should be:
......
for (Component compositeComponent : composite.getComponents()) {
if (compositeComponent.getName().equals(componentName)) {
component = compositeComponent;
break;
}
}
.....
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.