
resources.report.rules.findbugs.NS_NON_SHORT_CIRCUIT.html Maven / Gradle / Ivy
NS: Questionable use of non-short-circuit logic (NS_NON_SHORT_CIRCUIT)
NS: Questionable use of non-short-circuit logic (NS_NON_SHORT_CIRCUIT)
This code seems to be using non-short-circuit logic (e.g., &
or |)
rather than short-circuit logic (&& or ||).
Non-short-circuit logic causes both sides of the expression
to be evaluated even when the result can be inferred from
knowing the left-hand side. This can be less efficient and
can result in errors if the left-hand side guards cases
when evaluating the right-hand side can generate an error.
See the Java
Language Specification for details
© 2015 - 2025 Weber Informatics LLC | Privacy Policy