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 8c0dbad
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion .ci/pitest.sh
Expand Up @@ -72,7 +72,6 @@ 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>"
"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 (!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 8c0dbad

Please sign in to comment.