From aed7adad16bb295edee99e4b76f89b12916c2dbd Mon Sep 17 00:00:00 2001 From: Kai Martins-Turner Date: Fri, 15 Nov 2024 15:45:44 +0100 Subject: [PATCH] remove NotNull annotation --- .../ExampleTwoLspsGroceryDeliveryMultipleChains.java | 3 +-- .../ExampleTwoLspsGroceryDeliveryMultipleChainsWithToll.java | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/matsim/freight/logistics/examples/multipleChains/ExampleTwoLspsGroceryDeliveryMultipleChains.java b/src/main/java/org/matsim/freight/logistics/examples/multipleChains/ExampleTwoLspsGroceryDeliveryMultipleChains.java index b43f4fbc..57231be2 100644 --- a/src/main/java/org/matsim/freight/logistics/examples/multipleChains/ExampleTwoLspsGroceryDeliveryMultipleChains.java +++ b/src/main/java/org/matsim/freight/logistics/examples/multipleChains/ExampleTwoLspsGroceryDeliveryMultipleChains.java @@ -45,7 +45,6 @@ import java.io.IOException; import java.util.*; -import jakarta.validation.constraints.NotNull; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.matsim.api.core.v01.Id; @@ -171,7 +170,7 @@ private static Config prepareConfig(String[] args) { return config; } - private static @NotNull Controler prepareControler(Scenario scenario) { + private static Controler prepareControler(Scenario scenario) { log.info("Prepare controler"); Controler controler = new Controler(scenario); controler.addOverridingModule( diff --git a/src/main/java/org/matsim/freight/logistics/examples/multipleChains/ExampleTwoLspsGroceryDeliveryMultipleChainsWithToll.java b/src/main/java/org/matsim/freight/logistics/examples/multipleChains/ExampleTwoLspsGroceryDeliveryMultipleChainsWithToll.java index adb7ae41..e27b2e27 100644 --- a/src/main/java/org/matsim/freight/logistics/examples/multipleChains/ExampleTwoLspsGroceryDeliveryMultipleChainsWithToll.java +++ b/src/main/java/org/matsim/freight/logistics/examples/multipleChains/ExampleTwoLspsGroceryDeliveryMultipleChainsWithToll.java @@ -24,7 +24,6 @@ import java.io.IOException; import java.util.*; -import jakarta.validation.constraints.NotNull; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.matsim.analysis.personMoney.PersonMoneyEventsAnalysisModule; @@ -159,7 +158,7 @@ private static Config prepareConfig(String[] args) { return config; } - private static @NotNull Controler prepareControler(Scenario scenario, RoadPricingScheme rpScheme) { + private static Controler prepareControler(Scenario scenario, RoadPricingScheme rpScheme) { log.info("Prepare controler"); Controler controler = new Controler(scenario); controler.addOverridingModule(