Skip to content

Commit

Permalink
Removed use of deprecated API from tests & operators, fixed year in h…
Browse files Browse the repository at this point in the history
…eaders, added and removed suppressions, fixed line endings, replaced tabs with spaces
  • Loading branch information
akarnokd committed May 6, 2014
1 parent d0c26c9 commit 4aafb42
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/main/java/rx/math/operators/OperatorAverageDouble.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public OperatorAverageDouble(Func1<? super T, Double> valueExtractor) {

@Override
public Subscriber<? super T> call(Subscriber<? super Double> child) {
return new AverageObserver(child);
return new AverageObserver(child);
}

/** Computes the average. */
Expand All @@ -45,7 +45,7 @@ private final class AverageObserver extends Subscriber<T> {
int count;

public AverageObserver(Subscriber<? super Double> subscriber) {
super(subscriber);
super(subscriber);
this.child = subscriber;
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/rx/math/operators/OperatorAverageFloat.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ private final class AverageObserver extends Subscriber<T> {
int count;

public AverageObserver(Subscriber<? super Float> subscriber) {
super(subscriber);
super(subscriber);
this.child = subscriber;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ private final class AverageObserver extends Subscriber<T> {
int count;

public AverageObserver(Subscriber<? super Integer> subscriber) {
super(subscriber);
super(subscriber);
this.child = subscriber;
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/rx/math/operators/OperatorAverageLong.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ private final class AverageObserver extends Subscriber<T> {
int count;

public AverageObserver(Subscriber<? super Long> subscriber) {
super(subscriber);
super(subscriber);
this.child = subscriber;
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/rx/math/operators/OperatorMinMax.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* Returns the minimum element in an observable sequence.
*/
public final class OperatorMinMax {
private OperatorMinMax() { throw new IllegalStateException("No instances!"); }
private OperatorMinMax() { throw new IllegalStateException("No instances!"); }

public static <T extends Comparable<? super T>> Observable<T> min(
Observable<T> source) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/rx/math/operators/OperatorSum.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* Observable.Sum</a>
*/
public final class OperatorSum {
private OperatorSum() { throw new IllegalStateException("No instances!"); }
private OperatorSum() { throw new IllegalStateException("No instances!"); }

public static Observable<Integer> sumIntegers(Observable<Integer> source) {
return source.reduce(0, ACCUM_INT);
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/rx/math/operators/OperatorAverageTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,6 @@ public Double call(String t1) {
}

static class CustomException extends RuntimeException {
private static final long serialVersionUID = 6873927510089089979L;
private static final long serialVersionUID = 6873927510089089979L;
}
}
2 changes: 1 addition & 1 deletion src/test/java/rx/math/operators/OperatorSumTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,6 @@ public Double call(String t1) {
}

static class CustomException extends RuntimeException {
private static final long serialVersionUID = 8825937249852675778L;
private static final long serialVersionUID = 8825937249852675778L;
}
}

0 comments on commit 4aafb42

Please sign in to comment.