Skip to content
This repository was archived by the owner on May 28, 2018. It is now read-only.

Commit 094427f

Browse files
author
Adam Lindenthal
committed
PR #173 CleanUp - Fix order of imports
Change-Id: I8c7d298816ebe51dc9f76450ae2f32096f91a999
1 parent 26d0f15 commit 094427f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

core-client/src/test/java/org/glassfish/jersey/client/ShutdownHookLeakTest.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,6 @@
3939
*/
4040
package org.glassfish.jersey.client;
4141

42-
import static org.hamcrest.CoreMatchers.is;
43-
import static org.hamcrest.number.OrderingComparison.lessThan;
44-
import static org.junit.Assert.assertThat;
4542

4643
import java.lang.ref.WeakReference;
4744
import java.lang.reflect.Field;
@@ -51,6 +48,10 @@
5148
import javax.ws.rs.client.ClientBuilder;
5249
import javax.ws.rs.client.WebTarget;
5350

51+
import static org.hamcrest.CoreMatchers.is;
52+
import static org.hamcrest.number.OrderingComparison.lessThan;
53+
import static org.junit.Assert.assertThat;
54+
5455
import org.junit.Test;
5556

5657
/**
@@ -63,6 +64,7 @@ public class ShutdownHookLeakTest {
6364
private static final int ITERATIONS = 4000;
6465
private static final int THRESHOLD = ITERATIONS * 2 / 3;
6566

67+
@SuppressWarnings("unchecked")
6668
@Test
6769
public void testShutdownHookDoesNotLeak() throws Exception {
6870
final Client client = ClientBuilder.newClient();
@@ -83,7 +85,7 @@ public void testShutdownHookDoesNotLeak() throws Exception {
8385

8486
int notEnqueued = 0;
8587
int notNull = 0;
86-
for (Object o : shutdownHooks) {
88+
for (final Object o : shutdownHooks) {
8789
if (((WeakReference<JerseyClient.ShutdownHook>) o).get() != null) {
8890
notNull++;
8991
}

0 commit comments

Comments
 (0)