aboutsummaryrefslogtreecommitdiff
path: root/org.jacoco.core/src/org/jacoco/core/tools
diff options
context:
space:
mode:
Diffstat (limited to 'org.jacoco.core/src/org/jacoco/core/tools')
-rw-r--r--org.jacoco.core/src/org/jacoco/core/tools/ExecDumpClient.java29
-rw-r--r--org.jacoco.core/src/org/jacoco/core/tools/ExecFileLoader.java28
-rw-r--r--org.jacoco.core/src/org/jacoco/core/tools/package-info.java13
3 files changed, 37 insertions, 33 deletions
diff --git a/org.jacoco.core/src/org/jacoco/core/tools/ExecDumpClient.java b/org.jacoco.core/src/org/jacoco/core/tools/ExecDumpClient.java
index 35617b49..420c7680 100644
--- a/org.jacoco.core/src/org/jacoco/core/tools/ExecDumpClient.java
+++ b/org.jacoco.core/src/org/jacoco/core/tools/ExecDumpClient.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.tools;
@@ -43,7 +44,7 @@ public class ExecDumpClient {
/**
* Specifies whether a dump should be requested
- *
+ *
* @param dump
* <code>true</code> if a dump should be requested
*/
@@ -53,7 +54,7 @@ public class ExecDumpClient {
/**
* Specifies whether execution data should be reset.
- *
+ *
* @param reset
* <code>true</code> if execution data should be reset
*/
@@ -64,7 +65,7 @@ public class ExecDumpClient {
/**
* Sets the number of retry attempts to connect to the target socket. This
* allows to wait for a certain time until the target agent has initialized.
- *
+ *
* @param retryCount
* number of retries
*/
@@ -74,7 +75,7 @@ public class ExecDumpClient {
/**
* Sets the delay time before between connection attempts.
- *
+ *
* @param retryDelay
* delay in milliseconds
*/
@@ -84,7 +85,7 @@ public class ExecDumpClient {
/**
* Requests a dump from the given end-point.
- *
+ *
* @param address
* IP-Address to connect to
* @param port
@@ -100,7 +101,7 @@ public class ExecDumpClient {
/**
* Requests a dump from the given end-point.
- *
+ *
* @param address
* host name or IP-Address to connect to
* @param port
@@ -162,7 +163,7 @@ public class ExecDumpClient {
/**
* This method can be overwritten to get an event just before a connection
* is made.
- *
+ *
* @param address
* target address
* @param port
@@ -176,7 +177,7 @@ public class ExecDumpClient {
/**
* This method can be overwritten to get an event for connection failures
* when another retry will be attempted.
- *
+ *
* @param exception
* connection error
*/
diff --git a/org.jacoco.core/src/org/jacoco/core/tools/ExecFileLoader.java b/org.jacoco.core/src/org/jacoco/core/tools/ExecFileLoader.java
index cf7b2e56..d0b4815e 100644
--- a/org.jacoco.core/src/org/jacoco/core/tools/ExecFileLoader.java
+++ b/org.jacoco.core/src/org/jacoco/core/tools/ExecFileLoader.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.tools;
@@ -45,7 +46,7 @@ public class ExecFileLoader {
/**
* Reads all data from given input stream.
- *
+ *
* @param stream
* Stream to read data from
* @throws IOException
@@ -61,7 +62,7 @@ public class ExecFileLoader {
/**
* Reads all data from given input stream.
- *
+ *
* @param file
* file to read data from
* @throws IOException
@@ -78,7 +79,7 @@ public class ExecFileLoader {
/**
* Saves the current content into the given output stream.
- *
+ *
* @param stream
* stream to save content to
* @throws IOException
@@ -94,7 +95,7 @@ public class ExecFileLoader {
* Saves the current content into the given file. Parent directories are
* created as needed. Also a files system lock is acquired to avoid
* concurrent write access.
- *
+ *
* @param file
* file to save content to
* @param append
@@ -111,7 +112,8 @@ public class ExecFileLoader {
final FileOutputStream fileStream = new FileOutputStream(file, append);
// Avoid concurrent writes from other processes:
fileStream.getChannel().lock();
- final OutputStream bufferedStream = new BufferedOutputStream(fileStream);
+ final OutputStream bufferedStream = new BufferedOutputStream(
+ fileStream);
try {
save(bufferedStream);
} finally {
@@ -121,7 +123,7 @@ public class ExecFileLoader {
/**
* Returns the session info store with all loaded sessions.
- *
+ *
* @return session info store
*/
public SessionInfoStore getSessionInfoStore() {
@@ -130,7 +132,7 @@ public class ExecFileLoader {
/**
* Returns the execution data store with data for all loaded classes.
- *
+ *
* @return execution data store
*/
public ExecutionDataStore getExecutionDataStore() {
diff --git a/org.jacoco.core/src/org/jacoco/core/tools/package-info.java b/org.jacoco.core/src/org/jacoco/core/tools/package-info.java
index c35c5f9a..dfe00a9c 100644
--- a/org.jacoco.core/src/org/jacoco/core/tools/package-info.java
+++ b/org.jacoco.core/src/org/jacoco/core/tools/package-info.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
- *
+ *
*******************************************************************************/
/**