remove compiler warnings
This commit is contained in:
parent
a764c788ba
commit
8fa27bcf6e
2 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -850,7 +850,7 @@ public abstract class BExpressionContext implements IByteArrayUnifier {
|
|||
Integer num = variableNumbers.get(name);
|
||||
if (num == null) {
|
||||
if (create) {
|
||||
num = new Integer(variableNumbers.size());
|
||||
num = Integer.valueOf(variableNumbers.size());
|
||||
variableNumbers.put(name, num);
|
||||
} else {
|
||||
return -1;
|
||||
|
|
Loading…
Reference in a new issue