Skip to content

Commit

Permalink
Issue checkstyle#7877: Removed redundant conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
bossever authored and SGanguly1999 committed Mar 10, 2021
1 parent e85b958 commit d95534b
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 @@ -64,7 +64,6 @@ pitest-imports)
mvn -e -P$1 clean test org.pitest:pitest-maven:mutationCoverage;
declare -a ignoredItems=(
"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'> return !beforeFirstImport &#38;&#38; line - lastImportLine &#62; 1;</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>"
"PkgImportControl.java.html:<td class='covered'><pre><span class='survived'> if (regex) {</span></pre></td></tr>"
Expand Down
Expand Up @@ -875,7 +875,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 d95534b

Please sign in to comment.