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#12260: Resolve Pitest suppression for AbstractParenP…
…adCheck - 2
- Loading branch information
1 parent
ba8efc2
commit 83b9a25
Showing
3 changed files
with
41 additions
and
9 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
33 changes: 33 additions & 0 deletions
33
...yle/checks/whitespace/parenpad/InputParenPadToCheckUpperCaseFunctionInOptionProperty.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,33 @@ | ||
/* | ||
ParenPad | ||
option = space | ||
tokens = (default)ANNOTATION, ANNOTATION_FIELD_DEF, CTOR_CALL, CTOR_DEF, DOT, \ | ||
ENUM_CONSTANT_DEF, EXPR, LITERAL_CATCH, LITERAL_DO, LITERAL_FOR, LITERAL_IF, \ | ||
LITERAL_NEW, LITERAL_SWITCH, LITERAL_SYNCHRONIZED, LITERAL_WHILE, METHOD_CALL, \ | ||
METHOD_DEF, QUESTION, RESOURCE_SPECIFICATION, SUPER_CTOR_CALL, LAMBDA, RECORD_DEF | ||
*/ | ||
|
||
package com.puppycrawl.tools.checkstyle.checks.whitespace.parenpad; | ||
|
||
public class InputParenPadToCheckUpperCaseFunctionInOptionProperty { | ||
|
||
public InputParenPadToCheckUpperCaseFunctionInOptionProperty ( int i ) // ok | ||
{ | ||
this (); | ||
toString (); | ||
} | ||
protected InputParenPadToCheckUpperCaseFunctionInOptionProperty() | ||
{ | ||
super (); | ||
} | ||
|
||
public void enhancedFor () | ||
{ | ||
int[] i = new int[2]; | ||
for ( int j: i ) { // ok | ||
System.identityHashCode ( j ); | ||
} | ||
} | ||
} |