Skip to content

Commit

Permalink
Issue #7873: Resolve Pitest Issues - ImportOrderCheck (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
DXTkastb authored and rnveach committed May 17, 2020
1 parent 8d10bc0 commit 5117b93
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 @@ -73,7 +73,6 @@ pitest-imports)
"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>"
"ImportOrderCheck.java.html:<td class='covered'><pre><span class='survived'> final boolean separatorBetween = isStatic != lastImportStatic</span></pre></td></tr>"
"ImportOrderCheck.java.html:<td class='covered'><pre><span class='survived'> if (!CommonUtil.endsWithChar(pkg, &#39;.&#39;)) {</span></pre></td></tr>"
"ImportOrderCheck.java.html:<td class='covered'><pre><span class='survived'> if (isStatic) {</span></pre></td></tr>"
"ImportOrderCheck.java.html:<td class='covered'><pre><span class='survived'> return !beforeFirstImport &#38;&#38; line - lastImportLine &#62; 1;</span></pre></td></tr>"
Expand Down
Expand Up @@ -701,7 +701,7 @@ private boolean needSeparator(boolean isStatic) {
staticImportSeparator = isStatic && separated;
}
final boolean separatorBetween = isStatic != lastImportStatic
&& (separated || separatedStaticGroups) && staticImportsApart;
&& (separated || separatedStaticGroups);

return typeImportSeparator || staticImportSeparator || separatorBetween;
}
Expand Down

0 comments on commit 5117b93

Please sign in to comment.