@@ -39,7 +39,7 @@ public abstract class Completable implements CompletableSource {
3939 static final Completable NEVER = new CompletableNever ();
4040
4141 /**
42- * Wraps the given CompletableConsumable into a Completable
42+ * Wraps the given CompletableSource into a Completable
4343 * if not already Completable.
4444 * @param source the source to wrap
4545 * @return the source or its wrapper Completable
@@ -50,7 +50,7 @@ public static Completable wrap(CompletableSource source) {
5050 if (source instanceof Completable ) {
5151 return (Completable )source ;
5252 }
53- return new CompletableWrapper (source );
53+ return new CompletableFromSource (source );
5454 }
5555
5656 /**
@@ -155,22 +155,22 @@ public static Completable concat(Publisher<? extends CompletableSource> sources,
155155 }
156156
157157 /**
158- * Constructs a Completable instance by wrapping the given onSubscribe callback.
159- * @param onSubscribe the callback which will receive the CompletableSubscriber instances
158+ * Constructs a Completable instance by wrapping the given source callback.
159+ * @param source the callback which will receive the CompletableObserver instances
160160 * when the Completable is subscribed to.
161161 * @return the created Completable instance
162- * @throws NullPointerException if onSubscribe is null
162+ * @throws NullPointerException if source is null
163163 */
164164 @ SchedulerSupport (SchedulerSupport .NONE )
165- public static Completable create (CompletableSource onSubscribe ) {
166- Objects .requireNonNull (onSubscribe , "onSubscribe is null" );
167- if (onSubscribe instanceof Completable ) {
165+ public static Completable create (CompletableSource source ) {
166+ Objects .requireNonNull (source , "source is null" );
167+ if (source instanceof Completable ) {
168168 throw new IllegalArgumentException ("Use of create(Completable)!" );
169169 }
170170 try {
171- // TODO plugin wrapping onSubscribe
171+ // TODO plugin wrapping source
172172
173- return RxJavaPlugins .onAssembly (new CompletableWrapper ( onSubscribe ));
173+ return RxJavaPlugins .onAssembly (new CompletableFromSource ( source ));
174174 } catch (NullPointerException ex ) { // NOPMD
175175 throw ex ;
176176 } catch (Throwable ex ) {
0 commit comments