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#12267: Resolve Pitest suppression for SeperatorWrapC…
…heck
- Loading branch information
1 parent
a3224da
commit 79e911b
Showing
4 changed files
with
30 additions
and
19 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
2 changes: 1 addition & 1 deletion
2
...ycrawl/tools/checkstyle/checks/whitespace/separatorwrap/InputSeparatorWrapForTestDot.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,6 +1,6 @@ | ||
/* | ||
SeparatorWrap | ||
option = NL | ||
option = nl | ||
tokens = DOT | ||
|
21 changes: 21 additions & 0 deletions
21
...awl/tools/checkstyle/checks/whitespace/separatorwrap/InputSeparatorWrapSetOptionTrim.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,21 @@ | ||
/* | ||
SeparatorWrap | ||
option = \tNL | ||
tokens = METHOD_REF | ||
*/ | ||
|
||
package com.puppycrawl.tools.checkstyle.checks.whitespace.separatorwrap; | ||
|
||
import java.util.Arrays; | ||
|
||
public class InputSeparatorWrapSetOptionTrim { | ||
|
||
void Method() { | ||
String[] stringArray = { "Barbara", "James", "Mary", "John", | ||
"Patricia", "Linda" }; // violation below ''::' should be on a new line' | ||
Arrays.sort(stringArray, String:: | ||
compareToIgnoreCase); | ||
} | ||
} |