Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e12eee4

Browse files
Vyom-Yadavromani
authored andcommitted
minor: Specified violation messages in SeparatorWrapCheck
1 parent 645262f commit e12eee4

File tree

5 files changed

+4
-6
lines changed

5 files changed

+4
-6
lines changed

src/test/java/com/puppycrawl/tools/checkstyle/bdd/InlineConfigParser.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ public final class InlineConfigParser {
114114
"com.puppycrawl.tools.checkstyle.checks.naming.AbstractClassNameCheck",
115115
"com.puppycrawl.tools.checkstyle.checks.sizes.MethodCountCheck",
116116
"com.puppycrawl.tools.checkstyle.checks.coding.PackageDeclarationCheck",
117-
"com.puppycrawl.tools.checkstyle.checks.whitespace.SeparatorWrapCheck",
118117
"com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocTypeCheck",
119118
"com.puppycrawl.tools.checkstyle.checks.blocks.LeftCurlyCheck",
120119
"com.puppycrawl.tools.checkstyle.checks.regexp.RegexpCheck",

src/test/resources/com/puppycrawl/tools/checkstyle/checks/whitespace/separatorwrap/InputSeparatorWrapForArrayDeclarator.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ class InputSeparatorWrapForArrayDeclarator {
1414
] {1, 2};
1515

1616
protected int[] arrayDeclarationWithBadWrapping = new int
17-
[] {1, 2}; // violation
18-
17+
[] {1, 2}; // violation ''\[' should be on the previous line'
1918
}
2019

src/test/resources/com/puppycrawl/tools/checkstyle/checks/whitespace/separatorwrap/InputSeparatorWrapForEllipsis.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public void testMethodWithGoodWrapping(String...
1616
}
1717

1818
public void testMethodWithBadWrapping(String
19-
...parameters) { // violation
19+
...parameters) { // violation ''...' should be on the previous line'
2020

2121
}
2222

src/test/resources/com/puppycrawl/tools/checkstyle/checks/whitespace/separatorwrap/InputSeparatorWrapForTestDot.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class badCaseForTestDot<T extends FooForTestDot & BarForTestDot> {
3535

3636
public void goodCaseForTestDot(int... aFoo)throws FooExceptionForTestDot, BarExceptionForTestDot
3737
{
38-
String s = "ffffooooString"; // violation below
38+
String s = "ffffooooString"; // violation below ''.' should be on a new line'
3939
s.
4040
isEmpty(); //bad wrapping
4141
try {

src/test/resources/com/puppycrawl/tools/checkstyle/checks/whitespace/separatorwrap/InputSeparatorWrapForTestMethodRef.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ void goodCase() {
2121

2222
void badCase() {
2323
String[] stringArray = { "Barbara", "James", "Mary", "John",
24-
"Patricia", "Robert", "Michael", "Linda" }; // violation below
24+
"Patricia", "Linda" }; // violation below ''::' should be on a new line'
2525
/* violation */ Arrays.sort(stringArray, String::
2626
compareToIgnoreCase);
2727
}

0 commit comments

Comments
 (0)