Commit bd2321ef authored by Lubomir Bulej's avatar Lubomir Bulej

ArgProcessor: convert explicit loop to unordered stream iteration in the

init() method.
ArgProcessor: convert ordered stream to unordered stream in the
getReferencedSCMs() method.
parent 4a690627
......@@ -44,16 +44,15 @@ public class ArgProcessor {
public Set <StaticContextMethod> getReferencedSCMs () {
return __methods.stream ()
.flatMap (apm -> apm.getCode ().getReferencedSCMs ().stream ())
return __methods.stream ().unordered ()
.flatMap (method -> method.getCode ().getReferencedSCMs ().stream ())
.collect (Collectors.toSet ());
}
public void init (final LocalVars localVars) {
for (final ArgProcessorMethod method : __methods) {
method.init (localVars);
}
__methods.stream ().unordered ()
.forEach (method -> method.init (localVars));
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment