diff --git a/jetty-start/src/main/java/org/eclipse/jetty/start/Modules.java b/jetty-start/src/main/java/org/eclipse/jetty/start/Modules.java index a11b842ca85..6fb3749fed9 100644 --- a/jetty-start/src/main/java/org/eclipse/jetty/start/Modules.java +++ b/jetty-start/src/main/java/org/eclipse/jetty/start/Modules.java @@ -46,7 +46,7 @@ public class Modules implements Iterable private final Map> _provided = new HashMap<>(); private final BaseHome _baseHome; private final StartArgs _args; - private final Map _deprecated = new HashMap<>(); + private final Properties _deprecated = new Properties(); public Modules(BaseHome basehome, StartArgs args) { @@ -379,7 +379,7 @@ public class Modules implements Iterable Module module = _names.get(name); if (module==null) { - String reason = _deprecated.get(name); + String reason = _deprecated.getProperty(name); if (reason!=null) StartLog.warn("Deprecated module '%s': %s",name,reason); }