Skip to content

Commit

Permalink
Issue checkstyle#7855: Resolve Pitest Issues - IllegalImportCheck (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
harsh-kukreja committed Mar 27, 2020
1 parent dabbeba commit 80977b8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .ci/pitest.sh
Expand Up @@ -72,7 +72,11 @@ pitest-imports)
mvn -e -P$1 clean test org.pitest:pitest-maven:mutationCoverage;
declare -a ignoredItems=(
"CustomImportOrderCheck.java.html:<td class='covered'><pre><span class='survived'> if (bestMatch.group.equals(NON_GROUP_RULE_GROUP)) {</span></pre></td></tr>"
<<<<<<< HEAD
"IllegalImportCheck.java.html:<td class='covered'><pre><span class='survived'> if (!result &#38;&#38; illegalClasses != null) {</span></pre></td></tr>"
=======
"IllegalImportCheck.java.html:<td class='covered'><pre><span class='survived'> if (regexp) {</span></pre></td></tr>"
>>>>>>> aed53d1a9... Issue #7855: Resolve Pitest Issues - IllegalImportCheck (2)
"IllegalImportCheck.java.html:<td class='covered'><pre><span class='survived'> if (!result) {</span></pre></td></tr>"
"ImportControlLoader.java.html:<td class='covered'><pre><span class='survived'> else if (ALLOW_ELEMENT_NAME.equals(qName) || &#34;disallow&#34;.equals(qName)) {</span></pre></td></tr>"
"ImportOrderCheck.java.html:<td class='covered'><pre><span class='survived'> else if (matcher.start() == bestPos &#38;&#38; matcher.end() &#62; bestEnd) {</span></pre></td></tr>"
Expand Down
Expand Up @@ -419,7 +419,7 @@ private boolean isIllegalImportByPackagesAndClassNames(String importText) {
break;
}
}
if (!result && illegalClasses != null) {
if (illegalClasses != null) {
for (String element : illegalClasses) {
if (importText.equals(element)) {
result = true;
Expand Down

0 comments on commit 80977b8

Please sign in to comment.