Skip to content

Commit

Permalink
Issue #80 Associate issues with project / directory instead of file
Browse files Browse the repository at this point in the history
  • Loading branch information
Waleri Enns authored and Bertk committed Dec 27, 2013
1 parent e9982c0 commit 0839ba2
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,7 @@ public void stream(SMHierarchicCursor rootCursor) throws XMLStreamException {
}

private boolean isInputValid(String file, String line, String id, String msg) {
if (StringUtils.isEmpty(file) || (Integer.valueOf(line)==0)) {
// issue for project or file level
return !StringUtils.isEmpty(id) && !StringUtils.isEmpty(msg);
}
return !StringUtils.isEmpty(file) && !StringUtils.isEmpty(id) && !StringUtils.isEmpty(msg);
return !StringUtils.isEmpty(id) && !StringUtils.isEmpty(msg);
}

/**
Expand Down

0 comments on commit 0839ba2

Please sign in to comment.