File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
rxjava-core/src/main/java/rx Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -116,14 +116,10 @@ public class Observable<T> {
116
116
117
117
private final Func1 <Observer <T >, Subscription > onSubscribe ;
118
118
119
- protected Observable () {
120
- this (null );
121
- }
122
-
123
119
/**
124
- * Construct an Observable with Function to execute when subscribed to.
120
+ * Observable with Function to execute when subscribed to.
125
121
* <p>
126
- * NOTE: Generally you're better off using {@link #create(Func1)} to create an Observable instead of using inheritance.
122
+ * NOTE: Use {@link #create(Func1)} to create an Observable instead of this method unless you specifically have a need for inheritance.
127
123
*
128
124
* @param onSubscribe
129
125
* {@link Func1} to be executed when {@link #subscribe(Observer)} is called.
@@ -132,6 +128,11 @@ protected Observable(Func1<Observer<T>, Subscription> onSubscribe) {
132
128
this .onSubscribe = onSubscribe ;
133
129
}
134
130
131
+ protected Observable () {
132
+ this (null );
133
+ //TODO should this be made private to prevent it? It really serves no good purpose and only confuses things. Unit tests are incorrectly using it today
134
+ }
135
+
135
136
/**
136
137
* an {@link Observer} must call an Observable's <code>subscribe</code> method in order to register itself
137
138
* to receive push-based notifications from the Observable. A typical implementation of the
You can’t perform that action at this time.
0 commit comments