aboutsummaryrefslogtreecommitdiff
path: root/org.jacoco.core/src/org/jacoco/core/internal/analysis/CounterImpl.java
diff options
context:
space:
mode:
Diffstat (limited to 'org.jacoco.core/src/org/jacoco/core/internal/analysis/CounterImpl.java')
-rw-r--r--org.jacoco.core/src/org/jacoco/core/internal/analysis/CounterImpl.java26
1 files changed, 14 insertions, 12 deletions
diff --git a/org.jacoco.core/src/org/jacoco/core/internal/analysis/CounterImpl.java b/org.jacoco.core/src/org/jacoco/core/internal/analysis/CounterImpl.java
index e166c626..0ff6d78b 100644
--- a/org.jacoco.core/src/org/jacoco/core/internal/analysis/CounterImpl.java
+++ b/org.jacoco.core/src/org/jacoco/core/internal/analysis/CounterImpl.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.core.internal.analysis;
@@ -22,7 +23,8 @@ public abstract class CounterImpl implements ICounter {
/** Max counter value for which singletons are created */
private static final int SINGLETON_LIMIT = 30;
- private static final CounterImpl[][] SINGLETONS = new CounterImpl[SINGLETON_LIMIT + 1][];
+ private static final CounterImpl[][] SINGLETONS = new CounterImpl[SINGLETON_LIMIT
+ + 1][];
static {
for (int i = 0; i <= SINGLETON_LIMIT; i++) {
@@ -74,7 +76,7 @@ public abstract class CounterImpl implements ICounter {
/**
* Factory method to retrieve a counter with the given number of items.
- *
+ *
* @param missed
* number of missed items
* @param covered
@@ -91,7 +93,7 @@ public abstract class CounterImpl implements ICounter {
/**
* Factory method to retrieve a clone of the given counter.
- *
+ *
* @param counter
* counter to copy
* @return counter instance
@@ -108,7 +110,7 @@ public abstract class CounterImpl implements ICounter {
/**
* Creates a new instance with the given numbers.
- *
+ *
* @param missed
* number of missed items
* @param covered
@@ -123,7 +125,7 @@ public abstract class CounterImpl implements ICounter {
* Returns a counter with values incremented by the numbers of the given
* counter. It is up to the implementation whether this counter instance is
* modified or a new instance is returned.
- *
+ *
* @param counter
* number of additional total and covered items
* @return counter instance with incremented values
@@ -136,7 +138,7 @@ public abstract class CounterImpl implements ICounter {
* Returns a counter with values incremented by the given numbers. It is up
* to the implementation whether this counter instance is modified or a new
* instance is returned.
- *
+ *
* @param missed
* number of missed items
* @param covered