From 6b8660b38af161cb5edbf248e840bde3ae0481f7 Mon Sep 17 00:00:00 2001 From: Dominik Stadler Date: Sun, 10 Dec 2023 22:21:26 +0100 Subject: [PATCH] Remove some whitespaces --- .../plugins/jacoco/report/CoverageReport.java | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/main/java/hudson/plugins/jacoco/report/CoverageReport.java b/src/main/java/hudson/plugins/jacoco/report/CoverageReport.java index 73e2444e..d38b2107 100644 --- a/src/main/java/hudson/plugins/jacoco/report/CoverageReport.java +++ b/src/main/java/hudson/plugins/jacoco/report/CoverageReport.java @@ -33,7 +33,7 @@ /** * Root object of the coverage report. - * + * * @author Kohsuke Kawaguchi * @author Ognjen Bubalo */ @@ -44,7 +44,7 @@ private CoverageReport(JacocoBuildAction action) { this.action = action; setName("Jacoco"); } - + // private String instructionColor; // private String classColor; // private String branchColor; @@ -55,7 +55,7 @@ private CoverageReport(JacocoBuildAction action) { /** * Loads the exec files using JaCoCo API. Creates the reporting objects and the report tree. - * + * * @param action Jacoco build action * @param executionFileLoader execution file loader owning bundle coverage */ @@ -105,7 +105,7 @@ public CoverageReport(JacocoBuildAction action, @NonNull ExecutionFileLoader exe /** * From Jacoco: Checks if a class name is anonymous or not. - * + * * @param vmname * @return */ @@ -126,7 +126,7 @@ private boolean isAnonymous(final String vmname) { /** * Returns a method name for the method, including possible parameter names. - * + * * @param classCov * Coverage Information about the Class * @param methodCov @@ -142,14 +142,14 @@ private String getMethodName(IClassCoverage classCov, IMethodCoverage methodCov) if (isAnonymous(classCov.getName())) { return "{...}"; } - + int pos = classCov.getName().lastIndexOf('/'); String name = pos == -1 ? classCov.getName() : classCov.getName().substring(pos + 1); sb.append(name.replace('$', '.')); } else { sb.append(methodCov.getName()); } - + sb.append('('); final Type[] arguments = Type.getArgumentTypes(methodCov.getDesc()); boolean comma = false; @@ -159,7 +159,7 @@ private String getMethodName(IClassCoverage classCov, IMethodCoverage methodCov) } else { comma = true; } - + String name = arg.getClassName(); int pos = name.lastIndexOf('.'); String shortname = pos == -1 ? name : name.substring(pos + 1); @@ -172,12 +172,12 @@ private String getMethodName(IClassCoverage classCov, IMethodCoverage methodCov) static final NumberFormat dataFormat = new DecimalFormat("000.00", new DecimalFormatSymbols(Locale.US)); static final NumberFormat percentFormat = new DecimalFormat("0.0", new DecimalFormatSymbols(Locale.US)); - + @Override protected void printRatioCell(boolean failed, Coverage ratio, StringBuilder buf) { if (ratio != null && ratio.isInitialized()) { String bgColor = "#FFFFFF"; - + if (JacocoHealthReportThresholds.RESULT.BETWEENMINMAX == healthReports.getResultByTypeAndRatio(ratio)) { bgColor = "#FF8000"; } else if (JacocoHealthReportThresholds.RESULT.BELOWMINIMUM == healthReports.getResultByTypeAndRatio(ratio)) { @@ -190,7 +190,7 @@ protected void printRatioCell(boolean failed, Coverage ratio, StringBuilder buf) buf.append("\n"); } } - + @Override protected void printRatioTable(Coverage ratio, StringBuilder buf){ buf.append("") @@ -210,7 +210,7 @@ public CoverageReport getPreviousResult() { if(prev!=null) { return prev.getResult(); } - + return null; } @@ -221,7 +221,7 @@ public Run getBuild() { /** * Serves a single jacoco.exec file that merges all that have been recorded. - * @return HTTP response serving a single jacoco.exec file, or error 404 if nothing has been recorded. + * @return HTTP response serving a single jacoco.exec file, or error 404 if nothing has been recorded. * @throws IOException if any I/O error occurs */ @WebMethod(name="jacoco.exec")