Skip to content
Snippets Groups Projects
Commit 2b151075 authored by Sören Henning's avatar Sören Henning
Browse files

some refactoring

parent f1c7869a
No related branches found
No related tags found
1 merge request!17Get impletemented stages and Java 8
...@@ -40,17 +40,19 @@ public class OperationsDependency { ...@@ -40,17 +40,19 @@ public class OperationsDependency {
private void addRelation(final AggregatedOperationCall call) { private void addRelation(final AggregatedOperationCall call) {
if (call.getParent() == null) { AggregatedOperationCall parentCall = call.getParent();
if (parentCall == null) {
// TODO parent shouldn't be null. Create a class "EntryOperationCall". // TODO parent shouldn't be null. Create a class "EntryOperationCall".
return; return;
} }
String key = call.getIdentifier() + ',' + call.getParent().getIdentifier(); String key = call.getIdentifier() + ',' + parentCall.getIdentifier();
if (!relations.containsKey(key)) { if (!relations.containsKey(key)) {
AggregatedOperationCall callee = operations.get(call.getIdentifier()); AggregatedOperationCall callee = operations.get(call.getIdentifier());
AggregatedOperationCall caller = operations.get(call.getParent().getIdentifier()); AggregatedOperationCall caller = operations.get(parentCall.getIdentifier());
OperationsDependencyRelation relation = new OperationsDependencyRelation(callee, caller); OperationsDependencyRelation relation = new OperationsDependencyRelation(callee, caller);
relations.put(key, relation); relations.put(key, relation);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment