aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/test/ContextEscapeDetection.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test/ContextEscapeDetection.java b/test/test/ContextEscapeDetection.java
index 233630eb2..8852c9fe9 100644
--- a/test/test/ContextEscapeDetection.java
+++ b/test/test/ContextEscapeDetection.java
@@ -19,7 +19,7 @@ public abstract class ContextEscapeDetection {
public final String testName;
}
- public static final List<TestContext> contexts = new LinkedList<>();
+ public static final List<TestContext> contexts = new LinkedList<TestContext>();
public abstract Contexts.Context getCtx();
@@ -27,7 +27,7 @@ public abstract class ContextEscapeDetection {
@Before
public synchronized void stealContext() {
- contexts.add(new TestContext(new WeakReference<>(this.getCtx()), this.getClass().getName()));
+ contexts.add(new TestContext(new WeakReference<Contexts.Context>(this.getCtx()), this.getClass().getName()));
}
@After