File tree Expand file tree Collapse file tree
languages/java-cpg/src/main/java/de/jplag/java_cpg/transformation/operations Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66import java .util .List ;
77import java .util .Map ;
88
9- import org .jetbrains .annotations .Nullable ;
10-
119import de .fraunhofer .aisec .cpg .graph .Node ;
1210import de .fraunhofer .aisec .cpg .graph .edge .PropertyEdge ;
1311
@@ -49,7 +47,7 @@ public void saveOriginalTarget(PropertyEdge<Node> edge) {
4947 if (edge .getEnd ().equals (this )) {
5048 return ;
5149 }
52- targetMap .computeIfAbsent (edge .getEnd (), n -> new ArrayList <>()).add (edge );
50+ targetMap .computeIfAbsent (edge .getEnd (), _ -> new ArrayList <>()).add (edge );
5351 }
5452
5553 /**
@@ -60,7 +58,7 @@ public void saveOriginalSource(PropertyEdge<Node> edge) {
6058 if (edge .getStart ().equals (this )) {
6159 return ;
6260 }
63- sourceMap .computeIfAbsent (edge .getStart (), n -> new ArrayList <>()).add (edge );
61+ sourceMap .computeIfAbsent (edge .getStart (), _ -> new ArrayList <>()).add (edge );
6462 }
6563
6664 /**
@@ -100,8 +98,4 @@ public void clear() {
10098 sourceMap .clear ();
10199 }
102100
103- @ Override
104- public boolean equals (@ Nullable Object other ) {
105- return other == INSTANCE ;
106- }
107101}
You can’t perform that action at this time.
0 commit comments