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(); pm = new StdModel();
} else { } else {
try { try {
Class clazz = Class.forName(className); Class<?> clazz = Class.forName(className);
pm = (OsmPathModel) clazz.newInstance(); pm = (OsmPathModel) clazz.getDeclaredConstructor().newInstance();
} catch (Exception e) { } catch (Exception e) {
throw new RuntimeException("Cannot create path-model: " + e); throw new RuntimeException("Cannot create path-model: " + e);
} }

View file

@ -850,7 +850,7 @@ public abstract class BExpressionContext implements IByteArrayUnifier {
Integer num = variableNumbers.get(name); Integer num = variableNumbers.get(name);
if (num == null) { if (num == null) {
if (create) { if (create) {
num = new Integer(variableNumbers.size()); num = Integer.valueOf(variableNumbers.size());
variableNumbers.put(name, num); variableNumbers.put(name, num);
} else { } else {
return -1; return -1;