forked from checkstyle/checkstyle
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue checkstyle#4586: Moved resources for the JavadocPackage check test
- Loading branch information
Showing
11 changed files
with
171 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 0 additions & 6 deletions
6
src/test/resources/com/puppycrawl/tools/checkstyle/checks/javadoc/InputBadCls.java
This file was deleted.
Oops, something went wrong.
6 changes: 6 additions & 0 deletions
6
.../puppycrawl/tools/checkstyle/checks/javadoc/javadocpackage/InputJavadocPackageBadCls.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package com.puppycrawl.tools.checkstyle.checks.javadoc.javadocpackage; | ||
|
||
class InputJavadocPackageBadCls { | ||
class X extends Exception {} | ||
void m() throws X {} | ||
} |
9 changes: 9 additions & 0 deletions
9
.../puppycrawl/tools/checkstyle/checks/javadoc/javadocpackage/InputJavadocPackageBadTag.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package com.puppycrawl.tools.checkstyle.checks.javadoc.javadocpackage; | ||
|
||
/** | ||
* The following is a bad tag. | ||
* @mytag Hello | ||
*/ | ||
public class InputJavadocPackageBadTag | ||
{ | ||
} |
120 changes: 120 additions & 0 deletions
120
...ppycrawl/tools/checkstyle/checks/javadoc/javadocpackage/InputJavadocPackageNoJavadoc.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
package com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocPackage; | ||
|
||
public class InputJavadocPackageNoJavadoc //comment test | ||
{ | ||
public int i1; | ||
protected int i2; | ||
int i3; | ||
private int i4; | ||
|
||
public void foo1() {} | ||
protected void foo2() {} | ||
void foo3() {} | ||
private void foo4() {} | ||
|
||
protected class ProtectedInner { | ||
public int i1; | ||
protected int i2; | ||
int i3; | ||
private int i4; | ||
|
||
public void foo1() {} | ||
protected void foo2() {} | ||
void foo3() {} | ||
private void foo4() {} | ||
} | ||
|
||
class PackageInner { | ||
public int i1; | ||
protected int i2; | ||
int i3; | ||
private int i4; | ||
|
||
public void foo1() {} | ||
protected void foo2() {} | ||
void foo3() {} | ||
private void foo4() {} | ||
} | ||
|
||
private class PrivateInner { | ||
public int i1; | ||
protected int i2; | ||
int i3; | ||
private int i4; | ||
|
||
public void foo1() {} | ||
protected void foo2() {} | ||
void foo3() {} | ||
private void foo4() {} | ||
} | ||
} | ||
|
||
class PackageClass { | ||
public int i1; | ||
protected int i2; | ||
int i3; | ||
private int i4; | ||
|
||
public void foo1() {} | ||
protected void foo2() {} | ||
void foo3() {} | ||
private void foo4() {} | ||
|
||
public class PublicInner { | ||
public int i1; | ||
protected int i2; | ||
int i3; | ||
private int i4; | ||
|
||
public void foo1() {} | ||
protected void foo2() {} | ||
void foo3() {} | ||
private void foo4() {} | ||
} | ||
|
||
protected class ProtectedInner { | ||
public int i1; | ||
protected int i2; | ||
int i3; | ||
private int i4; | ||
|
||
public void foo1() {} | ||
protected void foo2() {} | ||
void foo3() {} | ||
private void foo4() {} | ||
} | ||
|
||
class PackageInner { | ||
public int i1; | ||
protected int i2; | ||
int i3; | ||
private int i4; | ||
|
||
public void foo1() {} | ||
protected void foo2() {} | ||
void foo3() {} | ||
private void foo4() {} | ||
} | ||
|
||
private class PrivateInner { | ||
public int i1; | ||
protected int i2; | ||
int i3; | ||
private int i4; | ||
|
||
public void foo1() {} | ||
protected void foo2() {} | ||
void foo3() {} | ||
private void foo4() {} | ||
} | ||
|
||
class IgnoredName { | ||
// ignore by name | ||
private int logger; | ||
// no warning, 'serialVersionUID' fields do not require Javadoc | ||
private static final long serialVersionUID = 0; | ||
} | ||
|
||
/**/ | ||
void methodWithTwoStarComment() {} | ||
} |
12 changes: 12 additions & 0 deletions
12
...om/puppycrawl/tools/checkstyle/checks/javadoc/javadocpackage/annotation/package-info.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/** | ||
* This is a valid package documentation. <--- See the period after the | ||
* first sentence. | ||
* | ||
* <p> | ||
* hurray for javadocs in html | ||
* <br> | ||
* with a legacy non-closed br element | ||
* </p> | ||
*/ | ||
@Deprecated | ||
package com.puppycrawl.tools.checkstyle.checks.javadoc.javadocpackage.annotation; |
5 changes: 5 additions & 0 deletions
5
...ls/checkstyle/checks/javadoc/javadocpackage/bothfiles/InputJavadocPackageBothIgnored.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package com.puppycrawl.tools.checkstyle.checks.javadoc.javapackage.bothfiles; | ||
|
||
class InputJavadocPackageBothIgnored | ||
{ | ||
} |
1 change: 1 addition & 0 deletions
1
...com/puppycrawl/tools/checkstyle/checks/javadoc/javadocpackage/bothfiles/package-info.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
package com.puppycrawl.tools.checkstyle.checks.javadoc.bothfiles; |
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
.../checks/javadoc/pkghtml/InputIgnored.java → ...ghtml/InputJavadocPackageHtmlIgnored.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
package com.puppycrawl.tools.checkstyle.checks.javadoc.pkghtml; | ||
|
||
class InputIgnored | ||
class InputJavadocPackageHtmlIgnored | ||
{ | ||
} |
1 change: 1 addition & 0 deletions
1
...ources/com/puppycrawl/tools/checkstyle/checks/javadoc/javadocpackage/pkghtml/package.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Ignored |