From dc8deb008f567e124a46e767a6a88ba7d95e5ea2 Mon Sep 17 00:00:00 2001 From: Karl Schrab Date: Thu, 21 Mar 2024 10:27:41 +0100 Subject: [PATCH] fix(routing): suppress spotbugs warning --- .../mosaic/lib/routing/graphhopper/GraphHopperRouting.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/mosaic-routing/src/main/java/org/eclipse/mosaic/lib/routing/graphhopper/GraphHopperRouting.java b/lib/mosaic-routing/src/main/java/org/eclipse/mosaic/lib/routing/graphhopper/GraphHopperRouting.java index 006d14852..bbc81632e 100644 --- a/lib/mosaic-routing/src/main/java/org/eclipse/mosaic/lib/routing/graphhopper/GraphHopperRouting.java +++ b/lib/mosaic-routing/src/main/java/org/eclipse/mosaic/lib/routing/graphhopper/GraphHopperRouting.java @@ -61,6 +61,7 @@ import com.graphhopper.util.Parameters; import com.graphhopper.util.PointList; import com.graphhopper.util.shapes.GHPoint; +import edu.umd.cs.findbugs.annotations.SuppressWarnings; import org.apache.commons.lang3.ObjectUtils; import org.apache.commons.lang3.StringUtils; import org.slf4j.Logger; @@ -73,9 +74,9 @@ import java.util.List; import java.util.Set; +@SuppressWarnings(value = "MS_SHOULD_BE_FINAL", justification = "Static fields kept public and adjustable for user customization") public class GraphHopperRouting { - private static final Logger LOG = LoggerFactory.getLogger(GraphHopperRouting.class); public static final Profile PROFILE_CAR = new Profile("car").setVehicle("car").setTurnCosts(true);