The following issues were found

src/main/java/io/reactivex/rxjava3/internal/util/SorterFunction.java
1 issues
Found non-transient, non-static member. Please mark as transient or provide accessors.
Error

Line: 22

              
public final class SorterFunction<T> implements Function<List<T>, List<T>> {

    final Comparator<? super T> comparator;

    public SorterFunction(Comparator<? super T> comparator) {
        this.comparator = comparator;
    }


            

Reported by PMD.

src/main/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableMaterialize.java
1 issues
Avoid unused imports such as 'io.reactivex.rxjava3.core'
Design

Line: 18

              
import org.reactivestreams.Subscriber;

import io.reactivex.rxjava3.core.*;
import io.reactivex.rxjava3.internal.subscribers.SinglePostCompleteSubscriber;
import io.reactivex.rxjava3.plugins.RxJavaPlugins;

public final class FlowableMaterialize<T> extends AbstractFlowableWithUpstream<T, Notification<T>> {


            

Reported by PMD.

src/main/java/io/reactivex/rxjava3/internal/fuseable/CancellableQueueFuseable.java
1 issues
Found non-transient, non-static member. Please mark as transient or provide accessors.
Error

Line: 26

              public final class CancellableQueueFuseable<T>
extends AbstractEmptyQueueFuseable<T> {

    volatile boolean disposed;

    @Override
    public void cancel() {
        disposed = true;
    }

            

Reported by PMD.

src/main/java/io/reactivex/rxjava3/disposables/ActionDisposable.java
1 issues
A catch statement should never catch throwable since it includes errors.
Error

Line: 35

                  protected void onDisposed(@NonNull Action value) {
        try {
            value.run();
        } catch (Throwable ex) {
            throw ExceptionHelper.wrapOrThrow(ex);
        }
    }

    @Override

            

Reported by PMD.

src/test/java/io/reactivex/rxjava3/internal/util/TestingHelper.java
1 issues
Avoid unused imports such as 'io.reactivex.rxjava3.functions'
Design

Line: 18

              
import java.util.*;

import io.reactivex.rxjava3.functions.*;

public final class TestingHelper {

    private TestingHelper() {
        // prevent instantiation

            

Reported by PMD.

src/test/java/io/reactivex/rxjava3/internal/subscribers/InnerQueuedSubscriberTest.java
1 issues
JUnit assertions should include a message
Design

Line: 69

                      inner.request(1);
        inner.request(1);

        assertEquals(Arrays.asList(4L, 3L), requests);
    }
}

            

Reported by PMD.

src/test/java/io/reactivex/rxjava3/tck/WindowBoundaryTckTest.java
1 issues
Potential violation of Law of Demeter (method chain calls)
Design

Line: 33

                  public Publisher<List<Long>> createPublisher(long elements) {
        return
            Flowable.fromIterable(iterate(elements))
            .window(Flowable.just(1).concatWith(Flowable.<Integer>never()))
            .onBackpressureBuffer()
            .flatMap((Function)Functions.identity())
        ;
    }
}

            

Reported by PMD.

src/test/java/io/reactivex/rxjava3/tck/TimerTckTest.java
1 issues
Potential violation of Law of Demeter (method chain calls)
Design

Line: 29

                  @Override
    public Publisher<Long> createPublisher(final long elements) {
        return
                Flowable.timer(1, TimeUnit.MILLISECONDS)
                .onBackpressureLatest()
            ;
    }

    @Override

            

Reported by PMD.

src/test/java/io/reactivex/rxjava3/parallel/ParallelInvalid.java
1 issues
Found 'DU'-anomaly for variable 'ex' (lines '28'-'36').
Error

Line: 28

              
    @Override
    public void subscribe(Subscriber<? super Object>[] subscribers) {
        TestException ex = new TestException();
        for (Subscriber<? super Object> s : subscribers) {
            EmptySubscription.error(ex, s);
            s.onError(ex);
            s.onNext(0);
            s.onComplete();

            

Reported by PMD.

src/test/java/io/reactivex/rxjava3/tck/SwitchMapTckTest.java
1 issues
Potential violation of Law of Demeter (method chain calls)
Design

Line: 28

                  @Override
    public Publisher<Long> createPublisher(long elements) {
        return
            Flowable.just(1).switchMap(Functions.justFunction(
                    Flowable.fromIterable(iterate(elements)))
            )
        ;
    }
}

            

Reported by PMD.