Skip to content

Commit

Permalink
Issue #7920: Resolve Pitest Issues - RedundantImportCheck
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaurav-Punjabi committed Mar 21, 2020
1 parent f9131f9 commit d933ef8
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
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ pitest-imports)
"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>"
"PkgImportRule.java.html:<td class='covered'><pre><span class='survived'> if (isRegExp()) {</span></pre></td></tr>"
"RedundantImportCheck.java.html:<td class='covered'><pre><span class='survived'> else if (pkgName != null &#38;&#38; isFromPackage(imp.getText(), pkgName)) {</span></pre></td></tr>"
"UnusedImportsCheck.java.html:<td class='covered'><pre><span class='survived'> if (collect) {</span></pre></td></tr>"
);
checkPitestReport "${ignoredItems[@]}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ else if (ast.getType() == TokenTypes.IMPORT) {
}
// imports from unnamed package are not allowed,
// so we are checking SAME rule only for named packages
else if (pkgName != null && isFromPackage(imp.getText(), pkgName)) {
else if (isFromPackage(imp.getText(), pkgName)) {
log(ast, MSG_SAME, imp.getText());
}
// Check for a duplicate import
Expand Down

0 comments on commit d933ef8

Please sign in to comment.