ReactiveX/RxJava

View on GitHub

Showing 411 of 1,068 total issues

Similar blocks of code found in 12 locations. Consider refactoring.
Open

    public OperatorWithLatestFromMany(Observable<T> main, Observable<?>[] others, Iterable<Observable<?>> othersIterable, FuncN<R> combiner) {
        this.main = main;
        this.others = others;
        this.othersIterable = othersIterable;
        this.combiner = combiner;
src/main/java/rx/internal/operators/OnSubscribeConcatMap.java on lines 64..70
src/main/java/rx/internal/operators/OnSubscribeDelaySubscription.java on lines 37..42
src/main/java/rx/internal/operators/OnSubscribeSkipTimed.java on lines 37..42
src/main/java/rx/internal/operators/OnSubscribeTimeoutSelectorWithFallback.java on lines 52..60
src/main/java/rx/internal/operators/OnSubscribeTimerPeriodically.java on lines 36..41
src/main/java/rx/internal/operators/OnSubscribeUsing.java on lines 39..46
src/main/java/rx/internal/operators/OperatorSubscribeOn.java on lines 65..70
src/main/java/rx/internal/operators/SingleDelay.java on lines 41..46
src/main/java/rx/internal/operators/SingleDelay.java on lines 73..78
src/main/java/rx/internal/operators/SingleOnSubscribeUsing.java on lines 38..45
src/main/java/rx/internal/util/InternalObservableUtils.java on lines 305..310

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 49.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 12 locations. Consider refactoring.
Open

    public OnSubscribeTimeoutSelectorWithFallback(Observable<T> source,
            Observable<U> firstTimeoutIndicator,
            Func1<? super T, ? extends Observable<V>> itemTimeoutIndicator,
            Observable<? extends T> fallback) {
        this.source = source;
src/main/java/rx/internal/operators/OnSubscribeConcatMap.java on lines 64..70
src/main/java/rx/internal/operators/OnSubscribeDelaySubscription.java on lines 37..42
src/main/java/rx/internal/operators/OnSubscribeSkipTimed.java on lines 37..42
src/main/java/rx/internal/operators/OnSubscribeTimerPeriodically.java on lines 36..41
src/main/java/rx/internal/operators/OnSubscribeUsing.java on lines 39..46
src/main/java/rx/internal/operators/OperatorSubscribeOn.java on lines 65..70
src/main/java/rx/internal/operators/OperatorWithLatestFromMany.java on lines 37..42
src/main/java/rx/internal/operators/SingleDelay.java on lines 41..46
src/main/java/rx/internal/operators/SingleDelay.java on lines 73..78
src/main/java/rx/internal/operators/SingleOnSubscribeUsing.java on lines 38..45
src/main/java/rx/internal/util/InternalObservableUtils.java on lines 305..310

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 49.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 12 locations. Consider refactoring.
Open

        SubscribeOnSubscriber(Subscriber<? super T> actual, boolean requestOn, Worker worker, Observable<T> source) {
            this.actual = actual;
            this.requestOn = requestOn;
            this.worker = worker;
            this.source = source;
Severity: Major
Found in src/main/java/rx/internal/operators/OperatorSubscribeOn.java and 11 other locations - About 40 mins to fix
src/main/java/rx/internal/operators/OnSubscribeConcatMap.java on lines 64..70
src/main/java/rx/internal/operators/OnSubscribeDelaySubscription.java on lines 37..42
src/main/java/rx/internal/operators/OnSubscribeSkipTimed.java on lines 37..42
src/main/java/rx/internal/operators/OnSubscribeTimeoutSelectorWithFallback.java on lines 52..60
src/main/java/rx/internal/operators/OnSubscribeTimerPeriodically.java on lines 36..41
src/main/java/rx/internal/operators/OnSubscribeUsing.java on lines 39..46
src/main/java/rx/internal/operators/OperatorWithLatestFromMany.java on lines 37..42
src/main/java/rx/internal/operators/SingleDelay.java on lines 41..46
src/main/java/rx/internal/operators/SingleDelay.java on lines 73..78
src/main/java/rx/internal/operators/SingleOnSubscribeUsing.java on lines 38..45
src/main/java/rx/internal/util/InternalObservableUtils.java on lines 305..310

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 49.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 12 locations. Consider refactoring.
Open

    public OnSubscribeTimerPeriodically(long initialDelay, long period, TimeUnit unit, Scheduler scheduler) {
        this.initialDelay = initialDelay;
        this.period = period;
        this.unit = unit;
        this.scheduler = scheduler;
src/main/java/rx/internal/operators/OnSubscribeConcatMap.java on lines 64..70
src/main/java/rx/internal/operators/OnSubscribeDelaySubscription.java on lines 37..42
src/main/java/rx/internal/operators/OnSubscribeSkipTimed.java on lines 37..42
src/main/java/rx/internal/operators/OnSubscribeTimeoutSelectorWithFallback.java on lines 52..60
src/main/java/rx/internal/operators/OnSubscribeUsing.java on lines 39..46
src/main/java/rx/internal/operators/OperatorSubscribeOn.java on lines 65..70
src/main/java/rx/internal/operators/OperatorWithLatestFromMany.java on lines 37..42
src/main/java/rx/internal/operators/SingleDelay.java on lines 41..46
src/main/java/rx/internal/operators/SingleDelay.java on lines 73..78
src/main/java/rx/internal/operators/SingleOnSubscribeUsing.java on lines 38..45
src/main/java/rx/internal/util/InternalObservableUtils.java on lines 305..310

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 49.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 12 locations. Consider refactoring.
Open

    public SingleDelay(OnSubscribe<T> source, long delay, TimeUnit unit, Scheduler scheduler) {
        this.source = source;
        this.scheduler = scheduler;
        this.delay = delay;
        this.unit = unit;
Severity: Major
Found in src/main/java/rx/internal/operators/SingleDelay.java and 11 other locations - About 40 mins to fix
src/main/java/rx/internal/operators/OnSubscribeConcatMap.java on lines 64..70
src/main/java/rx/internal/operators/OnSubscribeDelaySubscription.java on lines 37..42
src/main/java/rx/internal/operators/OnSubscribeSkipTimed.java on lines 37..42
src/main/java/rx/internal/operators/OnSubscribeTimeoutSelectorWithFallback.java on lines 52..60
src/main/java/rx/internal/operators/OnSubscribeTimerPeriodically.java on lines 36..41
src/main/java/rx/internal/operators/OnSubscribeUsing.java on lines 39..46
src/main/java/rx/internal/operators/OperatorSubscribeOn.java on lines 65..70
src/main/java/rx/internal/operators/OperatorWithLatestFromMany.java on lines 37..42
src/main/java/rx/internal/operators/SingleDelay.java on lines 73..78
src/main/java/rx/internal/operators/SingleOnSubscribeUsing.java on lines 38..45
src/main/java/rx/internal/util/InternalObservableUtils.java on lines 305..310

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 49.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 12 locations. Consider refactoring.
Open

    public OnSubscribeConcatMap(Observable<? extends T> source, Func1<? super T, ? extends Observable<? extends R>> mapper, int prefetch,
            int delayErrorMode) {
        this.source = source;
        this.mapper = mapper;
        this.prefetch = prefetch;
Severity: Major
Found in src/main/java/rx/internal/operators/OnSubscribeConcatMap.java and 11 other locations - About 40 mins to fix
src/main/java/rx/internal/operators/OnSubscribeDelaySubscription.java on lines 37..42
src/main/java/rx/internal/operators/OnSubscribeSkipTimed.java on lines 37..42
src/main/java/rx/internal/operators/OnSubscribeTimeoutSelectorWithFallback.java on lines 52..60
src/main/java/rx/internal/operators/OnSubscribeTimerPeriodically.java on lines 36..41
src/main/java/rx/internal/operators/OnSubscribeUsing.java on lines 39..46
src/main/java/rx/internal/operators/OperatorSubscribeOn.java on lines 65..70
src/main/java/rx/internal/operators/OperatorWithLatestFromMany.java on lines 37..42
src/main/java/rx/internal/operators/SingleDelay.java on lines 41..46
src/main/java/rx/internal/operators/SingleDelay.java on lines 73..78
src/main/java/rx/internal/operators/SingleOnSubscribeUsing.java on lines 38..45
src/main/java/rx/internal/util/InternalObservableUtils.java on lines 305..310

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 49.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 12 locations. Consider refactoring.
Open

        ReplaySupplierBufferTime(Observable<T> source, long time, TimeUnit unit, Scheduler scheduler) {
            this.unit = unit;
            this.source = source;
            this.time = time;
            this.scheduler = scheduler;
Severity: Major
Found in src/main/java/rx/internal/util/InternalObservableUtils.java and 11 other locations - About 40 mins to fix
src/main/java/rx/internal/operators/OnSubscribeConcatMap.java on lines 64..70
src/main/java/rx/internal/operators/OnSubscribeDelaySubscription.java on lines 37..42
src/main/java/rx/internal/operators/OnSubscribeSkipTimed.java on lines 37..42
src/main/java/rx/internal/operators/OnSubscribeTimeoutSelectorWithFallback.java on lines 52..60
src/main/java/rx/internal/operators/OnSubscribeTimerPeriodically.java on lines 36..41
src/main/java/rx/internal/operators/OnSubscribeUsing.java on lines 39..46
src/main/java/rx/internal/operators/OperatorSubscribeOn.java on lines 65..70
src/main/java/rx/internal/operators/OperatorWithLatestFromMany.java on lines 37..42
src/main/java/rx/internal/operators/SingleDelay.java on lines 41..46
src/main/java/rx/internal/operators/SingleDelay.java on lines 73..78
src/main/java/rx/internal/operators/SingleOnSubscribeUsing.java on lines 38..45

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 49.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 12 locations. Consider refactoring.
Open

    public OnSubscribeUsing(Func0<Resource> resourceFactory,
            Func1<? super Resource, ? extends Observable<? extends T>> observableFactory,
            Action1<? super Resource> dispose, boolean disposeEagerly) {
        this.resourceFactory = resourceFactory;
        this.observableFactory = observableFactory;
Severity: Major
Found in src/main/java/rx/internal/operators/OnSubscribeUsing.java and 11 other locations - About 40 mins to fix
src/main/java/rx/internal/operators/OnSubscribeConcatMap.java on lines 64..70
src/main/java/rx/internal/operators/OnSubscribeDelaySubscription.java on lines 37..42
src/main/java/rx/internal/operators/OnSubscribeSkipTimed.java on lines 37..42
src/main/java/rx/internal/operators/OnSubscribeTimeoutSelectorWithFallback.java on lines 52..60
src/main/java/rx/internal/operators/OnSubscribeTimerPeriodically.java on lines 36..41
src/main/java/rx/internal/operators/OperatorSubscribeOn.java on lines 65..70
src/main/java/rx/internal/operators/OperatorWithLatestFromMany.java on lines 37..42
src/main/java/rx/internal/operators/SingleDelay.java on lines 41..46
src/main/java/rx/internal/operators/SingleDelay.java on lines 73..78
src/main/java/rx/internal/operators/SingleOnSubscribeUsing.java on lines 38..45
src/main/java/rx/internal/util/InternalObservableUtils.java on lines 305..310

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 49.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 12 locations. Consider refactoring.
Open

    public SingleOnSubscribeUsing(Func0<Resource> resourceFactory,
            Func1<? super Resource, ? extends Single<? extends T>> observableFactory,
            Action1<? super Resource> disposeAction, boolean disposeEagerly) {
        this.resourceFactory = resourceFactory;
        this.singleFactory = observableFactory;
src/main/java/rx/internal/operators/OnSubscribeConcatMap.java on lines 64..70
src/main/java/rx/internal/operators/OnSubscribeDelaySubscription.java on lines 37..42
src/main/java/rx/internal/operators/OnSubscribeSkipTimed.java on lines 37..42
src/main/java/rx/internal/operators/OnSubscribeTimeoutSelectorWithFallback.java on lines 52..60
src/main/java/rx/internal/operators/OnSubscribeTimerPeriodically.java on lines 36..41
src/main/java/rx/internal/operators/OnSubscribeUsing.java on lines 39..46
src/main/java/rx/internal/operators/OperatorSubscribeOn.java on lines 65..70
src/main/java/rx/internal/operators/OperatorWithLatestFromMany.java on lines 37..42
src/main/java/rx/internal/operators/SingleDelay.java on lines 41..46
src/main/java/rx/internal/operators/SingleDelay.java on lines 73..78
src/main/java/rx/internal/util/InternalObservableUtils.java on lines 305..310

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 49.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 12 locations. Consider refactoring.
Open

    public OnSubscribeDelaySubscription(Observable<? extends T> source, long time, TimeUnit unit, Scheduler scheduler) {
        this.source = source;
        this.time = time;
        this.unit = unit;
        this.scheduler = scheduler;
src/main/java/rx/internal/operators/OnSubscribeConcatMap.java on lines 64..70
src/main/java/rx/internal/operators/OnSubscribeSkipTimed.java on lines 37..42
src/main/java/rx/internal/operators/OnSubscribeTimeoutSelectorWithFallback.java on lines 52..60
src/main/java/rx/internal/operators/OnSubscribeTimerPeriodically.java on lines 36..41
src/main/java/rx/internal/operators/OnSubscribeUsing.java on lines 39..46
src/main/java/rx/internal/operators/OperatorSubscribeOn.java on lines 65..70
src/main/java/rx/internal/operators/OperatorWithLatestFromMany.java on lines 37..42
src/main/java/rx/internal/operators/SingleDelay.java on lines 41..46
src/main/java/rx/internal/operators/SingleDelay.java on lines 73..78
src/main/java/rx/internal/operators/SingleOnSubscribeUsing.java on lines 38..45
src/main/java/rx/internal/util/InternalObservableUtils.java on lines 305..310

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 49.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 12 locations. Consider refactoring.
Open

    public OnSubscribeSkipTimed(Observable<T> source, long time, TimeUnit unit, Scheduler scheduler) {
        this.source = source;
        this.time = time;
        this.unit = unit;
        this.scheduler = scheduler;
Severity: Major
Found in src/main/java/rx/internal/operators/OnSubscribeSkipTimed.java and 11 other locations - About 40 mins to fix
src/main/java/rx/internal/operators/OnSubscribeConcatMap.java on lines 64..70
src/main/java/rx/internal/operators/OnSubscribeDelaySubscription.java on lines 37..42
src/main/java/rx/internal/operators/OnSubscribeTimeoutSelectorWithFallback.java on lines 52..60
src/main/java/rx/internal/operators/OnSubscribeTimerPeriodically.java on lines 36..41
src/main/java/rx/internal/operators/OnSubscribeUsing.java on lines 39..46
src/main/java/rx/internal/operators/OperatorSubscribeOn.java on lines 65..70
src/main/java/rx/internal/operators/OperatorWithLatestFromMany.java on lines 37..42
src/main/java/rx/internal/operators/SingleDelay.java on lines 41..46
src/main/java/rx/internal/operators/SingleDelay.java on lines 73..78
src/main/java/rx/internal/operators/SingleOnSubscribeUsing.java on lines 38..45
src/main/java/rx/internal/util/InternalObservableUtils.java on lines 305..310

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 49.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Identical blocks of code found in 2 locations. Consider refactoring.
Open

    @Override
    public void shutdown() {
        for (;;) {
            CachedWorkerPool curr = pool.get();
            if (curr == NONE) {
Severity: Minor
Found in src/main/java/rx/internal/schedulers/CachedThreadScheduler.java and 1 other location - About 40 mins to fix
src/main/java/rx/internal/schedulers/EventLoopsScheduler.java on lines 114..126

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 49.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Identical blocks of code found in 2 locations. Consider refactoring.
Open

    public static <T> Subscriber<T> create(final Action1<? super T> onNext) {
        if (onNext == null) {
            throw new IllegalArgumentException("onNext can not be null");
        }

Severity: Minor
Found in src/main/java/rx/observers/Subscribers.java and 1 other location - About 40 mins to fix
src/main/java/rx/observers/Observers.java on lines 74..97

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 49.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Identical blocks of code found in 2 locations. Consider refactoring.
Open

    @Override
    public void shutdown() {
        for (;;) {
            FixedSchedulerPool curr = pool.get();
            if (curr == NONE) {
Severity: Minor
Found in src/main/java/rx/internal/schedulers/EventLoopsScheduler.java and 1 other location - About 40 mins to fix
src/main/java/rx/internal/schedulers/CachedThreadScheduler.java on lines 160..172

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 49.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Identical blocks of code found in 2 locations. Consider refactoring.
Open

    public static <T> Observer<T> create(final Action1<? super T> onNext) {
        if (onNext == null) {
            throw new IllegalArgumentException("onNext can not be null");
        }

Severity: Minor
Found in src/main/java/rx/observers/Observers.java and 1 other location - About 40 mins to fix
src/main/java/rx/observers/Subscribers.java on lines 84..107

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 49.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

    public static <T> Observable<T> merge(Single<? extends T> t1, Single<? extends T> t2, Single<? extends T> t3, Single<? extends T> t4, Single<? extends T> t5, Single<? extends T> t6, Single<? extends T> t7, Single<? extends T> t8) {
        return Observable.merge(asObservable(t1), asObservable(t2), asObservable(t3), asObservable(t4), asObservable(t5), asObservable(t6), asObservable(t7), asObservable(t8));
    }
Severity: Minor
Found in src/main/java/rx/Single.java and 1 other location - About 40 mins to fix
src/main/java/rx/Single.java on lines 415..417

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 49.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

    public static <T> Observable<T> concat(Single<? extends T> t1, Single<? extends T> t2, Single<? extends T> t3, Single<? extends T> t4, Single<? extends T> t5, Single<? extends T> t6, Single<? extends T> t7, Single<? extends T> t8) {
        return Observable.concat(asObservable(t1), asObservable(t2), asObservable(t3), asObservable(t4), asObservable(t5), asObservable(t6), asObservable(t7), asObservable(t8));
    }
Severity: Minor
Found in src/main/java/rx/Single.java and 1 other location - About 40 mins to fix
src/main/java/rx/Single.java on lines 908..910

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 49.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

            @Override
            public void call(final SingleSubscriber<? super T> child) {
                SingleSubscriber<Single<? extends T>> parent = new SingleSubscriber<Single<? extends T>>() {

                    @Override
Severity: Minor
Found in src/main/java/rx/Single.java and 1 other location - About 40 mins to fix
src/main/java/rx/internal/util/ScalarSynchronousSingle.java on lines 131..145

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 49.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

                } else {
                    SingleSubscriber<R> subscriber = new SingleSubscriber<R>() {
                        @Override
                        public void onError(Throwable e) {
                            child.onError(e);
Severity: Minor
Found in src/main/java/rx/internal/util/ScalarSynchronousSingle.java and 1 other location - About 40 mins to fix
src/main/java/rx/Single.java on lines 681..698

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 49.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Identical blocks of code found in 2 locations. Consider refactoring.
Open

        @Override
        public void request(long n) {
            if (n < 0) {
                throw new IllegalArgumentException("n >= required but it was " + n);
            }
Severity: Minor
Found in src/main/java/rx/internal/operators/OperatorGroupBy.java and 1 other location - About 40 mins to fix
src/main/java/rx/internal/operators/OperatorGroupByEvicting.java on lines 456..465

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 48.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Severity
Category
Status
Source
Language