From 7e7b28c003c70d98e71188588f6dd04eae824cca Mon Sep 17 00:00:00 2001 From: Nate Danner Date: Thu, 15 Aug 2024 20:09:51 +0000 Subject: [PATCH] refactor: Common static analysis issues Use this link to re-run the recipe: https://app.moderne.io/recipes/org.openrewrite.staticanalysis.CommonStaticAnalysis?organizationId=TW9kZXJuZQ%3D%3D Co-authored-by: Moderne --- src/main/java/com/yourorg/SimplifyTernary.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/yourorg/SimplifyTernary.java b/src/main/java/com/yourorg/SimplifyTernary.java index 2b91676..e12a301 100644 --- a/src/main/java/com/yourorg/SimplifyTernary.java +++ b/src/main/java/com/yourorg/SimplifyTernary.java @@ -57,7 +57,7 @@ boolean before(boolean expr) { @AfterTemplate boolean after(boolean expr) { // We wrap the expression in parentheses as the input expression might be a complex expression - return !(expr); + return !expr; } } }