Skip to content

Commit c7f554f

Browse files
committed
removing the dependency on groovy
1 parent 967337e commit c7f554f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

rxjava-core/src/main/java/rx/subjects/Subject.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
package rx.subjects;
22

3-
import groovy.lang.Reference;
4-
53
import java.util.ArrayList;
64
import java.util.List;
75
import java.util.concurrent.ConcurrentHashMap;
86
import java.util.concurrent.atomic.AtomicBoolean;
7+
import java.util.concurrent.atomic.AtomicReference;
98

109
import junit.framework.Assert;
1110

@@ -78,7 +77,7 @@ public static class UnitTest {
7877
@Test
7978
public void test() {
8079
Subject<Integer> subject = Subject.<Integer> create();
81-
final Reference<List<Notification<String>>> actualRef = new Reference<List<Notification<String>>>();
80+
final AtomicReference<List<Notification<String>>> actualRef = new AtomicReference<List<Notification<String>>>();
8281

8382
Observable<List<Notification<Integer>>> wNotificationsList = subject.materialize().toList();
8483
wNotificationsList.subscribe(new Action1<List<Notification<String>>>() {

0 commit comments

Comments
 (0)