aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2021-12-17 02:03:37 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2021-12-17 02:03:37 +0000
commit75307f403fccbd11ef0b6d8514285f310ebd8535 (patch)
treecc9d9755fa750dc85d00049fb6f174607688fa0b
parent84c6f15395cdd0ffe0b3cbb4cd8241f8fdde928d (diff)
parentff1df47683cfaca4e813db26f60a11c3766d78a7 (diff)
downloadjacoco-75307f403fccbd11ef0b6d8514285f310ebd8535.tar.gz
Snap for 8009678 from ff1df47683cfaca4e813db26f60a11c3766d78a7 to tm-release
Change-Id: I257b5a453c7aa22bf6b97a8f28c1e0f52b4f405a
-rw-r--r--org.jacoco.agent.rt/src/org/jacoco/agent/rt/internal/Agent.java10
1 files changed, 4 insertions, 6 deletions
diff --git a/org.jacoco.agent.rt/src/org/jacoco/agent/rt/internal/Agent.java b/org.jacoco.agent.rt/src/org/jacoco/agent/rt/internal/Agent.java
index b6debe1f..45b7ccdd 100644
--- a/org.jacoco.agent.rt/src/org/jacoco/agent/rt/internal/Agent.java
+++ b/org.jacoco.agent.rt/src/org/jacoco/agent/rt/internal/Agent.java
@@ -91,12 +91,10 @@ public class Agent implements IAgent {
*/
// END android-change
public static synchronized Agent getInstance() throws IllegalStateException {
- if (singleton == null) {
- // BEGIN android-change
- // throw new IllegalStateException("JaCoCo agent not started.");
- singleton = Offline.createAgent();
- // END android-change
- }
+ // BEGIN android-change
+ // throw new IllegalStateException("JaCoCo agent not started.");
+ singleton = Offline.createAgent();
+ // END android-change
return singleton;
}