aboutsummaryrefslogtreecommitdiff
path: root/org.jacoco.core/src/org/jacoco/core/tools/ExecFileLoader.java
diff options
context:
space:
mode:
Diffstat (limited to 'org.jacoco.core/src/org/jacoco/core/tools/ExecFileLoader.java')
-rw-r--r--org.jacoco.core/src/org/jacoco/core/tools/ExecFileLoader.java28
1 files changed, 15 insertions, 13 deletions
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() {