diff --git a/analyzer-comments/java/leap/avoid_conditional_logic.md b/analyzer-comments/java/leap/avoid_conditional_logic.md deleted file mode 100644 index c827be6e6..000000000 --- a/analyzer-comments/java/leap/avoid_conditional_logic.md +++ /dev/null @@ -1,3 +0,0 @@ -# avoid conditional logic - -Consider converting the `if`-statement(s) and/or ternary expressions into a single expression using the `&&` and `||` operators. diff --git a/analyzer-comments/java/leap/avoid_if_statements.md b/analyzer-comments/java/leap/avoid_if_statements.md new file mode 100644 index 000000000..405ccf56b --- /dev/null +++ b/analyzer-comments/java/leap/avoid_if_statements.md @@ -0,0 +1,3 @@ +# avoid `if` statements + +Consider converting the `if` statement(s) into a single expression using logical operators (`&&`, `||`) or ternary operators. diff --git a/analyzer-comments/java/leap/avoid_multiple_ternary.md b/analyzer-comments/java/leap/avoid_multiple_ternary.md new file mode 100644 index 000000000..a02c9e786 --- /dev/null +++ b/analyzer-comments/java/leap/avoid_multiple_ternary.md @@ -0,0 +1,3 @@ +# avoid multiple ternary + +Consider using a single ternary operator for a simpler solution.