forked from checkstyle/checkstyle
-
Notifications
You must be signed in to change notification settings - Fork 0
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 JavadocType check test
- Loading branch information
Showing
16 changed files
with
921 additions
and
56 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
9 changes: 0 additions & 9 deletions
9
src/test/resources/com/puppycrawl/tools/checkstyle/checks/javadoc/InputBadTag.java
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
...t/resources/com/puppycrawl/tools/checkstyle/checks/javadoc/InputNoJavadocOnInterface.java
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
...ces/com/puppycrawl/tools/checkstyle/checks/javadoc/InputUnusedParamInJavadocForClass.java
This file was deleted.
Oops, something went wrong.
9 changes: 9 additions & 0 deletions
9
...es/com/puppycrawl/tools/checkstyle/checks/javadoc/javadoctype/InputJavadocTypeBadTag.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.javadoctype; | ||
|
||
/** | ||
* The following is a bad tag. | ||
* @mytag Hello | ||
*/ | ||
public class InputJavadocTypeBadTag | ||
{ | ||
} |
79 changes: 79 additions & 0 deletions
79
...ces/com/puppycrawl/tools/checkstyle/checks/javadoc/javadoctype/InputJavadocTypeInner.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,79 @@ | ||
//////////////////////////////////////////////////////////////////////////////// | ||
// Test case file for checkstyle. | ||
// Created: 2001 | ||
//////////////////////////////////////////////////////////////////////////////// | ||
package com.puppycrawl.tools.checkstyle.checks.javadoc.javadoctype; | ||
|
||
/** | ||
* Tests having inner types | ||
* @author Oliver Burn | ||
**/ | ||
class InputJavadocTypeInner | ||
{ | ||
// Ignore - two errors | ||
class InnerInner2 | ||
{ | ||
// Ignore | ||
public int fData; | ||
} | ||
|
||
// Ignore - 2 errors | ||
interface InnerInterface2 | ||
{ | ||
// Ignore - should be all upper case | ||
String data = "zxzc"; | ||
|
||
// Ignore | ||
class InnerInterfaceInnerClass | ||
{ | ||
// Ignore - need Javadoc and made private | ||
public int rData; | ||
|
||
/** needs to be made private unless allowProtected. */ | ||
protected int protectedVariable; | ||
|
||
/** needs to be made private unless allowPackage. */ | ||
int packageVariable; | ||
} | ||
} | ||
|
||
/** demonstrate bug in handling static final **/ | ||
protected static Object sWeird = new Object(); | ||
/** demonstrate bug in handling static final **/ | ||
static Object sWeird2 = new Object(); | ||
|
||
/** demonstrate bug in local final variable */ | ||
public interface Inter | ||
{ | ||
} | ||
|
||
public static void main() | ||
{ | ||
Inter m = new Inter() | ||
{ | ||
private static final int CDS = 1; | ||
|
||
private int ABC; | ||
}; | ||
} | ||
|
||
/** annotation field incorrectly named. */ | ||
@interface InnerAnnotation | ||
{ | ||
/** Ignore - should be all upper case. */ | ||
String data = "zxzc"; | ||
} | ||
|
||
/** enum with public member variable */ | ||
enum InnerEnum | ||
{ | ||
/** First constant */ | ||
A, | ||
|
||
/** Second constant */ | ||
B; | ||
|
||
/** Should be private */ | ||
public int someValue; | ||
} | ||
} |
Oops, something went wrong.