Skip to content

Commit 0432543

Browse files
authored
Merge pull request #100 from GIScience/ors_4.0_custom_model
Ors 4.0 custom model
2 parents 2a2d503 + 991fba4 commit 0432543

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

core/src/main/java/com/graphhopper/routing/weighting/custom/CustomModelParser.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -343,14 +343,6 @@ private static Java.CompilationUnit injectStatements(List<Java.BlockStatement> p
343343
boolean speedInjected = false;
344344
boolean priorityInjected = false;
345345

346-
@Override
347-
public Java.FieldDeclaration copyFieldDeclaration(Java.FieldDeclaration subject) throws CompileException {
348-
// for https://github.com/janino-compiler/janino/issues/135
349-
Java.FieldDeclaration fd = super.copyFieldDeclaration(subject);
350-
fd.setEnclosingScope(subject.getEnclosingScope());
351-
return fd;
352-
}
353-
354346
@Override
355347
public Java.MethodDeclarator copyMethodDeclarator(Java.MethodDeclarator subject) throws CompileException {
356348
if (subject.name.equals("getSpeed") && !speedStatements.isEmpty() && !speedInjected) {

web-api/src/main/java/com/graphhopper/jackson/StatementDeserializer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
import static com.graphhopper.json.Statement.Keyword.*;
1414

15-
class StatementDeserializer extends JsonDeserializer<Statement> {
15+
public class StatementDeserializer extends JsonDeserializer<Statement> {
1616
@Override
1717
public Statement deserialize(JsonParser p, DeserializationContext ctxt) throws IOException {
1818
JsonNode treeNode = p.readValueAsTree();

0 commit comments

Comments
 (0)