Skip to content

Commit

Permalink
refactor: Spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
jkschneider and TeamModerne committed Sep 26, 2023
1 parent c978469 commit 6ed13dc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/openrewrite/analysis/controlflow/Guard.java
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ private static Optional<J.ControlParentheses<?>> getControlParenthesesFromParent
J.ControlParentheses<?> parentControlParentheses;
if (parent instanceof J.If) {
parentControlParentheses = ((J.If) parent).getIfCondition();
} else if (parent instanceof J.WhileLoop){
} else if (parent instanceof J.WhileLoop) {
parentControlParentheses = ((J.WhileLoop) parent).getCondition();
} else if (parent instanceof J.DoWhileLoop){
} else if (parent instanceof J.DoWhileLoop) {
parentControlParentheses = ((J.DoWhileLoop) parent).getWhileCondition();
} else {
parentControlParentheses = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public J visitIdentifier(J.Identifier ident, List<VarAccess> varAccesses) {
class VarAccessBase extends Top.Base implements VarAccess {
private final Cursor cursor;
private final J.Identifier identifier;
@Getter(lazy = true, onMethod = @__(@Override))
@Getter(lazy = true, onMethod = @__(@Override))
private final Variable variable = computeVariable(this, cursor, identifier);

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public Validation<TraitErrors, Parameter> viewOf(Cursor c) {
if (c.getValue() instanceof J.VariableDeclarations.NamedVariable) {
Cursor variableDeclarationsCursor = c.getParentTreeCursor();
Cursor methodDeclarationCursor = variableDeclarationsCursor.getParentTreeCursor();
return Method.viewOf(methodDeclarationCursor).map(callable -> new ParameterBase(
return Method.viewOf(methodDeclarationCursor).map(callable -> new ParameterBase(
c,
c.getValue(),
variableDeclarationsCursor.getValue(),
Expand Down

0 comments on commit 6ed13dc

Please sign in to comment.