use primitive types instead of object for checking containment
@@ -197,7 +197,7 @@ public class LocalMerger {
final Long source, final Long target) {
try {
- if (new HashSet<>(callGraphData.nodes()).contains(source)
+ if (callGraphData.nodes().contains(source.longValue())
&& callGraphData.isInternal(source)) {
result.addInternalNode(source);
} else {
@@ -206,7 +206,7 @@ public class LocalMerger {
} catch (IllegalArgumentException ignored) {
}
try {
- if (new HashSet<>(callGraphData.nodes()).contains(target)
+ if (callGraphData.nodes().contains(target.longValue())
&& callGraphData.isInternal(target)) {
result.addInternalNode(target);
} else {
