From 78af45b07da23ceaebcf8e05a6589bea8beca471 Mon Sep 17 00:00:00 2001 From: Micah Silverman Date: Sun, 3 Sep 2017 22:53:42 -0400 Subject: [PATCH] Updated CloverParser to conform to checkStyle rules. --- .../eluder/coveralls/maven/plugin/parser/CloverParser.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/eluder/coveralls/maven/plugin/parser/CloverParser.java b/src/main/java/org/eluder/coveralls/maven/plugin/parser/CloverParser.java index 9234dcdb..f96eef6e 100644 --- a/src/main/java/org/eluder/coveralls/maven/plugin/parser/CloverParser.java +++ b/src/main/java/org/eluder/coveralls/maven/plugin/parser/CloverParser.java @@ -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) { @@ -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; } }