Public report — RxJava, published 6 Aug 2026. Concrete security findings (CVE IDs, secret matches, dependency versions) are hidden in this version; ask the repo owner for the full report.
Watchdog 06-08-2026 @ 10:29 UTC Public
Code Health Audit

ReactiveX/RxJava

74% Strong
CriticalWeakAdequateStrongExemplary
lower third — near Adequate

Large · 168,761 LoC · rebuild ~3.7 person-years · weakest lens: Maturity (65%)

Grounded in facts. Every number here is computed, not narrated — reproducible, tool-backed, and traceable to a line of code. How to trust this ▸

20/22dimensions tool-verifieddeterministic · confidence 1.0 · 2 LLM-assisted, advisory
636findings with an exact file:lineof 644 — the remainder are repo-wide signals (a dimension-level measurement, not a single line); open any file:line and verify
22/94dimensions across the health lenses168761 LoC — wide & deep

Executive summary

Read through the Production lens — the standard calibration. *Green* means good enough to run in production. The score is absolute and comparable across repos.

ReactiveX/RxJava is in good health (74%). It can be evolved and depended on with normal engineering discipline; the items below are improvements, not blockers.

It is strongest in Architecture (100%) — the structure is clean and changes stay contained. Security (84%) is solid too.

The area that most needs attention is Maturity (65%) — onboarding is slow — key decisions and the architecture aren't written down, so contributors have to reverse-engineer the intent.

Leadership focus, highest impact first: Record significant decisions one document per decision (Architecture documentation); 'Testing' section to the root README (Documentation (README)); 1 The table of contents lists 'Operator fusion' but the body… (Documentation Quality).

For scale: Large (~168,761 production lines); rebuilding it from scratch would take roughly ~3.7 person-years (~2–8 engineers). Approximate, ±~30%.

Encouragingly, the gaps are in documentation and release process — not in the code's correctness, structure or security, which are strong. They're low-risk to close, and doing so would lift the grade without re-engineering anything that already works.

How the score is built — each lens's share of the headline Width is the lens's weight in the worst-heaviest fold (the weakest area pulls hardest); colour is that lens's own band. A lens fixes the score in proportion to its width.
Maturity 65% · 47% weightCode Health 78% · 26% weightReadiness 82% · 14% weightSecurity 84% · 8% weightArchitecture 100% · 4% weight

Raise Maturity 65 → 70 (the Healthy floor) ⇒ headline 74 → ~76.

Code composition — where the lines go
Tests 100%
New since the last scan (100+)

319 finding(s) are new versus the previous scan (2026-07-29) — surfaced by this scheduled scan itself, no pull request required. Showing the first 100; the full set is in the report.

  • D2 · SkipStreamer.drain (cognitive 17) src/main/java/io/reactivex/rxjava4/internal/operators/streamable/StreamableSkip.java
  • D4 · Duplicated block (28 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableReplay.java
  • D4 · Duplicated block (22 lines × 4) src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeFlatMapIterableFlowable.java
  • D4 · Duplicated block (22 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableCache.java
  • D4 · Duplicated block (22 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableFromIterable.java
  • D4 · Duplicated block (22 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelDoOnNextTry.java
  • D4 · Duplicated block (21 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableCreate.java
  • D4 · Duplicated block (21 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableFlatMapMaybe.java
  • D4 · Duplicated block (21 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/mixed/FlowableConcatMapMaybe.java
  • D4 · Duplicated block (21 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableConcatMap.java
  • D4 · Duplicated block (21 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelDoOnNextTry.java
  • D4 · Duplicated block (21 lines × 2) src/main/java/io/reactivex/rxjava4/processors/ReplayProcessor.java
  • D4 · Duplicated block (20 lines × 4) src/main/java/io/reactivex/rxjava4/internal/jdk8/ParallelMapTryOptional.java
  • D4 · Duplicated block (20 lines × 3) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableConcatMap.java
  • D4 · Duplicated block (20 lines × 2) src/main/java/io/reactivex/rxjava4/internal/jdk8/ParallelMapTryOptional.java
  • D4 · Duplicated block (20 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableConcatMap.java
  • D4 · Duplicated block (20 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableCreate.java
  • D4 · Duplicated block (20 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableObserveOn.java
  • D4 · Duplicated block (20 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableRange.java
  • D4 · Duplicated block (20 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelRunOn.java
  • D4 · Duplicated block (20 lines × 2) src/main/java/io/reactivex/rxjava4/internal/schedulers/DeferredExecutorScheduler.java
  • D4 · Duplicated block (20 lines × 2) src/main/java/io/reactivex/rxjava4/observers/SerializedObserver.java
  • D4 · Duplicated block (19 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableFromIterable.java
  • D4 · Duplicated block (19 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableGroupJoin.java
  • D4 · Duplicated block (19 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowablePublish.java
  • D4 · Duplicated block (19 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableRange.java
  • D4 · Duplicated block (19 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableConcatMap.java
  • D4 · Duplicated block (18 lines × 2) src/main/java/io/reactivex/rxjava4/internal/observers/ForEachWhileObserver.java
  • D4 · Duplicated block (18 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableBufferBoundary.java
  • D4 · Duplicated block (18 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableBufferTimed.java
  • D4 · Duplicated block (18 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableCache.java
  • D4 · Duplicated block (18 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableCreate.java
  • D4 · Duplicated block (18 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableJoin.java
  • D4 · Duplicated block (18 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableWindowTimed.java
  • D4 · Duplicated block (18 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/mixed/ObservableConcatMapMaybe.java
  • D4 · Duplicated block (18 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/mixed/ObservableSwitchMapMaybe.java
  • D4 · Duplicated block (18 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableMergeWithMaybe.java
  • D4 · Duplicated block (18 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelRunOn.java
  • D4 · Duplicated block (17 lines × 6) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableFromArray.java
  • D4 · Duplicated block (17 lines × 3) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableMap.java
  • D4 · Duplicated block (17 lines × 2) src/main/java/io/reactivex/rxjava4/internal/jdk8/FlowableFromStream.java
  • D4 · Duplicated block (17 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableBufferExactBoundary.java
  • D4 · Duplicated block (17 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableConcatMap.java
  • D4 · Duplicated block (17 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableDoOnEach.java
  • D4 · Duplicated block (17 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableJoin.java
  • D4 · Duplicated block (17 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableMergeWithMaybe.java
  • D4 · Duplicated block (17 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableObserveOn.java
  • D4 · Duplicated block (17 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableObserveOn.java
  • D4 · Duplicated block (17 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableOnBackpressureBuffer.java
  • D4 · Duplicated block (17 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableSequenceEqual.java
  • D4 · Duplicated block (17 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/mixed/FlowableConcatMapMaybe.java
  • D4 · Duplicated block (17 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/mixed/FlowableSwitchMapMaybe.java
  • D4 · Duplicated block (17 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableSequenceEqual.java
  • D4 · Duplicated block (17 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableTimeout.java
  • D4 · Duplicated block (17 lines × 2) src/main/java/io/reactivex/rxjava4/internal/schedulers/DeferredExecutorScheduler.java
  • D4 · Duplicated block (17 lines × 2) src/main/java/io/reactivex/rxjava4/internal/schedulers/DeferredExecutorScheduler.java
  • D4 · Duplicated block (16 lines × 4) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableConcatMap.java
  • D4 · Duplicated block (16 lines × 4) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableRepeat.java
  • D4 · Duplicated block (16 lines × 3) src/main/java/io/reactivex/rxjava4/internal/observers/BlockingDisposableMultiObserver.java
  • D4 · Duplicated block (16 lines × 3) src/main/java/io/reactivex/rxjava4/processors/ReplayProcessor.java
  • D4 · Duplicated block (16 lines × 2) src/main/java/io/reactivex/rxjava4/internal/jdk8/ParallelCollector.java
  • D4 · Duplicated block (16 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableConcatMap.java
  • D4 · Duplicated block (16 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableConcatMap.java
  • D4 · Duplicated block (16 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableDistinctUntilChanged.java
  • D4 · Duplicated block (16 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableGroupJoin.java
  • D4 · Duplicated block (16 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableObserveOn.java
  • D4 · Duplicated block (16 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableReplay.java
  • D4 · Duplicated block (16 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableReplay.java
  • D4 · Duplicated block (16 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableSequenceEqual.java
  • D4 · Duplicated block (16 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableSequenceEqual.java
  • D4 · Duplicated block (16 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeFromCallable.java
  • D4 · Duplicated block (16 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/mixed/FlowableSwitchMapSingle.java
  • D4 · Duplicated block (16 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/mixed/ObservableConcatMapMaybe.java
  • D4 · Duplicated block (16 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableConcatMap.java
  • D4 · Duplicated block (16 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableConcatMap.java
  • D4 · Duplicated block (16 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableFlatMapMaybe.java
  • D4 · Duplicated block (16 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelJoin.java
  • D4 · Duplicated block (16 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelMapTry.java
  • D4 · Duplicated block (16 lines × 2) src/main/java/io/reactivex/rxjava4/internal/schedulers/DeferredExecutorScheduler.java
  • D4 · Duplicated block (16 lines × 2) src/main/java/io/reactivex/rxjava4/internal/schedulers/DeferredExecutorScheduler.java
  • D4 · Duplicated block (16 lines × 2) src/main/java/io/reactivex/rxjava4/processors/BehaviorProcessor.java
  • D4 · Duplicated block (15 lines × 3) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableScanSeed.java
  • D4 · Duplicated block (15 lines × 3) src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeCache.java
  • D4 · Duplicated block (15 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableDistinctUntilChanged.java
  • D4 · Duplicated block (15 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableDoOnEach.java
  • D4 · Duplicated block (15 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableFilter.java
  • D4 · Duplicated block (15 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableGroupJoin.java
  • D4 · Duplicated block (15 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableObserveOn.java
  • D4 · Duplicated block (15 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableReplay.java
  • D4 · Duplicated block (15 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableUsing.java
  • D4 · Duplicated block (15 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableWindowTimed.java
  • D4 · Duplicated block (15 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeFilter.java
  • D4 · Duplicated block (15 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeFlatMapIterableFlowable.java
  • D4 · Duplicated block (15 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeFlatMapIterableFlowable.java
  • D4 · Duplicated block (15 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/mixed/ObservableSwitchMapMaybe.java
  • D4 · Duplicated block (15 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableAny.java
  • D4 · Duplicated block (15 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableConcatMap.java
  • D4 · Duplicated block (15 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableGroupJoin.java
  • D4 · Duplicated block (15 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableSequenceEqual.java
  • D4 · Duplicated block (15 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelDoOnNextTry.java

A full-fidelity diff against the previous run's complete recorded findings — line-move tolerant: a finding that only shifted line counts as unchanged, only genuinely new titles/files surface here.

Rebuild cost & value ~ Modeled — €180,000–€910,000
Cost to rebuild€180,000–€910,000 (1.8–5.7 person-years (3,015–9,564 h), ~2–8 engineers)
Domain complexityStandard — harder problems cost more per line
Quality factor1.1× (at 74% quality) — the last 20% of quality is most of the work
Size & shapeLarge · effort split not classified (source measured from disk; the effort-tier breakdown is a C#-only syntax walk)

This codebase represents roughly ~3.7 person-years of build effort (about ~€540,000 to rebuild). Its weakest lens is Maturity at 65% — the part of that asset most exposed by the findings below.

How we model this: boilerplate at a scaffolding rate + logic × domain Standard (×1.0) — standard service × a 1.1× quality factor, at €60–95/h; indicative, ±~30% · size measured directly from source · effort from total production LoC as straight-line logic (the tier split is a C#-only syntax walk), a conservative lower bound. Indicative only — most sensitive to the hourly rate and the domain tier (both tunable in config).

Top priorities

The highest-leverage moves; the full ranked list is in the Roadmap below.

1
Record significant decisions one document per decision — dated, stating the context, the decision and its consequences — and keep them together wherever your design docs already live (a conventional `docs/adr/` tree with `NNNN-title.md` names is the most discoverable form).
+8.7 pts · Medium effort · Architecture documentation
2
Add a 'Testing' section to the root README — how to run the test suite.
+8.6 pts · Medium effort · Documentation (README)
3
Resolve the 1 The table of contents lists 'Operator fusion' but the body never covers… finding(s) in Documentation Quality — start with Writing-operators-for-2.0.md.
+3.8 pts · Low effort · Documentation Quality

Diagnosis — what's actually going on

The top fix pays for itself · High · Economics
The top-ranked fix costs roughly 3–10 engineer-days once. Not doing it costs about 29.4–185.8 engineer-days every year, paid as drag on the ~557,290 lines this team changes annually — a bill that arrives whether or not anyone books it. On those figures the fix breaks even in roughly 1–4 months and is free after that. Method, stated so this is not read as a quotation: debt from the ranked task's effort band; interest = annual changed lines (measured, annualised from the 90-day window) ÷ an ASSUMED 150–400 lines per engineer-day × the 2–5% drag implied by the code-quality signals; breaking point = debt ÷ annual interest. A modelled planning range built from measured inputs and one named assumption — not a quotation, a valuation, or a certified figure.
Evidence: D15 churn: 137,414 line(s) changed over a 90-day window ⇒ ~557,290/year · D1/D2/D4 code quality: averaging 7.2/10 ⇒ a 2–5% drag on each change · top-ranked remediation: Medium effort ⇒ about 3–10 engineer-day(s)
→ Do the top-ranked fix now if this code will still be yours in 4 months.
Value concentrated against a weak lens · Medium · Value at risk
This is a Large asset (~3.7 person-years to rebuild), and its weakest lens is Maturity at 65%. The operational and business risk on an asset this size concentrates there — that's where remediation buys the most protection.
Evidence: valuation: Large, ~3.7 person-years rebuild (168,761 LoC) · weakest lens: Maturity 65%
→ Direct remediation budget at Maturity first — highest risk-reduction per euro on an asset this size.
Highest-leverage move · Medium · Leverage
Of everything flagged, the best return on effort is: Record significant decisions one document per decision — dated, stating the context, the decision and its consequences — and keep them together wherever your design docs already live (a conventional `docs/adr/` tree with `NNNN-title.md` names is the most discoverable form). The rest can wait behind it.
Evidence: priority ranking: top of 5 ranked by impact/effort
→ Record significant decisions one document per decision — dated, stating the context, the decision and its consequences — and keep them together wherever your design docs already live (a conventional `docs/adr/` tree with `NNNN-title.md` names is the most discoverable form).
A velocity tax on every change · Medium · Economics
The code-quality signals (complexity, duplication, cohesion) average 7.2/10, which acts as a tax on every change in the weaker areas: modifications there plausibly cost on the order of 2–5% more than in clean code, and the tax compounds as the codebase grows. (A modelled estimate, not a measured fact.)
Evidence: D1/D2/D4 code quality: averaging 7.2/10 across the code-quality signals actually measured
→ Pay it down where churn is highest — the hotspots — not everywhere; that's where the tax is actually paid.

Architecture — module dependency matrix

35 modules, 193 dependencies — 1 dependency cycle, shown as the red cell(s) above the diagonal. Rows and columns are the same modules, ordered so that a module only depends on ones above it. A cell means the row depends on the column, and its number is how many type pairs create that dependency. Read one thing: is anything above the diagonal? A mark there is a dependency cycle. (A cycle is all this shows — an unusual but cycle-free dependency sits below the diagonal like any other.)

(global).github.workflows…x.rxjava4.annotations…ex.rxjava4.exceptions…vex.rxjava4.functions…x.rxjava4.core.config…vex.rxjava4.operators…ivex.rxjava4.parallel…xjava4.internal.queue…rxjava4.internal.util…x.rxjava4.disposables….internal.disposables…nternal.subscriptions…4.internal.schedulers…vex.rxjava4.observers…ex.rxjava4.schedulers…x.rxjava4.subscribers…eactivex.rxjava4.core…a4.internal.functions…va4.internal.fuseable…a4.internal.observers…operators.completable…ernal.operators.mixed….internal.subscribers…ava4.internal.virtual…tivex.rxjava4.plugins…rxjava4.internal.jdk8…ernal.operators.maybe…al.operators.parallel…rnal.operators.single….operators.streamable…ivex.rxjava4.subjects….operators.observable…ex.rxjava4.processors…al.operators.flowable(global)1.github.workflows2…x.rxjava4.annotations3…ex.rxjava4.exceptions4…vex.rxjava4.functions5…x.rxjava4.core.config6…vex.rxjava4.operators7…ivex.rxjava4.parallel8…xjava4.internal.queue9…rxjava4.internal.util10…x.rxjava4.disposables11….internal.disposables12…nternal.subscriptions13…4.internal.schedulers14…vex.rxjava4.observers15…ex.rxjava4.schedulers16…x.rxjava4.subscribers17…eactivex.rxjava4.core18…a4.internal.functions19…va4.internal.fuseable20…a4.internal.observers21…operators.completable22…ernal.operators.mixed23….internal.subscribers24…ava4.internal.virtual25…tivex.rxjava4.plugins26…rxjava4.internal.jdk827…ernal.operators.maybe28…al.operators.parallel29…rnal.operators.single30….operators.streamable31…ivex.rxjava4.subjects32….operators.observable33…ex.rxjava4.processors34…al.operators.flowable3565538111992212112271512111104442271434736511144161712115314117868720134147286692292826195125153292113431177463327169119952713146131335113822810729363222134633160231265121423613242111729958482223411144312614813170221222415233364198261141331265881517922232371414223450117376305396192112

At a glance — Code Health · 78% · Strong

At a glance — Architecture · 100% · Exemplary

At a glance — Maturity · 65% · Adequate · gated by M2

At a glance — Readiness · 82% · Strong

At a glance — Security · 84% · Strong

Security & Compliance — OWASP Top-10 mapping

Findings mapped to OWASP categories; the specific CVEs/secrets are in the Security dimension cards below and findings.md (redacted only on the public version of this report).

OWASP categoryFindingsSeverity
A03:2021 — Injection1High / Critical

Roadmap

Begin by documenting significant architectural decisions in a dedicated `docs/adr/` directory to capture context and consequences. Next, update the root README to include a 'Testing' section explaining how to run the test suite. Then, address the missing 'Operator fusion' content in the documentation quality review, starting with Writing-operators-for-2.0.md. After that, implement a changelog to track release details. Finally, reduce bus factor risk by resolving sole-ownership findings to improve codebase resilience.

Ranked by impact ÷ effort. "Helps" is the estimated gain on the 0–100 health score.

Do thisHelpsEffortDimension
Record significant decisions one document per decision — dated, stating the context, the decision and its consequences — and keep them together wherever your design docs already live (a conventional `docs/adr/` tree with `NNNN-title.md` names is the most discoverable form).+8.7 ptsMediumArchitecture documentation
Add a 'Testing' section to the root README — how to run the test suite.+8.6 ptsMediumDocumentation (README)
Resolve the 1 The table of contents lists 'Operator fusion' but the body never covers… finding(s) in Documentation Quality — start with Writing-operators-for-2.0.md.+3.8 ptsLowDocumentation Quality
Resolve the 1 Further sole-owners (lower concentration) finding(s) in Bus Factor.+1.1 ptsLowBus Factor
Resolve the 1 Off-boarding risk finding(s) in Bus Factor.+1.1 ptsLowBus Factor
Keep a changelog (e.g. Keep-a-Changelog) recording what shipped in each release.+1.6 ptsMediumRelease Hygiene
Resolve the 1 No SBOM finding(s) in Supply-chain Provenance & Signing.+0.5 ptsLowSupply-chain Provenance & Signing
Resolve the 1 No build provenance finding(s) in Supply-chain Provenance & Signing.+0.5 ptsLowSupply-chain Provenance & Signing

File quality

Per-file score 0–10 — a quality signature. Of 249 files carrying findings, judged against the Production bar: 0% slop · 51% mixed · 49% near-clean.

FileScoreBandWorst signal
src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableConcatMap.java7.0MixedCyclomatic Complexity: ConcatMapDelayed.drain (cyclomatic 21)
src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableFlatMapMaybe.java7.0MixedCyclomatic Complexity: FlatMapMaybeSubscriber.drainLoop (cyclomatic 20)
src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableWindowTimed.java7.0MixedCyclomatic Complexity: WindowSkipSubscriber.drain (cyclomatic 19)
src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableConcatMap.java7.0MixedCyclomatic Complexity: ConcatMapDelayErrorObserver.drain (cyclomatic 17)
src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableReplay.java7.0MixedCyclomatic Complexity: BoundedReplayBuffer.replay (cyclomatic 16)
src/main/java/io/reactivex/rxjava4/processors/ReplayProcessor.java7.0MixedCyclomatic Complexity: UnboundedReplayBuffer.replay (cyclomatic 16)
src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableObserveOn.java7.0MixedCognitive Complexity: ObserveOnSubscriber.runAsync (cognitive 28)
src/main/java/io/reactivex/rxjava4/core/Flowable.java7.0MixedGod Classes: TooManyMethods: Flowable
src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableGroupJoin.java7.0MixedCyclomatic Complexity: GroupJoinSubscription.drain (cyclomatic 23)
src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelJoin.java7.0MixedCyclomatic Complexity: JoinSubscription.drainLoop (cyclomatic 22)
src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableCreate.java7.0MixedCyclomatic Complexity: BufferAsyncEmitter.drain (cyclomatic 16)
src/main/java/io/reactivex/rxjava4/core/Observable.java7.0MixedGod Classes: TooManyMethods: Observable
src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableMergeWithMaybe.java7.0MixedCyclomatic Complexity: MergeWithObserver.drainLoop (cyclomatic 18)
src/main/java/io/reactivex/rxjava4/subjects/ReplaySubject.java7.0MixedCognitive Complexity: UnboundedReplayBuffer.replay (cognitive 19)
src/main/java/io/reactivex/rxjava4/internal/schedulers/DeferredExecutorScheduler.java7.0MixedCode Duplication: Duplicated block (20 lines × 2)
src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableFlatMap.java7.1MixedCyclomatic Complexity: MergeSubscriber.drainLoop (cyclomatic 43)
src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableSequenceEqual.java7.1MixedCyclomatic Complexity: EqualCoordinator.drain (cyclomatic 23)
src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableGroupJoin.java7.1MixedCyclomatic Complexity: GroupJoinDisposable.drain (cyclomatic 22)
src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableSequenceEqual.java7.1MixedCyclomatic Complexity: EqualCoordinator.drain (cyclomatic 22)
src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelRunOn.java7.1MixedCyclomatic Complexity: RunOnSubscriber.run (cyclomatic 19)

Methodology & how to trust this report

Watchdog is a deep, periodic assessment — run each sprint, monthly, or quarterly, taking the time to go wider and deeper than a quick check and surfacing in one coherent report what you'd otherwise piece together from a dozen separate tools. It scores deterministically: the same commit yields the same score, every run. 20 of 22 evaluated dimensions are computed purely by tools and static analysis (confidence 1.0); 2 documentation/naming judgement(s) are LLM-assisted and labelled advisory. Overall confidence is 0.5 — the weighted average across measured dimensions; it falls as more of the score leans on LLM-assisted judgement and rises when it's fully tool-backed.

Every figure here is one of three kinds, and we label which: ✓ Measured — a deterministic fact (LoC, complexity, coverage); ~ Modeled — an estimate from a stated model (cost, effort, value-at-risk), always a range with its assumptions, never a precise fact; ◐ Advisory — an LLM prose judgement. We never present a modelled estimate as if it were measured. Perfect or absent scores carry their provenance too (ADR-0011): ✓ Tool-verified means the property itself was measured across the surface; ○ Nothing flagged means the probes came back clean — a claim bounded by what a repository can show; ⊘ Not evidenced means a working control (a tested restore, an automated rollback) showed no positive evidence — absence of evidence is not evidence of a control, so it's excluded from the score rather than awarded a spurious 10; ◐ Sampled · advisory marks an LLM verdict over a bounded sample — advisory, never a deterministic measurement.

What we checked — 22 dimensions across the health lenses
D1D2D3D4D13D15D16D19D21D28D29D34D35D36D37M1M2M3M4P1P3P6

Each chip is a dimension scored from real signals across architecture, testing, dependencies, security & compliance, documentation, git-history and code quality — in one coherent pass. A surface report typically covers a handful.

How to trust any code-health report — three questions
  1. Can you open the finding? Real findings cite a repo-relative file and line you can open at the cited line — never an absolute scratch path. Here, 636 of 644 do; the remainder are repo-wide signals — a dimension-level measurement, not a single line. (Every path in this report is repo-relative by construction: paths are normalized at the producer and the report is rejected if any rooted path leaks through.)
  2. Is there a tool behind the number? Every score below names the method that produced it — Roslyn, git, a scanner, or (for a handful of documentation/naming dimensions) an LLM labelled sampled · advisory — not a narrative.
  3. Does re-running give the same result? Run it again on the same commit and the score — and this report, byte for byte — is identical. A report whose numbers move between runs is describing the run, not the code.

This report answers yes to all three. That's the bar to hold any assessment to.

Tools & methods

The actual versions used this run (captured at analysis time) — re-run on the same commit for the identical score.

MethodBacksVersionEvaluator
Roslyn static analysisComplexity, cohesion, coupling, dead code, API surface, layering5.3.0✓ deterministic
Native secret scannerHardcoded secrets / credentials1.0.0✓ deterministic
jscpdCode duplication✓ deterministic
Coverage (coverlet / dotnet-coverage)Line & branch coverage10.0.302✓ deterministic
NuGet / dotnetOutdated, vulnerable & deprecated dependencies10.0.302✓ deterministic
git / LibGit2SharpChurn hotspots, knowledge concentration, history2.43.0 · 0.31.0✓ deterministic
gitleaks · semgrep · trivySecrets in history, SAST, CVEs, IaC & container, PII / GDPR1.86.0 · 0.69.3✓ deterministic
LLM (sampled · advisory)Documentation quality, ADR conformance, naming — sampled over a bounded sample; advisory, never a deterministic measurementLocal LLM◐ LLM · sampled · advisory

Every finding is locatable in findings.md. Run 019fd69e-8a8b-7e0d-9f16-3bc19708ca76.

The exact command behind every deep-scan dimension — tool, version, invocation and retained raw output — is in Appendix B — Reproduction & audit trail.

Run transparency — what happened this run

What ran differently this time — a tool absent, degraded, or that fell back to an estimate. Named openly, not folded silently into the scores. A degraded run also records its exact cause in diagnostics.md.

  • D30 Dependency Vulnerabilities — scanner not present in this environment — The backing tool was not installed where this scan ran, so this dimension was not scored. Install the tool (or run in the hosted environment, where it is always present) for a graded result.

Repo exclusion declarations (.gitattributes linguist-generated/vendored, .editorconfig generated_code): none declared — every source file was scored.

Limitations & what we did not check

Watchdog assesses the repository exactly as committed, and only the repository. By design it does not reach outside the source tree: the live cloud account, the running CI/CD pipeline, the host's branch-protection and approval rules, the production configuration, or a restore actually exercised against a backup are all out of scope. That boundary is a feature, not a gap — a repo-relative, deterministic scan re-runs identically on any commit and every finding opens at a real file and line, where a live audit can neither be reproduced nor traced. The visible consequence is that controls which leave no in-repo evidence are reported as "not evidenced" and excluded from the score rather than awarded a number a static scan cannot justify.

Per-dimension blind spots

For each dimension that was measured, what a static, repo-only scan structurally cannot see — the honest edge of the measurement, not a failure of it.

  • D1 Cyclomatic Complexity: Cyclomatic complexity counts branches statically — it cannot tell an essential decision tree from accidental tangle, nor see complexity that lives in data or configuration (large switch-case token tables, DSL lexers/parsers, data-as-code rule tables) rather than control flow: a tokenizer's many single-character cases read as high complexity though each branch is trivial.
  • D2 Cognitive Complexity: Cognitive-complexity heuristics approximate how hard code is to follow; genuine domain difficulty and well-named intent that eases reading are not captured.
  • D3 God Classes: "God class" is sized by members and responsibilities visible in the type — a deliberately broad facade over a coherent subsystem can read the same as an accidental grab-bag. For front-end JS the file-length check is cohesion-aware (a single-responsibility module — one class/IIFE — earns a 3× threshold), but cohesion is approximated from top-level declarations, not true dependency structure.
  • D4 Code Duplication: Duplication is token-similarity (jscpd) — it finds copy-paste, not semantic duplication expressed differently. Committed machine-written code (scaffolded migrations, designer/codegen output, protobuf/OpenAPI stubs, model snapshots) is EXCLUDED — its repetition is the tool's, not the team's — so the score reflects hand-written duplication only.
  • D13 Secret Scanning: Secret detection is signature- and entropy-based on the current tree — a secret that does not match a known pattern, or one already rotated, will not be flagged (a clean scan is "nothing matched", not "no secrets exist").
  • D15 Churn × Complexity Hotspots: Churn hotspots come from git history — a freshly imported or squashed repository has no churn signal, and recent rewrites can mask a historically risky file.
  • D16 Bus Factor: Bus-factor is a time-decayed model of commit attribution (who has recently, repeatedly worked a file), not comprehension — pairing, review and reading-without-committing spread knowledge it can't see; bot commits and shared accounts still distort it.
  • D19 Documentation Quality: Documentation quality is judged by an LLM over a bounded sample of docs — it reads what is written, not whether the docs match the running system, and it is advisory, not a measurement.
  • D21 Naming Consistency: Naming quality is an LLM judgement over a bounded sample — it assesses clarity/consistency of the names it sees, not domain-correctness, and is advisory.
  • D28 Secrets (history): Secret-history scanning sweeps the git log for known patterns — a secret that predates the available history, or never matched a signature, is not found (clean means "nothing matched in the history we can see").
  • D29 Static Analysis (SAST): SAST findings are pattern-based (semgrep) — it finds classes of bug it has rules for; logic flaws, auth/authorization gaps and issues needing runtime context are out of reach (and clean means "no rule matched").
  • D34 Knowledge Freshness: Freshness is decayed commit RECENCY, not comprehension — code read often but rarely committed reads as orphaned, and stable code that genuinely needs no changes is penalised the same as forgotten code; bot/squash commits distort it like the bus factor.
  • D35 Change Coupling: Change coupling is co-change in COMMITS — files split across separate commits, or coupled only through a shared config/build step, read as uncoupled, and a sweeping commit (rename/format) is excluded so it doesn't couple everything. It shows that files change together, not WHY: a high coupling can be a healthy cohesive pair as readily as a hidden leak.
  • M4 Documentation accuracy: Onboarding quality is an LLM read of the docs/setup present — it cannot run the onboarding or measure how long a real new joiner takes; the verdict is sampled and advisory.
  • P6 Release Hygiene: Rollback/observability controls are inferred from repo artefacts (pipelines, dashboards-as-code) — controls configured in external tooling, with no in-repo trace, cannot be credited.

The LLM boundary

LLM-set scores this run (3): D19, D21, M4 (model: Local LLM). For these, a model reads a bounded sample and sets the numeric score (documentation, ADR quality, naming, comment value, onboarding) — D25 sets the ADR-conformance fraction over sampled code, D22 judges API accuracy over a sample. These are sampled and advisory by design: they vary at the margins between runs and are never a deterministic measurement. Every other score in this report is tool-computed at confidence 1.0.

Dimensions

D1 · Cyclomatic Complexity6.9 / 10Adequate✓ Tool-verified

What it measures: How tangled the control flow is — methods with many branches are hard to test and change.

Method: Cyclomatic complexity per method (1 + decision points), computed exhaustively across production source; test projects separated by convention. Deterministic.

Maturity: DocumentedVerifiedPrevented · effective 6.9 / 10 · rule-coverage 100% · ceiling Prevented

68 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was MergeSubscriber.drainLoop at 43.

EqualCoordinator.drain (cyclomatic 23) · ×2src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableSequenceEqual.java:115
EqualCoordinator.drain (cyclomatic 22) · ×2src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableSequenceEqual.java:114
MergeWithObserver.drainLoop (cyclomatic 18) · ×2src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableMergeWithMaybe.java:228
FlatMapIterableObserver.drain (cyclomatic 16) · ×2src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeFlatMapIterableFlowable.java:180
MergeSubscriber.drainLoop (cyclomatic 43)src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableFlatMap.java:363

+ 59 more group(s) — more in Appendix A; the complete list is findings.md.

What to do

  1. Resolve the 2 EqualCoordinator.drain (cyclomatic 23) finding(s) in Cyclomatic Complexity — start with FlowableSequenceEqual.java, FlowableSequenceEqualSingle.java. — One of this dimension's main actionable groups (2 warning-level).
  2. Resolve the 2 EqualCoordinator.drain (cyclomatic 22) finding(s) in Cyclomatic Complexity — start with ObservableSequenceEqual.java, ObservableSequenceEqualSingle.java. — One of this dimension's main actionable groups (2 warning-level).
  3. Resolve the 2 MergeWithObserver.drainLoop (cyclomatic 18) finding(s) in Cyclomatic Complexity — start with FlowableMergeWithMaybe.java, FlowableMergeWithSingle.java. — One of this dimension's main actionable groups (2 warning-level).
  4. Enforce Cyclomatic Complexity in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.

Detailed fixes: d1_recommendation.md · top locations in Appendix A, every location in findings.md.

D2 · Cognitive Complexity5.6 / 10Adequate✓ Tool-verified

What it measures: How hard the code is for a person to follow, beyond raw branching.

Method: Cognitive complexity per method (Sonar-style nesting-penalized score), computed exhaustively over production code, excluding test projects. Deterministic.

Maturity: DocumentedVerifiedPrevented · effective 5.6 / 10 · rule-coverage 100% · ceiling Prevented

192 method(s) exceeded the cognitive complexity threshold of 15; the worst was MergeSubscriber.drainLoop at 149.

EqualCoordinator.drain (cognitive 66) · ×2src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableSequenceEqual.java:115
EqualCoordinator.drain (cognitive 53) · ×2src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableSequenceEqual.java:114
MergeWithObserver.drainLoop (cognitive 40) · ×2src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableMergeWithMaybe.java:228
FlatMapIterableObserver.drain (cognitive 39) · ×2src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeFlatMapIterableFlowable.java:180
ConcatMaybeObserver.drain (cognitive 25) · ×2src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeConcatArray.java:112

+ 176 more group(s) — more in Appendix A; the complete list is findings.md.

What to do

  1. Resolve the 2 EqualCoordinator.drain (cognitive 66) finding(s) in Cognitive Complexity — start with FlowableSequenceEqual.java, FlowableSequenceEqualSingle.java. — One of this dimension's main actionable groups (2 warning-level).
  2. Resolve the 2 EqualCoordinator.drain (cognitive 53) finding(s) in Cognitive Complexity — start with ObservableSequenceEqual.java, ObservableSequenceEqualSingle.java. — One of this dimension's main actionable groups (2 warning-level).
  3. Resolve the 2 MergeWithObserver.drainLoop (cognitive 40) finding(s) in Cognitive Complexity — start with FlowableMergeWithMaybe.java, FlowableMergeWithSingle.java. — One of this dimension's main actionable groups (2 warning-level).
  4. Enforce Cognitive Complexity in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.

Detailed fixes: d2_recommendation.md · top locations in Appendix A, every location in findings.md.

D3 · God Classes9.6 / 10Exemplary✓ Tool-verified

What it measures: Over-large classes that try to do too much ("god classes").

Method: God-class detection by line and method-count thresholds per logical type (partial classes unified), filtered for generated code and registration/contract false positives. Deterministic.

Maturity: DocumentedVerifiedPrevented · effective 9.6 / 10 · rule-coverage 100% · ceiling Prevented

19 god class(es) detected.

FileTooLong: core/Flowable.java · ×10src/main/java/io/reactivex/rxjava4/core/Flowable.java:0
TooManyMethods: Flowable · ×9src/main/java/io/reactivex/rxjava4/core/Flowable.java:157

✓ On the Gold path — maintain.

Detailed fixes: d3_recommendation.md · top locations in Appendix A, every location in findings.md.

D4 · Code Duplication9.0 / 10Strong✓ Tool-verified

What it measures: Copy-pasted code that should be shared instead.

Method: Code duplication via token-stream sliding windows with type-aware normalization (locals masked, type names preserved), density-scored per KLoC of production code. Deterministic.

Maturity: DocumentedVerifiedPrevented · effective 9.0 / 10 · rule-coverage 100% · ceiling Verified

345 duplicated block group(s) detected.

Duplicated block (13 lines × 2) · ×36src/main/java/io/reactivex/rxjava4/internal/jdk8/FlowableCollectWithCollector.java:130
Duplicated block (14 lines × 2) · ×31src/main/java/io/reactivex/rxjava4/core/Maybe.java:4712
Duplicated block (11 lines × 2) · ×31src/main/java/io/reactivex/rxjava4/core/Flowable.java:3191
Duplicated block (12 lines × 2) · ×28src/main/java/io/reactivex/rxjava4/core/Flowable.java:13361
Duplicated block (15 lines × 2) · ×27src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableDistinct.java:73

+ 48 more group(s) — more in Appendix A; the complete list is findings.md.

What to do

  1. Resolve the 36 Duplicated block (13 lines × 2) finding(s) in Code Duplication — start with MaybeFlattenStreamAsFlowable.java (2), ObservableConcatMap.java (2), FlowableCollectWithCollector.java. — One of this dimension's main actionable groups (36 warning-level).
  2. Resolve the 31 Duplicated block (14 lines × 2) finding(s) in Code Duplication — start with FlowableFlatMapMaybe.java (2), SerializedProcessor.java (2), Maybe.java. — One of this dimension's main actionable groups (31 warning-level).
  3. Resolve the 31 Duplicated block (11 lines × 2) finding(s) in Code Duplication — start with FlowableWindowTimed.java (3), FlowableReplay.java (2), StreamableMapOptional.java (2). — One of this dimension's main actionable groups (31 warning-level).
  4. Enforce Code Duplication in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.

Detailed fixes: d4_recommendation.md · top locations in Appendix A, every location in findings.md.

D13 · Secret Scanning10.0 / 10Exemplary○ Nothing flagged

What it measures: Whether any secrets (keys, tokens, passwords) have leaked into the code.

Method: In-process native secret scanner (entropy plus signature patterns) across all tracked files; no external tool. A clean result is a measured 10, not no-data zero. Deterministic.

Maturity: DocumentedVerifiedPrevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Prevented

Secret scan ran and found no leaked secrets.

✓ On the Gold path — maintain.

Detailed fixes: d13_recommendation.md.

D15 · Churn × Complexity Hotspots10.0 / 10Exemplary✓ Tool-verified

What it measures: Files that change often and are also complex — the riskiest hotspots.

Method: Per production file churn times cyclomatic complexity over a rolling window, computed from git and Roslyn/JS/Razor analysis. Exhaustive, deterministic per commit date.

Maturity: DocumentedVerifiedPrevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

Top hotspots: src/main/java/io/reactivex/rxjava4/processors/MulticastProcessor.java (3×30=90); src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowablePublishMulticast.java (2×36=72); src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableWindowBoundarySelector.java (4×18=72)

Hotspot: src/main/java/io/reactivex/rxjava4/processors/MulticastProcessor.java · ×10src/main/java/io/reactivex/rxjava4/processors/MulticastProcessor.java

✓ On the Gold path — maintain.

Detailed fixes: d15_recommendation.md · top locations in Appendix A, every location in findings.md.

D16 · Bus Factor8.6 / 10Strong✓ Tool-verified

What it measures: Whether knowledge is concentrated in too few people (the "bus factor").

Method: Living knowledge per author via time-decayed commit attribution (6-month half-life, focus weighting) across largest source files. Deterministic, avoids blame's mechanical-refactor false positives.

Maturity: DocumentedVerifiedPrevented · effective 8.6 / 10 · rule-coverage 100% · ceiling Documented

96 source file(s) have their living knowledge concentrated in one author (≥90% of recent, decayed contribution). The largest is src/main/java/io/reactivex/rxjava4/core/Flowable.java.

Off-boarding risk: anonymized user #1
Further sole-owners (lower concentration)

What to do

  1. Resolve the 1 Off-boarding risk finding(s) in Bus Factor. — One of this dimension's main actionable groups (1 recommendation-level).
  2. Resolve the 1 Further sole-owners (lower concentration) finding(s) in Bus Factor. — One of this dimension's main actionable groups (1 recommendation-level).

Detailed fixes: d16_recommendation.md · top locations in Appendix A, every location in findings.md.

D19 · Documentation Quality / 10Strong◐ Sampled · advisory

What it measures: Whether the project's documentation is clear, complete, and useful.

Method: Judged by language model at low temperature (0.0-0.1) on a deterministic doc sample (READMEs plus first 25 architecture docs), with two-pass stability filtering. Advisory, sampled.

Maturity: DocumentedVerifiedPrevented · effective Strong / 10 · rule-coverage 100% · ceiling Documented

RxJava's documentation is comprehensive and well-structured: a single README with an informative release note plus a dedicated 4.x versioning doc (including API surface changes, migration guide, and the full 2026 release schedule), plus four architecture/design docs covering Getting Started, Polyglot Implementation, Libraries, and Writing Operators for 2.0/3.1/4.0; an outline Sidebar listing every named section; and a What's-different-in-... series of focused change documents (API signature changes, virtual threads, nulls). The content is clear, complete, and well organized. The project's documentation is comprehensive and well-organized: two README files plus architecture/design markdown (40 total) cover operators, the RxAndroid module, Subjects, StringObservables, Scheduler docs, Reactive Streams + RxJava, a Problem-Solving Examples page, Plugins, Phantom Operators, Parallel-flows, and an Operator-Matrix table. The body is clipped in many places but each named section exists per the outline; no missing content to flag. The documentation is comprehensive and well-structured for an RxJava/ReactiveX project: two README files plus four architecture/design markdown docs covering operators (materialize/dematerialize, timestamp, serialize, cache, observeOn, subscribeOn, doOnEach/doOnNext/doAfterNext/doOnCompleted/doOnError/doOnTerminate), a dedicated Mathematical-and-Aggregate-Operators doc with the full outline and danger-note on long sequences, an Implementing-custom-operators draft covering the observable/subscribe protocol, unsubscription, backpressure, concurrency, and tools, plus a final Implementing-Your-Own-Operators guide. The content is clear and complete for its audience.

The table of contents lists 'Operator fusion' but the body never covers it; the operator-fusion sections (Generations, Components) are clipped mid-sentence before any concrete content appears.docs/Writing-operators-for-2.0.md

What to do

  1. Resolve the 1 The table of contents lists 'Operator fusion' but the body never covers… finding(s) in Documentation Quality — start with Writing-operators-for-2.0.md. — One of this dimension's main actionable groups (1 recommendation-level).

Detailed fixes: d19_recommendation.md · top locations in Appendix A, every location in findings.md.

D21 · Naming Consistency / 10Exemplary◐ Sampled · advisory

What it measures: Whether names — types, methods, variables — are clear and consistent.

Method: Judged by language model at low temperature (0.0-0.1) on a deterministic random symbol sample (fixed size, not exhaustive), with disclosed confidence band. Advisory, sampled.

Maturity: DocumentedVerifiedPrevented · effective Exemplary / 10 · rule-coverage 100% · ceiling Verified

0 naming inconsistencies across 0 sampled symbols.

✓ On the Gold path — maintain.

Detailed fixes: d21_recommendation.md.

D28 · Secrets (history)10.0 / 10Exemplary○ Nothing flagged

What it measures: Whether any secrets were ever committed — scanned across the full git history, not just now.

Method: Git-history secret scan via gitleaks detect over full history in an isolated checkout; each match flagged High. Exhaustive; degrades cleanly when tool absent.

Maturity: DocumentedVerifiedPrevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

gitleaks scanned the full history AND the current working tree and found no secrets.

✓ On the Gold path — maintain.

Detailed fixes: d28_recommendation.md.

D29 · Static Analysis (SAST)8.4 / 10Strong✓ Tool-verified

What it measures: Real static-analysis (SAST) findings — likely security bugs in the code, any language.

Method: Polyglot static analysis via semgrep across the repo using the pinned, image-baked p/security-audit + p/owasp-top-ten rulesets (no scan-time registry fetch); severity rules (ERROR/WARNING/INFO) map to a full-band severity-weighted score. Exhaustive, deterministic; degrades on parse failure.

Coverage: semgrep pattern rules over all files — exhaustive for the rule set, blind to classes of bug without a rule (clean = no rule matched).

Maturity: DocumentedVerifiedPrevented · effective 8.4 / 10 · rule-coverage 100% · ceiling Documented

1 finding(s): 0 critical, 1 high, 0 medium, 0 low.

High: dependabot-missing-cooldown.github/dependabot.yml:4detected by semgrep finding

What to do

  1. Resolve the 1 High finding(s) in Static Analysis (SAST) — start with dependabot.yml. — One of this dimension's main actionable groups (1 issue-level).

Detailed fixes: d29_recommendation.md · top locations in Appendix A, every location in findings.md.

D34 · Knowledge Freshness10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether anyone still has living knowledge of each file, or it has been orphaned — last understood long ago by someone now gone quiet. The sibling of the bus factor: D16 asks who owns it, D34 asks whether anyone still knows it.

Method: File orphaning as total living-knowledge decay below one focused-commit's worth within a year, computed per-file from the D16 decay model. Exhaustive, deterministic over fixed history.

Maturity: DocumentedVerifiedPrevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

Every significant source file has living knowledge — recently and meaningfully worked.

✓ On the Gold path — maintain.

Detailed fixes: d34_recommendation.md.

D35 · Change Coupling10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether files that change together actually belong together — pairs that repeatedly co-change in git history despite having no explicit code dependency, surfacing the hidden/logical coupling (and boundaries in the wrong place) a static scan can't see.

Method: Pairwise co-occurrence over the per-commit file sets in git history (production source only — tests and generated dropped): Degree-of-Coupling = shared ÷ min individual revisions, reported above noise floors (each file ≥10 revisions, ≥5 shared commits, ≥50% strength); sweeping commits excluded. Deterministic over fixed history.

Coverage: Population: PRODUCTION source files only — test and generated files are dropped before pairing, so a class co-changing with its own test (trivially ~100%) can't drown the real production↔production coupling. Pairs ranked by Degree-of-Coupling; coupling through a build step, config, or non-source file isn't seen.

Maturity: DocumentedVerifiedPrevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

No strong hidden change-coupling between production files.

✓ On the Gold path — maintain.

Detailed fixes: d35_recommendation.md.

D36 · Supply-chain Provenance & Signing5.0 / 10Adequate✓ Tool-verified

What it measures: Whether the build pipeline provides supply-chain integrity — generated provenance/attestation, signed artifacts (cosign/sigstore), an SBOM, and pinned build actions. Presence of the configuration, not a runtime guarantee.

Method: Supply-chain provenance/signing read deterministically from CI/build config (.github/workflows, .gitlab-ci.yml, azure-pipelines, Jenkinsfile, .circleci) + the release surface: four signals — generated provenance/attestation (SLSA/in-toto/actions-attest), artifact signing (cosign/sigstore/gitsign), an SBOM (syft/sbom-action/*.spdx.json/*.cdx.json), and SHA-pinned build actions — scored 10·present/denom. NotApplicable without a build pipeline. Detects configuration presence, not runtime enforcement.

Maturity: DocumentedVerifiedPrevented · effective 5.0 / 10 · rule-coverage 100% · ceiling Documented

2/4 supply-chain integrity signals present (provenance, signing, SBOM, pinned actions).

No build provenance
No SBOM

What to do

  1. Resolve the 1 No build provenance finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 recommendation-level).
  2. Resolve the 1 No SBOM finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 recommendation-level).

Detailed fixes: d36_recommendation.md · top locations in Appendix A, every location in findings.md.

D37 · Vulnerability-disclosure Policy10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether the repository publishes a coordinated-vulnerability-disclosure policy (SECURITY.md or security.txt) with a reporting contact, so finders know how to report a vulnerability. Presence of a policy file with a contact, not whether the policy is adequate or honoured.

Method: Vulnerability-disclosure policy read deterministically from the repo: a SECURITY.md (root/.github/docs) or .well-known/security.txt / security.txt, regex-checked for a reporting contact (email / URL / mailto). Present + contact → 10; present without a contact → 4; NotApplicable when no policy file exists (it may live off-repo). Detects the policy file's presence + contact, not its adequacy.

Maturity: DocumentedVerifiedPrevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

A vulnerability-disclosure policy (SECURITY.md) is published with a reporting contact.

✓ On the Gold path — maintain.

Detailed fixes: d37_recommendation.md.

Frontend & cross-cutting dimensions

R = React/JS · M = Maturity · P = Readiness.

M1 · Documentation (README)6.7 / 10Adequate✓ Tool-verified

Maturity · Maturity — Whether the repo and its projects have a README, and whether it's substantive and current.

Method: Filesystem scan: README presence, word count, and headings for depth; git history for staleness. Exhaustive across root and project dirs, deterministic.

What to do

  • Add a 'Testing' section to the root README — how to run the test suite.
  • Add an 'Architecture' / 'How it works' section to the root README — the high-level shape.
M2 · Architecture documentation2.0 / 10Critical✓ Tool-verified

Maturity · Maturity — Whether key decisions (ADRs) and the high-level shape (C4/diagrams) are written down.

Method: Filesystem scan: ADR folder/naming conventions or content, plus Mermaid/PlantUML/C4/architecture.md discovery. Exhaustive, deterministic.

  • No Architecture Decision Records found — no conventional ADR directory, no `NNNN-title.md` documents and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer.

What to do

  • Record significant decisions one document per decision — dated, stating the context, the decision and its consequences — and keep them together wherever your design docs already live (a conventional `docs/adr/` tree with `NNNN-title.md` names is the most discoverable form).
M3 · Folder & project structure10.0 / 10Exemplary✓ Tool-verified

Maturity · Maturity — Whether the repo is organised deliberately — src/test separation and consistent project naming.

Method: Filesystem scan: src/test folder separation and namespace-prefix consistency (majority RootNamespace agreement). Exhaustive across projects, deterministic.

M4 · Documentation accuracy10.0 / 10Exemplary◐ Sampled · advisory

Maturity · Maturity — Whether the README actually describes the code that exists (LLM-judged, advisory).

Method: Judged by language model at low temperature: README accuracy versus actual projects, within a disclosed tolerance. Advisory, not a measured number.

P1 · CI/CD gates10.0 / 10Exemplary○ Nothing flagged

Readiness · Readiness — Whether an automated pipeline builds and tests every change.

Method: Filesystem scan: CI workflow files (.github/workflows, .gitlab-ci.yml, etc.) for build and test stages. Exhaustive, deterministic.

P3 · Security & performance tooling10.0 / 10Exemplary○ Nothing flagged

Readiness · Readiness — Whether SAST, secret/dependency scanning and performance benchmarking are wired in (presence, not runtime).

Method: Filesystem scan: SAST configuration, dependency-update automation, secret scanning, and a benchmark harness or benchmark step — in this repository's own ecosystem. Exhaustive, deterministic.

P6 · Release Hygiene5.0 / 10Adequate✓ Tool-verified

Readiness · Readiness — Whether releases are traceable — a maintained changelog and explicit version stamping.

Method: Filesystem scan: changelog file presence and version tags in csproj or git tags. Exhaustive, deterministic.

  • No CHANGELOG/HISTORY/RELEASES file — what shipped when isn't easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)

What to do

  • Keep a changelog (e.g. Keep-a-Changelog) recording what shipped in each release.

Reference — by lens

The score is the rank-weighted fold of these lenses (worst-heaviest), each including its meta-dimensions; a lens with a Critical contributor is capped at Fair (its band reads "gated by …") and is never the strongest area however high its average.

LensScoreRatingImpact
Code Health78%StrongSolid.
Architecture100%ExemplaryStrongest area.
Maturity65%Adequate — gated by M2Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Readiness82%StrongSolid.
Security84%StrongSolid.
Not included — 72 check(s) not relevant to this codebase

These checks had nothing to measure here (no tests, no git history, the codebase is small, or the architecture style doesn't apply), so they're omitted above rather than scored low.

  • AC1 Text alternatives — No web markup found — accessibility is not applicable to this repository.
  • AC2 Forms & labels — No web markup found — accessibility is not applicable to this repository.
  • AC3 Page structure — No web markup found — accessibility is not applicable to this repository.
  • AC4 Keyboard semantics — No web markup found — accessibility is not applicable to this repository.
  • AC5 ARIA correctness — No web markup found — accessibility is not applicable to this repository.
  • AC6 Visual & motion safety — No web markup found — accessibility is not applicable to this repository.
  • AC7 A11y enforcement — No web markup found — accessibility is not applicable to this repository.
  • AX1 Captive dependencies — no DI registrations detected
  • AX10 Code composition — not assessed — code composition is computed by ROLE over a document set that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • AX2 Stateful singletons — no singleton implementations detected
  • AX3 Project dependency cycles — not assessed — project cycles and dependency direction are computed over a project-reference graph that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • AX4 Dependency direction — not assessed — project cycles and dependency direction are computed over a project-reference graph that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • AX5 Architecture & structure — not assessed — architecture style/structure is computed from a project graph (projects, types, module namespaces) that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • AX6 Interface segregation — not assessed — interface segregation is computed over a type surface that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • AX7 Slice cohesion — not applicable — not a vertical-slice architecture
  • AX8 Test isolation — not assessed — test isolation is computed from a project graph (which projects are test projects, and what they reference) that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • AX9 CQS / query purity — no CQRS query handlers detected — query purity is not applicable to this codebase
  • AXB2 Runtime readiness — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
  • C1 Data Protection — Not assessed: these personal data controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks personal data controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
  • C2 Access Controls — Not assessed: these authorization controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks authorization controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
  • C3 Audit Trail — Not assessed: these audit controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks audit controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
  • C4 Data Retention — Not assessed: these retention controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks retention controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
  • C5 Data-Subject Rights — Not assessed: these data-subject rights controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks data-subject rights controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
  • D10 Test Quality — ~210344 lines of test source are present (.java) but the test-quality collector reads C# only, so skipped/assertion-free tests couldn't be counted. Not scored — this is a gap in the analyzer, not a finding about this repository.
  • D11 Test Reliability — Test reliability not included
  • D12 Dependency Hygiene — Dependency hygiene not measured — dependency manifest found but not parsed for hygiene
  • D14 License Compliance — Not scored — this repository's package manifest is not parsed for licence data yet. A gap in the analyzer's language coverage, NOT a finding that the repository's licenses are compliant (a Gradle version catalogue), which this pass does not parse yet — so this dimension asserts nothing about this repository's licensing in either direction.
  • D17 Explicit Debt — explicit-debt markers are read through a C# workspace today, so they were not read for this repository's language — this asserts nothing about how many markers the code carries. Not scored — this is a gap in the analyzer, not a finding about this repository
  • D18 Solution Shape — D18 scores the shape of a .NET solution; this repository has no .NET solution or project files, so the dimension does not apply.
  • D20 ADR Quality — N/A — ADRs are expected on deployable products with a user-facing host, not consumed libraries; no ADR log is required here.
  • D22 Internal API Consistency — No exposed public API
  • D23 Boundary Type-Coupling — Production source is present (.java) but bounded contexts are resolved over the C#/VB project set, which exposed none, so context scope could not be assessed. Not scored — this is a gap in the analyzer, not a verdict about this repository. Declaring the codebase's bounded contexts (≥2) would let cross-boundary type coupling be assessed — see the recommendation on this dimension for where. Declare them in `.codehealth/config.yaml` at the repository root (create it if absent), mapping each context name to the module-path or namespace prefixes that belong to it — e.g. `architecture:` → `contexts:` → `Billing: ["src/billing", "Acme.Billing"]`, `Catalog: ["src/catalog", "Acme.Catalog"]`.
  • D24 Comment Value — No inline comments to assess — comment value is not applicable here.
  • D25 ADR Conformance — no ADRs to check
  • D26 Project Cohesion — Project cohesion is assessed over the .NET project set; this target exposed no projects, so project size and spread could not be assessed. Not scored — this is a gap in the analyzer's reach, not a verdict about this repository.
  • D27 Navigability — No calls could be sampled, so navigability was not assessed — tracing effort is measured over resolved call sites and this target exposed none. Not scored — this is a gap in the analyzer's reach, not a verdict about this repository.
  • D30 Dependency Vulnerabilities — Not scored — no dependency manifest in a supported ecosystem was read for this repository. A gap in the analyzer's language coverage, NOT a finding that the repository is free of vulnerable dependencies (a Gradle version catalogue — not scanned yet) — where an OSV-supported manifest exists, dependency vulnerabilities for this repository are reported under D38 instead.
  • D31 IaC & Container Security — No Infrastructure-as-Code or container manifests found (Dockerfile, Terraform, Kubernetes/Helm, CloudFormation); nothing to scan.
  • D32 Data Compliance (PII/GDPR) — No PII/GDPR-handling patterns detected (p/gdpr ruleset) — no data-compliance surface to assess.
  • D33 JS/npm Dependency Vulnerabilities — No JS/npm manifest or lockfile found outside build output (package.json, package-lock.json, yarn.lock, pnpm-lock.yaml, bun.lockb); no JS dependencies to scan.
  • D38 OSV Dependency Vulnerabilities — No supported non-.NET dependency lockfile found outside build output (npm package-lock/yarn/pnpm/bun, Go go.mod, Rust Cargo.lock, Maven pom.xml, Gradle lockfiles, Python requirements.txt/poetry.lock/Pipfile.lock/pdm.lock, PHP composer.lock, Ruby Gemfile.lock, Elixir mix.lock, Dart pubspec.lock, Swift Package.resolved); nothing for OSV to scan. A NuGet-only repo stays NotApplicable — .NET CVEs are D30's domain.
  • D39 IL Efficiency — D39 measures the IL emitted by a .NET build; this repository has no .NET solution or project files, so the dimension does not apply.
  • D40 Network Egress Confinement — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.
  • D41 Kernel & Syscall Confinement — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.
  • D42 Runtime Threat Enforcement — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.
  • D5 Coupling — Inter-project coupling could not be assessed — no analyzable project graph was found for this repository. Not scored: a gap in the analyzer's reach, not a verdict about this repository. (Coupling here is Martin afferent/efferent/instability plus reference cycles across a project-reference graph, read today from .NET project files; other ecosystems' module graphs are not read yet.)
  • D6 Cohesion (LCOM4) — Cohesion (LCOM4) is measured over a C#/VB class graph, and this repository's production source is .java, which this pass does not read — so no class could be assessed. Not scored — this is a gap in the analyzer, not a finding about this repository.
  • D7 Architectural Integrity — no checkable ADRs, and no project-reference graph for the cycle pass to read — so this dimension makes no claim about dependency cycles in either direction (where this repository's language has an import-cycle lens, cycles are reported there). Architectural integrity not assessed
  • D8 Code Coverage — Coverage not included — suite not readable by the collector
  • D9 Test Distribution — Test source is present (.java) but the test-pyramid classifier reads C# only, so its unit/integration/BDD/E2E split couldn't be counted. Not scored — this is a gap in the analyzer, not a finding about this repository.
  • DM1 Domain Modelling — applicable but not scored (2 of 3 signals for this style — below the bar we score at): 618 value object(s); 5 domain event(s)
  • ED1 Event-Driven — not scored — this repository shows none of the 3 signals this check looks for
  • ED5 Idempotency — no mutating command handlers or message consumers detected — idempotency check not applicable
  • ES1 Event Sourcing — not scored — this repository shows none of the 3 signals this check looks for
  • GD1 Unfinished & placeholder code — no source files
  • IC1 Incompleteness & stubs — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • P12 CI test-gate honesty — Reported, not scored — this card publishes what the CI gate does with the test inventory rather than grading it. The findings above are its output.
  • P2 Observability — Observability was not assessed: this check reads a source model that does not carry this repository's product — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of a logging idiom this check recognises is NOT evidence that this repo lacks structured logging (it may log through its own ecosystem's logger). This is a gap in the analyzer, not a finding about this repository.
  • P4 Deployment & Rollback — not evidenced — no deploy/rollback/approval signal in the repo; absence of evidence is not evidence of a manual release
  • P5 DR & Backup — not evidenced — repo shows no backup/RTO/RPO controls; absence of evidence is not evidence of a working control
  • P7 Outbound HTTP resilience — not measured — the application kind could not be determined for this repo
  • P8 Schema migrations — not assessed — schema-migration practice is read from a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • P9 Domain vs controller coverage — no coverage report found on disk — produce a coverage report in a standard format (JaCoCo XML — the Gradle `jacocoTestReport` task) into the repo working tree before the scan — a CI step is the usual place, since the artefact is commonly gitignored, or wire coverage collection into CI, to enable this cross-layer check
  • PF1 Benchmark discipline — Performance was not assessed: this lens reads a source model that was not loaded for this repository, because the repository is written in a language this lens does not yet model or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository — in particular it is NOT a statement that this repo is unpackaged or performance-careless.
  • PF2 Allocation hygiene — Performance was not assessed: this lens reads a source model that was not loaded for this repository, because the repository is written in a language this lens does not yet model or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository — in particular it is NOT a statement that this repo is unpackaged or performance-careless.
  • PF3 Async & latency hygiene — Performance was not assessed: this lens reads a source model that was not loaded for this repository, because the repository is written in a language this lens does not yet model or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository — in particular it is NOT a statement that this repo is unpackaged or performance-careless.
  • S1 Web-Security Posture — Not assessed: these web-security controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks web-security controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
  • X1 Async correctness — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • X2 Cancellation propagation — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • X3 Exception handling — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • X4 Structured logging — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • X5 Nullable reference types — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository

Appendix A — Findings (grouped)

The findings behind the scores, grouped by severity, then by dimension and kind. The high-severity issues are enumerated in full below; items per group are capped at 25 with any overflow stated explicitly per group, never silently truncated. The complete machine-readable list of every finding (all severities) is the companion findings.md in this report's bundle.

Issue — 1 finding(s)
D29 · Static Analysis (SAST) · High · ×1
  • High: dependabot-missing-cooldown .github/dependabot.yml:4 — This Dependabot configuration does not set a cooldown period. Newly published packages can be malicious or unstable. Add a `cooldown` block with `default-days: 7` to each `package-ecosystem` entry under `updates` to wait 7 days before proposing updates to newly published package versions. Reference: https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#cooldown. This is a semgrep security-AUDIT rule reporting a POLICY that is absent or weaker than its recommendation, not an exploitable defect. Confirm whether the current setting is a deliberate decision for this repository — and apply the change where it is not; where it is (a policy your release process already enforces elsewhere, or one this repository has consciously opted out of), record the decision and leave the configuration as it is. This configuration file has 2 such entries; one cooldown decision clears them all — reported once.
Warning — 634 finding(s)
D4 · Code Duplication · Duplicated block (13 lines × 2) · ×36
  • Duplicated block (13 lines × 2) src/main/java/io/reactivex/rxjava4/internal/jdk8/FlowableCollectWithCollector.java:130 — src/main/java/io/reactivex/rxjava4/internal/jdk8/FlowableCollectWithCollector.java:130-142 | src/main/java/io/reactivex/rxjava4/internal/jdk8/FlowableCollectWithCollectorSingle.java:134-146 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/jdk8/FlowableCollectWithCollector.java:130` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (13 lines × 2) src/main/java/io/reactivex/rxjava4/internal/jdk8/FlowableFromStream.java:147 — src/main/java/io/reactivex/rxjava4/internal/jdk8/FlowableFromStream.java:147-159 | src/main/java/io/reactivex/rxjava4/internal/jdk8/ObservableFromStream.java:135-147 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/jdk8/FlowableFromStream.java:147` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (13 lines × 2) src/main/java/io/reactivex/rxjava4/internal/jdk8/FlowableMapOptional.java:70 — src/main/java/io/reactivex/rxjava4/internal/jdk8/FlowableMapOptional.java:70-82 | src/main/java/io/reactivex/rxjava4/internal/jdk8/FlowableMapOptional.java:135-147 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/jdk8/FlowableMapOptional.java:70` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (13 lines × 2) src/main/java/io/reactivex/rxjava4/internal/jdk8/MaybeFlattenStreamAsFlowable.java:106 — src/main/java/io/reactivex/rxjava4/internal/jdk8/MaybeFlattenStreamAsFlowable.java:106-118 | src/main/java/io/reactivex/rxjava4/internal/jdk8/MaybeFlattenStreamAsObservable.java:99-111 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/jdk8/MaybeFlattenStreamAsFlowable.java:106` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (13 lines × 2) src/main/java/io/reactivex/rxjava4/internal/jdk8/MaybeFlattenStreamAsFlowable.java:158 — src/main/java/io/reactivex/rxjava4/internal/jdk8/MaybeFlattenStreamAsFlowable.java:158-170 | src/main/java/io/reactivex/rxjava4/internal/jdk8/MaybeFlattenStreamAsObservable.java:148-160 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (13 lines × 2) src/main/java/io/reactivex/rxjava4/internal/jdk8/ObservableCollectWithCollector.java:128 — src/main/java/io/reactivex/rxjava4/internal/jdk8/ObservableCollectWithCollector.java:128-140 | src/main/java/io/reactivex/rxjava4/internal/jdk8/ObservableCollectWithCollectorSingle.java:129-141 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/jdk8/ObservableCollectWithCollector.java:128` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (13 lines × 2) src/main/java/io/reactivex/rxjava4/internal/observers/FutureMultiObserver.java:51 — src/main/java/io/reactivex/rxjava4/internal/observers/FutureMultiObserver.java:51-63 | src/main/java/io/reactivex/rxjava4/internal/observers/FutureObserver.java:52-64 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/observers/FutureMultiObserver.java:51` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (13 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/completable/CompletableFromAction.java:38 — src/main/java/io/reactivex/rxjava4/internal/operators/completable/CompletableFromAction.java:38-50 | src/main/java/io/reactivex/rxjava4/internal/operators/completable/CompletableFromRunnable.java:37-49 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/completable/CompletableFromAction.java:38` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (13 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableBufferBoundary.java:147 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableBufferBoundary.java:147-159 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableBufferBoundary.java:139-151 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableBufferBoundary.java:147` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (13 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableDematerialize.java:65 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableDematerialize.java:65-77 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableDematerialize.java:74-86 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableDematerialize.java:65` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (13 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableDoOnEach.java:99 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableDoOnEach.java:99-111 | src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableDoOnEach.java:256-268 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableDoOnEach.java:99` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (13 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableGenerate.java:167 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableGenerate.java:167-179 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableGenerate.java:140-152 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableGenerate.java:167` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (13 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableRefCount.java:97 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableRefCount.java:97-109 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableRefCount.java:95-107 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableRefCount.java:97` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (13 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableSkipLastTimed.java:194 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableSkipLastTimed.java:194-206 | src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableTakeLastTimed.java:217-229 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableSkipLastTimed.java:194` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (13 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableWindowTimed.java:431 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableWindowTimed.java:431-443 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableWindowTimed.java:397-409 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableWindowTimed.java:431` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (13 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeFlatMapBiSelector.java:139 — src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeFlatMapBiSelector.java:139-151 | src/main/java/io/reactivex/rxjava4/internal/operators/single/SingleFlatMapBiSelector.java:137-149 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (13 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeZipArray.java:115 — src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeZipArray.java:115-127 | src/main/java/io/reactivex/rxjava4/internal/operators/single/SingleZipArray.java:116-128 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (13 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeZipIterable.java:66 — src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeZipIterable.java:66-78 | src/main/java/io/reactivex/rxjava4/internal/operators/single/SingleZipIterable.java:65-77 — before extracting anything, compare `src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeZipIterable.java` and `src/main/java/io/reactivex/rxjava4/internal/operators/single/SingleZipIterable.java` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeZipIterable.java:66` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (13 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/mixed/FlowableSwitchMapCompletable.java:104 — src/main/java/io/reactivex/rxjava4/internal/operators/mixed/FlowableSwitchMapCompletable.java:104-116 | src/main/java/io/reactivex/rxjava4/internal/operators/mixed/ObservableSwitchMapCompletable.java:102-114 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/mixed/FlowableSwitchMapCompletable.java:104` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (13 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/mixed/FlowableSwitchMapMaybe.java:125 — src/main/java/io/reactivex/rxjava4/internal/operators/mixed/FlowableSwitchMapMaybe.java:125-137 | src/main/java/io/reactivex/rxjava4/internal/operators/mixed/ObservableSwitchMapMaybe.java:118-130 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/mixed/FlowableSwitchMapMaybe.java:125` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (13 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/mixed/FlowableSwitchMapSingle.java:125 — src/main/java/io/reactivex/rxjava4/internal/operators/mixed/FlowableSwitchMapSingle.java:125-137 | src/main/java/io/reactivex/rxjava4/internal/operators/mixed/ObservableSwitchMapSingle.java:118-130 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/mixed/FlowableSwitchMapSingle.java:125` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (13 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableConcatMap.java:208 — src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableConcatMap.java:208-220 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableConcatMapScheduler.java:218-230 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableConcatMap.java:208` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (13 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableConcatMap.java:437 — src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableConcatMap.java:437-449 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableConcatMapScheduler.java:460-472 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableConcatMap.java:437` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (13 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableFlatMapMaybe.java:164 — src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableFlatMapMaybe.java:164-176 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableFlatMapSingle.java:166-178 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableFlatMapMaybe.java:164` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (13 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableGroupJoin.java:238 — src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableGroupJoin.java:238-250 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableJoin.java:214-226 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once.
  • + 11 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (14 lines × 2) · ×31
  • Duplicated block (14 lines × 2) src/main/java/io/reactivex/rxjava4/core/Maybe.java:4712 — src/main/java/io/reactivex/rxjava4/core/Maybe.java:4712-4725 | src/main/java/io/reactivex/rxjava4/core/Single.java:4286-4299 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/core/Maybe.java:4712` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (14 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/BlockingFlowableIterable.java:85 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/BlockingFlowableIterable.java:85-98 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/BlockingObservableIterable.java:74-87 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/BlockingFlowableIterable.java:85` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (14 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableAll.java:66 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableAll.java:66-79 | src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableTakeWhile.java:59-73 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableAll.java:66` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (14 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableConcatMapScheduler.java:274 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableConcatMapScheduler.java:274-287 | src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableConcatMapScheduler.java:462-475 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (14 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableDebounceTimed.java:92 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableDebounceTimed.java:92-105 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableDebounceTimed.java:83-96 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableDebounceTimed.java:92` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (14 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableFlatMapMaybe.java:122 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableFlatMapMaybe.java:122-135 | src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableFlatMapSingle.java:122-135 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableFlatMapMaybe.java:122` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (14 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableFlatMapMaybe.java:189 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableFlatMapMaybe.java:189-202 | src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableFlatMapSingle.java:189-202 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableFlatMapMaybe.java:189` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (14 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableGroupJoin.java:293 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableGroupJoin.java:293-306 | src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableJoin.java:281-294 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once.
  • Duplicated block (14 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableJoin.java:234 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableJoin.java:234-247 | src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableJoin.java:295-308 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (14 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableMergeWithMaybe.java:115 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableMergeWithMaybe.java:115-128 | src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableMergeWithSingle.java:115-128 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableMergeWithMaybe.java:115` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (14 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowablePublish.java:73 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowablePublish.java:73-86 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservablePublish.java:63-76 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowablePublish.java:73` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (14 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableReplay.java:751 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableReplay.java:751-764 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableReplay.java:637-650 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableReplay.java:751` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (14 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableWindowBoundarySelector.java:223 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableWindowBoundarySelector.java:223-236 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableWindowBoundarySelector.java:219-232 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableWindowBoundarySelector.java:223` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (14 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableZip.java:207 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableZip.java:207-221 | src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableZip.java:274-287 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableZip.java:207` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (14 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeCreate.java:72 — src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeCreate.java:72-85 | src/main/java/io/reactivex/rxjava4/internal/operators/single/SingleCreate.java:66-79 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeCreate.java:72` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (14 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeFlatMapCompletable.java:82 — src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeFlatMapCompletable.java:82-95 | src/main/java/io/reactivex/rxjava4/internal/operators/single/SingleFlatMapCompletable.java:82-95 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeFlatMapCompletable.java:82` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (14 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableBufferExactBoundary.java:148 — src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableBufferExactBoundary.java:148-161 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableBufferTimed.java:538-552 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableBufferExactBoundary.java:148` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (14 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableConcatMapEager.java:251 — src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableConcatMapEager.java:251-264 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableConcatMapEager.java:300-313 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableConcatMapEager.java:251` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (14 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableFlatMapCompletable.java:90 — src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableFlatMapCompletable.java:90-103 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableFlatMapCompletableCompletable.java:103-116 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once.
  • Duplicated block (14 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableFlatMapMaybe.java:110 — src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableFlatMapMaybe.java:110-123 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableFlatMapSingle.java:112-125 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableFlatMapMaybe.java:110` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (14 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableRetryBiPredicate.java:98 — src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableRetryBiPredicate.java:98-111 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableRetryPredicate.java:109-122 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableRetryBiPredicate.java:98` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (14 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/streamable/StreamableBlocking.java:61 — src/main/java/io/reactivex/rxjava4/internal/operators/streamable/StreamableBlocking.java:61-74 | src/main/java/io/reactivex/rxjava4/internal/operators/streamable/StreamableBlocking.java:113-126 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/streamable/StreamableBlocking.java:61` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (14 lines × 2) src/main/java/io/reactivex/rxjava4/internal/schedulers/DeferredExecutorScheduler.java:133 — src/main/java/io/reactivex/rxjava4/internal/schedulers/DeferredExecutorScheduler.java:133-146 | src/main/java/io/reactivex/rxjava4/internal/schedulers/ExecutorScheduler.java:195-208 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once.
  • Duplicated block (14 lines × 2) src/main/java/io/reactivex/rxjava4/internal/schedulers/SchedulerToExecutorService.java:199 — src/main/java/io/reactivex/rxjava4/internal/schedulers/SchedulerToExecutorService.java:199-212 | src/main/java/io/reactivex/rxjava4/internal/schedulers/SchedulerToExecutorService.java:279-292 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/schedulers/SchedulerToExecutorService.java:199` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (14 lines × 2) src/main/java/io/reactivex/rxjava4/observers/SafeObserver.java:92 — src/main/java/io/reactivex/rxjava4/observers/SafeObserver.java:92-105 | src/main/java/io/reactivex/rxjava4/subscribers/SafeSubscriber.java:83-96 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/observers/SafeObserver.java:92` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • + 6 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (11 lines × 2) · ×31
  • Duplicated block (11 lines × 2) src/main/java/io/reactivex/rxjava4/core/Flowable.java:3191 — src/main/java/io/reactivex/rxjava4/core/Flowable.java:3191-3201 | src/main/java/io/reactivex/rxjava4/core/Streamable.java:488-498 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/core/Flowable.java:3191` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (11 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/completable/CompletableMerge.java:107 — src/main/java/io/reactivex/rxjava4/internal/operators/completable/CompletableMerge.java:107-117 | src/main/java/io/reactivex/rxjava4/internal/operators/completable/CompletableMerge.java:134-144 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/completable/CompletableMerge.java:107` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableAmb.java:95 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableAmb.java:95-105 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableAmb.java:94-104 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableAmb.java:95` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableGroupBy.java:412 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableGroupBy.java:412-422 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableGroupBy.java:274-284 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableGroupBy.java:412` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableReduce.java:75 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableReduce.java:75-86 | src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableReduceMaybe.java:102-112 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableReduce.java:75` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableRefCount.java:133 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableRefCount.java:133-143 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableRefCount.java:131-142 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableRefCount.java:133` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableRepeatWhen.java:45 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableRepeatWhen.java:45-55 | src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableRetryWhen.java:44-54 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once.
  • Duplicated block (11 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableReplay.java:926 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableReplay.java:926-936 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableReplay.java:769-779 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableReplay.java:926` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableReplay.java:1081 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableReplay.java:1081-1091 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableReplay.java:925-935 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableReplay.java:1081` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (11 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableRetryBiPredicate.java:80 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableRetryBiPredicate.java:80-90 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableRetryBiPredicate.java:75-85 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableRetryBiPredicate.java:80` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableScan.java:67 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableScan.java:67-77 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableScan.java:76-86 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableScan.java:67` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableTimeout.java:98 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableTimeout.java:98-108 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableTimeout.java:92-102 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (11 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableWindowTimed.java:355 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableWindowTimed.java:355-365 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableWindowTimed.java:331-341 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableWindowTimed.java:355` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableWindowTimed.java:606 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableWindowTimed.java:606-616 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableWindowTimed.java:554-564 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableWindowTimed.java:606` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableWindowTimed.java:624 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableWindowTimed.java:624-634 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableWindowTimed.java:572-582 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableWindowTimed.java:624` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (11 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeDematerialize.java:80 — src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeDematerialize.java:80-90 | src/main/java/io/reactivex/rxjava4/internal/operators/single/SingleDematerialize.java:82-92 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeDematerialize.java:80` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeFlatMapBiSelector.java:90 — src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeFlatMapBiSelector.java:90-100 | src/main/java/io/reactivex/rxjava4/internal/operators/single/SingleFlatMapBiSelector.java:93-103 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeFlatMapBiSelector.java:90` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeFlatMapNotification.java:107 — src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeFlatMapNotification.java:107-117 | src/main/java/io/reactivex/rxjava4/internal/operators/single/SingleFlatMapNotification.java:102-112 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeFlatMapNotification.java:107` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeZipIterable.java:49 — src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeZipIterable.java:49-59 | src/main/java/io/reactivex/rxjava4/internal/operators/single/SingleZipIterable.java:48-58 — before extracting anything, compare `src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeZipIterable.java` and `src/main/java/io/reactivex/rxjava4/internal/operators/single/SingleZipIterable.java` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeZipIterable.java:49` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/mixed/FlowableSwitchMapMaybe.java:114 — src/main/java/io/reactivex/rxjava4/internal/operators/mixed/FlowableSwitchMapMaybe.java:114-124 | src/main/java/io/reactivex/rxjava4/internal/operators/mixed/ObservableSwitchMapMaybe.java:107-117 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/mixed/FlowableSwitchMapMaybe.java:114` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/mixed/FlowableSwitchMapSingle.java:114 — src/main/java/io/reactivex/rxjava4/internal/operators/mixed/FlowableSwitchMapSingle.java:114-124 | src/main/java/io/reactivex/rxjava4/internal/operators/mixed/ObservableSwitchMapSingle.java:107-117 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/mixed/FlowableSwitchMapSingle.java:114` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelCollect.java:51 — src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelCollect.java:51-61 | src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelReduce.java:50-60 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelCollect.java:51` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelJoin.java:280 — src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelJoin.java:280-290 | src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelJoin.java:436-446 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelJoin.java:280` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/streamable/StreamableMapOptional.java:95 — src/main/java/io/reactivex/rxjava4/internal/operators/streamable/StreamableMapOptional.java:95-105 | src/main/java/io/reactivex/rxjava4/internal/operators/streamable/StreamableMapOptional.java:129-139 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/streamable/StreamableMapOptional.java:95` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (11 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/streamable/StreamableMapOptional.java:188 — src/main/java/io/reactivex/rxjava4/internal/operators/streamable/StreamableMapOptional.java:188-198 | src/main/java/io/reactivex/rxjava4/internal/operators/streamable/StreamableMapOptional.java:225-235 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/streamable/StreamableMapOptional.java:188` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • + 6 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (12 lines × 2) · ×28
  • Duplicated block (12 lines × 2) src/main/java/io/reactivex/rxjava4/core/Flowable.java:13361 — src/main/java/io/reactivex/rxjava4/core/Flowable.java:13361-13372 | src/main/java/io/reactivex/rxjava4/core/Observable.java:11030-11043 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/core/Flowable.java:13361` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (12 lines × 2) src/main/java/io/reactivex/rxjava4/internal/jdk8/FlowableCollectWithCollectorSingle.java:140 — src/main/java/io/reactivex/rxjava4/internal/jdk8/FlowableCollectWithCollectorSingle.java:140-151 | src/main/java/io/reactivex/rxjava4/internal/jdk8/ObservableCollectWithCollectorSingle.java:135-146 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once.
  • Duplicated block (12 lines × 2) src/main/java/io/reactivex/rxjava4/internal/jdk8/FlowableFromStream.java:202 — src/main/java/io/reactivex/rxjava4/internal/jdk8/FlowableFromStream.java:202-213 | src/main/java/io/reactivex/rxjava4/internal/jdk8/FlowableFromStream.java:271-282 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/jdk8/FlowableFromStream.java:202` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (12 lines × 2) src/main/java/io/reactivex/rxjava4/internal/jdk8/MaybeMapOptional.java:83 — src/main/java/io/reactivex/rxjava4/internal/jdk8/MaybeMapOptional.java:83-94 | src/main/java/io/reactivex/rxjava4/internal/jdk8/SingleMapOptional.java:83-94 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/jdk8/MaybeMapOptional.java:83` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (12 lines × 2) src/main/java/io/reactivex/rxjava4/internal/observers/BlockingMultiObserver.java:83 — src/main/java/io/reactivex/rxjava4/internal/observers/BlockingMultiObserver.java:83-94 | src/main/java/io/reactivex/rxjava4/internal/observers/BlockingMultiObserver.java:106-117 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/observers/BlockingMultiObserver.java:83` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (12 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/completable/CompletableCreate.java:64 — src/main/java/io/reactivex/rxjava4/internal/operators/completable/CompletableCreate.java:64-75 | src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeCreate.java:118-129 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/completable/CompletableCreate.java:64` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (12 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/completable/CompletableOnErrorReturn.java:81 — src/main/java/io/reactivex/rxjava4/internal/operators/completable/CompletableOnErrorReturn.java:81-92 | src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeOnErrorReturn.java:83-94 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/completable/CompletableOnErrorReturn.java:81` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (12 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/BlockingFlowableMostRecent.java:95 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/BlockingFlowableMostRecent.java:95-106 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/BlockingObservableMostRecent.java:95-106 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/BlockingFlowableMostRecent.java:95` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (12 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/BlockingFlowableNext.java:150 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/BlockingFlowableNext.java:150-161 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/BlockingObservableNext.java:150-161 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/BlockingFlowableNext.java:150` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (12 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableFlatMapCompletable.java:93 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableFlatMapCompletable.java:93-104 | src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableFlatMapCompletableCompletable.java:101-112 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableFlatMapCompletable.java:93` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (12 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableFlatMapMaybe.java:102 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableFlatMapMaybe.java:102-113 | src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableFlatMapSingle.java:102-113 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableFlatMapMaybe.java:102` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (12 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableFlatMapMaybe.java:224 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableFlatMapMaybe.java:224-235 | src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableFlatMapSingle.java:224-235 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableFlatMapMaybe.java:224` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (12 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableFromArray.java:153 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableFromArray.java:153-164 | src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableFromArray.java:237-248 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableFromArray.java:153` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (12 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableLastSingle.java:101 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableLastSingle.java:101-113 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableLastSingle.java:97-108 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableLastSingle.java:101` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (12 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableRefCount.java:65 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableRefCount.java:65-76 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableRefCount.java:63-74 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableRefCount.java:65` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (12 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableRefCount.java:117 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableRefCount.java:117-128 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableRefCount.java:115-126 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableRefCount.java:117` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (12 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableRetryPredicate.java:88 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableRetryPredicate.java:88-99 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableRetryPredicate.java:83-94 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (12 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableSequenceEqual.java:117 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableSequenceEqual.java:117-128 | src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableSequenceEqualSingle.java:118-129 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableSequenceEqual.java:117` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (12 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/mixed/MaybeFlatMapObservable.java:101 — src/main/java/io/reactivex/rxjava4/internal/operators/mixed/MaybeFlatMapObservable.java:101-112 | src/main/java/io/reactivex/rxjava4/internal/operators/mixed/SingleFlatMapObservable.java:101-112 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/mixed/MaybeFlatMapObservable.java:101` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (12 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableFlatMapCompletable.java:113 — src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableFlatMapCompletable.java:113-124 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableFlatMapCompletableCompletable.java:126-137 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableFlatMapCompletable.java:113` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (12 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableRepeatWhen.java:51 — src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableRepeatWhen.java:51-62 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableRetryWhen.java:51-62 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableRepeatWhen.java:51` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (12 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/streamable/StreamableFilter.java:111 — src/main/java/io/reactivex/rxjava4/internal/operators/streamable/StreamableFilter.java:111-122 | src/main/java/io/reactivex/rxjava4/internal/operators/streamable/StreamableFilter.java:139-150 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/streamable/StreamableFilter.java:111` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (12 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/streamable/StreamableFilter.java:190 — src/main/java/io/reactivex/rxjava4/internal/operators/streamable/StreamableFilter.java:190-201 | src/main/java/io/reactivex/rxjava4/internal/operators/streamable/StreamableFilter.java:222-233 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (12 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/streamable/StreamableRepeat.java:71 — src/main/java/io/reactivex/rxjava4/internal/operators/streamable/StreamableRepeat.java:71-82 | src/main/java/io/reactivex/rxjava4/internal/operators/streamable/StreamableRetry.java:73-84 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once.
  • Duplicated block (12 lines × 2) src/main/java/io/reactivex/rxjava4/internal/schedulers/BlockingCurrentThreadScheduler.java:278 — src/main/java/io/reactivex/rxjava4/internal/schedulers/BlockingCurrentThreadScheduler.java:278-289 | src/main/java/io/reactivex/rxjava4/internal/schedulers/BlockingCurrentThreadScheduler.java:404-415 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/schedulers/BlockingCurrentThreadScheduler.java:278` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • + 3 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (15 lines × 2) · ×27
  • Duplicated block (15 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableDistinct.java:73 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableDistinct.java:73-87 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableDistinct.java:70-84 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableDistinct.java:73` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (15 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableDistinctUntilChanged.java:115 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableDistinctUntilChanged.java:115-129 | src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableDistinctUntilChanged.java:205-219 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableDistinctUntilChanged.java:115` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (15 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableDoOnEach.java:178 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableDoOnEach.java:178-192 | src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableDoOnEach.java:335-349 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableDoOnEach.java:178` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (15 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableFilter.java:91 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableFilter.java:91-105 | src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableFilter.java:154-168 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableFilter.java:91` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (15 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableGroupJoin.java:190 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableGroupJoin.java:190-204 | src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableJoin.java:173-187 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableGroupJoin.java:190` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (15 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableObserveOn.java:320 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableObserveOn.java:320-334 | src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableObserveOn.java:559-573 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableObserveOn.java:320` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (15 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableReplay.java:324 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableReplay.java:324-338 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableReplay.java:313-327 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableReplay.java:324` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (15 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableUsing.java:137 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableUsing.java:137-151 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableUsing.java:131-145 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableUsing.java:137` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (15 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableWindowTimed.java:261 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableWindowTimed.java:261-275 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableWindowTimed.java:245-259 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableWindowTimed.java:261` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (15 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeFilter.java:78 — src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeFilter.java:78-92 | src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeFilterSingle.java:79-93 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once.
  • Duplicated block (15 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeFlatMapIterableFlowable.java:99 — src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeFlatMapIterableFlowable.java:99-113 | src/main/java/io/reactivex/rxjava4/internal/operators/single/SingleFlatMapIterableFlowable.java:99-113 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeFlatMapIterableFlowable.java:99` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (15 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeFlatMapIterableFlowable.java:182 — src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeFlatMapIterableFlowable.java:182-196 | src/main/java/io/reactivex/rxjava4/internal/operators/single/SingleFlatMapIterableFlowable.java:138-152 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeFlatMapIterableFlowable.java:182` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (15 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeUsing.java:165 — src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeUsing.java:165-179 | src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeUsing.java:216-230 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeUsing.java:165` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (15 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/mixed/ObservableSwitchMapMaybe.java:205 — src/main/java/io/reactivex/rxjava4/internal/operators/mixed/ObservableSwitchMapMaybe.java:205-219 | src/main/java/io/reactivex/rxjava4/internal/operators/mixed/ObservableSwitchMapSingle.java:199-213 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/mixed/ObservableSwitchMapMaybe.java:205` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (15 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableAny.java:59 — src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableAny.java:59-73 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableAnySingle.java:68-82 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableAny.java:59` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (15 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableConcatMap.java:395 — src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableConcatMap.java:395-409 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableConcatMapScheduler.java:415-429 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableConcatMap.java:395` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (15 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableGroupJoin.java:186 — src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableGroupJoin.java:186-200 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableJoin.java:166-180 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableGroupJoin.java:186` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (15 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableGroupJoin.java:275 — src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableGroupJoin.java:275-289 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableJoin.java:250-264 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableGroupJoin.java:275` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (15 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableSequenceEqual.java:179 — src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableSequenceEqual.java:179-193 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableSequenceEqualSingle.java:184-198 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableSequenceEqual.java:179` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (15 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelDoOnNextTry.java:125 — src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelDoOnNextTry.java:125-139 | src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelDoOnNextTry.java:236-250 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelDoOnNextTry.java:125` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (15 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelFilterTry.java:129 — src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelFilterTry.java:129-143 | src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelFilterTry.java:218-232 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelFilterTry.java:129` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (15 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelMap.java:110 — src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelMap.java:110-124 | src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelMap.java:183-197 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (15 lines × 2) src/main/java/io/reactivex/rxjava4/internal/schedulers/DeferredExecutorScheduler.java:425 — src/main/java/io/reactivex/rxjava4/internal/schedulers/DeferredExecutorScheduler.java:425-439 | src/main/java/io/reactivex/rxjava4/internal/schedulers/ExecutorScheduler.java:481-495 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/schedulers/DeferredExecutorScheduler.java:425` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (15 lines × 2) src/main/java/io/reactivex/rxjava4/internal/subscribers/BasicFuseableConditionalSubscriber.java:58 — src/main/java/io/reactivex/rxjava4/internal/subscribers/BasicFuseableConditionalSubscriber.java:58-72 | src/main/java/io/reactivex/rxjava4/internal/subscribers/BasicFuseableSubscriber.java:58-72 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once.
  • Duplicated block (15 lines × 2) src/main/java/io/reactivex/rxjava4/observers/SafeObserver.java:164 — src/main/java/io/reactivex/rxjava4/observers/SafeObserver.java:164-178 | src/main/java/io/reactivex/rxjava4/subscribers/SafeSubscriber.java:154-168 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/observers/SafeObserver.java:164` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • + 2 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (16 lines × 2) · ×22
  • Duplicated block (16 lines × 2) src/main/java/io/reactivex/rxjava4/internal/jdk8/ParallelCollector.java:99 — src/main/java/io/reactivex/rxjava4/internal/jdk8/ParallelCollector.java:99-114 | src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelReduceFull.java:89-104 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/jdk8/ParallelCollector.java:99` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (16 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableConcatMap.java:235 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableConcatMap.java:235-250 | src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableConcatMapScheduler.java:266-281 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableConcatMap.java:235` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (16 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableConcatMap.java:513 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableConcatMap.java:513-528 | src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableConcatMapScheduler.java:534-549 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableConcatMap.java:513` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (16 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableDistinctUntilChanged.java:85 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableDistinctUntilChanged.java:85-100 | src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableDistinctUntilChanged.java:175-190 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableDistinctUntilChanged.java:85` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (16 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableGroupJoin.java:255 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableGroupJoin.java:255-270 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableGroupJoin.java:251-266 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableGroupJoin.java:255` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (16 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableObserveOn.java:388 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableObserveOn.java:388-404 | src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableObserveOn.java:627-642 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableObserveOn.java:388` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (16 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableReplay.java:1024 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableReplay.java:1024-1039 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableReplay.java:868-883 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableReplay.java:1024` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (16 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableReplay.java:1053 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableReplay.java:1053-1068 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableReplay.java:897-912 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableReplay.java:1053` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (16 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableSequenceEqual.java:183 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableSequenceEqual.java:183-198 | src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableSequenceEqualSingle.java:184-199 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableSequenceEqual.java:183` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (16 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableSequenceEqual.java:283 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableSequenceEqual.java:283-298 | src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableZip.java:350-365 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableSequenceEqual.java:283` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (16 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeFromCallable.java:51 — src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeFromCallable.java:51-66 | src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeFromSupplier.java:50-65 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeFromCallable.java:51` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (16 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/mixed/FlowableSwitchMapSingle.java:209 — src/main/java/io/reactivex/rxjava4/internal/operators/mixed/FlowableSwitchMapSingle.java:209-224 | src/main/java/io/reactivex/rxjava4/internal/operators/mixed/ObservableSwitchMapSingle.java:199-214 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/mixed/FlowableSwitchMapSingle.java:209` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (16 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/mixed/ObservableConcatMapMaybe.java:139 — src/main/java/io/reactivex/rxjava4/internal/operators/mixed/ObservableConcatMapMaybe.java:139-154 | src/main/java/io/reactivex/rxjava4/internal/operators/mixed/ObservableConcatMapSingle.java:134-149 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/mixed/ObservableConcatMapMaybe.java:139` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (16 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/mixed/ObservableConcatMapMaybe.java:158 — src/main/java/io/reactivex/rxjava4/internal/operators/mixed/ObservableConcatMapMaybe.java:158-173 | src/main/java/io/reactivex/rxjava4/internal/operators/mixed/ObservableConcatMapSingle.java:153-168 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/mixed/ObservableConcatMapMaybe.java:158` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (16 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableConcatMap.java:182 — src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableConcatMap.java:182-197 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableConcatMapScheduler.java:190-205 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableConcatMap.java:182` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (16 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableConcatMap.java:413 — src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableConcatMap.java:413-428 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableConcatMapScheduler.java:434-449 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableConcatMap.java:413` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (16 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableFlatMapMaybe.java:248 — src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableFlatMapMaybe.java:248-263 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableFlatMapSingle.java:229-244 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableFlatMapMaybe.java:248` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (16 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelJoin.java:229 — src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelJoin.java:229-244 | src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelJoin.java:272-287 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelJoin.java:229` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (16 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelMapTry.java:126 — src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelMapTry.java:126-141 | src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelMapTry.java:239-254 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelMapTry.java:126` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (16 lines × 2) src/main/java/io/reactivex/rxjava4/internal/schedulers/DeferredExecutorScheduler.java:202 — src/main/java/io/reactivex/rxjava4/internal/schedulers/DeferredExecutorScheduler.java:202-217 | src/main/java/io/reactivex/rxjava4/internal/schedulers/ExecutorScheduler.java:258-273 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/schedulers/DeferredExecutorScheduler.java:202` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (16 lines × 2) src/main/java/io/reactivex/rxjava4/internal/schedulers/DeferredExecutorScheduler.java:349 — src/main/java/io/reactivex/rxjava4/internal/schedulers/DeferredExecutorScheduler.java:349-364 | src/main/java/io/reactivex/rxjava4/internal/schedulers/ExecutorScheduler.java:405-420 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/schedulers/DeferredExecutorScheduler.java:349` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (16 lines × 2) src/main/java/io/reactivex/rxjava4/processors/BehaviorProcessor.java:523 — src/main/java/io/reactivex/rxjava4/processors/BehaviorProcessor.java:523-538 | src/main/java/io/reactivex/rxjava4/subjects/BehaviorSubject.java:459-474 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/processors/BehaviorProcessor.java:523` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (17 lines × 2) · ×18
  • Duplicated block (17 lines × 2) src/main/java/io/reactivex/rxjava4/internal/jdk8/FlowableFromStream.java:221 — src/main/java/io/reactivex/rxjava4/internal/jdk8/FlowableFromStream.java:221-237 | src/main/java/io/reactivex/rxjava4/internal/jdk8/FlowableFromStream.java:292-308 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/jdk8/FlowableFromStream.java:221` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (17 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableBufferExactBoundary.java:157 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableBufferExactBoundary.java:157-173 | src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableBufferTimed.java:190-207 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableBufferExactBoundary.java:157` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (17 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableConcatMap.java:310 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableConcatMap.java:310-326 | src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableConcatMapScheduler.java:350-366 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableConcatMap.java:310` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (17 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableConcatMapEager.java:274 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableConcatMapEager.java:274-290 | src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableConcatMapEager.java:328-344 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableConcatMapEager.java:274` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (17 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableDoOnEach.java:124 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableDoOnEach.java:124-140 | src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableDoOnEach.java:281-297 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableDoOnEach.java:124` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (17 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableJoin.java:257 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableJoin.java:257-273 | src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableJoin.java:318-334 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableJoin.java:257` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (17 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableMergeWithMaybe.java:183 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableMergeWithMaybe.java:183-199 | src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableMergeWithSingle.java:183-199 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableMergeWithMaybe.java:183` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (17 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableObserveOn.java:346 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableObserveOn.java:346-362 | src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableObserveOn.java:585-601 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableObserveOn.java:346` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (17 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableObserveOn.java:437 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableObserveOn.java:437-453 | src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableObserveOn.java:672-688 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableObserveOn.java:437` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (17 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableOnBackpressureBuffer.java:230 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableOnBackpressureBuffer.java:230-246 | src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableSkipLastTimed.java:202-218 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableOnBackpressureBuffer.java:230` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (17 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableSequenceEqual.java:129 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableSequenceEqual.java:129-145 | src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableSequenceEqualSingle.java:130-146 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableSequenceEqual.java:129` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (17 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/mixed/FlowableConcatMapMaybe.java:192 — src/main/java/io/reactivex/rxjava4/internal/operators/mixed/FlowableConcatMapMaybe.java:192-208 | src/main/java/io/reactivex/rxjava4/internal/operators/mixed/FlowableConcatMapSingle.java:187-203 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/mixed/FlowableConcatMapMaybe.java:192` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (17 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/mixed/FlowableSwitchMapMaybe.java:213 — src/main/java/io/reactivex/rxjava4/internal/operators/mixed/FlowableSwitchMapMaybe.java:213-229 | src/main/java/io/reactivex/rxjava4/internal/operators/mixed/FlowableSwitchMapSingle.java:207-223 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/mixed/FlowableSwitchMapMaybe.java:213` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (17 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableSequenceEqual.java:132 — src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableSequenceEqual.java:132-148 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableSequenceEqualSingle.java:139-155 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableSequenceEqual.java:132` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (17 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableTimeout.java:94 — src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableTimeout.java:94-110 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableTimeout.java:224-240 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableTimeout.java:94` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (17 lines × 2) src/main/java/io/reactivex/rxjava4/internal/schedulers/DeferredExecutorScheduler.java:98 — src/main/java/io/reactivex/rxjava4/internal/schedulers/DeferredExecutorScheduler.java:98-114 | src/main/java/io/reactivex/rxjava4/internal/schedulers/ExecutorScheduler.java:160-176 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once.
  • Duplicated block (17 lines × 2) src/main/java/io/reactivex/rxjava4/internal/schedulers/DeferredExecutorScheduler.java:374 — src/main/java/io/reactivex/rxjava4/internal/schedulers/DeferredExecutorScheduler.java:374-390 | src/main/java/io/reactivex/rxjava4/internal/schedulers/ExecutorScheduler.java:430-446 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/schedulers/DeferredExecutorScheduler.java:374` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (17 lines × 2) src/main/java/io/reactivex/rxjava4/processors/BehaviorProcessor.java:550 — src/main/java/io/reactivex/rxjava4/processors/BehaviorProcessor.java:550-566 | src/main/java/io/reactivex/rxjava4/subjects/BehaviorSubject.java:486-502 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/processors/BehaviorProcessor.java:550` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (10 lines × 2) · ×18
  • Duplicated block (10 lines × 2) src/main/java/io/reactivex/rxjava4/core/Flowable.java:4722 — src/main/java/io/reactivex/rxjava4/core/Flowable.java:4722-4731 | src/main/java/io/reactivex/rxjava4/core/Observable.java:4294-4303 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/core/Flowable.java:4722` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (10 lines × 2) src/main/java/io/reactivex/rxjava4/core/Streamable.java:403 — src/main/java/io/reactivex/rxjava4/core/Streamable.java:403-413 | src/main/java/io/reactivex/rxjava4/core/Streamable.java:438-447 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (10 lines × 2) src/main/java/io/reactivex/rxjava4/internal/jdk8/FlowableMapOptional.java:104 — src/main/java/io/reactivex/rxjava4/internal/jdk8/FlowableMapOptional.java:104-113 | src/main/java/io/reactivex/rxjava4/internal/jdk8/FlowableMapOptional.java:168-177 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/jdk8/FlowableMapOptional.java:104` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (10 lines × 2) src/main/java/io/reactivex/rxjava4/internal/jdk8/ParallelMapOptional.java:47 — src/main/java/io/reactivex/rxjava4/internal/jdk8/ParallelMapOptional.java:47-56 | src/main/java/io/reactivex/rxjava4/internal/jdk8/ParallelMapTryOptional.java:53-62 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/jdk8/ParallelMapOptional.java:47` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (10 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableCache.java:318 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableCache.java:318-327 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableCache.java:308-317 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableCache.java:318` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (10 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableCreate.java:106 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableCreate.java:106-115 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableCreate.java:167-176 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableCreate.java:106` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (10 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableFlatMap.java:608 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableFlatMap.java:608-617 | src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableSwitchMap.java:360-369 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableFlatMap.java:608` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (10 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableInterval.java:47 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableInterval.java:47-56 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableInterval.java:42-51 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableInterval.java:47` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (10 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableIntervalRange.java:51 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableIntervalRange.java:51-60 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableIntervalRange.java:46-55 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableIntervalRange.java:51` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (10 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableReduceWithSingle.java:49 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableReduceWithSingle.java:49-58 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableReduceWithSingle.java:47-56 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (10 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableSamplePublisher.java:128 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableSamplePublisher.java:128-137 | src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableSampleTimed.java:139-148 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableSamplePublisher.java:128` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (10 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableWindowTimed.java:514 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableWindowTimed.java:514-523 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableWindowTimed.java:473-482 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableWindowTimed.java:514` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (10 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeFlatMapNotification.java:123 — src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeFlatMapNotification.java:123-132 | src/main/java/io/reactivex/rxjava4/internal/operators/single/SingleFlatMapNotification.java:118-127 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeFlatMapNotification.java:123` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (10 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeFlatMapSingle.java:86 — src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeFlatMapSingle.java:86-95 | src/main/java/io/reactivex/rxjava4/internal/operators/single/SingleFlatMapMaybe.java:79-88 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeFlatMapSingle.java:86` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (10 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableCollect.java:38 — src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableCollect.java:38-47 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableCollectSingle.java:42-51 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once.
  • Duplicated block (10 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableSequenceEqual.java:91 — src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableSequenceEqual.java:91-100 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableSequenceEqualSingle.java:98-107 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once.
  • Duplicated block (10 lines × 2) src/main/java/io/reactivex/rxjava4/processors/MulticastProcessor.java:520 — src/main/java/io/reactivex/rxjava4/processors/MulticastProcessor.java:520-529 | src/main/java/io/reactivex/rxjava4/processors/MulticastProcessor.java:564-573 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (10 lines × 2) src/main/java/io/reactivex/rxjava4/processors/ReplayProcessor.java:1214 — src/main/java/io/reactivex/rxjava4/processors/ReplayProcessor.java:1214-1223 | src/main/java/io/reactivex/rxjava4/subjects/ReplaySubject.java:1233-1242 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/processors/ReplayProcessor.java:1214` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (8 lines × 2) · ×16
  • Duplicated block (8 lines × 2) src/main/java/io/reactivex/rxjava4/core/Flowable.java:2409 — src/main/java/io/reactivex/rxjava4/core/Flowable.java:2409-2416 | src/main/java/io/reactivex/rxjava4/core/Observable.java:2097-2104 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (8 lines × 2) src/main/java/io/reactivex/rxjava4/core/Flowable.java:2598 — src/main/java/io/reactivex/rxjava4/core/Flowable.java:2598-2605 | src/main/java/io/reactivex/rxjava4/core/Observable.java:2270-2277 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/core/Flowable.java:2598` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (8 lines × 2) src/main/java/io/reactivex/rxjava4/core/Flowable.java:2642 — src/main/java/io/reactivex/rxjava4/core/Flowable.java:2642-2649 | src/main/java/io/reactivex/rxjava4/core/Observable.java:2311-2318 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (8 lines × 2) src/main/java/io/reactivex/rxjava4/core/Maybe.java:274 — src/main/java/io/reactivex/rxjava4/core/Maybe.java:274-281 | src/main/java/io/reactivex/rxjava4/core/Maybe.java:1214-1221 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/core/Maybe.java:274` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (8 lines × 2) src/main/java/io/reactivex/rxjava4/internal/jdk8/FlowableFlatMapStream.java:59 — src/main/java/io/reactivex/rxjava4/internal/jdk8/FlowableFlatMapStream.java:59-66 | src/main/java/io/reactivex/rxjava4/internal/jdk8/ObservableFlatMapStream.java:51-58 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/jdk8/FlowableFlatMapStream.java:59` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (8 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableConcatMap.java:114 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableConcatMap.java:114-121 | src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableConcatMapScheduler.java:116-123 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableConcatMap.java:114` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (8 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableFlatMapMaybe.java:88 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableFlatMapMaybe.java:88-95 | src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableFlatMapSingle.java:88-95 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once.
  • Duplicated block (8 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowablePublishMulticast.java:242 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowablePublishMulticast.java:242-249 | src/main/java/io/reactivex/rxjava4/processors/MulticastProcessor.java:395-402 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowablePublishMulticast.java:242` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (8 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableUsing.java:57 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableUsing.java:57-64 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableUsing.java:56-63 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableUsing.java:57` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (8 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableWindowBoundarySelector.java:90 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableWindowBoundarySelector.java:90-97 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableWindowBoundarySelector.java:90-97 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (8 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableWindowTimed.java:379 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableWindowTimed.java:379-386 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableWindowTimed.java:354-361 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableWindowTimed.java:379` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (8 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableWindowTimed.java:569 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableWindowTimed.java:569-576 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableWindowTimed.java:526-533 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableWindowTimed.java:569` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (8 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableWithLatestFromMany.java:165 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableWithLatestFromMany.java:165-172 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableWithLatestFromMany.java:156-163 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableWithLatestFromMany.java:165` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (8 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeCache.java:120 — src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeCache.java:120-128 | src/main/java/io/reactivex/rxjava4/internal/operators/single/SingleCache.java:71-78 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeCache.java:120` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (8 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableFlatMapMaybe.java:84 — src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableFlatMapMaybe.java:84-91 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableFlatMapSingle.java:86-93 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once.
  • Duplicated block (8 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableSequenceEqual.java:67 — src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableSequenceEqual.java:67-74 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableSequenceEqualSingle.java:74-81 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once.
D4 · Code Duplication · Duplicated block (18 lines × 2) · ×12
  • Duplicated block (18 lines × 2) src/main/java/io/reactivex/rxjava4/internal/observers/ForEachWhileObserver.java:56 — src/main/java/io/reactivex/rxjava4/internal/observers/ForEachWhileObserver.java:56-73 | src/main/java/io/reactivex/rxjava4/internal/subscribers/ForEachWhileSubscriber.java:58-75 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/observers/ForEachWhileObserver.java:56` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (18 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableBufferBoundary.java:265 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableBufferBoundary.java:265-282 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableBufferBoundary.java:253-270 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableBufferBoundary.java:265` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (18 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableBufferTimed.java:446 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableBufferTimed.java:446-464 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableBufferTimed.java:446-463 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableBufferTimed.java:446` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (18 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableCache.java:253 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableCache.java:253-270 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableCache.java:244-262 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableCache.java:253` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (18 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableCreate.java:574 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableCreate.java:574-591 | src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableCreate.java:712-729 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableCreate.java:574` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (18 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableJoin.java:204 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableJoin.java:204-221 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableJoin.java:197-214 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableJoin.java:204` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (18 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableWindowTimed.java:471 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableWindowTimed.java:471-488 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableWindowTimed.java:437-454 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableWindowTimed.java:471` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (18 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/mixed/ObservableConcatMapMaybe.java:199 — src/main/java/io/reactivex/rxjava4/internal/operators/mixed/ObservableConcatMapMaybe.java:199-216 | src/main/java/io/reactivex/rxjava4/internal/operators/mixed/ObservableConcatMapSingle.java:194-211 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/mixed/ObservableConcatMapMaybe.java:199` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (18 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/mixed/ObservableSwitchMapMaybe.java:225 — src/main/java/io/reactivex/rxjava4/internal/operators/mixed/ObservableSwitchMapMaybe.java:225-242 | src/main/java/io/reactivex/rxjava4/internal/operators/mixed/ObservableSwitchMapSingle.java:219-236 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/mixed/ObservableSwitchMapMaybe.java:225` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (18 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableMergeWithMaybe.java:213 — src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableMergeWithMaybe.java:213-230 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableMergeWithSingle.java:208-225 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableMergeWithMaybe.java:213` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (18 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelFromPublisher.java:316 — src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelFromPublisher.java:316-333 | src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelFromPublisher.java:402-419 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelFromPublisher.java:316` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (18 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelRunOn.java:296 — src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelRunOn.java:296-313 | src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelRunOn.java:421-438 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelRunOn.java:296` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (9 lines × 2) · ×12
  • Duplicated block (9 lines × 2) src/main/java/io/reactivex/rxjava4/core/Completable.java:215 — src/main/java/io/reactivex/rxjava4/core/Completable.java:215-223 | src/main/java/io/reactivex/rxjava4/core/Completable.java:909-917 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/core/Completable.java:215` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (9 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableCache.java:84 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableCache.java:84-92 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableCache.java:80-88 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableCache.java:84` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (9 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableDoFinally.java:116 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableDoFinally.java:116-124 | src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableDoFinally.java:227-235 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (9 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableFlatMapMaybe.java:210 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableFlatMapMaybe.java:210-218 | src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableFlatMapSingle.java:210-218 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (9 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableFromArray.java:127 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableFromArray.java:127-135 | src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableFromArray.java:211-219 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableFromArray.java:127` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (9 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableGroupJoin.java:62 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableGroupJoin.java:62-70 | src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableJoin.java:62-70 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once.
  • Duplicated block (9 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowablePublishMulticast.java:167 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowablePublishMulticast.java:167-175 | src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableSequenceEqual.java:276-284 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowablePublishMulticast.java:167` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (9 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableTimeout.java:232 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableTimeout.java:232-240 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableTimeout.java:222-230 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (9 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableGroupJoin.java:61 — src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableGroupJoin.java:61-69 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableJoin.java:60-68 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once.
  • Duplicated block (9 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableToList.java:37 — src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableToList.java:37-45 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableToListSingle.java:48-56 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once.
  • Duplicated block (9 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelJoin.java:149 — src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelJoin.java:149-157 | src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelJoin.java:326-334 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelJoin.java:149` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (9 lines × 2) src/main/java/io/reactivex/rxjava4/internal/subscribers/InnerQueuedSubscriber.java:63 — src/main/java/io/reactivex/rxjava4/internal/subscribers/InnerQueuedSubscriber.java:63-71 | src/main/java/io/reactivex/rxjava4/processors/MulticastProcessor.java:263-271 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/subscribers/InnerQueuedSubscriber.java:63` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D15 · Churn × Complexity Hotspots · Hotspot · ×10
  • Hotspot: src/main/java/io/reactivex/rxjava4/processors/MulticastProcessor.java src/main/java/io/reactivex/rxjava4/processors/MulticastProcessor.java — src/main/java/io/reactivex/rxjava4/processors/MulticastProcessor.java changed 3 times in last 90 days, max complexity 30. 1 of those changes was a fix/bug commit, and the other 2 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time.
  • Hotspot: src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowablePublishMulticast.java src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowablePublishMulticast.java — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowablePublishMulticast.java changed 2 times in last 90 days, max complexity 36. 1 of those changes was a fix/bug commit, and the other 1 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time.
  • Hotspot: src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableWindowBoundarySelector.java src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableWindowBoundarySelector.java — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableWindowBoundarySelector.java changed 4 times in last 90 days, max complexity 18. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, behind tests written first.
  • Hotspot: src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableWindowBoundarySelector.java src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableWindowBoundarySelector.java — src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableWindowBoundarySelector.java changed 4 times in last 90 days, max complexity 17. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, behind tests written first.
  • Hotspot: src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelJoin.java src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelJoin.java — src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelJoin.java changed 3 times in last 90 days, max complexity 22. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, behind tests written first.
  • Hotspot: src/main/java/io/reactivex/rxjava4/processors/ReplayProcessor.java src/main/java/io/reactivex/rxjava4/processors/ReplayProcessor.java — src/main/java/io/reactivex/rxjava4/processors/ReplayProcessor.java changed 4 times in last 90 days, max complexity 16. 1 of those changes was a fix/bug commit, and the other 3 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time.
  • Hotspot: src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowablePublish.java src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowablePublish.java — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowablePublish.java changed 3 times in last 90 days, max complexity 19. 1 of those changes was a fix/bug commit, and the other 2 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time.
  • Hotspot: src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableReplay.java src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableReplay.java — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableReplay.java changed 3 times in last 90 days, max complexity 16. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, behind tests written first.
  • Hotspot: src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableConcatMap.java src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableConcatMap.java — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableConcatMap.java changed 2 times in last 90 days, max complexity 21. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, behind tests written first.
  • Hotspot: src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelFromPublisher.java src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelFromPublisher.java — src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelFromPublisher.java changed 2 times in last 90 days, max complexity 21. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, behind tests written first.
D3 · God Classes · FileTooLong · ×10
  • FileTooLong: core/Flowable.java src/main/java/io/reactivex/rxjava4/core/Flowable.java:0 — FileTooLong — 3833 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: Flowable (157-18152). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: core/Observable.java src/main/java/io/reactivex/rxjava4/core/Observable.java:0 — FileTooLong — 3159 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: core/Maybe.java src/main/java/io/reactivex/rxjava4/core/Maybe.java:0 — FileTooLong — 1315 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: Maybe (113-5697). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: core/Single.java src/main/java/io/reactivex/rxjava4/core/Single.java:0 — FileTooLong — 1201 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: Single (116-5226). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: core/Completable.java src/main/java/io/reactivex/rxjava4/core/Completable.java:0 — FileTooLong — 844 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: Completable (108-3387). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: processors/ReplayProcessor.java src/main/java/io/reactivex/rxjava4/processors/ReplayProcessor.java:0 — FileTooLong — 675 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: ReplayProcessor (145-1364). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: subjects/ReplaySubject.java src/main/java/io/reactivex/rxjava4/subjects/ReplaySubject.java:0 — FileTooLong — 655 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: ReplaySubject (135-1336). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: flowable/FlowableReplay.java src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableReplay.java:0 — FileTooLong — 640 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: FlowableReplay (33-1246). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: plugins/RxJavaPlugins.java src/main/java/io/reactivex/rxjava4/plugins/RxJavaPlugins.java:0 — FileTooLong — 611 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: RxJavaPlugins (32-1540). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: observable/ObservableReplay.java src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableReplay.java:0 — FileTooLong — 534 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: ObservableReplay (33-1074). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
D4 · Code Duplication · Duplicated block (20 lines × 2) · ×10
  • Duplicated block (20 lines × 2) src/main/java/io/reactivex/rxjava4/internal/jdk8/ParallelMapTryOptional.java:147 — src/main/java/io/reactivex/rxjava4/internal/jdk8/ParallelMapTryOptional.java:147-166 | src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelFilterTry.java:148-167 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/jdk8/ParallelMapTryOptional.java:147` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (20 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableConcatMap.java:124 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableConcatMap.java:124-143 | src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableConcatMapScheduler.java:126-145 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableConcatMap.java:124` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (20 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableCreate.java:542 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableCreate.java:542-561 | src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableCreate.java:680-699 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableCreate.java:542` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (20 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableMergeWithMaybe.java:270 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableMergeWithMaybe.java:270-289 | src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableMergeWithSingle.java:265-284 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableMergeWithMaybe.java:270` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (20 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableObserveOn.java:277 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableObserveOn.java:277-296 | src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableObserveOn.java:517-536 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableObserveOn.java:277` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (20 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableRange.java:219 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableRange.java:219-238 | src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableRangeLong.java:221-240 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableRange.java:219` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (20 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableWindowBoundary.java:219 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableWindowBoundary.java:219-238 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableWindowBoundary.java:211-230 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableWindowBoundary.java:219` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (20 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelRunOn.java:245 — src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelRunOn.java:245-264 | src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelRunOn.java:370-389 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelRunOn.java:245` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (20 lines × 2) src/main/java/io/reactivex/rxjava4/internal/schedulers/DeferredExecutorScheduler.java:232 — src/main/java/io/reactivex/rxjava4/internal/schedulers/DeferredExecutorScheduler.java:232-251 | src/main/java/io/reactivex/rxjava4/internal/schedulers/ExecutorScheduler.java:288-307 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/schedulers/DeferredExecutorScheduler.java:232` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (20 lines × 2) src/main/java/io/reactivex/rxjava4/observers/SerializedObserver.java:139 — src/main/java/io/reactivex/rxjava4/observers/SerializedObserver.java:139-158 | src/main/java/io/reactivex/rxjava4/subscribers/SerializedSubscriber.java:128-147 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/observers/SerializedObserver.java:139` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D3 · God Classes · TooManyMethods · ×9
  • TooManyMethods: Flowable src/main/java/io/reactivex/rxjava4/core/Flowable.java:157 — TooManyMethods — 472 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: Observable src/main/java/io/reactivex/rxjava4/core/Observable.java:101 — TooManyMethods — 434 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: Maybe src/main/java/io/reactivex/rxjava4/core/Maybe.java:113 — TooManyMethods — 185 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: Single src/main/java/io/reactivex/rxjava4/core/Single.java:116 — TooManyMethods — 175 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: Completable src/main/java/io/reactivex/rxjava4/core/Completable.java:108 — TooManyMethods — 126 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: RxJavaPlugins src/main/java/io/reactivex/rxjava4/plugins/RxJavaPlugins.java:32 — TooManyMethods — 103 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: ParallelFlowable src/main/java/io/reactivex/rxjava4/parallel/ParallelFlowable.java:43 — TooManyMethods — 55 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: BaseTestConsumer src/main/java/io/reactivex/rxjava4/observers/BaseTestConsumer.java:31 — TooManyMethods — 41 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: Functions src/main/java/io/reactivex/rxjava4/internal/functions/Functions.java:31 — TooManyMethods — 35 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
D4 · Code Duplication · Duplicated block (7 lines × 2) · ×9
  • Duplicated block (7 lines × 2) src/main/java/io/reactivex/rxjava4/core/Flowable.java:1883 — src/main/java/io/reactivex/rxjava4/core/Flowable.java:1883-1889 | src/main/java/io/reactivex/rxjava4/core/Observable.java:13132-13138 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (7 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableAmb.java:49 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableAmb.java:49-55 | src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableZip.java:61-67 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableAmb.java:49` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (7 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableBuffer.java:343 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableBuffer.java:343-352 | src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableWindow.java:525-531 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableBuffer.java:343` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (7 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableFlatMapMaybe.java:171 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableFlatMapMaybe.java:171-177 | src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableFlatMapSingle.java:171-177 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableFlatMapMaybe.java:171` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (7 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableMergeWithMaybe.java:92 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableMergeWithMaybe.java:92-98 | src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableMergeWithSingle.java:92-98 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once.
  • Duplicated block (7 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableWithLatestFromMany.java:71 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableWithLatestFromMany.java:71-77 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableWithLatestFromMany.java:72-78 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableWithLatestFromMany.java:71` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (7 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeZipArray.java:134 — src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeZipArray.java:134-140 | src/main/java/io/reactivex/rxjava4/internal/operators/single/SingleZipArray.java:135-141 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeZipArray.java:134` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (7 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableAmb.java:48 — src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableAmb.java:48-54 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableZip.java:57-63 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableAmb.java:48` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (7 lines × 2) src/main/java/io/reactivex/rxjava4/internal/schedulers/NewThreadWorker.java:141 — src/main/java/io/reactivex/rxjava4/internal/schedulers/NewThreadWorker.java:141-147 | src/main/java/io/reactivex/rxjava4/internal/schedulers/SingleScheduler.java:187-194 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/schedulers/NewThreadWorker.java:141` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (21 lines × 2) · ×6
  • Duplicated block (21 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableCreate.java:183 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableCreate.java:183-204 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableCreate.java:244-264 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableCreate.java:183` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (21 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableFlatMapMaybe.java:312 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableFlatMapMaybe.java:312-332 | src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableFlatMapSingle.java:280-300 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableFlatMapMaybe.java:312` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (21 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/mixed/FlowableConcatMapMaybe.java:237 — src/main/java/io/reactivex/rxjava4/internal/operators/mixed/FlowableConcatMapMaybe.java:237-257 | src/main/java/io/reactivex/rxjava4/internal/operators/mixed/FlowableConcatMapSingle.java:232-252 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/mixed/FlowableConcatMapMaybe.java:237` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (21 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableConcatMap.java:100 — src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableConcatMap.java:100-120 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableConcatMapScheduler.java:102-122 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableConcatMap.java:100` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (21 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelDoOnNextTry.java:144 — src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelDoOnNextTry.java:144-164 | src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelMapTry.java:147-167 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelDoOnNextTry.java:144` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (21 lines × 2) src/main/java/io/reactivex/rxjava4/processors/ReplayProcessor.java:1006 — src/main/java/io/reactivex/rxjava4/processors/ReplayProcessor.java:1006-1026 | src/main/java/io/reactivex/rxjava4/processors/ReplayProcessor.java:1292-1312 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/processors/ReplayProcessor.java:1006` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (14 lines × 3) · ×6
  • Duplicated block (14 lines × 3) src/main/java/io/reactivex/rxjava4/core/Flowable.java:3230 — src/main/java/io/reactivex/rxjava4/core/Flowable.java:3230-3243 | src/main/java/io/reactivex/rxjava4/core/Observable.java:2865-2878 | src/main/java/io/reactivex/rxjava4/core/Streamable.java:511-524 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/core/Flowable.java:3230` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (14 lines × 3) src/main/java/io/reactivex/rxjava4/internal/observers/FutureMultiObserver.java:77 — src/main/java/io/reactivex/rxjava4/internal/observers/FutureMultiObserver.java:77-90 | src/main/java/io/reactivex/rxjava4/internal/observers/FutureObserver.java:78-91 | src/main/java/io/reactivex/rxjava4/internal/subscribers/FutureSubscriber.java:79-92 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/observers/FutureMultiObserver.java:77` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (14 lines × 3) src/main/java/io/reactivex/rxjava4/internal/observers/FutureMultiObserver.java:97 — src/main/java/io/reactivex/rxjava4/internal/observers/FutureMultiObserver.java:97-110 | src/main/java/io/reactivex/rxjava4/internal/observers/FutureObserver.java:98-111 | src/main/java/io/reactivex/rxjava4/internal/subscribers/FutureSubscriber.java:99-112 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/observers/FutureMultiObserver.java:97` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (14 lines × 3) src/main/java/io/reactivex/rxjava4/internal/operators/completable/CompletableCreate.java:90 — src/main/java/io/reactivex/rxjava4/internal/operators/completable/CompletableCreate.java:90-103 | src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeCreate.java:100-113 | src/main/java/io/reactivex/rxjava4/internal/operators/single/SingleCreate.java:94-107 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/completable/CompletableCreate.java:90` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (14 lines × 3) src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeConcatArray.java:114 — src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeConcatArray.java:114-127 | src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeConcatArrayDelayError.java:122-135 | src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeConcatIterable.java:126-139 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeConcatArray.java:114` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (14 lines × 3) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableAll.java:58 — src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableAll.java:58-71 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableAllSingle.java:66-79 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableTakeWhile.java:68-82 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableAll.java:58` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (19 lines × 2) · ×5
  • Duplicated block (19 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableFromIterable.java:220 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableFromIterable.java:220-238 | src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableFromIterable.java:357-375 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableFromIterable.java:220` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (19 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableGroupJoin.java:220 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableGroupJoin.java:220-238 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableGroupJoin.java:216-234 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableGroupJoin.java:220` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (19 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowablePublish.java:411 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowablePublish.java:411-429 | src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableReplay.java:331-349 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowablePublish.java:411` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (19 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableRange.java:150 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableRange.java:150-168 | src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableRangeLong.java:152-170 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableRange.java:150` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (19 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableConcatMap.java:464 — src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableConcatMap.java:464-482 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableConcatMapScheduler.java:488-506 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableConcatMap.java:464` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (22 lines × 2) · ×4
  • Duplicated block (22 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableCache.java:278 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableCache.java:278-299 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableCache.java:270-292 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableCache.java:278` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (22 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableFromIterable.java:177 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableFromIterable.java:177-198 | src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableFromIterable.java:235-256 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableFromIterable.java:177` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (22 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeFlatMapIterableFlowable.java:220 — src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeFlatMapIterableFlowable.java:220-241 | src/main/java/io/reactivex/rxjava4/internal/operators/single/SingleFlatMapIterableFlowable.java:175-196 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeFlatMapIterableFlowable.java:220` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (22 lines × 2) src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelDoOnNextTry.java:255 — src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelDoOnNextTry.java:255-276 | src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelMapTry.java:260-281 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelDoOnNextTry.java:255` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (6 lines × 2) · ×4
  • Duplicated block (6 lines × 2) src/main/java/io/reactivex/rxjava4/core/Flowable.java:16793 — src/main/java/io/reactivex/rxjava4/core/Flowable.java:16793-16798 | src/main/java/io/reactivex/rxjava4/core/Flowable.java:16844-16849 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (6 lines × 2) src/main/java/io/reactivex/rxjava4/core/Flowable.java:16843 — src/main/java/io/reactivex/rxjava4/core/Flowable.java:16843-16848 | src/main/java/io/reactivex/rxjava4/core/Observable.java:14086-14091 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once.
  • Duplicated block (6 lines × 2) src/main/java/io/reactivex/rxjava4/core/Observable.java:14039 — src/main/java/io/reactivex/rxjava4/core/Observable.java:14039-14044 | src/main/java/io/reactivex/rxjava4/core/Observable.java:14087-14092 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (6 lines × 2) src/main/java/io/reactivex/rxjava4/internal/jdk8/ParallelMapTryOptional.java:59 — src/main/java/io/reactivex/rxjava4/internal/jdk8/ParallelMapTryOptional.java:59-64 | src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelMapTry.java:60-65 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/jdk8/ParallelMapTryOptional.java:59` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (11 lines × 4) · ×3
  • Duplicated block (11 lines × 4) src/main/java/io/reactivex/rxjava4/internal/jdk8/ParallelFlatMapStream.java:54 — src/main/java/io/reactivex/rxjava4/internal/jdk8/ParallelFlatMapStream.java:54-64 | src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelConcatMap.java:61-71 | src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelFlatMap.java:63-73 | src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelFlatMapIterable.java:56-66 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/jdk8/ParallelFlatMapStream.java:54` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (11 lines × 4) src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeZipArray.java:45 — src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeZipArray.java:45-55 | src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeZipIterable.java:66-76 | src/main/java/io/reactivex/rxjava4/internal/operators/single/SingleZipArray.java:45-55 | src/main/java/io/reactivex/rxjava4/internal/operators/single/SingleZipIterable.java:65-75 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeZipArray.java:45` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (11 lines × 4) src/main/java/io/reactivex/rxjava4/internal/operators/single/SingleCache.java:49 — src/main/java/io/reactivex/rxjava4/internal/operators/single/SingleCache.java:49-60 | src/main/java/io/reactivex/rxjava4/subjects/CompletableSubject.java:146-156 | src/main/java/io/reactivex/rxjava4/subjects/PublishSubject.java:134-146 | src/main/java/io/reactivex/rxjava4/subjects/SingleSubject.java:164-174 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/single/SingleCache.java:49` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (11 lines × 3) · ×3
  • Duplicated block (11 lines × 3) src/main/java/io/reactivex/rxjava4/internal/jdk8/FlowableCollectWithCollectorSingle.java:61 — src/main/java/io/reactivex/rxjava4/internal/jdk8/FlowableCollectWithCollectorSingle.java:61-71 | src/main/java/io/reactivex/rxjava4/internal/jdk8/ObservableCollectWithCollector.java:54-64 | src/main/java/io/reactivex/rxjava4/internal/jdk8/ObservableCollectWithCollectorSingle.java:58-68 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once.
  • Duplicated block (11 lines × 3) src/main/java/io/reactivex/rxjava4/internal/observers/BasicFuseableObserver.java:134 — src/main/java/io/reactivex/rxjava4/internal/observers/BasicFuseableObserver.java:134-144 | src/main/java/io/reactivex/rxjava4/internal/subscribers/BasicFuseableConditionalSubscriber.java:135-145 | src/main/java/io/reactivex/rxjava4/internal/subscribers/BasicFuseableSubscriber.java:135-145 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/observers/BasicFuseableObserver.java:134` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (11 lines × 3) src/main/java/io/reactivex/rxjava4/internal/operators/mixed/ScalarXMapZHelper.java:59 — src/main/java/io/reactivex/rxjava4/internal/operators/mixed/ScalarXMapZHelper.java:59-69 | src/main/java/io/reactivex/rxjava4/internal/operators/mixed/ScalarXMapZHelper.java:99-109 | src/main/java/io/reactivex/rxjava4/internal/operators/mixed/ScalarXMapZHelper.java:139-149 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/mixed/ScalarXMapZHelper.java:59` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (7 lines × 5) · ×3
  • Duplicated block (7 lines × 5) src/main/java/io/reactivex/rxjava4/core/Flowable.java:663 — src/main/java/io/reactivex/rxjava4/core/Flowable.java:663-669 | src/main/java/io/reactivex/rxjava4/core/Flowable.java:728-734 | src/main/java/io/reactivex/rxjava4/core/Flowable.java:799-805 | src/main/java/io/reactivex/rxjava4/core/Flowable.java:875-881 | src/main/java/io/reactivex/rxjava4/core/Flowable.java:957-963 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/core/Flowable.java:799` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (7 lines × 5) src/main/java/io/reactivex/rxjava4/core/Flowable.java:4033 — src/main/java/io/reactivex/rxjava4/core/Flowable.java:4033-4039 | src/main/java/io/reactivex/rxjava4/core/Flowable.java:4115-4122 | src/main/java/io/reactivex/rxjava4/core/Flowable.java:4203-4210 | src/main/java/io/reactivex/rxjava4/core/Flowable.java:4295-4302 | src/main/java/io/reactivex/rxjava4/core/Flowable.java:4393-4400 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/core/Flowable.java:4033` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (7 lines × 5) src/main/java/io/reactivex/rxjava4/core/Observable.java:578 — src/main/java/io/reactivex/rxjava4/core/Observable.java:578-584 | src/main/java/io/reactivex/rxjava4/core/Observable.java:639-645 | src/main/java/io/reactivex/rxjava4/core/Observable.java:706-712 | src/main/java/io/reactivex/rxjava4/core/Observable.java:777-783 | src/main/java/io/reactivex/rxjava4/core/Observable.java:855-861 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/core/Observable.java:578` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (6 lines × 6) · ×3
  • Duplicated block (6 lines × 6) src/main/java/io/reactivex/rxjava4/core/Flowable.java:603 — src/main/java/io/reactivex/rxjava4/core/Flowable.java:603-608 | src/main/java/io/reactivex/rxjava4/core/Flowable.java:664-669 | src/main/java/io/reactivex/rxjava4/core/Flowable.java:729-734 | src/main/java/io/reactivex/rxjava4/core/Flowable.java:800-805 | src/main/java/io/reactivex/rxjava4/core/Flowable.java:876-881 | src/main/java/io/reactivex/rxjava4/core/Flowable.java:958-964 — all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/core/Flowable.java:800` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (6 lines × 6) src/main/java/io/reactivex/rxjava4/core/Flowable.java:3956 — src/main/java/io/reactivex/rxjava4/core/Flowable.java:3956-3961 | src/main/java/io/reactivex/rxjava4/core/Flowable.java:4034-4039 | src/main/java/io/reactivex/rxjava4/core/Flowable.java:4116-4122 | src/main/java/io/reactivex/rxjava4/core/Flowable.java:4204-4210 | src/main/java/io/reactivex/rxjava4/core/Flowable.java:4296-4302 | src/main/java/io/reactivex/rxjava4/core/Flowable.java:4394-4400 — all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/core/Flowable.java:3956` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (6 lines × 6) src/main/java/io/reactivex/rxjava4/core/Observable.java:522 — src/main/java/io/reactivex/rxjava4/core/Observable.java:522-527 | src/main/java/io/reactivex/rxjava4/core/Observable.java:579-584 | src/main/java/io/reactivex/rxjava4/core/Observable.java:640-645 | src/main/java/io/reactivex/rxjava4/core/Observable.java:707-712 | src/main/java/io/reactivex/rxjava4/core/Observable.java:778-784 | src/main/java/io/reactivex/rxjava4/core/Observable.java:856-863 — all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/core/Observable.java:522` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D1 · Cyclomatic Complexity · EqualCoordinator.drain (cyclomatic 23) · ×2
  • EqualCoordinator.drain (cyclomatic 23) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableSequenceEqual.java:115 — EqualCoordinator.drain has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
  • EqualCoordinator.drain (cyclomatic 23) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableSequenceEqualSingle.java:116 — EqualCoordinator.drain has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · EqualCoordinator.drain (cyclomatic 22) · ×2
  • EqualCoordinator.drain (cyclomatic 22) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableSequenceEqual.java:114 — EqualCoordinator.drain has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
  • EqualCoordinator.drain (cyclomatic 22) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableSequenceEqualSingle.java:121 — EqualCoordinator.drain has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · MergeWithObserver.drainLoop (cyclomatic 18) · ×2
  • MergeWithObserver.drainLoop (cyclomatic 18) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableMergeWithMaybe.java:228 — MergeWithObserver.drainLoop has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
  • MergeWithObserver.drainLoop (cyclomatic 18) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableMergeWithSingle.java:223 — MergeWithObserver.drainLoop has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · FlatMapIterableObserver.drain (cyclomatic 16) · ×2
  • FlatMapIterableObserver.drain (cyclomatic 16) src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeFlatMapIterableFlowable.java:180 — FlatMapIterableObserver.drain has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
  • FlatMapIterableObserver.drain (cyclomatic 16) src/main/java/io/reactivex/rxjava4/internal/operators/single/SingleFlatMapIterableFlowable.java:136 — FlatMapIterableObserver.drain has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D2 · Cognitive Complexity · EqualCoordinator.drain (cognitive 66) · ×2
  • EqualCoordinator.drain (cognitive 66) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableSequenceEqual.java:115 — EqualCoordinator.drain has cognitive complexity 66 (threshold 15). Drivers by points: if/else 44, error handling 14, boolean chains 4, loops 4 (nesting depth added 43). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • EqualCoordinator.drain (cognitive 66) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableSequenceEqualSingle.java:116 — EqualCoordinator.drain has cognitive complexity 66 (threshold 15). Drivers by points: if/else 44, error handling 14, boolean chains 4, loops 4 (nesting depth added 43). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · EqualCoordinator.drain (cognitive 53) · ×2
  • EqualCoordinator.drain (cognitive 53) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableSequenceEqual.java:114 — EqualCoordinator.drain has cognitive complexity 53 (threshold 15). Drivers by points: if/else 42, boolean chains 4, error handling 4, loops 3 (nesting depth added 32). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • EqualCoordinator.drain (cognitive 53) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableSequenceEqualSingle.java:121 — EqualCoordinator.drain has cognitive complexity 53 (threshold 15). Drivers by points: if/else 42, boolean chains 4, error handling 4, loops 3 (nesting depth added 32). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · MergeWithObserver.drainLoop (cognitive 40) · ×2
  • MergeWithObserver.drainLoop (cognitive 40) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableMergeWithMaybe.java:228 — MergeWithObserver.drainLoop has cognitive complexity 40 (threshold 15). Drivers by points: if/else 31, boolean chains 3, loops 3, ternaries 3 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • MergeWithObserver.drainLoop (cognitive 40) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableMergeWithSingle.java:223 — MergeWithObserver.drainLoop has cognitive complexity 40 (threshold 15). Drivers by points: if/else 31, boolean chains 3, loops 3, ternaries 3 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · FlatMapIterableObserver.drain (cognitive 39) · ×2
  • FlatMapIterableObserver.drain (cognitive 39) src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeFlatMapIterableFlowable.java:180 — FlatMapIterableObserver.drain has cognitive complexity 39 (threshold 15). Drivers by points: if/else 26, error handling 8, loops 4, boolean chains 1 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • FlatMapIterableObserver.drain (cognitive 39) src/main/java/io/reactivex/rxjava4/internal/operators/single/SingleFlatMapIterableFlowable.java:136 — FlatMapIterableObserver.drain has cognitive complexity 39 (threshold 15). Drivers by points: if/else 26, error handling 8, loops 4, boolean chains 1 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ConcatMaybeObserver.drain (cognitive 25) · ×2
  • ConcatMaybeObserver.drain (cognitive 25) src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeConcatArray.java:112 — ConcatMaybeObserver.drain has cognitive complexity 25 (threshold 15). Drivers by points: if/else 23, boolean chains 1, loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • ConcatMaybeObserver.drain (cognitive 25) src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeConcatArrayDelayError.java:120 — ConcatMaybeObserver.drain has cognitive complexity 25 (threshold 15). Drivers by points: if/else 23, boolean chains 1, loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · MergeWithObserver.drainLoop (cognitive 24) · ×2
  • MergeWithObserver.drainLoop (cognitive 24) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableMergeWithMaybe.java:179 — MergeWithObserver.drainLoop has cognitive complexity 24 (threshold 15). Drivers by points: if/else 17, loops 3, ternaries 3, boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • MergeWithObserver.drainLoop (cognitive 24) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableMergeWithSingle.java:174 — MergeWithObserver.drainLoop has cognitive complexity 24 (threshold 15). Drivers by points: if/else 17, loops 3, ternaries 3, boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · RangeConditionalSubscription.slowPath (cognitive 20) · ×2
  • RangeConditionalSubscription.slowPath (cognitive 20) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableRange.java:210 — RangeConditionalSubscription.slowPath has cognitive complexity 20 (threshold 15). Drivers by points: if/else 16, loops 3, boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • RangeConditionalSubscription.slowPath (cognitive 20) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableRangeLong.java:212 — RangeConditionalSubscription.slowPath has cognitive complexity 20 (threshold 15). Drivers by points: if/else 16, loops 3, boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · MergeWithObserver.onNext (cognitive 19) · ×2
  • MergeWithObserver.onNext (cognitive 19) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableMergeWithMaybe.java:107 — MergeWithObserver.onNext has cognitive complexity 19 (threshold 15). Drivers by points: if/else 18, boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • MergeWithObserver.onNext (cognitive 19) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableMergeWithSingle.java:107 — MergeWithObserver.onNext has cognitive complexity 19 (threshold 15). Drivers by points: if/else 18, boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · SerializedEmitter.drainLoop (cognitive 18) · ×2
  • SerializedEmitter.drainLoop (cognitive 18) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableCreate.java:167 — SerializedEmitter.drainLoop has cognitive complexity 18 (threshold 15). Drivers by points: if/else 14, loops 3, boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • SerializedEmitter.drainLoop (cognitive 18) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableCreate.java:228 — SerializedEmitter.drainLoop has cognitive complexity 18 (threshold 15). Drivers by points: if/else 14, loops 3, boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · State.checkTerminated (cognitive 17) · ×2
  • State.checkTerminated (cognitive 17) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableGroupBy.java:605 — State.checkTerminated has cognitive complexity 17 (threshold 15). Drivers by points: if/else 17 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • State.checkTerminated (cognitive 17) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableGroupBy.java:355 — State.checkTerminated has cognitive complexity 17 (threshold 15). Drivers by points: if/else 17 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · RangeSubscription.slowPath (cognitive 17) · ×2
  • RangeSubscription.slowPath (cognitive 17) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableRange.java:141 — RangeSubscription.slowPath has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13, loops 3, boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • RangeSubscription.slowPath (cognitive 17) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableRangeLong.java:143 — RangeSubscription.slowPath has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13, loops 3, boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D4 · Code Duplication · Duplicated block (16 lines × 4) · ×2
  • Duplicated block (16 lines × 4) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableConcatMap.java:278 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableConcatMap.java:278-293 | src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableConcatMap.java:480-495 | src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableConcatMapScheduler.java:312-327 | src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableConcatMapScheduler.java:500-515 — there are 4 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableConcatMap.java:278` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (16 lines × 4) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableRepeat.java:96 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableRepeat.java:96-111 | src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableRepeatUntil.java:102-119 | src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableRetryBiPredicate.java:106-123 | src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableRetryPredicate.java:117-134 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableRepeat.java:96` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (16 lines × 3) · ×2
  • Duplicated block (16 lines × 3) src/main/java/io/reactivex/rxjava4/internal/observers/BlockingDisposableMultiObserver.java:82 — src/main/java/io/reactivex/rxjava4/internal/observers/BlockingDisposableMultiObserver.java:82-97 | src/main/java/io/reactivex/rxjava4/internal/observers/BlockingDisposableMultiObserver.java:105-120 | src/main/java/io/reactivex/rxjava4/internal/observers/BlockingDisposableMultiObserver.java:128-143 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/observers/BlockingDisposableMultiObserver.java:82` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (16 lines × 3) src/main/java/io/reactivex/rxjava4/processors/ReplayProcessor.java:794 — src/main/java/io/reactivex/rxjava4/processors/ReplayProcessor.java:794-809 | src/main/java/io/reactivex/rxjava4/processors/ReplayProcessor.java:1031-1047 | src/main/java/io/reactivex/rxjava4/processors/ReplayProcessor.java:1317-1333 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/processors/ReplayProcessor.java:794` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (15 lines × 3) · ×2
  • Duplicated block (15 lines × 3) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableScanSeed.java:176 — src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableScanSeed.java:176-190 | src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelRunOn.java:237-252 | src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelRunOn.java:362-377 — there are 3 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableScanSeed.java:176` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (15 lines × 3) src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeCache.java:143 — src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeCache.java:143-159 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableCache.java:191-205 | src/main/java/io/reactivex/rxjava4/internal/operators/single/SingleCache.java:93-108 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeCache.java:143` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (12 lines × 3) · ×2
  • Duplicated block (12 lines × 3) src/main/java/io/reactivex/rxjava4/internal/operators/completable/CompletableAmb.java:48 — src/main/java/io/reactivex/rxjava4/internal/operators/completable/CompletableAmb.java:48-59 | src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeAmb.java:54-65 | src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableAmb.java:50-61 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/completable/CompletableAmb.java:48` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (12 lines × 3) src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelConcatMap.java:59 — src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelConcatMap.java:59-70 | src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelFlatMap.java:61-72 | src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelFlatMapIterable.java:54-65 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelConcatMap.java:59` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (10 lines × 4) · ×2
  • Duplicated block (10 lines × 4) src/main/java/io/reactivex/rxjava4/internal/jdk8/FlowableCollectWithCollector.java:50 — src/main/java/io/reactivex/rxjava4/internal/jdk8/FlowableCollectWithCollector.java:50-59 | src/main/java/io/reactivex/rxjava4/internal/jdk8/FlowableCollectWithCollectorSingle.java:57-66 | src/main/java/io/reactivex/rxjava4/internal/jdk8/ObservableCollectWithCollector.java:50-59 | src/main/java/io/reactivex/rxjava4/internal/jdk8/ObservableCollectWithCollectorSingle.java:54-63 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/jdk8/FlowableCollectWithCollector.java:50` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (10 lines × 4) src/main/java/io/reactivex/rxjava4/internal/operators/streamable/StreamableHelper.java:54 — src/main/java/io/reactivex/rxjava4/internal/operators/streamable/StreamableHelper.java:54-63 | src/main/java/io/reactivex/rxjava4/internal/operators/streamable/StreamableHelper.java:64-73 | src/main/java/io/reactivex/rxjava4/internal/operators/streamable/StreamableHelper.java:92-101 | src/main/java/io/reactivex/rxjava4/internal/operators/streamable/StreamableHelper.java:102-111 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (10 lines × 3) · ×2
  • Duplicated block (10 lines × 3) src/main/java/io/reactivex/rxjava4/internal/observers/DisposableLambdaObserver.java:41 — src/main/java/io/reactivex/rxjava4/internal/observers/DisposableLambdaObserver.java:41-50 | src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeDoOnLifecycle.java:68-77 | src/main/java/io/reactivex/rxjava4/internal/operators/single/SingleDoOnLifecycle.java:70-79 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/observers/DisposableLambdaObserver.java:41` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (10 lines × 3) src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeFlatten.java:89 — src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeFlatten.java:89-98 | src/main/java/io/reactivex/rxjava4/internal/operators/mixed/MaybeFlatMapObservable.java:103-112 | src/main/java/io/reactivex/rxjava4/internal/operators/mixed/SingleFlatMapObservable.java:103-112 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at `src/main/java/io/reactivex/rxjava4/internal/operators/maybe/MaybeFlatten.java:89` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (9 lines × 3) · ×2
  • Duplicated block (9 lines × 3) src/main/java/io/reactivex/rxjava4/core/Flowable.java:6255 — src/main/java/io/reactivex/rxjava4/core/Flowable.java:6255-6263 | src/main/java/io/reactivex/rxjava4/core/Flowable.java:8276-8284 | src/main/java/io/reactivex/rxjava4/core/Flowable.java:13602-13610 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (9 lines × 3) src/main/java/io/reactivex/rxjava4/core/Observable.java:5588 — src/main/java/io/reactivex/rxjava4/core/Observable.java:5588-5596 | src/main/java/io/reactivex/rxjava4/core/Observable.java:7312-7320 | src/main/java/io/reactivex/rxjava4/core/Observable.java:11204-11212 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D1 · Cyclomatic Complexity · MergeSubscriber.drainLoop (cyclomatic 43) · ×1
  • MergeSubscriber.drainLoop (cyclomatic 43) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableFlatMap.java:363 — MergeSubscriber.drainLoop has cyclomatic complexity 43 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · MulticastProcessor.drain (cyclomatic 36) · ×1
  • MulticastProcessor.drain (cyclomatic 36) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowablePublishMulticast.java:312 — MulticastProcessor.drain has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ZipCoordinator.drain (cyclomatic 33) · ×1
  • ZipCoordinator.drain (cyclomatic 33) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableZip.java:162 — ZipCoordinator.drain has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SwitchMapSubscriber.drain (cyclomatic 32) · ×1
  • SwitchMapSubscriber.drain (cyclomatic 32) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableSwitchMap.java:192 — SwitchMapSubscriber.drain has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · MergeObserver.drainLoop (cyclomatic 30) · ×1
  • MergeObserver.drainLoop (cyclomatic 30) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableFlatMap.java:315 — MergeObserver.drainLoop has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · MulticastProcessor.drain (cyclomatic 30) · ×1
  • MulticastProcessor.drain (cyclomatic 30) src/main/java/io/reactivex/rxjava4/processors/MulticastProcessor.java:456 — MulticastProcessor.drain has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ConcatMapEagerDelayErrorSubscriber.drain (cyclomatic 29) · ×1
  • ConcatMapEagerDelayErrorSubscriber.drain (cyclomatic 29) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableConcatMapEager.java:227 — ConcatMapEagerDelayErrorSubscriber.drain has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ConcatMapEagerMainObserver.drain (cyclomatic 29) · ×1
  • ConcatMapEagerMainObserver.drain (cyclomatic 29) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableConcatMapEager.java:232 — ConcatMapEagerMainObserver.drain has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · JoinSubscription.drain (cyclomatic 25) · ×1
  • JoinSubscription.drain (cyclomatic 25) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableJoin.java:171 — JoinSubscription.drain has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SwitchMapObserver.drain (cyclomatic 24) · ×1
  • SwitchMapObserver.drain (cyclomatic 24) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableSwitchMap.java:181 — SwitchMapObserver.drain has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · FlattenIterableSubscriber.drain (cyclomatic 23) · ×1
  • FlattenIterableSubscriber.drain (cyclomatic 23) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableFlattenIterable.java:231 — FlattenIterableSubscriber.drain has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · GroupJoinSubscription.drain (cyclomatic 23) · ×1
  • GroupJoinSubscription.drain (cyclomatic 23) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableGroupJoin.java:188 — GroupJoinSubscription.drain has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · FlatMapStreamSubscriber.drain (cyclomatic 22) · ×1
  • FlatMapStreamSubscriber.drain (cyclomatic 22) src/main/java/io/reactivex/rxjava4/internal/jdk8/FlowableFlatMapStream.java:217 — FlatMapStreamSubscriber.drain has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ThrottleLatestSubscriber.drain (cyclomatic 22) · ×1
  • ThrottleLatestSubscriber.drain (cyclomatic 22) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableThrottleLatest.java:198 — ThrottleLatestSubscriber.drain has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · GroupJoinDisposable.drain (cyclomatic 22) · ×1
  • GroupJoinDisposable.drain (cyclomatic 22) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableGroupJoin.java:184 — GroupJoinDisposable.drain has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · JoinSubscription.drainLoop (cyclomatic 22) · ×1
  • JoinSubscription.drainLoop (cyclomatic 22) src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelJoin.java:215 — JoinSubscription.drainLoop has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ConcatMapDelayed.drain (cyclomatic 21) · ×1
  • ConcatMapDelayed.drain (cyclomatic 21) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableConcatMap.java:425 — ConcatMapDelayed.drain has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ConcatMapDelayed.run (cyclomatic 21) · ×1
  • ConcatMapDelayed.run (cyclomatic 21) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableConcatMapScheduler.java:442 — ConcatMapDelayed.run has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · JoinDisposable.drain (cyclomatic 21) · ×1
  • JoinDisposable.drain (cyclomatic 21) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableJoin.java:164 — JoinDisposable.drain has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ParallelDispatcher.drainAsync (cyclomatic 21) · ×1
  • ParallelDispatcher.drainAsync (cyclomatic 21) src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelFromPublisher.java:240 — ParallelDispatcher.drainAsync has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · FlatMapMaybeSubscriber.drainLoop (cyclomatic 20) · ×1
  • FlatMapMaybeSubscriber.drainLoop (cyclomatic 20) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableFlatMapMaybe.java:282 — FlatMapMaybeSubscriber.drainLoop has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · FlatMapSingleSubscriber.drainLoop (cyclomatic 20) · ×1
  • FlatMapSingleSubscriber.drainLoop (cyclomatic 20) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableFlatMapSingle.java:250 — FlatMapSingleSubscriber.drainLoop has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · WindowBoundaryMainSubscriber.drain (cyclomatic 20) · ×1
  • WindowBoundaryMainSubscriber.drain (cyclomatic 20) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableWindowBoundary.java:167 — WindowBoundaryMainSubscriber.drain has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ConcatMapMaybeSubscriber.drain (cyclomatic 20) · ×1
  • ConcatMapMaybeSubscriber.drain (cyclomatic 20) src/main/java/io/reactivex/rxjava4/internal/operators/mixed/FlowableConcatMapMaybe.java:150 — ConcatMapMaybeSubscriber.drain has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ConcatMapSingleSubscriber.drain (cyclomatic 20) · ×1
  • ConcatMapSingleSubscriber.drain (cyclomatic 20) src/main/java/io/reactivex/rxjava4/internal/operators/mixed/FlowableConcatMapSingle.java:145 — ConcatMapSingleSubscriber.drain has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ThrottleLatestObserver.drain (cyclomatic 20) · ×1
  • ThrottleLatestObserver.drain (cyclomatic 20) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableThrottleLatest.java:188 — ThrottleLatestObserver.drain has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · JoinSubscriptionDelayError.drainLoop (cyclomatic 20) · ×1
  • JoinSubscriptionDelayError.drainLoop (cyclomatic 20) src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelJoin.java:385 — JoinSubscriptionDelayError.drainLoop has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SortedJoinSubscription.drain (cyclomatic 20) · ×1
  • SortedJoinSubscription.drain (cyclomatic 20) src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelSortedJoin.java:141 — SortedJoinSubscription.drain has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ConcatMapImmediate.run (cyclomatic 19) · ×1
  • ConcatMapImmediate.run (cyclomatic 19) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableConcatMapScheduler.java:265 — ConcatMapImmediate.run has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · PublishConnection.drain (cyclomatic 19) · ×1
  • PublishConnection.drain (cyclomatic 19) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowablePublish.java:252 — PublishConnection.drain has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · WindowSkipSubscriber.drain (cyclomatic 19) · ×1
  • WindowSkipSubscriber.drain (cyclomatic 19) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableWindowTimed.java:596 — WindowSkipSubscriber.drain has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · WindowBoundaryMainObserver.drain (cyclomatic 19) · ×1
  • WindowBoundaryMainObserver.drain (cyclomatic 19) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableWindowBoundary.java:160 — WindowBoundaryMainObserver.drain has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · RunOnSubscriber.run (cyclomatic 19) · ×1
  • RunOnSubscriber.run (cyclomatic 19) src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelRunOn.java:230 — RunOnSubscriber.run has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SubscriptionArbiter.drainLoop (cyclomatic 19) · ×1
  • SubscriptionArbiter.drainLoop (cyclomatic 19) src/main/java/io/reactivex/rxjava4/internal/subscriptions/SubscriptionArbiter.java:183 — SubscriptionArbiter.drainLoop has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ConcatMapImmediate.drain (cyclomatic 18) · ×1
  • ConcatMapImmediate.drain (cyclomatic 18) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableConcatMap.java:233 — ConcatMapImmediate.drain has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · WindowBoundaryMainSubscriber.drain (cyclomatic 18) · ×1
  • WindowBoundaryMainSubscriber.drain (cyclomatic 18) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableWindowBoundarySelector.java:209 — WindowBoundaryMainSubscriber.drain has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · RunOnConditionalSubscriber.run (cyclomatic 18) · ×1
  • RunOnConditionalSubscriber.run (cyclomatic 18) src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelRunOn.java:355 — RunOnConditionalSubscriber.run has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ScanSeedSubscriber.drain (cyclomatic 17) · ×1
  • ScanSeedSubscriber.drain (cyclomatic 17) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableScanSeed.java:165 — ScanSeedSubscriber.drain has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · WindowExactUnboundedSubscriber.drain (cyclomatic 17) · ×1
  • WindowExactUnboundedSubscriber.drain (cyclomatic 17) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableWindowTimed.java:234 — WindowExactUnboundedSubscriber.drain has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ConcatMapMaybeMainObserver.drain (cyclomatic 17) · ×1
  • ConcatMapMaybeMainObserver.drain (cyclomatic 17) src/main/java/io/reactivex/rxjava4/internal/operators/mixed/ObservableConcatMapMaybe.java:132 — ConcatMapMaybeMainObserver.drain has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ConcatMapSingleMainObserver.drain (cyclomatic 17) · ×1
  • ConcatMapSingleMainObserver.drain (cyclomatic 17) src/main/java/io/reactivex/rxjava4/internal/operators/mixed/ObservableConcatMapSingle.java:127 — ConcatMapSingleMainObserver.drain has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ConcatMapDelayErrorObserver.drain (cyclomatic 17) · ×1
  • ConcatMapDelayErrorObserver.drain (cyclomatic 17) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableConcatMap.java:389 — ConcatMapDelayErrorObserver.drain has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · WindowBoundaryMainObserver.drain (cyclomatic 17) · ×1
  • WindowBoundaryMainObserver.drain (cyclomatic 17) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableWindowBoundarySelector.java:205 — WindowBoundaryMainObserver.drain has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · WindowSkipObserver.drain (cyclomatic 17) · ×1
  • WindowSkipObserver.drain (cyclomatic 17) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableWindowTimed.java:544 — WindowSkipObserver.drain has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · FlattenStreamMultiObserver.drain (cyclomatic 16) · ×1
  • FlattenStreamMultiObserver.drain (cyclomatic 16) src/main/java/io/reactivex/rxjava4/internal/jdk8/MaybeFlattenStreamAsFlowable.java:207 — FlattenStreamMultiObserver.drain has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · BufferBoundarySubscriber.drain (cyclomatic 16) · ×1
  • BufferBoundarySubscriber.drain (cyclomatic 16) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableBufferBoundary.java:244 — BufferBoundarySubscriber.drain has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · BufferAsyncEmitter.drain (cyclomatic 16) · ×1
  • BufferAsyncEmitter.drain (cyclomatic 16) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableCreate.java:517 — BufferAsyncEmitter.drain has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · LatestAsyncEmitter.drain (cyclomatic 16) · ×1
  • LatestAsyncEmitter.drain (cyclomatic 16) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableCreate.java:655 — LatestAsyncEmitter.drain has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · OnBackpressureBufferStrategySubscriber.drain (cyclomatic 16) · ×1
  • OnBackpressureBufferStrategySubscriber.drain (cyclomatic 16) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableOnBackpressureBufferStrategy.java:198 — OnBackpressureBufferStrategySubscriber.drain has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · BoundedReplayBuffer.replay (cyclomatic 16) · ×1
  • BoundedReplayBuffer.replay (cyclomatic 16) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableReplay.java:812 — BoundedReplayBuffer.replay has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · WindowOverlapSubscriber.drain (cyclomatic 16) · ×1
  • WindowOverlapSubscriber.drain (cyclomatic 16) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableWindow.java:430 — WindowOverlapSubscriber.drain has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · WindowExactBoundedSubscriber.drain (cyclomatic 16) · ×1
  • WindowExactBoundedSubscriber.drain (cyclomatic 16) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableWindowTimed.java:421 — WindowExactBoundedSubscriber.drain has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ConcatMapCompletableObserver.drain (cyclomatic 16) · ×1
  • ConcatMapCompletableObserver.drain (cyclomatic 16) src/main/java/io/reactivex/rxjava4/internal/operators/mixed/FlowableConcatMapCompletable.java:127 — ConcatMapCompletableObserver.drain has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ConcatMapDelayErrorObserver.run (cyclomatic 16) · ×1
  • ConcatMapDelayErrorObserver.run (cyclomatic 16) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableConcatMapScheduler.java:413 — ConcatMapDelayErrorObserver.run has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · WindowExactUnboundedObserver.drain (cyclomatic 16) · ×1
  • WindowExactUnboundedObserver.drain (cyclomatic 16) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableWindowTimed.java:218 — WindowExactUnboundedObserver.drain has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · WindowExactBoundedObserver.drain (cyclomatic 16) · ×1
  • WindowExactBoundedObserver.drain (cyclomatic 16) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableWindowTimed.java:387 — WindowExactBoundedObserver.drain has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ParallelDispatcher.drainSync (cyclomatic 16) · ×1
  • ParallelDispatcher.drainSync (cyclomatic 16) src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelFromPublisher.java:345 — ParallelDispatcher.drainSync has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · UnboundedReplayBuffer.replay (cyclomatic 16) · ×1
  • UnboundedReplayBuffer.replay (cyclomatic 16) src/main/java/io/reactivex/rxjava4/processors/ReplayProcessor.java:726 — UnboundedReplayBuffer.replay has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SizeBoundReplayBuffer.replay (cyclomatic 16) · ×1
  • SizeBoundReplayBuffer.replay (cyclomatic 16) src/main/java/io/reactivex/rxjava4/processors/ReplayProcessor.java:968 — SizeBoundReplayBuffer.replay has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SizeAndTimeBoundReplayBuffer.replay (cyclomatic 16) · ×1
  • SizeAndTimeBoundReplayBuffer.replay (cyclomatic 16) src/main/java/io/reactivex/rxjava4/processors/ReplayProcessor.java:1254 — SizeAndTimeBoundReplayBuffer.replay has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D2 · Cognitive Complexity · MergeSubscriber.drainLoop (cognitive 149) · ×1
  • MergeSubscriber.drainLoop (cognitive 149) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableFlatMap.java:363 — MergeSubscriber.drainLoop has cognitive complexity 149 (threshold 15). Drivers by points: if/else 116, loops 20, boolean chains 7, error handling 6 (nesting depth added 105). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · MulticastProcessor.drain (cognitive 133) · ×1
  • MulticastProcessor.drain (cognitive 133) src/main/java/io/reactivex/rxjava4/processors/MulticastProcessor.java:456 — MulticastProcessor.drain has cognitive complexity 133 (threshold 15). Drivers by points: if/else 84, loops 42, error handling 5, boolean chains 2 (nesting depth added 101). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · MulticastProcessor.drain (cognitive 115) · ×1
  • MulticastProcessor.drain (cognitive 115) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowablePublishMulticast.java:312 — MulticastProcessor.drain has cognitive complexity 115 (threshold 15). Drivers by points: if/else 93, loops 11, boolean chains 7, error handling 4 (nesting depth added 76). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ZipCoordinator.drain (cognitive 105) · ×1
  • ZipCoordinator.drain (cognitive 105) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableZip.java:162 — ZipCoordinator.drain has cognitive complexity 105 (threshold 15). Drivers by points: if/else 66, error handling 13, loops 12, ternaries 10, boolean chains 4 (nesting depth added 72). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · SwitchMapSubscriber.drain (cognitive 96) · ×1
  • SwitchMapSubscriber.drain (cognitive 96) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableSwitchMap.java:192 — SwitchMapSubscriber.drain has cognitive complexity 96 (threshold 15). Drivers by points: if/else 86, error handling 4, loops 4, ternaries 2 (nesting depth added 64). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · MergeObserver.drainLoop (cognitive 94) · ×1
  • MergeObserver.drainLoop (cognitive 94) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableFlatMap.java:315 — MergeObserver.drainLoop has cognitive complexity 94 (threshold 15). Drivers by points: if/else 72, loops 12, error handling 6, boolean chains 4 (nesting depth added 65). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ConcatMapEagerDelayErrorSubscriber.drain (cognitive 92) · ×1
  • ConcatMapEagerDelayErrorSubscriber.drain (cognitive 92) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableConcatMapEager.java:227 — ConcatMapEagerDelayErrorSubscriber.drain has cognitive complexity 92 (threshold 15). Drivers by points: if/else 78, error handling 5, loops 5, boolean chains 4 (nesting depth added 64). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · SwitchMapObserver.drain (cognitive 87) · ×1
  • SwitchMapObserver.drain (cognitive 87) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableSwitchMap.java:181 — SwitchMapObserver.drain has cognitive complexity 87 (threshold 15). Drivers by points: if/else 76, error handling 5, loops 5, boolean chains 1 (nesting depth added 61). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · JoinSubscription.drain (cognitive 85) · ×1
  • JoinSubscription.drain (cognitive 85) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableJoin.java:171 — JoinSubscription.drain has cognitive complexity 85 (threshold 15). Drivers by points: if/else 52, error handling 20, loops 12, boolean chains 1 (nesting depth added 58). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ConcatMapDelayed.drain (cognitive 84) · ×1
  • ConcatMapDelayed.drain (cognitive 84) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableConcatMap.java:425 — ConcatMapDelayed.drain has cognitive complexity 84 (threshold 15). Drivers by points: if/else 65, error handling 15, boolean chains 2, loops 2 (nesting depth added 61). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ConcatMapEagerMainObserver.drain (cognitive 81) · ×1
  • ConcatMapEagerMainObserver.drain (cognitive 81) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableConcatMapEager.java:232 — ConcatMapEagerMainObserver.drain has cognitive complexity 81 (threshold 15). Drivers by points: if/else 66, error handling 7, loops 6, boolean chains 2 (nesting depth added 52). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ThrottleLatestSubscriber.drain (cognitive 80) · ×1
  • ThrottleLatestSubscriber.drain (cognitive 80) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableThrottleLatest.java:198 — ThrottleLatestSubscriber.drain has cognitive complexity 80 (threshold 15). Drivers by points: if/else 62, error handling 13, loops 3, boolean chains 2 (nesting depth added 53). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · WindowSkipSubscriber.drain (cognitive 78) · ×1
  • WindowSkipSubscriber.drain (cognitive 78) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableWindowTimed.java:596 — WindowSkipSubscriber.drain has cognitive complexity 78 (threshold 15). Drivers by points: if/else 51, loops 26, boolean chains 1 (nesting depth added 56). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ConcatMapImmediate.drain (cognitive 74) · ×1
  • ConcatMapImmediate.drain (cognitive 74) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableConcatMap.java:233 — ConcatMapImmediate.drain has cognitive complexity 74 (threshold 15). Drivers by points: if/else 56, error handling 15, loops 2, boolean chains 1 (nesting depth added 54). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · FlatMapStreamSubscriber.drain (cognitive 72) · ×1
  • FlatMapStreamSubscriber.drain (cognitive 72) src/main/java/io/reactivex/rxjava4/internal/jdk8/FlowableFlatMapStream.java:217 — FlatMapStreamSubscriber.drain has cognitive complexity 72 (threshold 15). Drivers by points: if/else 48, error handling 20, boolean chains 3, loops 1 (nesting depth added 49). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · GroupJoinSubscription.drain (cognitive 71) · ×1
  • GroupJoinSubscription.drain (cognitive 71) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableGroupJoin.java:188 — GroupJoinSubscription.drain has cognitive complexity 71 (threshold 15). Drivers by points: if/else 41, loops 16, error handling 13, boolean chains 1 (nesting depth added 47). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ConcatMapDelayed.run (cognitive 67) · ×1
  • ConcatMapDelayed.run (cognitive 67) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableConcatMapScheduler.java:442 — ConcatMapDelayed.run has cognitive complexity 67 (threshold 15). Drivers by points: if/else 51, error handling 12, boolean chains 3, loops 1 (nesting depth added 44). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ConcatMapImmediate.run (cognitive 66) · ×1
  • ConcatMapImmediate.run (cognitive 66) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableConcatMapScheduler.java:265 — ConcatMapImmediate.run has cognitive complexity 66 (threshold 15). Drivers by points: if/else 51, error handling 12, boolean chains 2, loops 1 (nesting depth added 45). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · FlattenIterableSubscriber.drain (cognitive 66) · ×1
  • FlattenIterableSubscriber.drain (cognitive 66) src/main/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableFlattenIterable.java:231 — FlattenIterableSubscriber.drain has cognitive complexity 66 (threshold 15). Drivers by points: if/else 46, error handling 15, loops 4, boolean chains 1 (nesting depth added 44). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · GroupJoinDisposable.drain (cognitive 66) · ×1
  • GroupJoinDisposable.drain (cognitive 66) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableGroupJoin.java:184 — GroupJoinDisposable.drain has cognitive complexity 66 (threshold 15). Drivers by points: if/else 36, loops 16, error handling 13, boolean chains 1 (nesting depth added 44). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · JoinDisposable.drain (cognitive 63) · ×1
  • JoinDisposable.drain (cognitive 63) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableJoin.java:164 — JoinDisposable.drain has cognitive complexity 63 (threshold 15). Drivers by points: if/else 30, error handling 20, loops 12, boolean chains 1 (nesting depth added 42). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ParallelDispatcher.drainAsync (cognitive 63) · ×1
  • ParallelDispatcher.drainAsync (cognitive 63) src/main/java/io/reactivex/rxjava4/internal/operators/parallel/ParallelFromPublisher.java:240 — ParallelDispatcher.drainAsync has cognitive complexity 63 (threshold 15). Drivers by points: if/else 40, loops 17, error handling 4, boolean chains 2 (nesting depth added 41). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ThrottleLatestObserver.drain (cognitive 61) · ×1
  • ThrottleLatestObserver.drain (cognitive 61) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableThrottleLatest.java:188 — ThrottleLatestObserver.drain has cognitive complexity 61 (threshold 15). Drivers by points: if/else 43, error handling 13, loops 3, boolean chains 2 (nesting depth added 40). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · WindowSkipObserver.drain (cognitive 61) · ×1
  • WindowSkipObserver.drain (cognitive 61) src/main/java/io/reactivex/rxjava4/internal/operators/observable/ObservableWindowTimed.java:544 — WindowSkipObserver.drain has cognitive complexity 61 (threshold 15). Drivers by points: if/else 42, loops 18, boolean chains 1 (nesting depth added 42). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named call...

    Downloadable artifacts

    Machine-readable and reproducible from this commit + frozen rubric — drop them straight into a contract appendix, a CRA dossier, or a downstream SCA / VEX tool.