forked from phoedos/pmd
Tweaked examples
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4116 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
@@ -311,11 +311,11 @@ See http://www.javaspecialists.co.za/archive/newsletter.do?issue=042&locale=
|
||||
<example>
|
||||
<![CDATA[
|
||||
public class Foo {
|
||||
public static void main(String[] args) {
|
||||
boolean b = true;
|
||||
boolean c = false;
|
||||
c = !b;
|
||||
}
|
||||
public void main(bar) {
|
||||
boolean b = true;
|
||||
b = !b; // slow
|
||||
b ^= true; // fast
|
||||
}
|
||||
}
|
||||
]]>
|
||||
</example>
|
||||
|
Reference in New Issue
Block a user