Skip to content

Commit

Permalink
Use JDK 17.
Browse files Browse the repository at this point in the history
  • Loading branch information
ErhardSiegl committed May 10, 2024
1 parent f3d9881 commit ed5ff81
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public J visitMethodInvocation(J.MethodInvocation method, ExecutionContext ctx)
}
}

Expression argument = method.getArguments().getFirst();
Expression argument = method.getArguments().get(0);
doAfterVisit(new BinaryProxyToWebConfigClassVisitor());
return WEB_OR_PROXY.apply(
updateCursor(method),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public J.MethodDeclaration visitMethodDeclaration(J.MethodDeclaration method, Ex
Optional<J.VariableDeclarations> dtoDeclarations = statements.stream()
.filter(J.VariableDeclarations.class::isInstance)
.map(J.VariableDeclarations.class::cast)
.filter(variableDeclarations -> variableDeclarations.getVariables().getFirst().getSimpleName().equals(variableName))
.filter(variableDeclarations -> variableDeclarations.getVariables().get(0).getSimpleName().equals(variableName))
.filter(variableDeclarations -> !variableDeclarations.getTypeExpression().toString().equals("Laqamhsu"))
.findFirst();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class BinaryStdhToWebVisitor extends JavaIsoVisitor<ExecutionContext> {
private static final String STDH_GETTER_NAME = "getOmStandardRequestHeader";

private static final JavaTemplate STDH_SETTER = JavaTemplate.builder(
STR."#{}.\{STDH_GETTER_NAME}().#{}(#{});"
"#{}.getOmStandardRequestHeader().#{}(#{});"
).build();

@Override
Expand All @@ -30,7 +30,7 @@ public J.MethodInvocation visitMethodInvocation(J.MethodInvocation method, Execu
return method;
}

String argument = method.getArguments().getFirst().printTrimmed(getCursor());
String argument = method.getArguments().get(0).printTrimmed(getCursor());

doAfterVisit(new BinaryDtoToWebVisitor(instanceName));
return STDH_SETTER.apply(updateCursor(method),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public J.ClassDeclaration visitClassDeclaration(J.ClassDeclaration classDecl, Ex
.map(J.VariableDeclarations.class::cast)
.anyMatch(variableDeclarations -> variableDeclarations
.getVariables()
.getFirst()
.get(0)
.getSimpleName()
.equals(objectFactoryName));

Expand Down

0 comments on commit ed5ff81

Please sign in to comment.