Minor fixes for rest compile and UT errors in test/resources/../javadoc folder #388

This commit is contained in:
alexkravin 2014-12-09 14:36:47 +04:00 committed by Roman Ivanov
parent 8d43331932
commit 53ccf7dad0
9 changed files with 21 additions and 19 deletions

View File

@ -33,29 +33,29 @@ public class NonEmptyAtclauseDescriptionCheckTest
final DefaultConfiguration checkConfig =
createCheckConfig(NonEmptyAtclauseDescriptionCheck.class);
final String[] expected = {
//this is a case with description that is sequences of spaces
"25: At-clause should have a non-empty description.",
//this is a case with description that is sequences of spaces
"26: At-clause should have a non-empty description.",
//this is a case with description that is sequences of spaces
"27: At-clause should have a non-empty description.",
//this is a case with description that is sequences of spaces
"36: At-clause should have a non-empty description.",
"28: At-clause should have a non-empty description.",
//this is a case with description that is sequences of spaces
"37: At-clause should have a non-empty description.",
//this is a case with description that is sequences of spaces
"38: At-clause should have a non-empty description.",
"74: At-clause should have a non-empty description.",
//this is a case with description that is sequences of spaces
"39: At-clause should have a non-empty description.",
"75: At-clause should have a non-empty description.",
"76: At-clause should have a non-empty description.",
"77: At-clause should have a non-empty description.",
"78: At-clause should have a non-empty description.",
"79: At-clause should have a non-empty description.",
"88: At-clause should have a non-empty description.",
"80: At-clause should have a non-empty description.",
"89: At-clause should have a non-empty description.",
"90: At-clause should have a non-empty description.",
"91: At-clause should have a non-empty description.",
"92: At-clause should have a non-empty description.",
"93: At-clause should have a non-empty description.",
};
verify(checkConfig, getPath("javadoc/InputNonEmptyAtclauseDescriptionCheck.java"), expected);
}

View File

@ -31,8 +31,8 @@ public class SingleLineJavadocCheckTest extends BaseCheckTestSupport
final DefaultConfiguration checkConfig =
createCheckConfig(SingleLineJavadocCheck.class);
final String[] expected = {
"3: Single-line Javadoc comment should be multi-line.",
"11: Single-line Javadoc comment should be multi-line.",
"4: Single-line Javadoc comment should be multi-line.",
"12: Single-line Javadoc comment should be multi-line.",
};
verify(checkConfig, getPath("javadoc/InputSingleLineJavadocCheck.java"), expected);
}

View File

@ -2,7 +2,7 @@ package com.puppycrawl.tools.checkstyle.javadoc;
import com.google.common.base.Function;
class Foo {
class Foo5 {
/**
* This class implements the GWT serialization of {@link HashMultimap}.

View File

@ -277,7 +277,7 @@ class WithAnnotations implements Serializable
* @since Some javadoc.
* @deprecated Some javadoc.
*/
enum Foo {}
enum Foo3 {}
/**
* Some javadoc.
@ -288,4 +288,4 @@ enum Foo {}
* @since Some javadoc.
* @deprecated Some javadoc.
*/
interface FooIn {}
interface FooIn3 {}

View File

@ -277,7 +277,7 @@ class WithAnnotations implements Serializable
* @see Some javadoc. //warn
* @author max //warn
*/
enum Foo {}
enum Foo4 {}
/**
* Some javadoc.

View File

@ -1,6 +1,6 @@
package com.puppycrawl.tools.checkstyle.javadoc;
import InputCorrectJavaDocParagraphCheck.InnerInputCorrectJavaDocParagraphCheck;
/**
* Some Javadoc.
@ -8,7 +8,7 @@ import InputCorrectJavaDocParagraphCheck.InnerInputCorrectJavaDocParagraphCheck;
* /^ WARN/ Some Javadoc.<p>
*
*/
class InputCorrectJavaDocParagraphCheck {
class InputInCorrectJavaDocParagraphCheck {
/**
* Some Javadoc.<P> //WARN

View File

@ -4,7 +4,7 @@ package com.puppycrawl.tools.checkstyle.javadoc;
* A {@code Foo. Foo}
* is a simple Javadoc. Some javadoc.
*/
class InputCorrectJavaDocParagraphCheck {
class InputInCorrectSummaryJavaDocCheck {
/**
* As of JDK 1.1, replaced by {@link #setBounds(int,int,int,int)}

View File

@ -1,3 +1,4 @@
package com.puppycrawl.tools.checkstyle.javadoc;
class InputNonEmptyAtclauseDescriptionCheck
{
/**

View File

@ -1,7 +1,8 @@
package com.puppycrawl.tools.checkstyle.javadoc;
class Foo{
/** As of JDK 1.1, replaced by {@link #setBounds(int,int,int,int)} */
void foo1() {}
void foo() {}
/**
* As of JDK 1.1, replaced by {@link #setBounds(int,int,int,int)}
@ -9,18 +10,18 @@ class Foo{
void foo1() {}
/** @throws CheckstyleException if an error occurs */
void foo1() {}
void foo2() {}
/**
* @throws CheckstyleException if an error occurs
*/
void foo1() {}
void foo3() {}
/** An especially short bit of Javadoc. */
void foo1() {}
void foo4() {}
/**
* An especially short bit of Javadoc.
*/
void foo1() {}
void foo5() {}
}