forked from phoedos/pmd
make the description simple
This commit is contained in:
@ -1289,8 +1289,7 @@ public void foo() throws Exception {
|
|||||||
<description>
|
<description>
|
||||||
<![CDATA[
|
<![CDATA[
|
||||||
Look for ternary operators with the form `condition ? literalBoolean : foo`
|
Look for ternary operators with the form `condition ? literalBoolean : foo`
|
||||||
or `condition ? foo : literalBoolean`
|
or `condition ? foo : literalBoolean`.
|
||||||
or `condition ? literalBoolean1 : literalBoolean2`.
|
|
||||||
|
|
||||||
These expressions can be simplified as follows:
|
These expressions can be simplified as follows:
|
||||||
* `condition ? true : expr` simplifies to `condition || expr`
|
* `condition ? true : expr` simplifies to `condition || expr`
|
||||||
|
Reference in New Issue
Block a user