Skip to content

Commit 3ed9f0f

Browse files
committed
Added license header to OperationBuffer.
1 parent 2c6ae52 commit 3ed9f0f

File tree

1 file changed

+19
-4
lines changed

1 file changed

+19
-4
lines changed

rxjava-core/src/main/java/rx/operators/OperationBuffer.java

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/**
2+
* Copyright 2013 Netflix, Inc.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
116
package rx.operators;
217

318
import java.util.ArrayList;
@@ -925,8 +940,8 @@ public Subscription call(Observer<String> observer) {
925940
Observable<BufferOpening> openings = Observable.create(new Func1<Observer<BufferOpening>, Subscription>() {
926941
@Override
927942
public Subscription call(Observer<BufferOpening> observer) {
928-
push(observer, new BufferOpenings(), 50);
929-
push(observer, new BufferOpenings(), 200);
943+
push(observer, BufferOpenings.create(), 50);
944+
push(observer, BufferOpenings.create(), 200);
930945
complete(observer, 250);
931946
return Subscriptions.empty();
932947
}
@@ -938,7 +953,7 @@ public Observable<BufferClosing> call(BufferOpening opening) {
938953
return Observable.create(new Func1<Observer<BufferClosing>, Subscription>() {
939954
@Override
940955
public Subscription call(Observer<BufferClosing> observer) {
941-
push(observer, new BufferClosings(), 100);
956+
push(observer, BufferClosings.create(), 100);
942957
complete(observer, 101);
943958
return Subscriptions.empty();
944959
}
@@ -978,7 +993,7 @@ public Observable<BufferClosing> call() {
978993
return Observable.create(new Func1<Observer<BufferClosing>, Subscription>() {
979994
@Override
980995
public Subscription call(Observer<BufferClosing> observer) {
981-
push(observer, new BufferClosings(), 100);
996+
push(observer, BufferClosings.create(), 100);
982997
complete(observer, 101);
983998
return Subscriptions.empty();
984999
}

0 commit comments

Comments
 (0)