Skip to content

Commit

Permalink
Issue checkstyle#7877: Fix for ImprtOrderCheck(6)
Browse files Browse the repository at this point in the history
  • Loading branch information
yajna-pandith committed Mar 19, 2020
1 parent 024ed78 commit fe7a066
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 @@ -83,7 +83,6 @@ pitest-imports)
"ImportOrderCheck.java.html:<td class='covered'><pre><span class='survived'> if (caseSensitive) {</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>"
"ImportOrderCheck.java.html:<td class='covered'><pre><span class='survived'> staticImportSeparator = isStatic &#38;&#38; separated;</span></pre></td></tr>"
"PkgImportControl.java.html:<td class='covered'><pre><span class='survived'> if (alreadyRegex) {</span></pre></td></tr>"
"PkgImportControl.java.html:<td class='covered'><pre><span class='survived'> if (regex || parent.regex) {</span></pre></td></tr>"
Expand Down
Expand Up @@ -718,7 +718,7 @@ private boolean isSeparatorInGroup(int groupIdx, boolean isStatic, int line) {
* @return true if there is separator before current import which isn't the first import.
*/
private boolean isSeparatorBeforeImport(int line) {
return !beforeFirstImport && line - lastImportLine > 1;
return line - lastImportLine > 1;
}

/**
Expand Down

0 comments on commit fe7a066

Please sign in to comment.