Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Illegal Type Check, updated default illegal types, added memberModifi…
…ers option, issue #567
- Loading branch information
Showing
5 changed files
with
151 additions
and
27 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
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
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
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,34 @@ | ||
package com.puppycrawl.tools.checkstyle.coding; | ||
import java.util.TreeSet; | ||
import java.util.Hashtable; | ||
//configuration: default | ||
public class InputIllegalTypeMemberModifiers { | ||
private AbstractClass a = null; //WARNING | ||
private NotAnAbstractClass b = null; /*another comment*/ | ||
|
||
private com.puppycrawl.tools.checkstyle.coding.InputIllegalTypeMemberModifiers.AbstractClass c = null; //WARNING | ||
private com.puppycrawl.tools.checkstyle.coding.InputIllegalTypeMemberModifiers.NotAnAbstractClass d = null; | ||
|
||
private abstract class AbstractClass {/*one more comment*/} | ||
|
||
private class NotAnAbstractClass {} | ||
|
||
private java.util.TreeSet table1() { return null; } //WARNING | ||
private TreeSet table2() { return null; } //WARNING | ||
static class SomeStaticClass { | ||
|
||
} | ||
|
||
//WARNING if memberModifiers is set and contains TokenTypes.LITERAL_PROTECTED | ||
protected com.puppycrawl.tools.checkstyle.coding.InputIllegalTypeMemberModifiers.AbstractClass c1 = null; | ||
//NO WARNING if memberModifiers is set and does not contain TokenTypes.LITERAL_PUBLIC | ||
public final static java.util.TreeSet table3() { return null; } | ||
|
||
java.util.TreeSet table4() { java.util.TreeSet treeSet = null; return null; } | ||
|
||
private class Some { | ||
java.util.TreeSet treeSet = null; | ||
} | ||
//WARNING if memberModifiers is set and contains TokenTypes.LITERAL_PROTECTED | ||
protected AbstractClass a1 = null; | ||
} |
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