Skip to content

Commit

Permalink
spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
elharo committed Nov 26, 2024
1 parent 3cb4b27 commit a0b97d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,7 @@ private PluginConsoleLogger getConsoleLogger() {
return consoleLogger;
}

private RunResult readSummary(File summaryFile) throws IOException
{
private RunResult readSummary(File summaryFile) throws IOException {
return FailsafeSummaryXmlUtils.toRunResult(summaryFile);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@ private FailsafeSummaryXmlUtils() {
throw new IllegalStateException("No instantiable constructor.");
}

public static RunResult toRunResult(File failsafeSummaryXml) throws IOException
{
public static RunResult toRunResult(File failsafeSummaryXml) throws IOException {
XPathFactory xpathFactory = XPathFactory.newInstance();
XPath xpath = xpathFactory.newXPath();

Expand All @@ -99,10 +98,8 @@ public static RunResult toRunResult(File failsafeSummaryXml) throws IOException
isBlank(flakes) ? 0 : parseInt(flakes),
isBlank(failureMessage) ? null : unescapeXml(failureMessage),
parseBoolean(timeout));
}
catch ( XPathExpressionException | NumberFormatException e )
{
throw new IOException( "Could not parse " + failsafeSummaryXml.getPath(), e );
} catch (XPathExpressionException | NumberFormatException e) {
throw new IOException("Could not parse " + failsafeSummaryXml.getPath(), e);
}
}

Expand Down

0 comments on commit a0b97d6

Please sign in to comment.