From 5334734cd00a0887f2170d7d1ed3d33e848a7561 Mon Sep 17 00:00:00 2001 From: Stefan Schott Date: Wed, 6 Nov 2024 12:26:45 +0100 Subject: [PATCH 1/2] change log message type when a class cannot be found in hierarchy. --- .../core/typehierarchy/ViewTypeHierarchy.java | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/sootup.core/src/main/java/sootup/core/typehierarchy/ViewTypeHierarchy.java b/sootup.core/src/main/java/sootup/core/typehierarchy/ViewTypeHierarchy.java index 9afd437dec9..2245f6a701f 100644 --- a/sootup.core/src/main/java/sootup/core/typehierarchy/ViewTypeHierarchy.java +++ b/sootup.core/src/main/java/sootup/core/typehierarchy/ViewTypeHierarchy.java @@ -22,12 +22,6 @@ */ import com.google.common.base.Suppliers; -import java.util.*; -import java.util.function.Supplier; -import java.util.stream.Stream; -import java.util.stream.StreamSupport; -import javax.annotation.Nonnull; -import javax.annotation.Nullable; import org.apache.commons.lang3.tuple.ImmutablePair; import org.jgrapht.Graph; import org.jgrapht.graph.SimpleDirectedGraph; @@ -40,6 +34,13 @@ import sootup.core.types.ClassType; import sootup.core.views.View; +import javax.annotation.Nonnull; +import javax.annotation.Nullable; +import java.util.*; +import java.util.function.Supplier; +import java.util.stream.Stream; +import java.util.stream.StreamSupport; + /** * Full documentation is in the wiki. @@ -180,7 +181,7 @@ protected Set findAncestors(ClassType type) { Graph graph = lazyScanResult.get().graph; Vertex vertex = lazyScanResult.get().typeToVertex.get(type); if (vertex == null) { - logger.warn("Could not find {} in this hierarchy!", type.toString()); + logger.debug("Could not find {} in this hierarchy!", type.toString()); return Collections.emptySet(); } Set ancestors = new HashSet<>(); From 2aee63db717763c553efa677036dea48e184a27a Mon Sep 17 00:00:00 2001 From: Stefan Schott Date: Wed, 6 Nov 2024 12:28:34 +0100 Subject: [PATCH 2/2] fmt --- .../core/typehierarchy/ViewTypeHierarchy.java | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/sootup.core/src/main/java/sootup/core/typehierarchy/ViewTypeHierarchy.java b/sootup.core/src/main/java/sootup/core/typehierarchy/ViewTypeHierarchy.java index 2245f6a701f..dc2258f7365 100644 --- a/sootup.core/src/main/java/sootup/core/typehierarchy/ViewTypeHierarchy.java +++ b/sootup.core/src/main/java/sootup/core/typehierarchy/ViewTypeHierarchy.java @@ -22,6 +22,12 @@ */ import com.google.common.base.Suppliers; +import java.util.*; +import java.util.function.Supplier; +import java.util.stream.Stream; +import java.util.stream.StreamSupport; +import javax.annotation.Nonnull; +import javax.annotation.Nullable; import org.apache.commons.lang3.tuple.ImmutablePair; import org.jgrapht.Graph; import org.jgrapht.graph.SimpleDirectedGraph; @@ -34,13 +40,6 @@ import sootup.core.types.ClassType; import sootup.core.views.View; -import javax.annotation.Nonnull; -import javax.annotation.Nullable; -import java.util.*; -import java.util.function.Supplier; -import java.util.stream.Stream; -import java.util.stream.StreamSupport; - /** * Full documentation is in the wiki.