File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
rxjava-core/src/main/java/rx/subscriptions Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -12,15 +12,15 @@ public class Subscriptions {
12
12
* @return {@link Subscription}
13
13
*/
14
14
public static Subscription empty () {
15
- return new EmptySubscription () ;
15
+ return EMPTY ;
16
16
}
17
17
18
18
/**
19
19
* A {@link Subscription} implemented via a Func
20
20
*
21
21
* @return {@link Subscription}
22
22
*/
23
- public static Subscription createSubscription (final Action0 unsubscribe ) {
23
+ public static Subscription create (final Action0 unsubscribe ) {
24
24
return new Subscription () {
25
25
26
26
@ Override
@@ -36,7 +36,7 @@ public void unsubscribe() {
36
36
*
37
37
* @return {@link Subscription}
38
38
*/
39
- public static Subscription createSubscription (final Object unsubscribe ) {
39
+ public static Subscription create (final Object unsubscribe ) {
40
40
final FuncN <?> f = Functions .from (unsubscribe );
41
41
return new Subscription () {
42
42
@@ -51,8 +51,8 @@ public void unsubscribe() {
51
51
/**
52
52
* A {@link Subscription} that does nothing when its unsubscribe method is called.
53
53
*/
54
- private static class EmptySubscription implements Subscription {
54
+ private static Subscription EMPTY = new Subscription () {
55
55
public void unsubscribe () {
56
56
}
57
- }
57
+ };
58
58
}
You can’t perform that action at this time.
0 commit comments