diff --git a/src/main/java/io/reactivex/Observable.java b/src/main/java/io/reactivex/Observable.java index c5bd7a996b..7164560c28 100644 --- a/src/main/java/io/reactivex/Observable.java +++ b/src/main/java/io/reactivex/Observable.java @@ -596,7 +596,7 @@ public static Observable intervalRange(long start, long count, long initia @SchedulerSupport(SchedulerKind.NONE) public static Observable just(T value) { Objects.requireNonNull(value); - return create(new PublisherScalarSource<>(value)); + return new ObservableScalarSource<>(value); } @BackpressureSupport(BackpressureKind.FULL) @@ -1648,9 +1648,9 @@ public final Observable flatMap(Function 0 required but it was " + maxConcurrency); } validateBufferSize(bufferSize); - if (onSubscribe instanceof PublisherScalarSource) { - PublisherScalarSource scalar = (PublisherScalarSource) onSubscribe; - return create(scalar.flatMap(mapper)); + if (this instanceof ObservableScalarSource) { + ObservableScalarSource scalar = (ObservableScalarSource) this; + return create(scalar.scalarFlatMap(mapper)); } return lift(new OperatorFlatMap<>(mapper, delayErrors, maxConcurrency, bufferSize)); } diff --git a/src/main/java/io/reactivex/internal/operators/ObservableScalarSource.java b/src/main/java/io/reactivex/internal/operators/ObservableScalarSource.java new file mode 100644 index 0000000000..a9980808c1 --- /dev/null +++ b/src/main/java/io/reactivex/internal/operators/ObservableScalarSource.java @@ -0,0 +1,58 @@ +/** + * Copyright 2015 Netflix, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is + * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See + * the License for the specific language governing permissions and limitations under the License. + */ + +package io.reactivex.internal.operators; + +import java.util.function.Function; + +import org.reactivestreams.*; + +import io.reactivex.Observable; +import io.reactivex.internal.subscriptions.*; + +/** + * Represents a constant scalar value. + */ +public final class ObservableScalarSource extends Observable { + private final T value; + public ObservableScalarSource(T value) { + super(new Publisher() { + @Override + public void subscribe(Subscriber s) { + s.onSubscribe(new ScalarSubscription<>(s, value)); + } + }); + this.value = value; + } + + public T value() { + return value; + } + + public Publisher scalarFlatMap(Function> mapper) { + return s -> { + Publisher other; + try { + other = mapper.apply(value); + } catch (Throwable e) { + EmptySubscription.error(e, s); + return; + } + if (other == null) { + EmptySubscription.error(new NullPointerException("The publisher returned by the function is null"), s); + return; + } + other.subscribe(s); + }; + } +} diff --git a/src/main/java/io/reactivex/internal/operators/OperatorFlatMap.java b/src/main/java/io/reactivex/internal/operators/OperatorFlatMap.java index 22025c2871..dd9fdbacd2 100644 --- a/src/main/java/io/reactivex/internal/operators/OperatorFlatMap.java +++ b/src/main/java/io/reactivex/internal/operators/OperatorFlatMap.java @@ -1,17 +1,14 @@ -/* - * Copyright 2011-2015 David Karnok +/** + * Copyright 2015 Netflix, Inc. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is + * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See + * the License for the specific language governing permissions and limitations under the License. */ package io.reactivex.internal.operators; @@ -134,8 +131,8 @@ public void onNext(T t) { onError(e); return; } - if (p instanceof PublisherScalarSource) { - tryEmitScalar(((PublisherScalarSource)p).value()); + if (p instanceof ObservableScalarSource) { + tryEmitScalar(((ObservableScalarSource)p).value()); } else { InnerSubscriber inner = new InnerSubscriber<>(this, uniqueId++); addInner(inner); @@ -220,7 +217,11 @@ void tryEmitScalar(U value) { s.request(1); } } else { - + Queue q = getMainQueue(); + if (!q.offer(value)) { + onError(new IllegalStateException("Scalar queue full?!")); + return; + } } if (decrementAndGet() == 0) { return; diff --git a/src/main/java/io/reactivex/internal/operators/OperatorMap.java b/src/main/java/io/reactivex/internal/operators/OperatorMap.java index 517b77a30f..6b8862621e 100644 --- a/src/main/java/io/reactivex/internal/operators/OperatorMap.java +++ b/src/main/java/io/reactivex/internal/operators/OperatorMap.java @@ -1,19 +1,17 @@ -/* - * Copyright 2011-2015 David Karnok +/** + * Copyright 2015 Netflix, Inc. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is + * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See + * the License for the specific language governing permissions and limitations under the License. */ + package io.reactivex.internal.operators; import java.util.function.Function; diff --git a/src/main/java/io/reactivex/internal/operators/PublisherArraySource.java b/src/main/java/io/reactivex/internal/operators/PublisherArraySource.java index 9f1acd07af..da2412defa 100644 --- a/src/main/java/io/reactivex/internal/operators/PublisherArraySource.java +++ b/src/main/java/io/reactivex/internal/operators/PublisherArraySource.java @@ -1,17 +1,14 @@ -/* - * Copyright 2011-2015 David Karnok +/** + * Copyright 2015 Netflix, Inc. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is + * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See + * the License for the specific language governing permissions and limitations under the License. */ package io.reactivex.internal.operators; diff --git a/src/main/java/io/reactivex/internal/operators/PublisherCompletableFutureSource.java b/src/main/java/io/reactivex/internal/operators/PublisherCompletableFutureSource.java index 0866969575..e3891ff018 100644 --- a/src/main/java/io/reactivex/internal/operators/PublisherCompletableFutureSource.java +++ b/src/main/java/io/reactivex/internal/operators/PublisherCompletableFutureSource.java @@ -1,18 +1,16 @@ -/* - * Copyright 2011-2015 David Karnok - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. +/** + * Copyright 2015 Netflix, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is + * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See + * the License for the specific language governing permissions and limitations under the License. */ + package io.reactivex.internal.operators; import java.util.concurrent.CompletableFuture; diff --git a/src/main/java/io/reactivex/internal/operators/PublisherDefer.java b/src/main/java/io/reactivex/internal/operators/PublisherDefer.java index 9870be4e77..5734e12638 100644 --- a/src/main/java/io/reactivex/internal/operators/PublisherDefer.java +++ b/src/main/java/io/reactivex/internal/operators/PublisherDefer.java @@ -1,18 +1,16 @@ -/* - * Copyright 2011-2015 David Karnok - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. +/** + * Copyright 2015 Netflix, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is + * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See + * the License for the specific language governing permissions and limitations under the License. */ + package io.reactivex.internal.operators; import java.util.function.Supplier; diff --git a/src/main/java/io/reactivex/internal/operators/PublisherEmptySource.java b/src/main/java/io/reactivex/internal/operators/PublisherEmptySource.java index 4a07ea5453..dd9d60194c 100644 --- a/src/main/java/io/reactivex/internal/operators/PublisherEmptySource.java +++ b/src/main/java/io/reactivex/internal/operators/PublisherEmptySource.java @@ -1,17 +1,14 @@ -/* - * Copyright 2011-2015 David Karnok +/** + * Copyright 2015 Netflix, Inc. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is + * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See + * the License for the specific language governing permissions and limitations under the License. */ package io.reactivex.internal.operators; diff --git a/src/main/java/io/reactivex/internal/operators/PublisherErrorSource.java b/src/main/java/io/reactivex/internal/operators/PublisherErrorSource.java index 7bb1cc2c30..9470fc4afd 100644 --- a/src/main/java/io/reactivex/internal/operators/PublisherErrorSource.java +++ b/src/main/java/io/reactivex/internal/operators/PublisherErrorSource.java @@ -1,17 +1,14 @@ -/* - * Copyright 2011-2015 David Karnok +/** + * Copyright 2015 Netflix, Inc. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is + * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See + * the License for the specific language governing permissions and limitations under the License. */ package io.reactivex.internal.operators; diff --git a/src/main/java/io/reactivex/internal/operators/PublisherIterableSource.java b/src/main/java/io/reactivex/internal/operators/PublisherIterableSource.java index 6922df3dcd..f591ae3add 100644 --- a/src/main/java/io/reactivex/internal/operators/PublisherIterableSource.java +++ b/src/main/java/io/reactivex/internal/operators/PublisherIterableSource.java @@ -1,18 +1,16 @@ -/* - * Copyright 2011-2015 David Karnok - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. +/** + * Copyright 2015 Netflix, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is + * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See + * the License for the specific language governing permissions and limitations under the License. */ + package io.reactivex.internal.operators; import java.util.Iterator; diff --git a/src/main/java/io/reactivex/internal/operators/PublisherRangeSource.java b/src/main/java/io/reactivex/internal/operators/PublisherRangeSource.java index 59936a8bc0..35cdd1e9e8 100644 --- a/src/main/java/io/reactivex/internal/operators/PublisherRangeSource.java +++ b/src/main/java/io/reactivex/internal/operators/PublisherRangeSource.java @@ -1,17 +1,14 @@ -/* - * Copyright 2011-2015 David Karnok +/** + * Copyright 2015 Netflix, Inc. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is + * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See + * the License for the specific language governing permissions and limitations under the License. */ package io.reactivex.internal.operators; diff --git a/src/main/java/io/reactivex/internal/operators/PublisherScalarAsyncSource.java b/src/main/java/io/reactivex/internal/operators/PublisherScalarAsyncSource.java index abbfa5a412..567f7ee13c 100644 --- a/src/main/java/io/reactivex/internal/operators/PublisherScalarAsyncSource.java +++ b/src/main/java/io/reactivex/internal/operators/PublisherScalarAsyncSource.java @@ -1,18 +1,16 @@ -/* - * Copyright 2011-2015 David Karnok - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. +/** + * Copyright 2015 Netflix, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is + * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See + * the License for the specific language governing permissions and limitations under the License. */ + package io.reactivex.internal.operators; import java.util.concurrent.Callable; diff --git a/src/main/java/io/reactivex/internal/operators/PublisherScalarSource.java b/src/main/java/io/reactivex/internal/operators/PublisherScalarSource.java deleted file mode 100644 index f6578e465e..0000000000 --- a/src/main/java/io/reactivex/internal/operators/PublisherScalarSource.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2011-2015 David Karnok - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package io.reactivex.internal.operators; - -import java.util.function.Function; - -import org.reactivestreams.*; - -import io.reactivex.internal.subscriptions.*; - -/** - * - */ -public final class PublisherScalarSource implements Publisher { - private final T value; - public PublisherScalarSource(T value) { - this.value = value; - } - @Override - public void subscribe(Subscriber s) { - s.onSubscribe(new ScalarSubscription<>(s, value)); - } - - public T value() { - return value; - } - - public Publisher flatMap(Function> mapper) { - return s -> { - Publisher other; - try { - other = mapper.apply(value); - } catch (Throwable e) { - EmptySubscription.error(e, s); - return; - } - other.subscribe(s); - }; - } -} diff --git a/src/main/java/io/reactivex/internal/operators/PublisherStreamSource.java b/src/main/java/io/reactivex/internal/operators/PublisherStreamSource.java index aef02eed3c..01c68e5ac8 100644 --- a/src/main/java/io/reactivex/internal/operators/PublisherStreamSource.java +++ b/src/main/java/io/reactivex/internal/operators/PublisherStreamSource.java @@ -1,18 +1,16 @@ -/* - * Copyright 2011-2015 David Karnok - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. +/** + * Copyright 2015 Netflix, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is + * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See + * the License for the specific language governing permissions and limitations under the License. */ + package io.reactivex.internal.operators; import java.util.Iterator; diff --git a/src/main/java/io/reactivex/internal/subscriptions/EmptySubscription.java b/src/main/java/io/reactivex/internal/subscriptions/EmptySubscription.java index cbdb50da74..7e524c7e8f 100644 --- a/src/main/java/io/reactivex/internal/subscriptions/EmptySubscription.java +++ b/src/main/java/io/reactivex/internal/subscriptions/EmptySubscription.java @@ -1,17 +1,14 @@ -/* - * Copyright 2011-2015 David Karnok +/** + * Copyright 2015 Netflix, Inc. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is + * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See + * the License for the specific language governing permissions and limitations under the License. */ package io.reactivex.internal.subscriptions; diff --git a/src/main/java/io/reactivex/internal/subscriptions/ScalarAsyncSubscription.java b/src/main/java/io/reactivex/internal/subscriptions/ScalarAsyncSubscription.java index 30d1a9b9ea..3041a7d08d 100644 --- a/src/main/java/io/reactivex/internal/subscriptions/ScalarAsyncSubscription.java +++ b/src/main/java/io/reactivex/internal/subscriptions/ScalarAsyncSubscription.java @@ -1,17 +1,14 @@ -/* - * Copyright 2011-2015 David Karnok +/** + * Copyright 2015 Netflix, Inc. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is + * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See + * the License for the specific language governing permissions and limitations under the License. */ package io.reactivex.internal.subscriptions; diff --git a/src/main/java/io/reactivex/internal/subscriptions/ScalarSubscription.java b/src/main/java/io/reactivex/internal/subscriptions/ScalarSubscription.java index 60cf666d11..8c10c05662 100644 --- a/src/main/java/io/reactivex/internal/subscriptions/ScalarSubscription.java +++ b/src/main/java/io/reactivex/internal/subscriptions/ScalarSubscription.java @@ -1,17 +1,14 @@ -/* - * Copyright 2011-2015 David Karnok +/** + * Copyright 2015 Netflix, Inc. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is + * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See + * the License for the specific language governing permissions and limitations under the License. */ package io.reactivex.internal.subscriptions; diff --git a/src/main/java/io/reactivex/internal/subscriptions/SubscriptionArbiter.java b/src/main/java/io/reactivex/internal/subscriptions/SubscriptionArbiter.java index 27fbe57eea..cc1a9860e1 100644 --- a/src/main/java/io/reactivex/internal/subscriptions/SubscriptionArbiter.java +++ b/src/main/java/io/reactivex/internal/subscriptions/SubscriptionArbiter.java @@ -1,17 +1,14 @@ -/* - * Copyright 2011-2015 David Karnok +/** + * Copyright 2015 Netflix, Inc. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is + * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See + * the License for the specific language governing permissions and limitations under the License. */ package io.reactivex.internal.subscriptions;