This repository was archived by the owner on May 28, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
core-client/src/test/java/org/glassfish/jersey/client Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 3939 */
4040package 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
4643import java .lang .ref .WeakReference ;
4744import java .lang .reflect .Field ;
5148import javax .ws .rs .client .ClientBuilder ;
5249import 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+
5455import 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 }
You can’t perform that action at this time.
0 commit comments