Skip to content

Commit

Permalink
Add newline to end of files missing a newline (ReactiveX#4979)
Browse files Browse the repository at this point in the history
This is to get rid of the "No newline at end of file" warning.
  • Loading branch information
benjchristensen authored and akarnokd committed Jan 9, 2017
1 parent 014aa16 commit f6965b1
Show file tree
Hide file tree
Showing 287 changed files with 287 additions and 287 deletions.
2 changes: 1 addition & 1 deletion DESIGN.md
Original file line number Diff line number Diff line change
Expand Up @@ -595,4 +595,4 @@ Since RxJava 2.x is still JDK 6 compatible, the `QueueSubscription` can't itself

Even though other modern libraries also define this interface, they live in local packages and thus non-reusable without dragging in the whole library. Therefore, until externalized and standardized, cross-library micro-fusion won't happen.

A consequence of the extension of the `onSubscribe`-`Subscription` rail is that intermediate operators are no longer allowed to pass an upstream `Subscription` directly to its downstream `Subscriber.onSubscribe`. Doing so is likely to have the fused sequence skip the operator completely, losing behavior or causing runtime exceptions. Since RS `Subscriber` is an interface, operators can simply implement both `Subscriber` and `Subscription` on themselves, delegating the `request` and `cancel` calls to the upstream and calling `child.onSubscribe(this)`.
A consequence of the extension of the `onSubscribe`-`Subscription` rail is that intermediate operators are no longer allowed to pass an upstream `Subscription` directly to its downstream `Subscriber.onSubscribe`. Doing so is likely to have the fused sequence skip the operator completely, losing behavior or causing runtime exceptions. Since RS `Subscriber` is an interface, operators can simply implement both `Subscriber` and `Subscription` on themselves, delegating the `request` and `cancel` calls to the upstream and calling `child.onSubscribe(this)`.
2 changes: 1 addition & 1 deletion checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@
<property name="fileExtensions" value=".java"/>
</module>
-->
</module>
</module>
2 changes: 1 addition & 1 deletion src/main/java/io/reactivex/CompletableEmitter.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ public interface CompletableEmitter {
* @return true if the downstream disposed the sequence
*/
boolean isDisposed();
}
}
2 changes: 1 addition & 1 deletion src/main/java/io/reactivex/FlowableEmitter.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,4 @@ public interface FlowableEmitter<T> extends Emitter<T> {
* @return the serialized FlowableEmitter
*/
FlowableEmitter<T> serialize();
}
}
2 changes: 1 addition & 1 deletion src/main/java/io/reactivex/MaybeEmitter.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,4 @@ public interface MaybeEmitter<T> {
* @return true if the downstream cancelled the sequence
*/
boolean isDisposed();
}
}
2 changes: 1 addition & 1 deletion src/main/java/io/reactivex/ObservableSource.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ public interface ObservableSource<T> {
* @throws NullPointerException if {@code observer} is null
*/
void subscribe(Observer<? super T> observer);
}
}
2 changes: 1 addition & 1 deletion src/main/java/io/reactivex/Observer.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,4 @@ public interface Observer<T> {
*/
void onComplete();

}
}
2 changes: 1 addition & 1 deletion src/main/java/io/reactivex/SingleEmitter.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,4 @@ public interface SingleEmitter<T> {
* @return true if the downstream cancelled the sequence
*/
boolean isDisposed();
}
}
2 changes: 1 addition & 1 deletion src/main/java/io/reactivex/annotations/package-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
/**
* Annotations for indicating experimental and beta operators, classes, methods, types or fields.
*/
package io.reactivex.annotations;
package io.reactivex.annotations;
2 changes: 1 addition & 1 deletion src/main/java/io/reactivex/disposables/package-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@
* (Disposable container types) and utility classes to construct
* Disposables from callbacks and other types.
*/
package io.reactivex.disposables;
package io.reactivex.disposables;
Original file line number Diff line number Diff line change
Expand Up @@ -286,4 +286,4 @@ private Throwable getRootCause(Throwable e) {
root = cause;
}
}
}
}
2 changes: 1 addition & 1 deletion src/main/java/io/reactivex/exceptions/package-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@
* Exception handling utilities, safe subscriber exception classes,
* lifecycle exception classes.
*/
package io.reactivex.exceptions;
package io.reactivex.exceptions;
2 changes: 1 addition & 1 deletion src/main/java/io/reactivex/flowables/package-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@
* Classes supporting the Flowable base reactive class: connectable and grouped
* flowables.
*/
package io.reactivex.flowables;
package io.reactivex.flowables;
2 changes: 1 addition & 1 deletion src/main/java/io/reactivex/functions/Cancellable.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ public interface Cancellable {
* @throws Exception on error
*/
void cancel() throws Exception;
}
}
2 changes: 1 addition & 1 deletion src/main/java/io/reactivex/functions/package-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@
* Functional interfaces of functions and actions of arity 0 to 9 and related
* utility classes.
*/
package io.reactivex.functions;
package io.reactivex.functions;
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ public void dispose() {
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
/**
* Base interfaces and types for supporting operator-fusion.
*/
package io.reactivex.internal.fuseable;
package io.reactivex.internal.fuseable;
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ public void onError(Throwable t) {
public void onComplete() {
arbiter.onComplete(s);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -144,4 +144,4 @@ public void dispose() {
public boolean isDisposed() {
return isDone();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ public void onSuccess(T value) {
public void onError(Throwable e) {
actual.onError(e);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -182,4 +182,4 @@ public boolean isDisposed() {
return SubscriptionHelper.isCancelled(get());
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,4 @@ public void remove() {
}

}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -171,4 +171,4 @@ void setWaiting() {
waiting.set(1);
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -223,4 +223,4 @@ public void cancel() {
}

}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -383,4 +383,4 @@ public void replay() {
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -130,4 +130,4 @@ public boolean isDisposed() {
return s == SubscriptionHelper.CANCELLED;
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -697,4 +697,4 @@ void drain() {
}
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,4 @@ public void onComplete() {

other.subscribe(otherSubscriber);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -450,4 +450,4 @@ public int requestFusion(int requestedMode) {
return NONE;
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,4 @@ public void onComplete() {
actual.onComplete();
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,4 @@ public void onComplete() {
actual.onComplete();
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -685,4 +685,4 @@ public void cancel() {
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -201,4 +201,4 @@ public void run() {
}
});
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -417,4 +417,4 @@ public void request(long n) {
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,4 @@ public void onComplete() {
actual.onComplete();
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -292,4 +292,4 @@ public R poll() throws Exception {
}

}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -202,4 +202,4 @@ public R poll() throws Exception {
}

}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,4 @@ public void onComplete() {
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -153,4 +153,4 @@ public boolean isDisposed() {
return DisposableHelper.isDisposed(get());
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -168,4 +168,4 @@ void setWaiting() {
waiting.set(1);
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -372,4 +372,4 @@ public void replay() {
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,4 @@ void run() {
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -202,4 +202,4 @@ void cleanup() {
}
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -286,4 +286,4 @@ public R poll() throws Exception {
}

}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -196,4 +196,4 @@ public R poll() throws Exception {
}

}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -195,4 +195,4 @@ static final class PoolWorker extends NewThreadWorker {
super(threadFactory);
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -238,4 +238,4 @@ public void setExpirationTime(long expirationTime) {
this.expirationTime = expirationTime;
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ private NewThreadScheduler() {
public Worker createWorker() {
return new NewThreadWorker(THREAD_FACTORY);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -142,4 +142,4 @@ public void dispose() {
public boolean isDisposed() {
return disposed;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -189,4 +189,4 @@ public void run() {
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ public void onError(Throwable t) {
public void onComplete() {
arbiter.onComplete(s);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -226,4 +226,4 @@ class FullArbiterMissed extends FullArbiterPad1 {
class FullArbiterPad2 extends FullArbiterMissed {
volatile long p1c, p2c, p3c, p4c, p5c, p6c, p7c;
volatile long p8c, p9c, p10c, p11c, p12c, p13c, p14c, p15c;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,4 @@ public String toString() {

return list.toString();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@
@Target({ElementType.METHOD, ElementType.CONSTRUCTOR, ElementType.TYPE})
public @interface SuppressAnimalSniffer {

}
}
2 changes: 1 addition & 1 deletion src/main/java/io/reactivex/observables/package-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@
* Classes supporting the Observable base reactive class: connectable and grouped
* observables.
*/
package io.reactivex.observables;
package io.reactivex.observables;
2 changes: 1 addition & 1 deletion src/main/java/io/reactivex/observers/package-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@
* Default wrappers and implementations for Observer-based consumer classes and interfaces;
* utility classes for creating them from callbacks.
*/
package io.reactivex.observers;
package io.reactivex.observers;
2 changes: 1 addition & 1 deletion src/main/java/io/reactivex/plugins/package-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@
* Callback types and a central plugin handler class to hook into the lifecycle
* of the base reactive types and schedulers.
*/
package io.reactivex.plugins;
package io.reactivex.plugins;
Loading

0 comments on commit f6965b1

Please sign in to comment.