Skip to content

Commit

Permalink
Merge pull request #100 from GIScience/ors_4.0_custom_model
Browse files Browse the repository at this point in the history
Ors 4.0 custom model
  • Loading branch information
takb authored Jan 9, 2025
2 parents 2a2d503 + 991fba4 commit 0432543
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -343,14 +343,6 @@ private static Java.CompilationUnit injectStatements(List<Java.BlockStatement> p
boolean speedInjected = false;
boolean priorityInjected = false;

@Override
public Java.FieldDeclaration copyFieldDeclaration(Java.FieldDeclaration subject) throws CompileException {
// for https://github.com/janino-compiler/janino/issues/135
Java.FieldDeclaration fd = super.copyFieldDeclaration(subject);
fd.setEnclosingScope(subject.getEnclosingScope());
return fd;
}

@Override
public Java.MethodDeclarator copyMethodDeclarator(Java.MethodDeclarator subject) throws CompileException {
if (subject.name.equals("getSpeed") && !speedStatements.isEmpty() && !speedInjected) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

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

class StatementDeserializer extends JsonDeserializer<Statement> {
public class StatementDeserializer extends JsonDeserializer<Statement> {
@Override
public Statement deserialize(JsonParser p, DeserializationContext ctxt) throws IOException {
JsonNode treeNode = p.readValueAsTree();
Expand Down

0 comments on commit 0432543

Please sign in to comment.