aboutsummaryrefslogtreecommitdiff
path: root/org.jacoco.examples/src/org/jacoco/examples/ClassInfo.java
diff options
context:
space:
mode:
Diffstat (limited to 'org.jacoco.examples/src/org/jacoco/examples/ClassInfo.java')
-rw-r--r--org.jacoco.examples/src/org/jacoco/examples/ClassInfo.java27
1 files changed, 14 insertions, 13 deletions
diff --git a/org.jacoco.examples/src/org/jacoco/examples/ClassInfo.java b/org.jacoco.examples/src/org/jacoco/examples/ClassInfo.java
index 690293ff..07f7e515 100644
--- a/org.jacoco.examples/src/org/jacoco/examples/ClassInfo.java
+++ b/org.jacoco.examples/src/org/jacoco/examples/ClassInfo.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.examples;
@@ -31,7 +32,7 @@ public final class ClassInfo implements ICoverageVisitor {
/**
* Creates a new example instance printing to the given stream.
- *
+ *
* @param out
* stream for outputs
*/
@@ -42,7 +43,7 @@ public final class ClassInfo implements ICoverageVisitor {
/**
* Run this example with the given parameters.
- *
+ *
* @param args
* command line parameters
* @throws IOException
@@ -57,21 +58,21 @@ public final class ClassInfo implements ICoverageVisitor {
public void visitCoverage(final IClassCoverage coverage) {
out.printf("class name: %s%n", coverage.getName());
out.printf("class id: %016x%n", Long.valueOf(coverage.getId()));
- out.printf("instructions: %s%n", Integer.valueOf(coverage
- .getInstructionCounter().getTotalCount()));
+ out.printf("instructions: %s%n", Integer
+ .valueOf(coverage.getInstructionCounter().getTotalCount()));
out.printf("branches: %s%n",
Integer.valueOf(coverage.getBranchCounter().getTotalCount()));
out.printf("lines: %s%n",
Integer.valueOf(coverage.getLineCounter().getTotalCount()));
out.printf("methods: %s%n",
Integer.valueOf(coverage.getMethodCounter().getTotalCount()));
- out.printf("complexity: %s%n%n", Integer.valueOf(coverage
- .getComplexityCounter().getTotalCount()));
+ out.printf("complexity: %s%n%n", Integer
+ .valueOf(coverage.getComplexityCounter().getTotalCount()));
}
/**
* Entry point to run this examples as a Java application.
- *
+ *
* @param args
* list of program arguments
* @throws IOException