git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6221 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Xavier Le Vourch committed 2008-06-17 21:25:58 +00:00
1 parent 308ef3df31
commit 3a538b9088
4 files changed
+12 -12

No files matched your search

@@ -61,7 +61,7 @@ public class Foo {
</test-code>
<test-code>
<description><![CDATA[
usefull parentheses, arithmetic
useful parentheses, arithmetic
]]></description>
<expected-problems>0</expected-problems>
<code><![CDATA[
@@ -74,7 +74,7 @@ public class Foo {
</test-code>
<test-code>
<description><![CDATA[
usefull parentheses, logic
useful parentheses, logic
]]></description>
<expected-problems>0</expected-problems>
<code><![CDATA[
@@ -33,23 +33,23 @@ public abstract class ShouldBeAbstract
</test-code>
<test-code>
<description><![CDATA[
A method with just a return statement, but a meaningfull one.
A method with just a return statement, but a meaningful one.
]]></description>
<expected-problems>0</expected-problems>
<code><![CDATA[
public abstract class ShouldBeAbstract
{
public int isUseFull(int i)
public int isUseFul(int i)
{
return (i +4 ) * 12;
}
public int anotherUseFull(int i)
public int anotherUseful(int i)
{
return i++;
}
public int anotherUseFull(int i)
public int anotherUseful(int i)
{
return i;
}
@@ -64,16 +64,16 @@ Other valid methods.
<code><![CDATA[
public abstract class ShouldBeAbstract
{
public native int isUseFull();
public native int isUseful();
int i;
public int anotherUseFull() {
public int anotherUseful() {
i = i + 1;
return i;
}
public String anotherUseFull(int j) {
public String anotherUseful(int j) {
i = j;
return null;
}
+2 -2
View File
@@ -50,9 +50,9 @@ int total;
<part id="rules">
<title>Rules</title>
<faq id="how-usefull">
<faq id="how-useful">
<question>
How usefull are the rules?
How useful are the rules?
</question>
<answer>
<p>Have this clear: having a projects with no pmd violations does not mean at all, I repeat,
+1 -1
View File
@@ -7,7 +7,7 @@
</properties>
<section name="Informations for PMD developer">
<p>Some piece of information handy to PMD developers. Clearly not everything, but some usefull bits :)</p>
<p>Some piece of information handy to PMD developers. Clearly not everything, but some useful bits :)</p>
<subsection name="PMD properties">
<p>The new PMD properties subsystem is intended to bring some rigor and expanded functionality to the wild world of rule properies. It defines a value type template that can be used by IDE plugins to enumerate the properties specified by individual rules and provides validation and serialization services for multi-value properties. It uses custom serialization routines to generate human-readable values that can be edited in the XML files</p>