Skip to content

Commit

Permalink
Issue checkstyle#12260: Resolve Pitest suppression for AbstractParenP…
Browse files Browse the repository at this point in the history
…adCheck - 2
  • Loading branch information
Kevin222004 committed Oct 7, 2022
1 parent dab7ef8 commit 852a38c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
9 changes: 0 additions & 9 deletions .ci/pitest-suppressions/pitest-whitespace-suppressions.xml
@@ -1,14 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<suppressedMutations>
<mutation unstable="false">
<sourceFile>AbstractParenPadCheck.java</sourceFile>
<mutatedClass>com.puppycrawl.tools.checkstyle.checks.whitespace.AbstractParenPadCheck</mutatedClass>
<mutatedMethod>setOption</mutatedMethod>
<mutator>org.pitest.mutationtest.engine.gregor.mutators.experimental.NakedReceiverMutator</mutator>
<description>replaced call to java/lang/String::toUpperCase with receiver</description>
<lineContent>option = PadOption.valueOf(optionStr.trim().toUpperCase(Locale.ENGLISH));</lineContent>
</mutation>

<mutation unstable="false">
<sourceFile>EmptyForInitializerPadCheck.java</sourceFile>
<mutatedClass>com.puppycrawl.tools.checkstyle.checks.whitespace.EmptyForInitializerPadCheck</mutatedClass>
Expand Down
Expand Up @@ -150,8 +150,7 @@ public void test1322879() throws Exception {
public void testTrimOptionProperty() throws Exception {
final String[] expected = CommonUtil.EMPTY_STRING_ARRAY;
verifyWithInlineConfigParser(
getPath("InputParenPadToCheckTrimFunctionInOptionProperty.java"),
expected);
getPath("InputParenPadToCheckTrimFunctionInOptionProperty.java"), expected);
}

@Test
Expand Down
@@ -1,6 +1,6 @@
/*
ParenPad
option = SPACE
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, \
Expand Down

0 comments on commit 852a38c

Please sign in to comment.