Skip to content

Commit

Permalink
Updated CloverParser to conform to checkStyle rules.
Browse files Browse the repository at this point in the history
  • Loading branch information
dogeared committed Sep 4, 2017
1 parent bb5c8fe commit 78af45b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public CloverParser(final File coverageFile, final SourceLoader sourceLoader) {
}

@Override
protected void onEvent(XMLStreamReader xml, SourceCallback callback) throws XMLStreamException, ProcessingException, IOException {
protected void onEvent(final XMLStreamReader xml, final SourceCallback callback) throws XMLStreamException, ProcessingException, IOException {
if (isStartElement(xml, "package")) {
this.packageName = xml.getAttributeValue(null, "name");
} else if (isStartElement(xml, "file") && packageName != null) {
Expand All @@ -47,7 +47,7 @@ protected void onEvent(XMLStreamReader xml, SourceCallback callback) throws XMLS
}
}

private String getSourceFile(String fileName) {
private String getSourceFile(final String fileName) {
return this.packageName.replace('.', '/') + "/" + fileName;
}
}

0 comments on commit 78af45b

Please sign in to comment.