remove compiler warnings

This commit is contained in:
afischerdev 2022-11-23 16:28:43 +01:00
parent a764c788ba
commit 8fa27bcf6e
2 changed files with 3 additions and 3 deletions

View file

@ -84,8 +84,8 @@ public final class RoutingContext {
pm = new StdModel();
} else {
try {
Class clazz = Class.forName(className);
pm = (OsmPathModel) clazz.newInstance();
Class<?> clazz = Class.forName(className);
pm = (OsmPathModel) clazz.getDeclaredConstructor().newInstance();
} catch (Exception e) {
throw new RuntimeException("Cannot create path-model: " + e);
}