aboutsummaryrefslogtreecommitdiff
path: root/org.jacoco.report/src/org/jacoco/report/check/BundleChecker.java
diff options
context:
space:
mode:
Diffstat (limited to 'org.jacoco.report/src/org/jacoco/report/check/BundleChecker.java')
-rw-r--r--org.jacoco.report/src/org/jacoco/report/check/BundleChecker.java24
1 files changed, 13 insertions, 11 deletions
diff --git a/org.jacoco.report/src/org/jacoco/report/check/BundleChecker.java b/org.jacoco.report/src/org/jacoco/report/check/BundleChecker.java
index c6cd8885..aa842176 100644
--- a/org.jacoco.report/src/org/jacoco/report/check/BundleChecker.java
+++ b/org.jacoco.report/src/org/jacoco/report/check/BundleChecker.java
@@ -1,13 +1,14 @@
/*******************************************************************************
- * Copyright (c) 2009, 2019 Mountainminds GmbH & Co. KG and Contributors
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
+ * Copyright (c) 2009, 2021 Mountainminds GmbH & Co. KG and Contributors
+ * This program and the accompanying materials are made available under
+ * the terms of the Eclipse Public License 2.0 which is available at
+ * http://www.eclipse.org/legal/epl-2.0
+ *
+ * SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Marc R. Hoffmann - initial API and implementation
- *
+ *
*******************************************************************************/
package org.jacoco.report.check;
@@ -96,7 +97,8 @@ class BundleChecker {
}
}
if (traverseSourceFiles) {
- for (final ISourceFileCoverage s : packageCoverage.getSourceFiles()) {
+ for (final ISourceFileCoverage s : packageCoverage
+ .getSourceFiles()) {
check(s);
}
}
@@ -138,12 +140,12 @@ class BundleChecker {
}
private void checkLimit(final ICoverageNode node, final String elementtype,
- final String typename, final Rule rule, final Limit limit) {
+ final String elementname, final Rule rule, final Limit limit) {
final String message = limit.check(node);
if (message != null) {
- output.onViolation(node, rule, limit, String.format(
- "Rule violated for %s %s: %s", elementtype, typename,
- message));
+ output.onViolation(node, rule, limit,
+ String.format("Rule violated for %s %s: %s", elementtype,
+ elementname, message));
}
}