diff --git a/analyzer-comments/java/secrets/avoid_conditional_logic.md b/analyzer-comments/java/secrets/avoid_conditional_logic.md new file mode 100644 index 000000000..7cf7ab18e --- /dev/null +++ b/analyzer-comments/java/secrets/avoid_conditional_logic.md @@ -0,0 +1,3 @@ +# avoid conditional logic + +Consider returning directly the expected operator instead of using `if`-statement(s) and/or ternary expressions. diff --git a/analyzer-comments/java/secrets/prefer_bitwise_not.md b/analyzer-comments/java/secrets/prefer_bitwise_not.md new file mode 100644 index 000000000..713b2c535 --- /dev/null +++ b/analyzer-comments/java/secrets/prefer_bitwise_not.md @@ -0,0 +1,3 @@ +# prefer bitwise not + +Consider utilizing the Bitwise NOT `~` operator to achieve a more concise solution. diff --git a/analyzer-comments/java/secrets/use_bitwise_operator.md b/analyzer-comments/java/secrets/use_bitwise_operator.md new file mode 100644 index 000000000..39611e2a2 --- /dev/null +++ b/analyzer-comments/java/secrets/use_bitwise_operator.md @@ -0,0 +1,4 @@ +# use bitwise operator + +The `%s` method should use the operator `%s`. +As this concept exercise intends to teach how Bitwise operators work