forked from phoedos/pmd
Further Javadoc doclint fixes
References #1516 [build] doclint error during build
This commit is contained in:
@ -15,7 +15,7 @@ import org.junit.Test;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author Romain Pelisse <belaran@gmail.com>
|
* @author Romain Pelisse <belaran@gmail.com>
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class CPDTaskTest {
|
public class CPDTaskTest {
|
||||||
|
@ -21,7 +21,7 @@ import org.w3c.dom.NodeList;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Philippe T'Seyen
|
* @author Philippe T'Seyen
|
||||||
* @author Romain Pelisse <belaran@gmail.com>
|
* @author Romain Pelisse <belaran@gmail.com>
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class XMLRendererTest {
|
public class XMLRendererTest {
|
||||||
|
@ -55,31 +55,31 @@ import junit.framework.AssertionFailedError;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* This class tests the Statistical Rules in PMD.
|
* This class tests the Statistical Rules in PMD.
|
||||||
* <p/>
|
*
|
||||||
* The idea is, that we fill up 999 datapoints into the Stat Rule, and then
|
* <p>The idea is, that we fill up 999 datapoints into the Stat Rule, and then
|
||||||
* throw random parameters at it.
|
* throw random parameters at it.</p>
|
||||||
* <p/>
|
*
|
||||||
* The three parameters which are checked are: sigma - # Sigmas over the mean.
|
* <p>The three parameters which are checked are: sigma - # Sigmas over the mean.
|
||||||
* topscore - Only the top 5 or so items. minimum - Only things of score 10 or
|
* topscore - Only the top 5 or so items. minimum - Only things of score 10 or
|
||||||
* better
|
* better</p>
|
||||||
* <p/>
|
*
|
||||||
* When more than one parameter is lumped together, then we expect the one which
|
* <p>When more than one parameter is lumped together, then we expect the one which
|
||||||
* would return the fewest to determine what gets sent back.
|
* would return the fewest to determine what gets sent back.</p>
|
||||||
* <p/>
|
*
|
||||||
* So, we throw each collection of parameters, where each one is a different
|
* <p>So, we throw each collection of parameters, where each one is a different
|
||||||
* order into the system. We check the results off of what the smallest value
|
* order into the system. We check the results off of what the smallest value
|
||||||
* should be.
|
* should be.</p>
|
||||||
* <p/>
|
*
|
||||||
* If you are going to work with StatisticalRule any, please bump the
|
* <p>If you are going to work with StatisticalRule any, please bump the
|
||||||
* "NUM_TESTS" number up to something like 128. That way you are more likely to
|
* "NUM_TESTS" number up to something like 128. That way you are more likely to
|
||||||
* identify problems. It is set low now to make building and running tests
|
* identify problems. It is set low now to make building and running tests
|
||||||
* easier (when we aren't touching the file.)
|
* easier (when we aren't touching the file.)</p>
|
||||||
* <p/>
|
*
|
||||||
* Note also, that when verifying the Sigma, I wasn't quite able to determine
|
* <p>Note also, that when verifying the Sigma, I wasn't quite able to determine
|
||||||
* how many results it would return (it would vary from -2 to 2 of what I
|
* how many results it would return (it would vary from -2 to 2 of what I
|
||||||
* expected.) That is what the delta parameter on the verify method takes. If
|
* expected.) That is what the delta parameter on the verify method takes. If
|
||||||
* you can figure it out exactly, (without stealing code from the StatRule) then
|
* you can figure it out exactly, (without stealing code from the StatRule) then
|
||||||
* feel free to change it and tighten the deltas.
|
* feel free to change it and tighten the deltas.</p>
|
||||||
*/
|
*/
|
||||||
public class StatisticalRuleTest {
|
public class StatisticalRuleTest {
|
||||||
|
|
||||||
@ -226,9 +226,9 @@ public class StatisticalRuleTest {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* This returns the expected number of reports.
|
* This returns the expected number of reports.
|
||||||
* <p/>
|
*
|
||||||
* If the Minimum comes in at 521.569 then we expect 522, 523, ... 999 will
|
* <p>If the Minimum comes in at 521.569 then we expect 522, 523, ... 999 will
|
||||||
* pass.
|
* pass.</p>
|
||||||
*/
|
*/
|
||||||
public int expectedMinimum(double minimum) {
|
public int expectedMinimum(double minimum) {
|
||||||
Double d = Double.valueOf(minimum);
|
Double d = Double.valueOf(minimum);
|
||||||
|
@ -15,7 +15,7 @@ import org.junit.Test;
|
|||||||
import net.sourceforge.pmd.util.FileUtil;
|
import net.sourceforge.pmd.util.FileUtil;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Romain Pelisse <belaran@gmail.com>
|
* @author Romain Pelisse <belaran@gmail.com>
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class CLITest extends BaseCLITest {
|
public class CLITest extends BaseCLITest {
|
||||||
|
@ -21,10 +21,7 @@ public class ParserCornersTest extends ParserTst {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* #1107 PMD 5.0.4 couldn't parse call of parent outer java class method
|
* #1107 PMD 5.0.4 couldn't parse call of parent outer java class method
|
||||||
* from inner class
|
* from inner class.
|
||||||
*
|
|
||||||
* @throws Exception
|
|
||||||
* any error
|
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void testInnerOuterClass() {
|
public void testInnerOuterClass() {
|
||||||
|
@ -13,7 +13,7 @@ import org.junit.Test;
|
|||||||
import net.sourceforge.pmd.util.FileUtil;
|
import net.sourceforge.pmd.util.FileUtil;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Romain Pelisse <belaran@gmail.com>
|
* @author Romain Pelisse <belaran@gmail.com>
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class CLITest extends BaseCLITest {
|
public class CLITest extends BaseCLITest {
|
||||||
|
@ -143,7 +143,7 @@ public class JspDocStyleTest extends AbstractJspNodesTst {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test parsing of HTML <script> element.
|
* Test parsing of HTML <script> element.
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void testHtmlScript() {
|
public void testHtmlScript() {
|
||||||
@ -154,7 +154,7 @@ public class JspDocStyleTest extends AbstractJspNodesTst {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test parsing of HTML <script src="x"/> element. It might not be valid
|
* Test parsing of HTML <script src="x"/> element. It might not be valid
|
||||||
* html but it is likely to appear in .JSP files.
|
* html but it is likely to appear in .JSP files.
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
@ -167,7 +167,7 @@ public class JspDocStyleTest extends AbstractJspNodesTst {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test parsing of HTML <script> element.
|
* Test parsing of HTML <script> element.
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void testHtmlScriptWithAttribute() {
|
public void testHtmlScriptWithAttribute() {
|
||||||
@ -193,7 +193,7 @@ public class JspDocStyleTest extends AbstractJspNodesTst {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test parsing of HTML <script> element.
|
* Test parsing of HTML <script> element.
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void testInlineCss() {
|
public void testInlineCss() {
|
||||||
@ -298,7 +298,7 @@ public class JspDocStyleTest extends AbstractJspNodesTst {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A dangling unopened ( just </closed> ) tag should not influence the
|
* A dangling unopened ( just </closed> ) tag should not influence the
|
||||||
* parsing.
|
* parsing.
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
@ -326,7 +326,7 @@ public class JspDocStyleTest extends AbstractJspNodesTst {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test parsing of HTML <script> element.
|
* Test parsing of HTML <script> element.
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void textAfterOpenAndClosedTag() {
|
public void textAfterOpenAndClosedTag() {
|
||||||
@ -397,7 +397,7 @@ public class JspDocStyleTest extends AbstractJspNodesTst {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* tests whether parse correctly detects presence of JSP expression <%= %>
|
* tests whether parse correctly detects presence of JSP expression <%= %>
|
||||||
* within an non-quoted attribute value
|
* within an non-quoted attribute value
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
@ -458,7 +458,7 @@ public class JspDocStyleTest extends AbstractJspNodesTst {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* tests whether parse does not fail in the presence of unclosed JSP
|
* tests whether parse does not fail in the presence of unclosed JSP
|
||||||
* expression <%= within an non-quoted attribute value
|
* expression <%= within an non-quoted attribute value
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void noQuoteAttrWithMalformedJspExpression() {
|
public void noQuoteAttrWithMalformedJspExpression() {
|
||||||
@ -469,7 +469,7 @@ public class JspDocStyleTest extends AbstractJspNodesTst {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* test a no quote attribute value which contains a scriptlet <% %> within
|
* test a no quote attribute value which contains a scriptlet <% %> within
|
||||||
* its value
|
* its value
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
@ -484,7 +484,7 @@ public class JspDocStyleTest extends AbstractJspNodesTst {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* test a no quote attribute value can contain a tag (e.g.
|
* test a no quote attribute value can contain a tag (e.g.
|
||||||
* attr=<bean:write property="value" />)
|
* attr=<bean:write property="value" />)
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
@ -499,7 +499,7 @@ public class JspDocStyleTest extends AbstractJspNodesTst {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* test a quote attribute value can contain a tag (e.g.
|
* test a quote attribute value can contain a tag (e.g.
|
||||||
* attr="<bean:write property="value" />" ) Not sure if it's legal JSP code
|
* attr="<bean:write property="value" />" ) Not sure if it's legal JSP code
|
||||||
* but most JSP engine accept and properly treat this value at runtime
|
* but most JSP engine accept and properly treat this value at runtime
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
@ -586,7 +586,7 @@ public class JspDocStyleTest extends AbstractJspNodesTst {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <html> <a1> <a2/> <b/> </a1> </html>
|
* <html> <a1> <a2/> <b/> </a1> </html>
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void nestedEmptyTags() {
|
public void nestedEmptyTags() {
|
||||||
@ -617,7 +617,7 @@ public class JspDocStyleTest extends AbstractJspNodesTst {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <html> <a1> <a2> <a3> </a2> </a1> <b/> <a4/> </html>
|
* <html> <a1> <a2> <a3> </a2> </a1> <b/> <a4/> </html>
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void nestedMultipleTags() {
|
public void nestedMultipleTags() {
|
||||||
@ -658,8 +658,8 @@ public class JspDocStyleTest extends AbstractJspNodesTst {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* will test <x> <a> <b> <b> </x> </a> </x> . Here x is the first tag to be
|
* will test <x> <a> <b> <b> </x> </a> </x> . Here x is the first tag to be
|
||||||
* closed thus rendering the next close of a (</a>) to be disregarded.
|
* closed thus rendering the next close of a (</a>) to be disregarded.
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void unclosedParentTagClosedBeforeChild() {
|
public void unclosedParentTagClosedBeforeChild() {
|
||||||
@ -689,10 +689,10 @@ public class JspDocStyleTest extends AbstractJspNodesTst {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <x> <a> <b> <b> </z> </a> </x> An unmatched closing of 'z' appears
|
* <x> <a> <b> <b> </z> </a> </x> An unmatched closing of 'z' appears
|
||||||
* randomly in the document. This should be disregarded and structure of
|
* randomly in the document. This should be disregarded and structure of
|
||||||
* children and parents should not be influenced. in other words </a> should
|
* children and parents should not be influenced. in other words </a> should
|
||||||
* close the first <a> tag , </x> should close the first <x>, etc.
|
* close the first <a> tag , </x> should close the first <x>, etc.
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void unmatchedTagDoesNotInfluenceStructure() {
|
public void unmatchedTagDoesNotInfluenceStructure() {
|
||||||
@ -722,9 +722,9 @@ public class JspDocStyleTest extends AbstractJspNodesTst {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <a> <x> <a> <b> <b> </z> </a> </x> An unmatched closing of 'z' appears
|
* <a> <x> <a> <b> <b> </z> </a> </x> An unmatched closing of 'z' appears
|
||||||
* randomly in the document. This should be disregarded and structure of
|
* randomly in the document. This should be disregarded and structure of
|
||||||
* children and parents should not be influenced. Also un unclosed <a> tag
|
* children and parents should not be influenced. Also un unclosed <a> tag
|
||||||
* appears at the start of the document
|
* appears at the start of the document
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
@ -760,7 +760,7 @@ public class JspDocStyleTest extends AbstractJspNodesTst {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@link #TEST_UNCLOSED_END_OF_DOC} <tag:x> <tag:y> Tests whether parser
|
* {@link #TEST_UNCLOSED_END_OF_DOC} <tag:x> <tag:y> Tests whether parser
|
||||||
* breaks on no closed tags at all
|
* breaks on no closed tags at all
|
||||||
*/
|
*/
|
||||||
// This is yet to be improved. If a closing tag does not
|
// This is yet to be improved. If a closing tag does not
|
||||||
|
@ -22,7 +22,7 @@ public class OpenTagRegisterTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <a> <b> </a>
|
* <a> <b> </a>
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void testSimpleNesting() {
|
public void testSimpleNesting() {
|
||||||
@ -38,7 +38,7 @@ public class OpenTagRegisterTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <a> <b> <b> </a>
|
* <a> <b> <b> </a>
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void doubleNesting() {
|
public void doubleNesting() {
|
||||||
@ -57,7 +57,7 @@ public class OpenTagRegisterTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <x> <a> <b> <b> </x> </a> </x>
|
* <x> <a> <b> <b> </x> </a> </x>
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void unopenedTags() {
|
public void unopenedTags() {
|
||||||
@ -82,7 +82,7 @@ public class OpenTagRegisterTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <x> <a> <b> <b> </z> </a> </x>
|
* <x> <a> <b> <b> </z> </a> </x>
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
@ -109,7 +109,7 @@ public class OpenTagRegisterTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <a> <x> <a> <b> <b> </z> </a> </x>
|
* <a> <x> <a> <b> <b> </z> </a> </x>
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void openedIsolatedTag() {
|
public void openedIsolatedTag() {
|
||||||
|
Reference in New Issue
Block a user