diff --git a/src/main/java/org/openrewrite/staticanalysis/InstanceOfPatternMatch.java b/src/main/java/org/openrewrite/staticanalysis/InstanceOfPatternMatch.java index bff256afa..5975d072b 100644 --- a/src/main/java/org/openrewrite/staticanalysis/InstanceOfPatternMatch.java +++ b/src/main/java/org/openrewrite/staticanalysis/InstanceOfPatternMatch.java @@ -300,9 +300,9 @@ private String patternVariableName(J.InstanceOf instanceOf, Cursor cursor) { VariableNameStrategy strategy; if (root instanceof J.If) { VariableAndTypeTree variableData = variablesToDelete.get(instanceOf); - strategy = variableData != null - ? VariableNameStrategy.exact(variableData.getVariable().getSimpleName()) - : VariableNameStrategy.normal(contextScopes.get(instanceOf)); + strategy = variableData != null ? + VariableNameStrategy.exact(variableData.getVariable().getSimpleName()) : + VariableNameStrategy.normal(contextScopes.get(instanceOf)); } else { strategy = VariableNameStrategy.short_(); }