Public report of google/guava, published 24 October 2026. It has the same score, grades and number of
findings as the full report. The details of security findings (where they are in the code, which known
vulnerabilities and which passwords or keys were found) are left out, so nobody can use them against the project.
Public
Executive reportMeasured under the Code Assurance Index, an open standard for code quality, using its published scoring rules (rubric version 2026.10.5). Watchdog signed this survey and filed it in the standard's public register, where anyone can look it up by its survey ID. Check this survey →
Signed and filed in the standard's public register, 24 October 2026, 03:55 UTC · Survey ID cd_84cde6646af7401d988130d4114b9e6c
google/guava
Measured 24 October 2026, 03:48 UTC, at code version 1b1d120
No regression since the last survey
A regression is a drop of 0.5 points or more in the score, or of 2.5 or more out of 10 in a dimension, since the last survey.
CAI scoreAdequate
CriticalWeakAdequateStrongExemplary
No change since the last survey
The score is built from these lenses. Each lens grades one area of the code, such as how easy it is to change or how well it is protected. The weakest lens counts most, so one weak area pulls the score down instead of being averaged away.
A large codebase: 419,657 lines of product code in 7 projects, tests not counted · Estimated rebuild effort: about 5.2 person-years · Weakest lens: Maturity, 51
Findings by how serious they are
20 critical5269 serious421 minor
16 dimensions are left out of the score. For each one, Watchdog either couldn't measure it in this code, or found no evidence of the safeguard it looks for, such as a tested backup restore. They count neither for nor against the score, and Limitations lists each one with its reason.
This survey was produced by
Watchdog
Producer
Canine Development
Analyzer
Watchdog engine 1.0.0
Measured
24 October 2026, 03:48 UTC
A measurement, not a certificate. The Code Assurance Index records a number
together with the evidence it was worked out from, so anyone can recalculate it, but it doesn't certify or guarantee
the code. The standard was written by Canine Development, which also builds Watchdog. It is open to any tool that
implements it, and today Watchdog is the only one that does.
The score is deterministic, which means the same code always gets the same score. Watchdog works it out with tools that follow published rules, and an AI model never decides it, so anyone who applies the same rules to the same code gets the same number. How it is done is explained under Methodology ▸
55of 59 dimensions measured by tools. The other 4 are advisory notes from an AI model, which explain the code but don't count towards the score.
5695of 5710 findings point to an exact file and line, so you can open each one in the code. The other 15 concern the repository as a whole, such as missing documentation.
59dimensions across 6 lenses, read from 419,657 lines of product code in 7 projects.
google/guava scores 60 out of 100 and is rated Adequate, while five of its six lenses score higher still: Architecture at 90, Production Readiness at 65 and Performance at 64, all rated Adequate, and Code Health at 76 and Security and Compliance at 73, both rated Strong.
The score is lower than those five because the weakest lens counts most, and here that is Maturity, which scores 51 and is rated Adequate. Its Architecture documentation dimension scores 0 out of 10, and until that reaches 4, Maturity can't be rated higher than Adequate. The first actions are to resolve the 1 No ADRs found finding(s) in ADR Quality and to record your significant design decisions, and if Maturity rose to 70, the score would rise from 60 to about 67.
20 findings are critical: 16 in Knowledge Freshness and four in Static Analysis (SAST).
Watchdog couldn't measure 15 dimensions in this code, among them Code Coverage, Test Reliability and Dependency Hygiene, so they are left out of the score. The product code is 419,657 lines, which would take an estimated 5.2 person-years, around €760,000, to rebuild.
A lens is capped at Adequate while one of its dimensions scores below 4 out of 10, however well the rest of the lens does. That way a serious problem in one place always shows in the lens's rating.
How the score is built: what each lens counts forThe lenses don't count equally. The weakest lens counts most, the next weakest a little less, and so on, so a weak area pulls the score down instead of being averaged away. In the bar below, each part's width shows how much that lens counts and its colour shows its rating. Improving the widest part moves the score most, and as that lens improves, it counts for less, because another lens becomes the weakest.
Watchdog compares every finding with the previous survey's. A finding that has only moved to another line in the same file counts as the same finding, so only new findings appear here. Advisory notes from the AI model are left out, because the model words them afresh in every survey.
Fixed since the last survey: 28 findings
These 28 critical or serious findings were in the previous survey, on 10 October 2026, and are gone from this one.
Code Duplication · Edited copy of a member (52 corresponding lines) android/guava/src/com/google/common/math/LongMath.java
Code Duplication · Edited copy of a member (48 corresponding lines) android/guava/src/com/google/common/io/TempFileCreator.java
Code Duplication · Edited copy of a member (15 corresponding lines) android/guava/src/com/google/common/io/BaseEncoding.java
Code Duplication · Members sharing a duplicated core (16 members, 50+ identical tokens) android/guava/src/com/google/common/primitives/Booleans.java
Code Duplication · Members sharing a duplicated core (16 members, 50+ identical tokens) android/guava/src/com/google/common/primitives/Booleans.java
Code Duplication · Members sharing a duplicated core (16 members, 50+ identical tokens) android/guava/src/com/google/common/primitives/Booleans.java
Code Duplication · Members sharing a duplicated core (14 members, 50+ identical tokens) android/guava/src/com/google/common/primitives/Booleans.java
Code Duplication · Members sharing a duplicated core (14 members, 50+ identical tokens) android/guava/src/com/google/common/primitives/Bytes.java
Code Duplication · Members sharing a duplicated core (4 members, 50+ identical tokens) android/guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceAllTester.java
Code Duplication · Members sharing a duplicated core (4 members, 50+ identical tokens) android/guava-testlib/src/com/google/common/testing/ClassPathUtil.java
Code Duplication · Members sharing a duplicated core (4 members, 50+ identical tokens) android/guava/src/com/google/common/collect/Maps.java
Code Duplication · Members sharing a duplicated core (4 members, 50+ identical tokens) android/guava/src/com/google/common/collect/Maps.java
Code Duplication · Members sharing a duplicated core (4 members, 50+ identical tokens) android/guava/src/com/google/common/io/BaseEncoding.java
Code Duplication · Members sharing a duplicated core (4 members, 50+ identical tokens) android/guava/src/com/google/common/math/LongMath.java
€250,000 to €1,300,000, for 4,205 to 13,339 hours of work, about 5.2 person-years for 3 to 10 engineers
Difficulty of the problem
Standard, judged from the kind of software and how it is built. Code that solves a harder problem, such as payments or medical bookings, costs more per line to write.
Quality factor
×0.8 at a score of 60. Better code takes more work to write, so the factor is ×1.0 at a score of 70, lower below it and higher above it.
Size
Large: 419,657 lines of product code
How the estimate is made: Watchdog prices the hours a team would need to write this code again, at €60 to €95 an hour. Declarations and boilerplate are priced at a fast rate and logic at a slower one, and the logic is then multiplied by the difficulty of the problem and by the quality factor. The estimate can be about 30% off either way, and it moves most with the hourly rate and the difficulty. For this code, every line is priced as straight logic, which keeps the estimate on the low side.
Top priorities
The three actions that raise the score most for the work they take. The full ranked list is in the Roadmap.
1
Resolve the 1 No ADRs found finding(s) in ADR Quality.
Raises the score by about 8 points · Low effort · ADR Quality
2
Record your significant design decisions.
Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them.
Each conclusion below combines several dimensions into one point that no single dimension shows, and lists the measurements it rests on.
Where the investment is most exposed · Value at risk
This code would cost about €760,000 to build again, about 5.2 person-years of work. Its weakest lens is Maturity, at 51 (Adequate). Maturity is about how well the project explains and looks after itself, which decides whether a new developer, or a new supplier, can take over. Because the weakest lens counts most in the score, work on Maturity also moves the score most.
Based on: the rebuild estimate · the Maturity grade · how much each lens counts
What to do: Start with the Maturity actions in Top priorities.
If you do one thing first · First action
Resolve the 1 No ADRs found finding(s) in ADR Quality. Of all the actions in this report, it raises the score most for the work it takes: about 8 points for low effort, because it clears the 1 ADR Quality findings. The next survey will show the change in the score.
Based on: the ranked actions in Top priorities, by score gain and effort
What hard-to-read code costs each year · Cost
Four dimensions measure how easy the code is to work in: two measure how tangled its logic is, one how much of it is copied, and one how well each part sticks to a single job. In this codebase they average 7.3 out of 10. Code at that level is slower to change than clean code, and Watchdog estimates the extra work at 2% to 5% on every change. The history of the code shows how much it changes: about 20,850 lines over the last 90 days, which is about 84,558 lines a year. At that pace, the extra work comes to an estimated 4.2 to 28.2 engineer-days a year, and it grows as more code changes.
How this is estimated: The number of changed lines is measured from the history of the code. The rest rests on two assumptions of Watchdog's own: code scoring 8 out of 10 or more adds no extra work, and each point below 8 adds 2.5% to 5.6% to every change; and an engineer changes 150 to 400 lines in a day. The result is a range for planning, not a measurement.
Based on: Cyclomatic Complexity · Cognitive Complexity · Code Duplication · Cohesion (LCOM4) · the code's change history
What to do: Start with the files listed under Churn × Complexity Hotspots, which change often and are hard to read, because that is where the extra work is paid most often.
Architecture — module dependency graph
Project dependencies, layered top-to-bottom; arrows show direction. Any dashed red edge points upward or sideways — a layering smell or cycle. A clean layered graph has none.
Architecture: which parts of the code depend on which
The code is divided into modules, groups of code that each handle one part of the product, and a module depends on another when it uses code from it. The table lists the modules both down the side and across the top, in an order where each module should only use modules listed above it. A number in a cell means the module on that row uses the module in that column, and it counts the pairs of building blocks (types) that connect them. The one thing to look for is a mark above the diagonal line. It means two or more modules use each other in a loop (a dependency cycle), so none of them can be changed, tested or released on its own.
30 modules, with 40 dependencies between them. Every module uses only modules listed above it, so there are no loops.
Which modules use which. The module on each row uses the module in each column, and the number counts the pairs of types that connect them. A cell above the diagonal is part of a loop.
77 pairs of types, where a type in com.google.common.collect uses a type in com.google.common.base. Showing 25 of them; the rest are in namespace-graph.json in this report's bundle.
com.google.common.collect uses com.google.common.base, so a change to com.google.common.base can break com.google.common.collect, while a change to com.google.common.collect can't break com.google.common.base.
Position
Below the diagonal: com.google.common.collect uses a module listed above it, which is the healthy direction.
com.google.common.escape uses com.google.common.base, so a change to com.google.common.base can break com.google.common.escape, while a change to com.google.common.escape can't break com.google.common.base.
Position
Below the diagonal: com.google.common.escape uses a module listed above it, which is the healthy direction.
com.google.common.hash uses com.google.common.base, so a change to com.google.common.base can break com.google.common.hash, while a change to com.google.common.hash can't break com.google.common.base.
Position
Below the diagonal: com.google.common.hash uses a module listed above it, which is the healthy direction.
com.google.common.primitives uses com.google.common.base, so a change to com.google.common.base can break com.google.common.primitives, while a change to com.google.common.primitives can't break com.google.common.base.
Position
Below the diagonal: com.google.common.primitives uses a module listed above it, which is the healthy direction.
com.google.common.collect.testing uses com.google.common.collect.testing.features, so a change to com.google.common.collect.testing.features can break com.google.common.collect.testing, while a change to com.google.common.collect.testing can't break com.google.common.collect.testing.features.
Position
Below the diagonal: com.google.common.collect.testing uses a module listed above it, which is the healthy direction.
com.google.common.collect.testing uses com.google.common.collect, so a change to com.google.common.collect can break com.google.common.collect.testing, while a change to com.google.common.collect.testing can't break com.google.common.collect.
Position
Below the diagonal: com.google.common.collect.testing uses a module listed above it, which is the healthy direction.
com.google.common.escape.testing uses com.google.common.escape, so a change to com.google.common.escape can break com.google.common.escape.testing, while a change to com.google.common.escape.testing can't break com.google.common.escape.
Position
Below the diagonal: com.google.common.escape.testing uses a module listed above it, which is the healthy direction.
com.google.common.graph uses com.google.common.base, so a change to com.google.common.base can break com.google.common.graph, while a change to com.google.common.graph can't break com.google.common.base.
Position
Below the diagonal: com.google.common.graph uses a module listed above it, which is the healthy direction.
com.google.common.graph uses com.google.common.collect, so a change to com.google.common.collect can break com.google.common.graph, while a change to com.google.common.graph can't break com.google.common.collect.
Position
Below the diagonal: com.google.common.graph uses a module listed above it, which is the healthy direction.
com.google.common.html uses com.google.common.escape, so a change to com.google.common.escape can break com.google.common.html, while a change to com.google.common.html can't break com.google.common.escape.
Position
Below the diagonal: com.google.common.html uses a module listed above it, which is the healthy direction.
com.google.common.net uses com.google.common.base, so a change to com.google.common.base can break com.google.common.net, while a change to com.google.common.net can't break com.google.common.base.
Position
Below the diagonal: com.google.common.net uses a module listed above it, which is the healthy direction.
com.google.common.net uses com.google.common.collect, so a change to com.google.common.collect can break com.google.common.net, while a change to com.google.common.net can't break com.google.common.collect.
Position
Below the diagonal: com.google.common.net uses a module listed above it, which is the healthy direction.
com.google.common.net uses com.google.common.escape, so a change to com.google.common.escape can break com.google.common.net, while a change to com.google.common.net can't break com.google.common.escape.
Position
Below the diagonal: com.google.common.net uses a module listed above it, which is the healthy direction.
com.google.common.util.concurrent uses com.google.common.base, so a change to com.google.common.base can break com.google.common.util.concurrent, while a change to com.google.common.util.concurrent can't break com.google.common.base.
Position
Below the diagonal: com.google.common.util.concurrent uses a module listed above it, which is the healthy direction.
com.google.common.util.concurrent uses com.google.common.util.concurrent.internal, so a change to com.google.common.util.concurrent.internal can break com.google.common.util.concurrent, while a change to com.google.common.util.concurrent can't break com.google.common.util.concurrent.internal.
Position
Below the diagonal: com.google.common.util.concurrent uses a module listed above it, which is the healthy direction.
com.google.common.util.concurrent uses com.google.common.collect, so a change to com.google.common.collect can break com.google.common.util.concurrent, while a change to com.google.common.util.concurrent can't break com.google.common.collect.
Position
Below the diagonal: com.google.common.util.concurrent uses a module listed above it, which is the healthy direction.
com.google.common.xml uses com.google.common.escape, so a change to com.google.common.escape can break com.google.common.xml, while a change to com.google.common.xml can't break com.google.common.escape.
Position
Below the diagonal: com.google.common.xml uses a module listed above it, which is the healthy direction.
com.google.thirdparty.publicsuffix uses com.google.common.collect, so a change to com.google.common.collect can break com.google.thirdparty.publicsuffix, while a change to com.google.thirdparty.publicsuffix can't break com.google.common.collect.
Position
Below the diagonal: com.google.thirdparty.publicsuffix uses a module listed above it, which is the healthy direction.
com.google.common.cache uses com.google.common.base, so a change to com.google.common.base can break com.google.common.cache, while a change to com.google.common.cache can't break com.google.common.base.
Position
Below the diagonal: com.google.common.cache uses a module listed above it, which is the healthy direction.
com.google.common.cache uses com.google.common.collect, so a change to com.google.common.collect can break com.google.common.cache, while a change to com.google.common.cache can't break com.google.common.collect.
Position
Below the diagonal: com.google.common.cache uses a module listed above it, which is the healthy direction.
com.google.common.cache uses com.google.common.util.concurrent, so a change to com.google.common.util.concurrent can break com.google.common.cache, while a change to com.google.common.cache can't break com.google.common.util.concurrent.
Position
Below the diagonal: com.google.common.cache uses a module listed above it, which is the healthy direction.
com.google.common.collect.testing.google uses com.google.common.collect.testing.features, so a change to com.google.common.collect.testing.features can break com.google.common.collect.testing.google, while a change to com.google.common.collect.testing.google can't break com.google.common.collect.testing.features.
Position
Below the diagonal: com.google.common.collect.testing.google uses a module listed above it, which is the healthy direction.
40 pairs of types, where a type in com.google.common.collect.testing.google uses a type in com.google.common.collect. Showing 25 of them; the rest are in namespace-graph.json in this report's bundle.
com.google.common.collect.testing.google uses com.google.common.collect, so a change to com.google.common.collect can break com.google.common.collect.testing.google, while a change to com.google.common.collect.testing.google can't break com.google.common.collect.
Position
Below the diagonal: com.google.common.collect.testing.google uses a module listed above it, which is the healthy direction.
152 pairs of types, where a type in com.google.common.collect.testing.google uses a type in com.google.common.collect.testing. Showing 25 of them; the rest are in namespace-graph.json in this report's bundle.
com.google.common.collect.testing.google uses com.google.common.collect.testing, so a change to com.google.common.collect.testing can break com.google.common.collect.testing.google, while a change to com.google.common.collect.testing.google can't break com.google.common.collect.testing.
Position
Below the diagonal: com.google.common.collect.testing.google uses a module listed above it, which is the healthy direction.
62 pairs of types, where a type in com.google.common.collect.testing.testers uses a type in com.google.common.collect.testing. Showing 25 of them; the rest are in namespace-graph.json in this report's bundle.
com.google.common.collect.testing.testers uses com.google.common.collect.testing, so a change to com.google.common.collect.testing can break com.google.common.collect.testing.testers, while a change to com.google.common.collect.testing.testers can't break com.google.common.collect.testing.
Position
Below the diagonal: com.google.common.collect.testing.testers uses a module listed above it, which is the healthy direction.
com.google.common.io uses com.google.common.base, so a change to com.google.common.base can break com.google.common.io, while a change to com.google.common.io can't break com.google.common.base.
Position
Below the diagonal: com.google.common.io uses a module listed above it, which is the healthy direction.
com.google.common.io uses com.google.common.collect, so a change to com.google.common.collect can break com.google.common.io, while a change to com.google.common.io can't break com.google.common.collect.
Position
Below the diagonal: com.google.common.io uses a module listed above it, which is the healthy direction.
com.google.common.io uses com.google.common.hash, so a change to com.google.common.hash can break com.google.common.io, while a change to com.google.common.io can't break com.google.common.hash.
Position
Below the diagonal: com.google.common.io uses a module listed above it, which is the healthy direction.
com.google.common.io uses com.google.common.graph, so a change to com.google.common.graph can break com.google.common.io, while a change to com.google.common.io can't break com.google.common.graph.
Position
Below the diagonal: com.google.common.io uses a module listed above it, which is the healthy direction.
com.google.common.util.concurrent.testing uses com.google.common.util.concurrent, so a change to com.google.common.util.concurrent can break com.google.common.util.concurrent.testing, while a change to com.google.common.util.concurrent.testing can't break com.google.common.util.concurrent.
Position
Below the diagonal: com.google.common.util.concurrent.testing uses a module listed above it, which is the healthy direction.
com.google.common.eventbus uses com.google.common.collect, so a change to com.google.common.collect can break com.google.common.eventbus, while a change to com.google.common.eventbus can't break com.google.common.collect.
Position
Below the diagonal: com.google.common.eventbus uses a module listed above it, which is the healthy direction.
com.google.common.eventbus uses com.google.common.cache, so a change to com.google.common.cache can break com.google.common.eventbus, while a change to com.google.common.eventbus can't break com.google.common.cache.
Position
Below the diagonal: com.google.common.eventbus uses a module listed above it, which is the healthy direction.
com.google.common.reflect uses com.google.common.base, so a change to com.google.common.base can break com.google.common.reflect, while a change to com.google.common.reflect can't break com.google.common.base.
Position
Below the diagonal: com.google.common.reflect uses a module listed above it, which is the healthy direction.
27 pairs of types, where a type in com.google.common.reflect uses a type in com.google.common.collect. Showing 25 of them; the rest are in namespace-graph.json in this report's bundle.
com.google.common.reflect uses com.google.common.collect, so a change to com.google.common.collect can break com.google.common.reflect, while a change to com.google.common.reflect can't break com.google.common.collect.
Position
Below the diagonal: com.google.common.reflect uses a module listed above it, which is the healthy direction.
com.google.common.reflect uses com.google.common.io, so a change to com.google.common.io can break com.google.common.reflect, while a change to com.google.common.reflect can't break com.google.common.io.
Position
Below the diagonal: com.google.common.reflect uses a module listed above it, which is the healthy direction.
com.google.common.testing uses com.google.common.base, so a change to com.google.common.base can break com.google.common.testing, while a change to com.google.common.testing can't break com.google.common.base.
Position
Below the diagonal: com.google.common.testing uses a module listed above it, which is the healthy direction.
49 pairs of types, where a type in com.google.common.testing uses a type in com.google.common.collect. Showing 25 of them; the rest are in namespace-graph.json in this report's bundle.
com.google.common.testing uses com.google.common.collect, so a change to com.google.common.collect can break com.google.common.testing, while a change to com.google.common.testing can't break com.google.common.collect.
Position
Below the diagonal: com.google.common.testing uses a module listed above it, which is the healthy direction.
com.google.common.testing uses com.google.common.primitives, so a change to com.google.common.primitives can break com.google.common.testing, while a change to com.google.common.testing can't break com.google.common.primitives.
Position
Below the diagonal: com.google.common.testing uses a module listed above it, which is the healthy direction.
com.google.common.testing uses com.google.common.io, so a change to com.google.common.io can break com.google.common.testing, while a change to com.google.common.testing can't break com.google.common.io.
Position
Below the diagonal: com.google.common.testing uses a module listed above it, which is the healthy direction.
com.google.common.testing uses com.google.common.reflect, so a change to com.google.common.reflect can break com.google.common.testing, while a change to com.google.common.testing can't break com.google.common.reflect.
Position
Below the diagonal: com.google.common.testing uses a module listed above it, which is the healthy direction.
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 category
Findings
Severity
A05:2025 — Injection
8
High / Critical
A03:2025 — Software Supply Chain Failures
2
Medium
Roadmap
First, address the critical gap in architectural governance by creating a dedicated ADR folder and documenting significant design decisions with their context and consequences. Next, immediately tackle the 362 orphaned files in the Knowledge Freshness dimension, prioritizing DirectedGraphConnections.java, MapMaker.java, and PairedStats.java to reduce technical debt. Finally, improve project onboarding and clarity by adding a Testing section to the root README that explains how to run the test suite, and resolve the remaining documentation quality issues in README.md.
Ranked by impact ÷ effort. "Helps" is the estimated gain on the 0–100 health score.
Do this
Helps
Effort
Dimension
Resolve the 1 No ADRs found finding(s) in ADR Quality.
Record your significant design decisions. Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them.
Explain in the README how to run the tests. Add a section called Testing to the README in the repository's top folder, saying how to run the test suite.
Raise allocation-aware density on the hot paths — currently 312 use(s) across 422,875 production line(s) (~0.7/1k). More of the idioms below on the allocation-heavy paths climbs this toward 10.
Every finding carries one of four grades. Three say how serious it is. The fourth says this
survey could not settle it — and it is a grade, not a gap.
Critical — 20
A definite problem that already costs you something and drags the score down: a
missing authorisation check, a dependency with a known exploit, a build that does not reproduce. Failure here
tends to cause failures elsewhere.
Serious — 5269
Likely wrong, but not failing yet. It degrades
the codebase over a longer horizon and can cause failures elsewhere — not urgent this week, not something to
carry for two years either.
Minor — 421
Recorded, with no effect on how the codebase functions.
Present so the survey is complete, not because it needs doing.
Could not be resolved — 16
Something this survey could not settle
from the outside, and which could be critical or serious. Either a control was required and no
positive evidence of it exists in the repository — a backup job that nothing shows was ever restored from proves
nothing about restores — or our own analysis could not run over that part of the tree. This is not a clean
result. These are excluded from the score rather than awarded a pass, so the number on the cover neither
rewards nor penalises them: if you act on this survey without resolving them, you carry that risk yourself. Each
one is named under Limitations.
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. 55 of 59 evaluated dimensions are computed purely by tools and static analysis (confidence 1.0); 4 documentation/naming judgement(s) are LLM-assisted and labelled advisory. Overall confidence is 0.9 — 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 — 59 dimensions across the health lenses
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
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, 5695 of 5710 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.)
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.
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.
Method
Backs
Version
Evaluator
Roslyn static analysis
Complexity, cohesion, coupling, dead code, API surface, layering
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.
D8 Code Coverage — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Coverage NOT MEASURED: test source is present (.java) but the built-in coverage collector has no runner for this repository's ecosystem — so this suite was never executed by it. Not scored — this is a gap in the analyzer's language coverage, not a defect in the repo. To have real coverage read, produce a coverage report in a standard format (JaCoCo XML — `mvn jacoco:report`) and commit it — a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures. You can widen what we reach: optional: produce a coverage report in a standard format (JaCoCo XML — `mvn jacoco:report`) and commit it — a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures — then the real number is read on the next scan.
D11 Test Reliability — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Test source is present (.java) but the built-in reliability runner does not support this repository's ecosystem, so flakiness couldn't be assessed. Not scored — this is a gap in the analyzer's language coverage, not a finding about this repository.
D12 Dependency Hygiene — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Not scored — a Maven build resolved 5 artifact(s) (1 behind a shipped release, reported), but the build resolved only part of the graph, so this dimension's own question is only partly answered. NOT a finding that these dependencies are current or healthy.
D14 License Compliance — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Not scored — this repository's 15 Maven/Gradle manifest(s) were read and none of the dependency coordinates they declare carries a version resolvable from the manifest itself: every one is inherited from a parent POM, a <dependencyManagement> block, an imported BOM or a Gradle version reference the catalogue does not define. Licences are resolved from the POMs Maven Central publishes, which requires a version to ask about, and grading whichever release happens to be newest today would be a verdict about a dependency graph this repository has not pinned. NOT a finding that this repository's licences are compliant: this dimension asserts nothing about its licensing in either direction.
D27 Navigability — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Navigability is taken over call sites whose callee resolved. For C# that population includes calls into referenced assemblies; for this language only calls declared inside the repository count, so the abstention threshold reads the repository's use of its standard library as a resolution failure. That is a limit of this analyzer, not a build problem in this repository.
D30 Dependency Vulnerabilities — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Osv: osv-scanner exited 127 with no findings — dependency CVEs were not measured. 'osv-scanner' exited 127 and produced no findings, and that exit code has no documented repo-side meaning — so this run measured nothing, and nothing here is a statement about the repository.
D32 Data Compliance (PII/GDPR) — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. `android/guava/src/com/google/common/base/Objects.java`, `android/guava/src/com/google/common/base/Platform.java`, `android/guava/src/com/google/common/base/Preconditions.java`, `android/guava/src/com/google/common/base/Strings.java`, `android/guava/src/com/google/common/base/Verify.java`, … (+6 more) produced a parse error, so every rule in this engine's `gdpr.yml` was absent there. That absence is NOT a clean result: these rules detect personal data crossing a boundary into a log sink, a URL or browser storage, and a file that was never parsed cannot report any of the three. The rest of the tree analysed normally and its rows above stand; only these files are unaccounted for. You can widen what we reach: fix the syntax error (or exclude the file deliberately) and re-scan to cover it.
D43 Malicious Dependencies — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Osv: osv-scanner exited 127 with no findings — dependency CVEs were not measured. 'osv-scanner' exited 127 and produced no findings, and that exit code has no documented repo-side meaning — so this run measured nothing, and nothing here is a statement about the repository.
AXB1 Runtime evidence locked — no reproducible boot — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Subject: 1 markup document(s) — HTML, Razor, JSX, Vue, Svelte or server templates. The Runtime Evidence tier boots an app only via docker-compose, an Aspire AppHost, a Dockerfile, an npm dev script, a web service's own toolchain entry point (cargo, go, dotnet, Python, Spring Boot), or an Android app's own Gradle wrapper (run on an emulator); an Apple or Flutter app needs a host it lacks. None applied, so no live runtime a11y/egress/header evidence was collected. You can widen what we reach: add a docker-compose.yml (or an Aspire AppHost) that brings the app up with its dependencies. Watchdog then boots it in an isolated sandbox and gathers real runtime evidence — you change nothing in your pipeline (no CI step, no SDK).
C1 Data Protection — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These personal data controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks personal data controls.
C2 Access Controls — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These authorization controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks authorization controls.
C3 Audit Trail — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These audit controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks audit controls.
C4 Data Retention — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These retention controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks retention controls.
C5 Data-Subject Rights — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These data-subject rights controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks data-subject rights controls.
GD1 Unfinished & placeholder code — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, F#, JavaScript/TypeScript, Dart, Ruby and Scala source only, and this repository's Java is most of its product and is not read yet, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
P5 DR & Backup — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. No backup/snapshot/replication config, RTO/RPO or restore-procedure documentation was found — and no production persistence was detected either (no data-access packages, no data-store services, no database resources), so there is nothing in this repository whose loss a DR control would recover. If this system's data lives in a platform or ops repo we can't see, that's where the DR evidence belongs.
S1 Web-Security Posture — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These web-security controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks web-security controls.
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 — an in-process token-stream comparison over sliding windows, with type-aware normalization — so 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.
D5 Coupling: Coupling is measured between projects/assemblies — runtime coupling through DI, reflection, messaging or shared databases is invisible to a static reference graph.
D6 Cohesion (LCOM4): LCOM4 cohesion is syntactic — it infers connectivity from which methods touch which fields/methods by name, not from real runtime behaviour or intent.
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.
D17 Explicit Debt: Acknowledged-debt signals (TODO/FIXME, suppressions, dead code) are textual — undocumented debt that nobody marked, and debt that lives in design rather than annotations, is invisible. Committed machine-written code (scaffolded migrations, designer/codegen output, generated stubs) is excluded — it is never the team's dead code to delete.
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. Its critique rows are drawn from a closed category vocabulary and each row means the same thing in every run, so two scans can be compared row by row; the SET that fires is still a sample, and does not repeat exactly. Measured on one frozen input, six scans at one engine SHA: 2-5 critique rows per scan, 8 distinct rows across the six, 3 of those 8 seen in only one scan. So a D19 row is evidence about the documentation, but a COUNT of D19 rows is not a quantity — never read a change in it as an improvement or a regression.
D20 ADR Quality: ADR quality is an LLM read of the decision records present — it cannot know about decisions made and never recorded, and its verdict is sampled and advisory.
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.
D22 Internal API Consistency: API-surface coherence is an LLM judgement over a sample of the public surface — consistency of intent across the whole API is approximated, not exhaustively verified.
D26 Project Cohesion: Project focus is sized from members/namespaces per project — a project that is broad by deliberate design reads the same as one that has sprawled.
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.
D44 Platform End-of-Life: The support table is FROZEN, so it goes out of date by losing RECALL: a release that ended support after the table was written is missed until the table is refreshed, and this dimension reading 10 is not evidence that a platform is current. Only platforms the repository DECLARES in a place this pass reads are seen — a runtime named only in a Dockerfile (D31's subject), in a CI workflow (D29's), or in a file this pass does not parse (go.mod, a Gemfile ruby directive) is invisible here, which is why a repository declaring none of them abstains rather than scoring. Only frameworks with a PUBLISHED support policy are tracked: React, Flask and Express publish none, so their age cannot be judged and their absence from a report is not a statement that they are supported.
AX10 Code composition: Role is inferred from namespace/folder convention, not semantics — a domain concept living in a folder named "Services" reads as application, and the split is lines-of-code, not business value. The business-logic-share score is a SOFT, FLOORED signal: it contributes to the Architecture lens but is floored at the Critical gate, so an infrastructure-heavy design (a gateway, an ETL, a driver) is legitimately low without being nuked to zero.
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.
P4 Deployment & Rollback: Approval/branch-protection rules live in repository settings the scan cannot see — only their in-repo evidence (config files, workflows) is checked, so a control enforced purely in the host's settings reads as "not evidenced".
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 (4): D19, D21, D22, M4 (model: Local LLM). For these, a model reads a bounded sample and sets the numeric score; each names its own sample and method on its card. They 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.
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.
30 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was ToDoubleRounder.roundToDouble at 39. A further 2 method(s) were over the threshold but excluded as flat dispatchers (a long switch/match over independent cases: many branches, almost no nesting), the largest being Murmur3_128Hasher.processRemaining at 16 — they are counted neither in the figure above nor in this dimension's score. 2 files carry no cyclomatic complexity row at all for this reason — every one of their over-threshold methods was excluded, so the exclusion is disclosed nowhere in the file itself: android/guava/src/com/google/common/hash/Murmur3_128HashFunction.java (Murmur3_128Hasher.processRemaining at 16), guava/src/com/google/common/hash/Murmur3_128HashFunction.java (Murmur3_128Hasher.processRemaining at 16). They are named here because the per-file figures other dimensions report are taken BEFORE this exclusion, so such a file can show a high maximum complexity elsewhere in this report and nothing here, with nothing to reconcile the two.
+ 11 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Bring the 2 bodies over 30 down to 30 or less in Cyclomatic Complexity — start with ToDoubleRounder.roundToDouble (cyclomatic 39), ToDoubleRounder.roundToDouble (cyclomatic 39). — This score is capped by its worst body, so a finding fixed alone moves it by almost nothing — the next one down takes its place. Refactoring these 2 together lifts Cyclomatic Complexity from 7.0 to about 7.3/10, projected with the scoring formula itself and assuming each lands exactly at 30; a cleaner split scores higher.
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.
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.
+ 64 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Bring the 19 bodies over 30 down to 30 or less in Cognitive Complexity — start with Striped64.retryUpdate (cognitive 59), Striped64.retryUpdate (cognitive 59), ToDoubleRounder.roundToDouble (cognitive 55). — This score is capped by its worst body, so a finding fixed alone moves it by almost nothing — the next one down takes its place. Refactoring these 19 together lifts Cognitive Complexity from 6.6 to about 7.3/10, projected with the scoring formula itself and assuming each lands exactly at 30; a cleaner split scores higher.
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.
Do you agree with this assessment?
D3 · God Classes8.5 / 10Strong✓ 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.
Resolve the 110 TooManyMethods finding(s) in God Classes — start with Maps.java (5), LocalCache.java (4), MapMakerInternalMap.java (4). — One of this dimension's main actionable groups (110 warning-level).
Resolve the 47 FileTooLong finding(s) in God Classes — start with LocalCache.java (2), Maps.java (2), MapMakerInternalMap.java (2). — One of this dimension's main actionable groups (47 warning-level).
Resolve the 38 ClassTooLong finding(s) in God Classes — start with LocalCache.java (2), MapMakerInternalMap.java (2), Synchronized.java (2). — One of this dimension's main actionable groups (38 warning-level).
Enforce God Classes in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
Detailed fixes: d3_recommendation.md · top locations in Appendix A, every location in findings.md.
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.
3683 duplicated block group(s) detected. A further 117 rows report members as variants of one another; they aggregate block groups already counted above and are not themselves counted. 182 of the 3800 are in trees this repository does not ship — vendored, example/demo, fixture and benchmark code — and are ranked below the shipped groups rather than excluded from them: the duplication there is real and is still counted in this dimension's score. The dimensions that publish a production-file census leave those trees out of theirs, so this count is deliberately drawn over the wider population.
+ 254 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Resolve the 378 Duplicated block (8 lines × 2) finding(s) in Code Duplication — start with Synchronized.java (20), LocalCache.java (9), Maps.java (9). — One of this dimension's main actionable groups (378 warning-level).
Resolve the 351 Duplicated block (7 lines × 2) finding(s) in Code Duplication — start with Predicates.java (8), AbstractMapBasedMultimap.java (8), TypeToken.java (7). — One of this dimension's main actionable groups (351 warning-level).
Resolve the 286 Duplicated block (5 lines × 2) finding(s) in Code Duplication — start with MultisetNavigationTester.java (20), MapMakerInternalMap.java (13), Maps.java (6). — One of this dimension's main actionable groups (286 warning-level).
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.
Do you agree with this assessment?
D5 · Coupling10.0 / 10Exemplary✓ Tool-verified
What it measures: Whether volatile projects sit underneath others that depend on them (so their churn ripples upward), and whether project dependencies form cycles. A widely-depended-on but stable shared/kernel project is healthy, not penalised.
Method: Dependency cycles via elementary-DFS over real .csproj references, plus Martin instability (afferent/efferent) per project. Exhaustive over the reference graph, deterministic.
Coverage: Exhaustive · type-level: afferent/efferent coupling + cycles computed over every production type — the population is all types, not a name convention.
7 production modules (Gradle+Maven), 0 dependency cycle(s), 0 unstable depended-on module(s). Read from the build's own module declarations; edges a convention plugin adds from buildSrc or build-logic are not visible there; 0 module(s) off the main sequence, with abstractness counted on 4 of the 7 (the rest declare no modelled class or interface, export only macros, declare types in source no model reads, or have no source directory of their own).
What it measures: Whether a class's methods are focused on a single responsibility.
Method: LCOM4 cohesion per production class with at least two methods: connected components of methods sharing state or calls, computed syntactically. Deterministic, not a proxy.
Coverage: Exhaustive · type-level: LCOM4 cohesion computed over every production class — the population is all types, not a name convention.
Resolve the 9 Low cohesion finding(s) in Cohesion (LCOM4) — start with LocalCache.java (2), NetworkBuilder.java (2), ThreadFactoryBuilder.java (2). — One of this dimension's main actionable groups (9 warning-level).
Enforce Cohesion (LCOM4) in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.
Detailed fixes: d6_recommendation.md · top locations in Appendix A, every location in findings.md.
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.
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.
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.
260 source file(s) have their living knowledge concentrated in one author (≥90% of recent, decayed contribution). The largest is android/guava/src/com/google/common/cache/LocalCache.java. Counted over 1382 of the 1983 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.
Off-boarding risk: anonymized user #1
Further sole-owners (lower concentration)
What to do
Resolve the 1 Off-boarding risk finding(s) in Bus Factor. — One of this dimension's main actionable groups (1 recommendation-level).
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.
What it measures: Acknowledged debt left in the code — TODOs, dead code, suppressed warnings.
Method: Roslyn syntactic debt markers (suppressions/TODO/FIXME/HACK/empty-catch/commented-code/Obsolete) plus SymbolFinder dead-code analysis; weighted-debt-per-KLoC density deducted 2.0x per unit. Deterministic, exhaustive.
1407 deducted task-comment markers across 419657 LoC (0.3/KLoC) → score 9.3. Task comments only: this repository's language is read without a compiler, so D17's suppression, dead-code and commented-out-code arms did not run and this score counts fewer marker kinds than a .NET repository's would.
TodoComment repeated across 10 files · ×4android/guava-testlib/src/com/google/common/testing/ClassPathUtil.java:30
TodoComment repeated across 19 filesandroid/guava-testlib/test/com/google/common/testing/GcFinalizationTest.java:129
+ 4 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Resolve the 1055 TodoComment finding(s) in Explicit Debt — start with LocalCache.java (32), MonitorTestCase.java (24), MoreExecutorsTest.java (22). — One of this dimension's main actionable groups (1055 warning-level).
Resolve the 16 HackComment finding(s) in Explicit Debt — start with ImmutableSortedSet.java (6), ImmutableSortedMultiset.java (4), ImmutableSortedMap.java (4). — One of this dimension's main actionable groups (16 warning-level).
Resolve the 8 XxxComment finding(s) in Explicit Debt — start with UrlEscaperTesting.java (4), PercentEscaperTest.java (4). — One of this dimension's main actionable groups (8 warning-level).
Enforce Explicit Debt in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
Detailed fixes: d17_recommendation.md · top locations in Appendix A, every location in findings.md.
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.
The repository's root README (Guava: Google Core Libraries for Java) is clear and complete — it introduces Guava as a set of core libraries including new collection types, the two flavors (JRE vs Android), Maven/Gradle dependency syntax, and links to release, CI, and Best Practices badges. The three sub-READMEs document directories rather than the repository: futures/README.md (modules released exactly once each) and guava-testlib/README.md (testlib for convenient unit testing). All four project-level gaps are present in the root README but not in any sub-README.
Documentation: no installation or build instructions · ×2README.md
What to do
Resolve the 2 Documentation finding(s) in Documentation Quality — start with README.md (2). — One of this dimension's main actionable groups (2 recommendation-level).
Detailed fixes: d19_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D20 · ADR Quality0.0 / 10Critical✓ Tool-verified
What it measures: Whether architecture decisions are recorded well (context, decision, consequences).
Method: Per-ADR judgment by language model at low temperature with two-pass stability; confidence is share of ADRs evaluated; enforcement-field presence detected deterministically. 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.
0 naming inconsistencies across 0 sampled symbols.
✓ On the Gold path — maintain.
Detailed fixes: d21_recommendation.md.
Do you agree with this assessment?
D22 · Internal API ConsistencyStronggated by 3 serious findings◐ Sampled · advisory
What it measures: Whether the internal API surface is consistent and coherent.
Method: Judged by language model at low temperature over a sample of the public API surface (IsPackable or .Contracts types). Sampled, advisory; confidence discounted by model uncertainty.
3 API inconsistencies across a 400-member sample of 779 exposed types.
Duplicate operation: `apply` and `convert` perform the exact same transformation logic on the input. · ×2
Confusing overlap: `equals` checks equality with a specific object (inherited from Object), while `equivalent` and `test` check semantic equivalence. `equivalent` and `test` are effectively synonyms for each other.
What to do
Resolve the 2 Duplicate operation finding(s) in Internal API Consistency. — One of this dimension's main actionable groups (2 warning-level).
Resolve the 1 Confusing overlap finding(s) in Internal API Consistency. — One of this dimension's main actionable groups (1 warning-level).
Detailed fixes: d22_recommendation.md · top locations in Appendix A, every location in findings.md.
4 of 7 build units (Maven) flagged as possibly oversized/incoherent.
Projects may be oversized for their cohesion
What to do
Resolve the 1 Projects may be oversized for their cohesion finding(s) in Project Cohesion. — One of this dimension's main actionable groups (1 recommendation-level).
Detailed fixes: d26_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether any secrets were ever committed — scanned across the full git history, not just now.
Method: Secret scan via TWO gitleaks detect passes in an isolated checkout — the full git history, then a second --no-git pass over the working tree as it stands — merged and de-duplicated by (rule, file, line); each match flagged High. Both invocations are recorded in the audit trail. Exhaustive; when the tool is absent, or when its output cannot be parsed into the expected shape, the dimension is WITHHELD as an explicit measurement gap on our side — unscored and excluded from the lens, never a hedged middling score.
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).
8 finding(s): 0 critical, 4 high, 4 medium, 0 low. semgrep hit a parse error in 15 file(s) — `android/guava-testlib/src/com/google/common/testing/EqualsTester.java` (line 111), `android/guava/src/com/google/common/base/Objects.java` (line 77), `android/guava/src/com/google/common/base/Platform.java` (line 82), `android/guava/src/com/google/common/base/Preconditions.java` (lines 162–165, line 165, line 167, …), `android/guava/src/com/google/common/base/Strings.java` (line 266), … (+10 more) — so no absence of findings in the named regions is evidence of anything; rows reported elsewhere in those files are real. Fix the syntax error (or exclude the file deliberately) and re-scan to cover them. Separately, one or more rules could not re-parse an embedded snippet in 1 file(s) (e.g. a workflow `run:` block read as shell). Those files WERE scanned and their other rows are unaffected; only those rules' view of those snippets is missing.
REDACTED
REDACTED
What to do
Resolve the 4 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (2), REDACTED (2). — One of this dimension's main actionable groups (4 issue-level).
Resolve the 4 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (4). — One of this dimension's main actionable groups (4 warning-level).
Detailed fixes: d29_recommendation.md · top locations in Appendix A, every location in findings.md.
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.
378 of 1382 significant source file(s) are orphaned — their living knowledge has decayed to nothing, so no one currently understands them. The largest is android/guava/src/com/google/common/net/InternetDomainName.java. Counted over 1382 of the 1983 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.
Resolve the 362 Orphaned file finding(s) in Knowledge Freshness — start with DirectedGraphConnections.java (2), MapMaker.java (2), PairedStats.java (2). — One of this dimension's main actionable groups (362 recommendation-level).
Resolve the 16 Orphaned knowledge finding(s) in Knowledge Freshness — start with Stats.java (2), Crc32cHashFunction.java (2), Traverser.java (2). — One of this dimension's main actionable groups (16 issue-level).
Resolve the 1 Further orphaned files (smaller) finding(s) in Knowledge Freshness. — One of this dimension's main actionable groups (1 recommendation-level).
Detailed fixes: d34_recommendation.md · top locations in Appendix A, every location in findings.md.
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. A non-source file is never a coupling PARTICIPANT either: documentation, schemas, config and data files are dropped with the rest, so a code↔docs pair — a command and the reference page that restates it — is not reported however strongly the two co-change; nor is coupling that runs THROUGH a build step or config file.
Resolve the 6 Change coupling finding(s) in Change Coupling — start with CompactLinkedHashMap.java (3), StandardNetwork.java (2), CompactLinkedHashSet.java. — One of this dimension's main actionable groups (6 warning-level).
Detailed fixes: d35_recommendation.md · top locations in Appendix A, every location in findings.md.
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.
What it measures: Whether anyone still ships security patches for the platform this repository RUNS ON — the runtime it pins and the framework majors its own constraints hold it to. Separate from D12 because the question differs: a current Django on an end-of-life Python is perfectly up to date and completely unsupported, and the fix is a migration rather than a version bump. What the repository says it merely SUPPORTS is never charged.
Method: End-of-life PLATFORM read from the repository's own declarations and graded against a FROZEN, dated table of vendor support dates — no network, no feed, no API, so this dimension answers identically inside a closed scan fence. Two subjects: a RUNTIME the project pins (a single or all-end-of-life TargetFramework, a .nvmrc or .python-version, a requires-python CAP) and a FRAMEWORK major a dependency constraint cannot move off (a caret, tilde or exact version; `vue@^2.7.16` pins Vue 2). A FLOOR is deliberately never charged — `requires-python = ">=3.8"` states what a package SUPPORTS, not what it runs on — and a multi-target project is charged only when EVERY target is out of support. Runtime 4.0/product capped 8.0, framework 1.5 capped 4.5. The table is safe to freeze because a statement about support that ended in the past cannot become false: it loses recall as it ages, never precision, and a test asserts every entry predates the freeze date. Disjoint from D31 (a container image's OS layer) and D29 (the toolchain a CI workflow installs). Abstains when the repository declares no platform this pass reads — never scores it clean.
0 end-of-life runtime(s) and 0 end-of-life framework(s), read from 1 platform declaration(s) and 10 dependency declaration(s). This dimension reads what the repository says about ITSELF — a pinned target framework, a version file, a capped requires-python, a Rust toolchain pin, a framework major a constraint cannot move off. A FLOOR is deliberately never charged: `requires-python = ">=3.8"` states what the package SUPPORTS, not what it runs on, and a well-maintained library declares exactly that while running its own CI on a current release. The end-of-life facts are FROZEN and dated, so this dimension needs no network and answers identically inside a closed scan fence; as the table ages it loses recall and never precision, because a statement about support that ended in the past cannot become false. The OS layer of a container image is D31's question and the toolchain a CI workflow installs is D29's; this row is neither.
Other · Architecture — How the codebase splits by code ROLE — domain, application, infrastructure, test, generated. The significance map behind the knowledge/coupling weighting, and a DDD signal in its own right: a thin domain core under fat infrastructure is the anemic-domain smell, quantified. How each file's role is decided, because the split is only as good as that: a generated name or a build-output tree makes it Generated, a test project makes it Test, and otherwise the file's NAMESPACE and PATH words are matched against fixed vocabularies in a fixed ORDER — domain, then infrastructure, then application — so a file whose words hit two layers is counted under the earlier one. A production file matching none of them counts as application, so that share reads 'application or unclassified' rather than a measured application layer. Roles come from naming convention, never from what the code does. On this repository the split was taken from the source tree on disk rather than from a loaded .NET workspace, so a file's role is decided by its PATH segments alone — no declared namespace was available to add to the evidence — and generated output is excluded from the census entirely rather than counted as a generated share.
Method: Roslyn line-count by code ROLE: every source file classified Domain/Application/Infrastructure/Test/Generated by namespace + path convention (the shared CodeRoleClassifier), then significant lines summed per role. Deterministic; the advisory score is the business-logic (domain+application) share of production code.
Coverage: Population: ALL source files, each bucketed into ONE of five roles (Domain/Application/Infrastructure/Test/Generated) by namespace + path convention — a file whose layer isn't named in the convention falls to Application (the neutral default), and the split is line-count, not semantic depth or business value.
What to do
The domain core is a small share of production code, but most of the rest matched no layer vocabulary at all — so this is not yet an anemic-domain finding. The namespace/path convention could not place that code, which makes the composition above a statement about the naming, not about the design. Name the layers (or check that the repository's conventions differ from the ones this check knows) before reading a thin domain into it.
Other · Architecture — Whether the project-reference graph is acyclic (cycles block independent build/deploy and signal eroding boundaries).
Method: Project reference cycles via elementary-DFS over real .csproj references, using the engine shared with D5/D7; cyclic versus acyclic. Exhaustive, deterministic.
Other · Architecture — Whether dependencies point inward (Domain ← Application ← Infrastructure/Web) — the clean-architecture dependency rule, checked across the project graph.
Method: Layer violations by name-segment inference (Domain/Core to Application to Infrastructure/Web) over the project-reference graph. Exhaustive over all projects, deterministic.
Other · Architecture — Whether interfaces stay focused rather than fat — the Interface-Segregation principle (SOLID 'I').
Method: Roslyn scan: public interface declared-member counts (accessors fold into their property/event); fat-interface threshold (over 15 declared members) flagged per type. Each finding also reports the distinct-OPERATION count — members counted by name, so an overload group counts once — which decides whether it states the caller-side ISP harm or the implementer-side burden of an overload set. TypeScript: exported interfaces that declare behaviour, counted over their REQUIRED operations (method signatures and function-typed properties with no `?`, once per signature) — data-shape interfaces and ambient .d.ts declarations are outside the population; JavaScript declares no interfaces and is not applicable. Deterministic, type-level.
`Multimap<K, V>` declares 20 abstract methods: `asMap`, `clear`, `containsEntry`, `containsKey`, `containsValue`, `entries`, `equals`, `get`, `hashCode`, `isEmpty`, `keySet`, `keys`, `put`, `putAll`, `putAll`, `remove`, `removeAll`, `replaceValues`, `size`, `values`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. Those 20 declarations carry 19 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 19 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. (×2) — guava/src/com/google/common/collect/Multimap.java:166, android/guava/src/com/google/common/collect/Multimap.java:163
`Multiset<E>` declares 18 abstract methods under just 15 distinct name(s): `add`, `add`, `contains`, `containsAll`, `count`, `elementSet`, `entrySet`, `equals`, `hashCode`, `iterator`, `remove`, `remove`, `removeAll`, `retainAll`, `setCount`, `setCount`, `size`, `toString`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. That is an OVERLOAD SET, not 18 separate responsibilities: a caller binds to 15 operation(s) and uses the overload it selected, so the Interface-Segregation harm does NOT apply on the caller's side and splitting this into role-interfaces would scatter one operation without relieving anything. The burden that does remain is the IMPLEMENTER's — all 18 signatures must be written and kept in step. Reduce it by collapsing overloads (optional or default parameters, or an options object) rather than by segregating the interface. (×2) — guava/src/com/google/common/collect/Multiset.java:95, android/guava/src/com/google/common/collect/Multiset.java:90
`RangeSet<C>` declares 19 abstract methods: `add`, `addAll`, `asDescendingSetOfRanges`, `asRanges`, `clear`, `complement`, `contains`, `encloses`, `enclosesAll`, `equals`, `hashCode`, `intersects`, `isEmpty`, `rangeContaining`, `remove`, `removeAll`, `span`, `subRangeSet`, `toString`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — guava/src/com/google/common/collect/RangeSet.java:54
`Table<R, C, V>` declares 21 abstract methods: `cellSet`, `clear`, `column`, `columnKeySet`, `columnMap`, `contains`, `containsColumn`, `containsRow`, `containsValue`, `equals`, `get`, `hashCode`, `isEmpty`, `put`, `putAll`, `remove`, `row`, `rowKeySet`, `rowMap`, `size`, `values`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. (×2) — guava/src/com/google/common/collect/Table.java:68, android/guava/src/com/google/common/collect/Table.java:68
`Graph<N>` declares 17 abstract methods: `adjacentNodes`, `allowsSelfLoops`, `degree`, `edges`, `equals`, `hasEdgeConnecting`, `hasEdgeConnecting`, `hashCode`, `inDegree`, `incidentEdgeOrder`, `incidentEdges`, `isDirected`, `nodeOrder`, `nodes`, `outDegree`, `predecessors`, `successors`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. Those 17 declarations carry 16 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 16 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. (×2) — guava/src/com/google/common/graph/Graph.java:104, android/guava/src/com/google/common/graph/Graph.java:104
`Network<N, E>` declares 22 abstract methods: `adjacentEdges`, `allowsParallelEdges`, `asGraph`, `degree`, `edgeConnecting`, `edgeConnecting`, `edgeConnectingOrNull`, `edgeConnectingOrNull`, `edgeOrder`, `edges`, `edgesConnecting`, `edgesConnecting`, `equals`, `hasEdgeConnecting`, `hasEdgeConnecting`, `hashCode`, `inDegree`, `inEdges`, `incidentEdges`, `incidentNodes`, `outDegree`, `outEdges`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. Those 22 declarations carry 18 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 18 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — guava/src/com/google/common/graph/Network.java:107
`ValueGraph<N, V>` declares 22 abstract methods: `adjacentNodes`, `allowsSelfLoops`, `asGraph`, `degree`, `edgeValue`, `edgeValue`, `edgeValueOrDefault`, `edgeValueOrDefault`, `edges`, `equals`, `hasEdgeConnecting`, `hasEdgeConnecting`, `hashCode`, `inDegree`, `incidentEdgeOrder`, `incidentEdges`, `isDirected`, `nodeOrder`, `nodes`, `outDegree`, `predecessors`, `successors`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. Those 22 declarations carry 19 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 19 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — guava/src/com/google/common/graph/ValueGraph.java:109
`Hasher` declares 16 abstract methods under just 14 distinct name(s): `hash`, `hashCode`, `putBoolean`, `putByte`, `putBytes`, `putBytes`, `putBytes`, `putChar`, `putDouble`, `putFloat`, `putInt`, `putLong`, `putObject`, `putShort`, `putString`, `putUnencodedChars`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. That is an OVERLOAD SET, not 16 separate responsibilities: a caller binds to 14 operation(s) and uses the overload it selected, so the Interface-Segregation harm does NOT apply on the caller's side and splitting this into role-interfaces would scatter one operation without relieving anything. The burden that does remain is the IMPLEMENTER's — all 16 signatures must be written and kept in step. Reduce it by collapsing overloads (optional or default parameters, or an options object) rather than by segregating the interface. (×2) — guava/src/com/google/common/hash/Hasher.java:57, android/guava/src/com/google/common/hash/Hasher.java:57
`RangeSet<C>` declares 22 abstract methods: `add`, `addAll`, `addAll`, `asDescendingSetOfRanges`, `asRanges`, `clear`, `complement`, `contains`, `encloses`, `enclosesAll`, `enclosesAll`, `equals`, `hashCode`, `intersects`, `isEmpty`, `rangeContaining`, `remove`, `removeAll`, `removeAll`, `span`, `subRangeSet`, `toString`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. Those 22 declarations carry 19 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 19 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — android/guava/src/com/google/common/collect/RangeSet.java:54
`Network<N, E>` declares 20 abstract methods: `adjacentEdges`, `allowsParallelEdges`, `asGraph`, `degree`, `edgeConnectingOrNull`, `edgeConnectingOrNull`, `edgeOrder`, `edges`, `edgesConnecting`, `edgesConnecting`, `equals`, `hasEdgeConnecting`, `hasEdgeConnecting`, `hashCode`, `inDegree`, `inEdges`, `incidentEdges`, `incidentNodes`, `outDegree`, `outEdges`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. Those 20 declarations carry 17 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 17 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — android/guava/src/com/google/common/graph/Network.java:106
`ValueGraph<N, V>` declares 20 abstract methods: `adjacentNodes`, `allowsSelfLoops`, `asGraph`, `degree`, `edgeValueOrDefault`, `edgeValueOrDefault`, `edges`, `equals`, `hasEdgeConnecting`, `hasEdgeConnecting`, `hashCode`, `inDegree`, `incidentEdgeOrder`, `incidentEdges`, `isDirected`, `nodeOrder`, `nodes`, `outDegree`, `predecessors`, `successors`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. Those 20 declarations carry 18 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 18 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — android/guava/src/com/google/common/graph/ValueGraph.java:108
What to do
Split fat interfaces into focused role-interfaces so clients depend only on what they use.
Where the width is an overload set rather than separate responsibilities, collapse the overloads instead — segregating those relieves no caller.
Other · Code Health — Unfinished work detected by code SHAPE, not keywords, in this repository's Java: methods that only throw a "not implemented" exception, methods that take inputs and return a constant or do nothing, dead `if (false)` branches, and skeleton classes most of whose methods are holes.
Method: Roslyn syntax scan: incompleteness by code shape (constant-returning methods, async-never-await, #if false branches, guards that return what the code already falls through to, tests an earlier guard already decided, comparisons against NaN, skeleton types), not keyword-gated. Deterministic, code-shape heuristic.
`restoreInterruptIfIsInterruptedException` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it. — guava-gwt/src-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/Platform.java:36
A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something. (×2) — android/guava-testlib/test/com/google/common/collect/testing/MyTester.java:31, guava-testlib/test/com/google/common/collect/testing/MyTester.java:31
`compilePattern`'s body only throws NotSupportedException — sometimes a deliberate contract, often an unfinished stub. Confirm it's intentional. — guava-gwt/src-super/com/google/common/base/super/com/google/common/base/Platform.java:57
`patternCompilerIsPcreLike`'s body only throws NotSupportedException — sometimes a deliberate contract, often an unfinished stub. Confirm it's intentional. — guava-gwt/src-super/com/google/common/base/super/com/google/common/base/Platform.java:61
`interruptCurrentThread` has an empty body — confirm it's an intentional no-op and not an unfinished method. — guava-gwt/src-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/Platform.java:38
What to do
Finish or delete the unfinished stubs (functions that throw "not implemented", or whose body is empty or a bare constant) — they are dead surface that looks live.
Clear the softer debt: re-enable or delete @Disabled/@Ignore tests, decide whether each empty method or UnsupportedOperationException is deliberate (and say so in a comment), and replace @SuppressWarnings("all") with targeted, justified suppressions.
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
Explain in the README how to run the tests. Add a section called Testing to the README in the repository's top folder, saying how to run the test suite.
Add an 'Architecture' / 'How it works' section to the root README — the high-level shape.
Add a README to the 13 of 14 project(s) that lack one — worth up to 1.9 pts.
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 numbered `NNNN-title` documents in any markup this check reads, 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.
No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named `architecture` or `design` in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape — no `## Architecture` heading, no "architecture overview"/"high-level design" phrasing, no "the architecture is …" introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document — not evidence that nobody wrote the shape down.
What to do
Record your significant design decisions. Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them.
Add a C4 context/container diagram (Structurizr, PlantUML or Mermaid) or an architecture.md overview.
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.
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.
Do you agree with this assessment?
P10 · Library API & versioning10.0 / 10Exemplary○ Nothing flagged
Readiness · Readiness — For a library: a deliberate (small) public API surface and explicit semantic versioning so consumers can depend on it safely.
Method: Roslyn scan: public API surface area and semantic-versioning markers (SemVer attributes, changelog entries) for libraries; off .NET, a library is the ecosystem's publication act (an npm package that is not private and names an entry point, a PyPI distribution with a build system, a Rust library crate, a Maven/Gradle module that publishes, a Go module with no package main, a gemspec, a Composer library, a SwiftPM library product, a pub.dev or Hex package), its surface is the share of types the language model records as public (Rust, Swift, Java, Kotlin, Go, Dart; not measured where the model records no type visibility or, as in TypeScript, only module-level export), and its version is read from the manifest, a semver CHANGELOG, release tooling or semver git tags. Exhaustive, deterministic.
Do you agree with this assessment?
P2 · Observability7.0 / 10Strong✓ Tool-verified
Readiness · Readiness — Whether the code is diagnosable in production — structured logging, tracing/metrics, health checks.
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.
`scorecard.yml` run(s) a static-analysis scan, but no workflow that runs one is triggered by a pull request (or a merge queue, or an unfiltered push) — the scan fires on a schedule or a manual dispatch only. A vulnerable change therefore merges clean and is reported on the next scheduled run, by which time it is on the default branch and the only remedy is a follow-up fix. Add the pull-request trigger to the workflow that runs the scan so the finding arrives before the merge rather than after it.
What to do
Trigger your SAST workflow on pull requests — a scan that only runs on a cron reports history, it does not gate.
Dependabot is configured but does not watch `gradle` — add that `package-ecosystem` entry to .github/dependabot.yml so those dependencies get the same automatic update and advisory pressure as the ones it already covers.
Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
Readiness · Readiness — Whether releases are automated and safely reversible (probes, rolling updates, approval gates) — from manifests/pipeline files, not the live environment.
Method: Filesystem scan: deployment manifests/IaC (K8s YAML, Helm, Terraform) for rolling updates, probes, approval gates, migration hooks. Exhaustive, deterministic.
What to do
Nothing pauses a release for a human: publish as a draft release (or gate the release job on a protected tag/manual dispatch) so a bad build can be stopped before users can download it.
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.
Readiness · Performance — Whether the code is written to minimise allocations so it doesn't pressure its host's memory manager — buffer/slice views over copies, object pooling, stack or value-type allocation, and buffer writers. Reward-only: credited where present, never penalised where a simpler style is fine.
Method: Production-source scan: density (per 1k LoC) of allocation-aware APIs — in .NET Span/Memory, ArrayPool/ObjectPool, stackalloc, ValueTask, value-type structs, IBufferWriter, string.Create, SkipLocalsInit; off .NET, with comments and strings blanked, Go's sync.Pool, preallocated slices/maps, Grow, strconv.Append* and buf[:0] reuse; the JVM's NIO buffer views, MemorySegment, primitive collections, pools and literal presizes (plus Kotlin primitive arrays and value classes, Scala AnyVal and @specialized); Swift's reserveCapacity, ContiguousArray, withUnsafe* access and ~Copyable. Activated off .NET on the same floor (400 lines, and benchmarks or 8 uses); Rust and garbage-collected scripting languages are not applicable. Reward-only. Deterministic, syntax/text detection.
What to do
Raise allocation-aware density on the hot paths — currently 312 use(s) across 422,875 production line(s) (~0.7/1k). More of the idioms below on the allocation-heavy paths climbs this toward 10.
Java: on hot paths, work through buffer views (ByteBuffer/LongBuffer slices, MemorySegment) instead of copies, avoid boxing with primitive collections (fastutil, Eclipse Collections, HPPC, Trove), presize collections and StringBuilders, and pool expensive buffers (Netty's pooled allocator, commons-pool).
Other · Code Health — Whether the code avoids sync-over-async (deadlock-prone blocking on tasks) and async void.
Method: Roslyn syntax scan: async methods scanned for .Wait()/.GetAwaiter().GetResult() and async-void outside event handlers. Deterministic, hard fact per invocation.
Other · Code Health — Whether any branch is dead by construction — a switch arm whose label can never equal a case-normalised subject, or an `else if` whose predicate the arm above has already swallowed.
Method: Roslyn syntax + semantics: switch labels compared against the subject's own case normaliser, and if/else-if chains checked for a literal an earlier arm's containment test already swallows. Deterministic, provable per finding. Advisory.
Do you agree with this assessment?
X13 · Undrained process stream10.0 / 10Exemplary○ Nothing flagged
Other · Code Health — Whether a child process that has BOTH standard streams redirected drains both — reading one to the end while the other is never read deadlocks once the child fills the unread pipe.
Method: Roslyn syntax + semantics: ProcessStartInfo launches with both streams redirected, checked for a drain of each stream across the enclosing type. On a repository with no .NET source it reads JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not) with the same rule: a `spawn` imported from `child_process` whose stdout and stderr are both pipes (no options, no `stdio`, or `stdio` of `'pipe'`), bound to a local that never leaves its scope, where exactly one of the two streams is read, the other never, and the child’s `close`/`exit` (or the read stream’s end) is awaited; a shell redirect in the call’s arguments or a `kill` of the child suppresses it. The same rule reads Python’s `subprocess.Popen`, Dart’s `Process.start`, Ruby’s `Open3.popen3`, and Scala’s JDK process starts (`new ProcessBuilder(…).start()` with no `redirectErrorStream`/`redirectError`/`redirectOutput`/`inheritIO`, `Runtime.getRuntime.exec`) where one of `getInputStream`/`getErrorStream` is read and the other never while `waitFor()` is called or the read stream is read to its end. Deterministic, provable per finding. Advisory.
Other · Security — Whether a hand-rolled public/private IP check can be walked past — a method that unwraps IPv4-mapped IPv6 but returns the opposite verdict for the same host written as IPv4-compatible, 6to4 or NAT64.
Method: Roslyn syntax + semantics: methods that unwrap IPv4-mapped IPv6 and hand-roll IPv4 range carve-outs, checked for whether the IPv6 branch also accounts for the IPv4-compatible, 6to4 and NAT64 embeddings. Deterministic, provable per finding. Advisory.
Do you agree with this assessment?
X15 · Unvalidated length from an untrusted reader10.0 / 10Exemplary○ Nothing flagged
Other · Security — Whether a length read out of the stream being parsed is bounded before it is allocated or read — an unchecked count taken from the input lets the input choose the allocation.
Method: Roslyn syntax + semantics: integer lengths read from a BinaryReader and spent on a bulk read or an array allocation, checked for any comparison or bounding call on the value anywhere in the method. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether a loop that shortens a string until it fits a length budget has a floor — one with none grinds the value down to the empty string, or past it into a negative-length `Substring`.
Method: Roslyn syntax + semantics: while/do loops whose body's only effect on a string is to drop its last character, checked for whether anything — a direct comparison on the length, a body guard, a break — bounds that length below. On a repository with no .NET source it reads JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not) with the same rule: a `while`/`do` loop whose body’s one assignment to a value is `x = x.slice(0, -1)` or `x = x.slice|substring|substr(0, x.length - 1)`, driven by a condition that reads `x.length` only as a term of a larger expression — never compared directly, never tested for truthiness, and with no other read of `x` — and whose body has no `break`, `return`, `throw` or `if` naming `x`. Deterministic, provable per finding. Advisory.
Do you agree with this assessment?
X17 · Uncapped recursion over a caller-supplied document10.0 / 10Exemplary○ Nothing flagged
Other · Security — Whether a walk that recurses through a JSON/XML tree handed in by its caller bounds how deep it will go — an uncapped walk lets the document's nesting choose the stack depth, and the resulting StackOverflowException cannot be caught.
Method: Roslyn syntax + semantics: methods that take a JSON/XML document node and call themselves with a child of it, reachable from an externally-callable member of the same type that accepts a document, checked for any depth parameter, descent counter or threaded arithmetic anywhere in the walk. On a repository with no .NET source it reads TypeScript off the engine’s own token stream (test, vendored, generated and minified paths and `.d.ts` not) with the same rule: a function or method with a parameter typed as a document value — `unknown`, `any`, `object`, `Record<string, unknown|any>`, a JSON alias (`JsonValue`, `JSONObject`, …) or a DOM node global the file does not rebind — that calls itself (bare, or through `this` for a method, or hands itself to a call over the value as in `value.map(walk)`) with something it took out of that value and never through an ancestor accessor such as `closest()` or `parentElement`, that is exported or reached from an exported function (a public method of the same exported class) taking such a value, and that names no depth, level, nesting, recursion, remaining or budget anywhere and threads no `+`/`-` arithmetic through a self-call. Plain JavaScript is not read: with no annotation nothing tells a parsed document from a tree the code built itself. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether a type's disposal matches what it OWNS — releasing what it created, leaving alone what it was handed, and not declaring a finalizer for state that has nothing unmanaged to finalize.
Method: Roslyn syntax + semantics: every assignment to a disposable field is read to decide whether the type CREATED the value or was handed it, and the type's disposal is checked against that answer — an injected interface it disposes, a value it constructed and never releases, a finalizer on a type holding nothing unmanaged, and a disposable local whose every reference is a plain member read. A value handed to a container that disposes its contents (a parent control's `Controls` collection, a component `IContainer`) is released by that container and is not reported; generated code is out of population. On a repository with no .NET source the same ownership questions are read in JavaScript/TypeScript off the engine’s own token stream (test, vendored, generated and minified paths not): a class declaring `dispose()`, `[Symbol.dispose]()` or `[Symbol.asyncDispose]()` that disposes a field it was handed through a constructor parameter typed as a repository interface or resolved by a dependency-injection container; that assigns a field only ever from `new X(…)` of a disposable class and neither releases it anywhere in the class nor names it in its disposal member or a method that member calls, nor hands it to anything else; and a `const`/`let` local built from literals only whose every reference opens a statement operating on a non-release member of it. A class is disposable when every repository declaration of its name declares or inherits a disposal member, or when it is a documented library disposable (`vscode` EventEmitter, CancellationTokenSource and Disposable; three.js geometries, materials, textures, render targets, renderers, controls and composers). The finalizer arm has no JavaScript counterpart: a class cannot declare one. Dart is read for the owned-and-never-released arm: a Flutter `State` (or a class declaring `dispose()`/`close()`) whose library-private field is written only with direct creations of a framework controller, `FocusNode`, `StreamController` or periodic `Timer` (or a `.listen(…)` into a field declared `StreamSubscription`), which nothing in the class or its library releases (`dispose`/`close`/`cancel`) and which is never handed on except as a named argument. Ruby is read for the owned-and-never-released arm and the abandoned-local arm: a class declaring an instance `close`, `dispose`, `shutdown`, `stop`, `disconnect` or `terminate` whose instance variable is written only with a blockless core descriptor creation (`File.open`/`new`, `Tempfile`, `Dir.open`, `IO.popen`, the `socket` and `openssl` socket classes) that no method of the class closes and that is never handed on (passed, returned, stored, exposed by `attr_reader`, delegated) — a class whose superclass or mixin lies outside the repository is not judged — and a blockless creation read through and dropped (`File.open(path).read`) or held in a local that is never closed, returned, passed or stored (a `&:read` block-pass, an `autoclose: false` borrow and a `fileno` hand-over are not abandonment). PHP is read for the same two arms: a class (not a trait, and not one using a trait) declaring an instance `close`, `dispose`, `shutdown`, `stop`, `disconnect` or `terminate` whose `private` property (or a `final` class's `protected` one) is written only with a direct core `fopen`, `tmpfile`, `popen`, `proc_open`, `fsockopen`, `stream_socket_client`/`server` or `opendir` that nothing in the class closes (`fclose`, `pclose`, `closedir`, `unset`, a reset to `null`) and that is never handed on, and a handle held in a function's local, or read through as the argument of a reader, that is never closed, returned, passed, captured or stored; a `php://` stream, `curl_init`, `SplFileObject`, `PDO` and a function the repository declares under the core name are not read. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether a method that temporarily changes state belonging to the whole process — the working directory, an environment variable — puts it back on EVERY path: a restore reached only when nothing throws leaks the change to the rest of the process.
Method: Roslyn syntax + semantics: method bodies that write the process working directory or an environment variable and write it back in the same body, checked for whether that restore sits in a `finally`/`catch` or only on the straight-line path. On a repository with no .NET source the same rule reads production JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not): `process.chdir`, `process.env.NAME =`/`["NAME"] =` and `delete process.env.NAME`, and Deno’s `Deno.chdir`/`Deno.env.set`/`Deno.env.delete`, paired per function body (a nested function or arrow is its own body, and module top-level code is none), where the last write puts back a local the body captured from the same global or deletes a variable the first write set, with at least one statement between them; a write in a `catch`/`finally` of that body silences it. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether an argument guard throws the exception its own condition describes — a guard that rejects a value for being EMPTY and reports it as `NullPointerException` (Java, Kotlin, Scala), `ArgumentError.notNull` (Dart) or `ArgumentNullException` (F#'s `nullArg`) tells the caller a parameter was null when it provably was not.
Method: Roslyn syntax: `throw new ArgumentNullException(nameof(p))` statements controlled by an `if`, whose condition is read for a test that is true of a NON-null `p` — an emptiness test that dereferences it (`p.Count == 0`, `!p.Any()`) or a BCL predicate documented true of the empty value (`string.IsNullOrEmpty(p)`). Deterministic, provable per finding. Advisory.
Other · Code Health — Whether a `when` guard is free of side effects — a guard that increments a counter or assigns while deciding whether its arm matches applies that change during PATTERN MATCHING, on an arm that may not be selected, and skips it entirely when a short-circuit to its left answers first.
Method: Roslyn syntax: `when` guards on case labels and switch-expression arms, read for a mutation (`++`/`--`/assignment) sitting in a position the guard's own `&&`/`||`/`??`/`?:`/`?.` can skip. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether a method that TAKES a lock or semaphore and gives it back from a flag-guarded `finally` returns the value that flag implies — reporting success while the guard hands the primitive back admits a second caller the exclusion was there to keep out, and reporting failure while the guard keeps it leaves nothing to ever give it back.
Method: Roslyn syntax: `try` statements whose `finally` releases a synchronisation primitive under a bare local-bool guard, where the method also TOOK that same primitive before the `try`, checked for a `return` of a bool literal whose value disagrees with the flag state the method's own straight-line assignments put it in. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether the work a diagnostic log line costs is paid only when that line is wanted — C# evaluates a call's arguments BEFORE the call, so a trace/debug message joined or projected out of a collection is built in full on every pass, and then discarded by a sink the shipped configuration leaves switched off.
Method: Roslyn syntax: log calls at a diagnostic level (a `Log`-prefixed method naming Trace/Debug/Verbose, or a bare `Debug`/`Trace`/`Verbose` on a receiver named for a logger), whose argument list is read for a call whose cost scales with a sequence — a LINQ operator, a materialisation, `string.Join`, a serializer — with no enclosing level check or conditional-compilation region. On a repository with no .NET source it reads JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not) with the same rule: a `debug`/`trace`/`verbose` call on a receiver named for a logger, or a `log`-prefixed method naming the level, whose argument calls an array operator (`map`/`filter`/`reduce`/`sort`/…), `Array.from`, `Object.keys/values/entries`, `JSON.stringify`/`util.inspect` over anything but a literal, or an array `join` — outside any arrow or function passed as an argument, which the logger calls only when the level is on — with no enclosing `if`, `&&` or `?:` whose condition names a level, a level string, or the `NODE_ENV`/`__DEV__`/`DEV` build switch. Deterministic, provable per finding. Advisory.
Do you agree with this assessment?
X24 · Document value interpolated into markup unescaped10.0 / 10Exemplary○ Nothing flagged
Other · Security — Whether text read out of the document being converted is escaped before it is written into generated markup — a value the document's author chose, interpolated into an attribute the surrounding literal delimits, can close that attribute and open another.
Method: Roslyn semantic model over the whole compilation: a string-typed `Value`/`InnerText`/`InnerXml`/`Text` member declared inside `DocumentFormat.OpenXml` or `System.Xml` is a taint SOURCE, propagated through assignments, returns, arguments, tuple elements and string composition to its transitive closure, then read at interpolated-string holes that sit in a markup position the surrounding literal itself delimits. Escaper/encoder calls and enclosing validator conditions cut the flow. Flow- and container-insensitive by construction. A second arm needs no provenance at all and reports a type that CONTRADICTS ITSELF — the same expression escaped at one delimited markup hole and interpolated raw at another hole in the same markup position of the same type, which the type's own escaping proves is a defect without knowing where the value came from. On a repository with no .NET source it reads JavaScript/TypeScript off the token stream with the same rule: a DOM read of raw document text (`getAttribute`, `textContent`, `innerText`, `nodeValue`) is the source, propagated through local bindings and string composition, and judged at template-literal and concatenation holes in the same two delimited markup positions; escapers and validating conditions cut it, and documentation-site, test, vendored and minified scripts are not read. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether a value the caller is invited to supply is the value the type actually uses — a constructor parameter stored in a private field that nothing ever reads while the default it was given is spelled out a second time at the site that should have read it, a keyed lookup that falls back to a different setting than the one its key names while the same type falls back to the matching one for that same key, or a culture-sensitive parse given no format provider by a type that feeds its own settable culture to the same kind of parse elsewhere, or a number an entry point writes to standard output under the host's culture while the same entry point formats with the invariant culture elsewhere. Either way, every caller who supplies a value silently gets something else.
Method: Roslyn syntax: private instance fields of a non-partial type assigned in a constructor from one of its own parameters with a `??` fallback, checked for whether anything in the type body reads the field and whether that same fallback expression is spelled out again outside the constructor; and `??` fallbacks onto a member access from a lookup call carrying exactly one string literal, grouped by that key across the type and checked for a fallback member whose folded name disagrees with the key while a sibling site for the same key agrees with it. On a repository with no .NET source the first two arms read JavaScript/TypeScript off the engine’s own token stream (tests included, bundles and vendored paths not): a `#x`, `private` or `private` parameter-property instance field filled in the constructor from a parameter (or one member of one) through `??`/`||` or a parameter default, never read anywhere in the file by name, whose constructed default is spelled again in the class body; and `lookup("key") ?? s.member` grouped by key per class, or per module outside every class. The culture arm has no JavaScript counterpart: its parses take no locale. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether a value handed from a callback to the body that waits on it crosses on something built to be crossed — a `Queue<T>`/`List<T>`/`Dictionary<K,V>` written inside an event handler and read back outside it is mutated by two flows at once, and the semaphore or completion source beside it orders how MANY items exist while leaving the collection's own head, tail and backing array unprotected.
Method: Roslyn syntax: method, accessor, local-function and lambda bodies that declare BOTH a non-thread-safe generic collection (`Queue`/`Stack`/`List`/`Dictionary`/`HashSet`/`Sorted*`/`LinkedList`) and a synchronisation primitive (`SemaphoreSlim`/`TaskCompletionSource`/`ManualResetEvent(Slim)`/`AutoResetEvent`/`CountdownEvent`) as locals, then read for a `+=`-registered lambda that raises that primitive while the body outside every lambda waits on it — and, in that scope, a mutating call on the collection inside the lambda paired with a mention of it outside. Any `lock` in the scope abstains it. On a repository with no .NET source the same handoff is read in Java off the engine’s own token stream (test source sets, vendored and demonstration paths not): an `ArrayList`/`LinkedList`/`ArrayDeque`/`PriorityQueue`/`Hash*`/`LinkedHash*`/`Tree*` local and a `CountDownLatch`/`Semaphore`/`CompletableFuture` local, a lambda or anonymous class that raises the primitive and mutates the collection, and a wait outside it; any `synchronized` or `lock()` abstains the body. Because each of those primitives orders what the callback wrote before raising it, only a touch that provably overlaps the callback is convicted: one after the registration and before the next wait, or one in a loop registered-before, waiting on every pass and not declaring the collection. Deterministic, provable per finding. Advisory.
Do you agree with this assessment?
X27 · Collection changed while being enumerated10.0 / 10Exemplary○ Nothing flagged
Other · Code Health — Whether an enhanced `for` leaves the collection it is walking alone — a body that adds to or removes from the very collection the loop is iterating invalidates the fail-fast iterator it is holding, so the next `next()` throws `ConcurrentModificationException` and the remaining elements are never seen.
Method: Roslyn syntax + semantics: `foreach` statements whose body calls a structural mutator (`Add`/`Remove`/`Clear`/`Insert`/…) on the very expression the loop is enumerating. Two arms. ARM A — the source is a concrete fragile BCL collection, or a live `Keys`/`Values` view over one, and the mutator resolves to that same collection's own member; concurrent and immutable collections and arrays are outside the population by construction, since their enumerators survive a structural change. ARM B — the source is an argument-less accessor CALL on a receiver whose body is in source: the accessor must return a stored field VERBATIM and a sibling member must structurally change that same field, both read off the implementations rather than from the members' names. A mutation the loop provably exits immediately after (`break`/`return`/`throw`/`goto`), or one written inside a nested loop or a lambda, is counted and never reported. Deterministic, provable per finding. Advisory.
Do you agree with this assessment?
X28 · Index access outside its own emptiness guard10.0 / 10Exemplary○ Nothing flagged
Other · Code Health — Whether a condition that tests a value for emptiness indexes that same value only where the test holds — an `||` written one parenthesis too far to the left leaves an index access outside the guard beside it, so the empty case the guard exists to anticipate reaches the index and throws.
Method: Roslyn syntax only, no semantic model: the OUTERMOST `&&`/`||` of every boolean condition, read for a symbol the condition tests for emptiness (`string.IsNullOrEmpty`/`IsNullOrWhiteSpace`, a `Length`/`Count` comparison against a literal, `Any()`, a `Length`/`Count` pattern, or a comparison against `""`) and ALSO indexes. Each `symbol[...]` access is placed by a boolean-reachability walk from the access up to the outermost connective: an access is COVERED when some enclosing step has it in the right operand and the left operand, under the truth value that step forces, proves the symbol non-empty — a recursion over `&&`/`||` whose true- and false-directions are asymmetric. A finding needs BOTH an uncovered access and a covered one on the same symbol in the same condition, which is the agreeing twin that separates a misplaced parenthesis from an unrelated length test. Bare index accesses with no emptiness test in the condition are neither counted nor reported; a non-identifier receiver and a lambda nested inside the condition are outside the population. Deterministic, provable per finding. Advisory.
Do you agree with this assessment?
X29 · Per-element action decided by a fixed element10.0 / 10Exemplary○ Nothing flagged
Other · Code Health — Whether a decision taken once per element is taken ABOUT that element — a test inside a counted loop that reads a fixed subscript of the very collection its guarded statement indexes by the loop variable applies element zero's answer to all of them, so the elements that differ from it are all handled wrongly, and in the same direction.
Method: Roslyn syntax only, no semantic model: every `for` statement declaring exactly ONE loop variable, and every `if` inside its body that is not under a nested loop or a lambda. A site enters the population when the `if`’s condition never mentions the loop variable while the statement it guards indexes some collection by that variable ALONE (`c[i]`; `c[i + 1]` and `c[i, j]` are outside it). A finding additionally needs the AGREEING TWIN at the same-collection grain: the condition must read THAT SAME collection at a subscript that does not move — written into the condition, or reached through a local declared BEFORE the loop, so an alias bound inside the body is not followed. Both collection expressions must be simple identifiers. On a repository with no .NET source the same rule reads JavaScript/TypeScript off the engine’s own token stream (tests included, bundles and vendored paths not): a `for (let|var|const x = …; …; …)` with one declarator and a braced body, an alias followed only when it is declared before the loop in a block that encloses it and never assigned inside the loop. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether exceptions are handled rather than silently swallowed or rethrown with lost stack traces.
Method: Roslyn syntax scan: every catch clause counted; empty catches and bare rethrows flagged. Population is all catch clauses, not estimated. Deterministic, hard fact.
`catch (Exception)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter. (×2) — android/guava/src/com/google/common/primitives/UnsignedBytes.java:399, guava/src/com/google/common/primitives/UnsignedBytes.java:400
What to do
Swallowed exception (caught, then discarded)
Do you agree with this assessment?
X30 · Support guard that admits what it rejects10.0 / 10Exemplary○ Nothing flagged
Other · Code Health — Whether a guard written as a NEGATED `||` says what its author meant — `!(a || b || x != k)` is `!a && !b && x == k` by De Morgan, so a bail-out that mixes capabilities the code needs with a fault it refuses turns inside out: it fires only where the capabilities are ABSENT, and lets every value the fault term names walk straight into the body that cannot handle it.
Method: Roslyn syntax only, no semantic model: every logical-not whose operand is a parenthesised `||` chain of two or more disjuncts, flattened (a left-nested `a || b || c` read once would see `(a || b)` as one disjunct). A site enters the population on that shape alone. A finding additionally needs the disjuncts to DISAGREE in polarity: at least one bare boolean read — an identifier or member access, never an invocation, which is a predicate rather than a capability flag — and at least one `x != <constant>`, the only form that negates into an exact-value pin (`== null` negates into a looser requirement and is outside the fault set). Consistently-polarised disjunctions, all-fault or all-capability, are counted and never reported; a negated `&&` is outside the population entirely. No same-receiver gate: it was measured to cost a real defect and remove no false positive. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether Java packages are null-marked and not undermined by heavy nullness suppression — a package under `@NullMarked` (or `@NonNullApi`, `@ParametersAreNonnullByDefault`, `@NonNullByDefault`, or a NullAway/Checker Framework configuration naming it) makes an unannotated reference exclude null, and `@SuppressWarnings("NullAway")`, `("nullness")`, `("null")` and `castToNonNull(…)` are what silence it.
Method: Roslyn compiler-options scan: NullableContextOptions per project; null-forgiving (!) suppression density per 1k syntax nodes. Deterministic, adoption plus suppression penalty.
33/57 of this repository's Java package directories are under a non-null default: a `package-info.java` declaring `@NullMarked` (JSpecify) or `@NonNullApi`, `@ParametersAreNonnullByDefault`, `@NonNullByDefault`, `@DefaultQualifier(NonNull.class)`; a `module-info.java` declaring `@NullMarked`; every type in it `@NullMarked`; or a build that runs NullAway with the package in `AnnotatedPackages`, or the Checker Framework's `NullnessChecker`. Elsewhere every reference admits null and no checker warns on the dereference that throws a `NullPointerException`.
What to do
Declare the default where Java declares it: `@NullMarked` (org.jspecify.annotations) in each package's `package-info.java`, or once in `module-info.java`, and run NullAway (Error Prone) or the Checker Framework so the declaration is enforced. Then annotate the real exceptions `@Nullable` and resolve the suppressions rather than adding to them: a `@SuppressWarnings("NullAway")` or `castToNonNull(x)` on a value the checker could show to be null is a `NullPointerException` waiting for the path that makes it true — where the value genuinely cannot be null, say something the checker can see instead (a null check, `Objects.requireNonNull`, a non-null field initialised in the constructor).
Do you agree with this assessment?
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.
Unscored — 1 check(s) recorded observations but carry no score
These checks ran and found something, but they do not carry a score — either by design (an advisory check reports evidence rather than grading it) or because they could not be scored here. They are excluded from the score for that reason, not because there was nothing to see.
X10 Duplicated predicate — 25 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
Not evidenced — 4 control(s) we could not find positive evidence for
These checks grade a working control, and the repository shows no evidence of one. That is deliberately not scored as a zero: a repository cannot show an ops runbook, a database TTL or an infrastructure-side audit log, so absence of evidence here is not evidence the control is missing. It is also not a statement that the check is irrelevant to this codebase — the thing it grades applies; we just could not see it. Excluded from the score either way.
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.
P5 DR & Backup — not evidenced — repo shows no backup/RTO/RPO controls; absence of evidence is not evidence of a working control
Not included — 55 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 — Frontend below the scale floor (2 DOM element(s) < 25) — too little surface to assess accessibility.
AC2 Forms & labels — Frontend below the scale floor (2 DOM element(s) < 25) — too little surface to assess accessibility.
AC3 Page structure — Frontend below the scale floor (2 DOM element(s) < 25) — too little surface to assess accessibility.
AC4 Keyboard semantics — Frontend below the scale floor (2 DOM element(s) < 25) — too little surface to assess accessibility.
AC5 ARIA correctness — Frontend below the scale floor (2 DOM element(s) < 25) — too little surface to assess accessibility.
AC6 Visual & motion safety — Frontend below the scale floor (2 DOM element(s) < 25) — too little surface to assess accessibility.
AC7 A11y enforcement — Frontend below the scale floor (2 DOM element(s) < 25) — too little surface to assess accessibility.
AX1 Captive dependencies — Not applicable: this repository's Java imports no dependency-injection container and defines no container of its own — nothing that both registers and resolves bindings, and nothing that names two lifetimes — so nothing holds one lifetime's instance while handing out another's; this repository's JavaScript imports no dependency-injection container and defines no container of its own — nothing that both registers and resolves bindings, and nothing that names two lifetimes — so nothing holds one lifetime's instance while handing out another's.
AX2 Stateful singletons — No container singleton was found, so there is no shared instance for concurrent requests to race on. No class in this Java code is a Spring, JSR-330 or CDI singleton bean. TypeScript/JavaScript runs each process's requests on one event loop, so no two requests write a shared object at the same instant (interleaving across an await is a different defect).
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
AX7 Slice cohesion — not applicable — not a vertical-slice architecture
AX8 Test isolation — no test/production split to check
AX9 CQS / query purity — no CQRS query handlers detected — query purity is not applicable to this codebase
AXB1 Runtime evidence locked — no reproducible boot — 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.
D10 Test Quality — ~285678 lines of test source are present (.java) but no test cases reached the test census for this repository — no test root we could resolve declared them, or the files we read declare no cases in a test framework we recognise — 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 — no .java test runner
D12 Dependency Hygiene — Not scored — a Maven build resolved 5 artifact(s) (1 behind a shipped release, reported), but the build resolved only part of the graph, so this dimension's own question is only partly answered. NOT a finding that these dependencies are current or healthy.
D14 License Compliance — JVM licences not graded — no declared coordinate carries a version the manifest itself resolves
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.
D23 Boundary Type-Coupling — No bounded-context organisation was detected either — neither a context-shaped layout, nor 2+ sibling source directories each declaring an aggregate root, nor 2+ projects each declaring an entity of their own. Declaring this codebase's bounded contexts (≥2) would let cross-boundary type coupling be assessed. 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
D27 Navigability — D27 counts a call into the standard library or a dependency as unresolved for this repository's language (.java), so too few call sites counted as resolved to assess navigability. Not scored: this is a gap in the analyzer, not a verdict about this repository.
D30 Dependency Vulnerabilities — Scanner failed to run — not a clean result
D31 IaC & Container Security — No Infrastructure-as-Code or container manifests found (Dockerfile, Docker Compose, Terraform, Kubernetes/Helm, CloudFormation, ARM, Bicep, Ansible); nothing to scan.
D32 Data Compliance (PII/GDPR) — 11 file(s) were not parsed by semgrep — the PII/GDPR ruleset never ran over them
D37 Vulnerability-disclosure Policy — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.
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.
D43 Malicious Dependencies — Scanner failed to run — not a clean result
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 no test cases reached the test census for this repository — no test root we could resolve declared them, or the files we read declare no cases in a test framework we recognise — 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 (3 signals for this style, 3 needed — the count is met but a required primary signal is absent): 4 aggregate root(s) (AggregateRoot/IAggregateRoot); 399 value object(s); 2 domain event(s); its 4 declared aggregate(s) carry no behaviour — data bags on an AggregateRoot base: measured, not claimed as DDD; its domain events are published by services or handlers — no domain entity raises one; no aggregate is declared and no domain structure surrounds the state-guarding types: not claimed as DDD
ED1 Event-Driven — not scored — this repository shows none of the 3 signals this lens 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 lens looks for
GD1 Unfinished & placeholder code — no source files were read — this check reads C#, F#, JavaScript/TypeScript, Dart, Ruby and Scala, and none was read for this repository's product. That is a limit of the analyzer, not a finding about your code.
P12 CI test-gate honesty — Reported, not scored — and nothing was matched here. The coverage check applies to any stack, and the automatic-re-run check to any GitHub-Actions workflow, but the checks for excluded tests, skipped tests and sleep-based synchronisation currently recognise only some ecosystems' test-runner idioms, so on a repository built with another stack the zeros below mean 'not checked', not 'clean'.
P7 Outbound HTTP resilience — not applicable — no HTTP server, API framework or worker entry point was found in the JVM, JavaScript/TypeScript source, so there is no service whose uptime a failing dependency could take down
P8 Schema migrations — no ORM, schema-migration tool or schema auto-create was found in this repository's dependency manifests or source, so there is no database schema for this check to judge
P9 Domain vs controller coverage — no coverage report found on disk — produce a coverage report in a standard format (JaCoCo XML — `mvn jacoco:report`) and commit it — a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures, or wire coverage collection into CI, to enable this cross-layer check
PF1 Benchmark discipline — Not applicable: no benchmark suite was found. This check searched for `@Benchmark` in a Java, Kotlin or Scala file importing JMH or kotlinx-benchmark, Jetpack Benchmark's `measureRepeated` in a file importing androidx.benchmark, or JMH/kotlinx-benchmark/androidx.benchmark in a pom.xml, Gradle or sbt build, and for a `*benchmark*` script that this repository's CI runs. Benchmarks are credited as a bonus, so their absence is neither scored nor deducted.
PF3 Async & latency hygiene — Not applicable: this repository declares no async functions, so there is no asynchronous code for a blocking call to stall.
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.
X2 Cancellation propagation — no C# was loaded; this repository's Java was read, and no request in it can be cancelled by a caller — a Java request off Android takes no token: it is cancelled through the handle it returns (Future.cancel, Call.cancel, a Disposable), ambiently (io.grpc.Context) or by interrupting its thread, not through a parameter
X32 Type resolved by simple name across every loaded assembly — This check is about how a .NET program searches the assemblies loaded into its process for a type, and this repository contains no .NET source, so there is nothing here for it to assess. Not a gap in the analyzer and not a finding about your code.
X4 Structured logging — This check asks whether log calls keep a message's values apart from its text, which needs a logger that can carry them as fields. This repository's Java was read, and it logs through none that an assembled message defeats: java.util.logging's level methods, log4j 1, commons-logging, JBoss Logging and Flogger take one finished message (as log4net does in C#), or it makes no call through a named logger at all. Calls made through SLF4J or log4j 2 (`org.slf4j.Logger`, `org.apache.logging.log4j.Logger`, Lombok's `@Slf4j`) would be judged.
X6 Hand-rolled structured-format parsing — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
X7 Silent fallback defaults — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
X9 Subsumed condition operand — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
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.
Orphaned knowledge android/guava/src/com/google/common/net/InternetDomainName.java:1— No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
Orphaned knowledge android/guava/src/com/google/common/primitives/Shorts.java:1— No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
Orphaned knowledge android/guava/src/com/google/common/math/Stats.java:1— No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
Orphaned knowledge guava/src/com/google/common/math/Stats.java:1— No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
Orphaned knowledge android/guava/src/com/google/common/primitives/Chars.java:1— No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
Orphaned knowledge android/guava/src/com/google/common/base/Ascii.java:1— No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
Orphaned knowledge android/guava/src/com/google/common/hash/Crc32cHashFunction.java:1— No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
Orphaned knowledge guava/src/com/google/common/hash/Crc32cHashFunction.java:1— No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
Orphaned knowledge android/guava/src/com/google/common/primitives/Booleans.java:1— No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
Orphaned knowledge android/guava/src/com/google/common/util/concurrent/AbstractService.java:1— No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
Orphaned knowledge android/guava/src/com/google/common/graph/Traverser.java:1— No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
Orphaned knowledge guava/src/com/google/common/graph/Traverser.java:1— No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
Orphaned knowledge android/guava/src/com/google/common/util/concurrent/SmoothRateLimiter.java:1— No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
Orphaned knowledge android/guava/src/com/google/common/math/DoubleMath.java:1— No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
Orphaned knowledge android/guava/src/com/google/common/math/BigIntegerMath.java:1— No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
Orphaned knowledge guava/src/com/google/common/math/BigIntegerMath.java:1— No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
TodoComment android/guava-testlib/src/com/google/common/collect/testing/TestsForMapsInJavaUtil.java:460— // TODO: IdentityHashMap, AbstractMap — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment guava-testlib/src/com/google/common/collect/testing/TestsForMapsInJavaUtil.java:582— // TODO: IdentityHashMap, AbstractMap — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment android/guava-testlib/src/com/google/common/collect/testing/TestsForMapsInJavaUtil.java:466— // TODO: call conversion constructors or factory methods instead of using — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment guava-testlib/src/com/google/common/collect/testing/TestsForMapsInJavaUtil.java:588— // TODO: call conversion constructors or factory methods instead of using — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment android/guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java:315— // TODO(cpovirk): better failure messages — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java:310— // TODO(cpovirk): better failure messages — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment android/guava-testlib/src/com/google/common/collect/testing/SortedMapInterfaceTest.java:32— // TODO: Use this class to test classes besides ImmutableSortedMap. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment guava-testlib/src/com/google/common/collect/testing/SortedMapInterfaceTest.java:32— // TODO: Use this class to test classes besides ImmutableSortedMap. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment android/guava-testlib/src/com/google/common/collect/testing/SampleElements.java:37— // TODO: rename e3, e4 => missing1, missing2 — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment guava-testlib/src/com/google/common/collect/testing/SampleElements.java:37— // TODO: rename e3, e4 => missing1, missing2 — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment android/guava-testlib/src/com/google/common/collect/testing/MinimalIterable.java:77— // TODO: throw something else? Do we worry that people's code and tests — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment guava-testlib/src/com/google/common/collect/testing/MinimalIterable.java:77— // TODO: throw something else? Do we worry that people's code and tests — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment android/guava-testlib/src/com/google/common/collect/testing/MinimalCollection.java:41— // TODO: expose allow nulls parameter? — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment guava-testlib/src/com/google/common/collect/testing/MinimalCollection.java:41— // TODO: expose allow nulls parameter? — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment android/guava-testlib/src/com/google/common/collect/testing/MinimalCollection.java:47— // TODO: use this — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment guava-testlib/src/com/google/common/collect/testing/MinimalCollection.java:47— // TODO: use this — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment android/guava-testlib/src/com/google/common/collect/testing/MinimalCollection.java:59— // TODO: consider making it shuffle the contents to test iteration order. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment guava-testlib/src/com/google/common/collect/testing/MinimalCollection.java:59— // TODO: consider making it shuffle the contents to test iteration order. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment android/guava-testlib/src/com/google/common/collect/testing/MapTestSuiteBuilder.java:92— // TODO: Once invariant support is added, supply invariants to each of the — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment android/guava-testlib/src/com/google/common/collect/testing/google/MultimapTestSuiteBuilder.java:107— // TODO: Once invariant support is added, supply invariants to each of the — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment guava-testlib/src/com/google/common/collect/testing/MapTestSuiteBuilder.java:114— // TODO: Once invariant support is added, supply invariants to each of the — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment guava-testlib/src/com/google/common/collect/testing/google/MultimapTestSuiteBuilder.java:108— // TODO: Once invariant support is added, supply invariants to each of the — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment android/guava-testlib/src/com/google/common/collect/testing/MapTestSuiteBuilder.java:173— // TODO(lowasser): make this trigger only if the map is a submap — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment guava-testlib/src/com/google/common/collect/testing/MapTestSuiteBuilder.java:195— // TODO(lowasser): make this trigger only if the map is a submap — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment android/guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java:47— // TODO: Descriptive assertion messages, with hints as to probable fixes. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
Duplicated block (8 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/DerivedGoogleCollectionGenerators.java:108— android/guava-testlib/src/com/google/common/collect/testing/google/DerivedGoogleCollectionGenerators.java:108-115 | guava-testlib/src/com/google/common/collect/testing/google/DerivedGoogleCollectionGenerators.java:108-115 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/DerivedGoogleCollectionGenerators.java` and `guava-testlib/src/com/google/common/collect/testing/google/DerivedGoogleCollectionGenerators.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 49 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (8 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapRemoveTester.java:56— android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapRemoveTester.java:56-63 | guava-testlib/src/com/google/common/collect/testing/google/ListMultimapRemoveTester.java:56-63 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapRemoveTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/ListMultimapRemoveTester.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 30 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 `android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapRemoveTester.java:56` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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) android/guava-testlib/src/com/google/common/collect/testing/google/MapGenerators.java:147— android/guava-testlib/src/com/google/common/collect/testing/google/MapGenerators.java:147-154 | guava-testlib/src/com/google/common/collect/testing/google/MapGenerators.java:147-154 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MapGenerators.java` and `guava-testlib/src/com/google/common/collect/testing/google/MapGenerators.java` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 88 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (8 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/MapGenerators.java:181— android/guava-testlib/src/com/google/common/collect/testing/google/MapGenerators.java:181-188 | guava-testlib/src/com/google/common/collect/testing/google/MapGenerators.java:181-188 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MapGenerators.java` and `guava-testlib/src/com/google/common/collect/testing/google/MapGenerators.java` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 88 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (8 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/MultisetElementSetTester.java:75— android/guava-testlib/src/com/google/common/collect/testing/google/MultisetElementSetTester.java:75-82 | guava-testlib/src/com/google/common/collect/testing/google/MultisetElementSetTester.java:75-82 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultisetElementSetTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultisetElementSetTester.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 30 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (8 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java:231— android/guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java:231-238 | guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java:231-238 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java` as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 239 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (8 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java:247— android/guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java:247-254 | guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java:247-254 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java` as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 239 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (8 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java:321— android/guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java:321-328 | guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java:321-328 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java` and `guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 136 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (8 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/SetMultimapReplaceValuesTester.java:37— android/guava-testlib/src/com/google/common/collect/testing/google/SetMultimapReplaceValuesTester.java:37-44 | guava-testlib/src/com/google/common/collect/testing/google/SetMultimapReplaceValuesTester.java:37-44 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/SetMultimapReplaceValuesTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/SetMultimapReplaceValuesTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (8 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/SortedMapGenerators.java:99— android/guava-testlib/src/com/google/common/collect/testing/google/SortedMapGenerators.java:99-106 | guava-testlib/src/com/google/common/collect/testing/google/SortedMapGenerators.java:99-106 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/SortedMapGenerators.java` and `guava-testlib/src/com/google/common/collect/testing/google/SortedMapGenerators.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 40 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (8 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/ListReplaceAllTester.java:47— android/guava-testlib/src/com/google/common/collect/testing/testers/ListReplaceAllTester.java:47-54 | guava-testlib/src/com/google/common/collect/testing/testers/ListReplaceAllTester.java:46-53 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/ListReplaceAllTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/ListReplaceAllTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/testers/ListReplaceAllTester.java:47` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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) android/guava-testlib/src/com/google/common/collect/testing/testers/MapEntrySetTester.java:135— android/guava-testlib/src/com/google/common/collect/testing/testers/MapEntrySetTester.java:135-142 | guava-testlib/src/com/google/common/collect/testing/testers/MapEntrySetTester.java:135-142 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/MapEntrySetTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/MapEntrySetTester.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 58 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (8 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/MapEntrySetTester.java:147— android/guava-testlib/src/com/google/common/collect/testing/testers/MapEntrySetTester.java:147-154 | guava-testlib/src/com/google/common/collect/testing/testers/MapEntrySetTester.java:147-154 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/MapEntrySetTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/MapEntrySetTester.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 58 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (8 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/MapEqualsTester.java:69— android/guava-testlib/src/com/google/common/collect/testing/testers/MapEqualsTester.java:69-76 | guava-testlib/src/com/google/common/collect/testing/testers/MapEqualsTester.java:69-76 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/MapEqualsTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/MapEqualsTester.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 57 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (8 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/MapEqualsTester.java:93— android/guava-testlib/src/com/google/common/collect/testing/testers/MapEqualsTester.java:93-100 | guava-testlib/src/com/google/common/collect/testing/testers/MapEqualsTester.java:93-100 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/MapEqualsTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/MapEqualsTester.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 57 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (8 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/MapPutTester.java:199— android/guava-testlib/src/com/google/common/collect/testing/testers/MapPutTester.java:199-206 | guava-testlib/src/com/google/common/collect/testing/testers/MapPutTester.java:199-206 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/MapPutTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/MapPutTester.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 60 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (8 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/NavigableMapNavigationTester.java:259— android/guava-testlib/src/com/google/common/collect/testing/testers/NavigableMapNavigationTester.java:259-266 | guava-testlib/src/com/google/common/collect/testing/testers/NavigableMapNavigationTester.java:259-266 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/NavigableMapNavigationTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/NavigableMapNavigationTester.java` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 81 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (8 lines × 2) android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java:412— android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java:412-419 | guava-testlib/src/com/google/common/testing/ClassSanityTester.java:412-419 — before extracting anything, compare `android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java` and `guava-testlib/src/com/google/common/testing/ClassSanityTester.java` as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 368 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 `android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java:412` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (8 lines × 2) android/guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java:162— android/guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java:162-169 | guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java:162-169 — before extracting anything, compare `android/guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java` and `guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 118 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (8 lines × 2) android/guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java:209— android/guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java:209-216 | guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java:209-216 — before extracting anything, compare `android/guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java` and `guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 118 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 `android/guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java:209` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (8 lines × 2) android/guava-testlib/src/com/google/common/testing/NullPointerTester.java:320— android/guava-testlib/src/com/google/common/testing/NullPointerTester.java:320-327 | guava-testlib/src/com/google/common/testing/NullPointerTester.java:322-329 — before extracting anything, compare `android/guava-testlib/src/com/google/common/testing/NullPointerTester.java` and `guava-testlib/src/com/google/common/testing/NullPointerTester.java` as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 268 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (8 lines × 2) android/guava/src/com/google/common/base/CharMatcher.java:792— android/guava/src/com/google/common/base/CharMatcher.java:792-799 | guava/src/com/google/common/base/CharMatcher.java:792-799 — before extracting anything, compare `android/guava/src/com/google/common/base/CharMatcher.java` and `guava/src/com/google/common/base/CharMatcher.java` as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 345 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (8 lines × 2) android/guava/src/com/google/common/base/CharMatcher.java:812— android/guava/src/com/google/common/base/CharMatcher.java:812-819 | guava/src/com/google/common/base/CharMatcher.java:812-819 — before extracting anything, compare `android/guava/src/com/google/common/base/CharMatcher.java` and `guava/src/com/google/common/base/CharMatcher.java` as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 345 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (8 lines × 2) android/guava/src/com/google/common/base/Defaults.java:52— android/guava/src/com/google/common/base/Defaults.java:52-59 | guava/src/com/google/common/base/Defaults.java:52-59 — before extracting anything, compare `android/guava/src/com/google/common/base/Defaults.java` and `guava/src/com/google/common/base/Defaults.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava/src/com/google/common/base/Defaults.java:52` 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) android/guava/src/com/google/common/base/Strings.java:213— android/guava/src/com/google/common/base/Strings.java:213-220 | guava/src/com/google/common/base/Strings.java:213-220 — before extracting anything, compare `android/guava/src/com/google/common/base/Strings.java` and `guava/src/com/google/common/base/Strings.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 127 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 `android/guava/src/com/google/common/base/Strings.java:213` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (7 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java:291— android/guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java:291-297 | guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java:292-298 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java` and `guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 198 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 `android/guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java:291` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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) android/guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java:90— android/guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java:90-96 | guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java:90-96 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java` and `guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 192 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 `android/guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java:90` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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) android/guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java:421— android/guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java:421-427 | guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java:421-427 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java` and `guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 192 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 `android/guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java:421` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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) android/guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java:516— android/guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java:516-522 | guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java:516-522 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java` and `guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 192 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 `android/guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java:516` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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) android/guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java:272— android/guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java:272-278 | guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java:272-278 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java` and `guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 128 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 `android/guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java:272` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (7 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/BiMapEntrySetTester.java:36— android/guava-testlib/src/com/google/common/collect/testing/google/BiMapEntrySetTester.java:36-42 | guava-testlib/src/com/google/common/collect/testing/google/BiMapEntrySetTester.java:36-42 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/BiMapEntrySetTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/BiMapEntrySetTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 4 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (7 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/BiMapEntrySetTester.java:47— android/guava-testlib/src/com/google/common/collect/testing/google/BiMapEntrySetTester.java:47-53 | guava-testlib/src/com/google/common/collect/testing/google/BiMapEntrySetTester.java:47-53 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/BiMapEntrySetTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/BiMapEntrySetTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 4 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (7 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/BiMapGenerators.java:42— android/guava-testlib/src/com/google/common/collect/testing/google/BiMapGenerators.java:42-48 | guava-testlib/src/com/google/common/collect/testing/google/BiMapGenerators.java:42-48 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/BiMapGenerators.java` and `guava-testlib/src/com/google/common/collect/testing/google/BiMapGenerators.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (7 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/BiMapRemoveTester.java:81— android/guava-testlib/src/com/google/common/collect/testing/google/BiMapRemoveTester.java:81-87 | guava-testlib/src/com/google/common/collect/testing/google/BiMapRemoveTester.java:81-87 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/BiMapRemoveTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/BiMapRemoveTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (7 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapRemoveTester.java:92— android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapRemoveTester.java:92-98 | guava-testlib/src/com/google/common/collect/testing/google/ListMultimapRemoveTester.java:92-98 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapRemoveTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/ListMultimapRemoveTester.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 30 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 `android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapRemoveTester.java:92` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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) android/guava-testlib/src/com/google/common/collect/testing/google/MapGenerators.java:58— android/guava-testlib/src/com/google/common/collect/testing/google/MapGenerators.java:58-64 | guava-testlib/src/com/google/common/collect/testing/google/MapGenerators.java:58-64 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MapGenerators.java` and `guava-testlib/src/com/google/common/collect/testing/google/MapGenerators.java` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 88 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (7 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/MapGenerators.java:196— android/guava-testlib/src/com/google/common/collect/testing/google/MapGenerators.java:196-202 | guava-testlib/src/com/google/common/collect/testing/google/MapGenerators.java:196-202 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MapGenerators.java` and `guava-testlib/src/com/google/common/collect/testing/google/MapGenerators.java` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 88 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (7 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/MultimapEntriesTester.java:119— android/guava-testlib/src/com/google/common/collect/testing/google/MultimapEntriesTester.java:119-125 | guava-testlib/src/com/google/common/collect/testing/google/MultimapEntriesTester.java:119-125 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultimapEntriesTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultimapEntriesTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 5 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/google/MultimapEntriesTester.java:119` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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) android/guava-testlib/src/com/google/common/collect/testing/google/MultimapKeysTester.java:47— android/guava-testlib/src/com/google/common/collect/testing/google/MultimapKeysTester.java:47-53 | guava-testlib/src/com/google/common/collect/testing/google/MultimapKeysTester.java:47-53 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultimapKeysTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultimapKeysTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 3 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/google/MultimapKeysTester.java:47` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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) android/guava-testlib/src/com/google/common/collect/testing/google/MultimapKeysTester.java:65— android/guava-testlib/src/com/google/common/collect/testing/google/MultimapKeysTester.java:65-71 | guava-testlib/src/com/google/common/collect/testing/google/MultimapKeysTester.java:65-71 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultimapKeysTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultimapKeysTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 3 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/google/MultimapKeysTester.java:65` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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) android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java:127— android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java:127-133 | guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java:127-133 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 124 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (7 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java:56— android/guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java:56-62 | guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java:56-62 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 87 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (7 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java:168— android/guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java:168-174 | guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java:168-174 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 110 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (7 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java:218— android/guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java:218-224 | guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java:218-224 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 110 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 `android/guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java:218` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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) android/guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java:261— android/guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java:261-267 | guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java:261-267 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java` and `guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 136 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (7 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java:286— android/guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java:286-292 | guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java:286-292 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java` and `guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 136 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (7 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java:416— android/guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java:416-422 | guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java:416-422 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java` and `guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 136 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 `android/guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java:416` 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) android/guava-testlib/src/com/google/common/collect/testing/google/SortedMapGenerators.java:51— android/guava-testlib/src/com/google/common/collect/testing/google/SortedMapGenerators.java:51-57 | guava-testlib/src/com/google/common/collect/testing/google/SortedMapGenerators.java:51-57 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/SortedMapGenerators.java` and `guava-testlib/src/com/google/common/collect/testing/google/SortedMapGenerators.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 40 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (7 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/SortedMapGenerators.java:89— android/guava-testlib/src/com/google/common/collect/testing/google/SortedMapGenerators.java:89-95 | guava-testlib/src/com/google/common/collect/testing/google/SortedMapGenerators.java:89-95 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/SortedMapGenerators.java` and `guava-testlib/src/com/google/common/collect/testing/google/SortedMapGenerators.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 40 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (7 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionToArrayTester.java:65— android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionToArrayTester.java:65-71 | guava-testlib/src/com/google/common/collect/testing/testers/CollectionToArrayTester.java:65-71 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionToArrayTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/CollectionToArrayTester.java` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 87 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (5 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java:183— android/guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java:183-187 | guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java:183-187 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java` and `guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 128 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 `android/guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java:183` 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 (5 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/BiMapInverseTester.java:51— android/guava-testlib/src/com/google/common/collect/testing/google/BiMapInverseTester.java:51-55 | guava-testlib/src/com/google/common/collect/testing/google/BiMapInverseTester.java:51-55 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/BiMapInverseTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/BiMapInverseTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/google/BiMapInverseTester.java:51` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (5 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/BiMapInverseTester.java:71— android/guava-testlib/src/com/google/common/collect/testing/google/BiMapInverseTester.java:71-75 | guava-testlib/src/com/google/common/collect/testing/google/BiMapInverseTester.java:71-75 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/BiMapInverseTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/BiMapInverseTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/google/BiMapInverseTester.java:71` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (5 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/BiMapPutTester.java:68— android/guava-testlib/src/com/google/common/collect/testing/google/BiMapPutTester.java:68-72 | guava-testlib/src/com/google/common/collect/testing/google/BiMapPutTester.java:68-72 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/BiMapPutTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/BiMapPutTester.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 61 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 `android/guava-testlib/src/com/google/common/collect/testing/google/BiMapPutTester.java:68` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (5 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/DerivedGoogleCollectionGenerators.java:126— android/guava-testlib/src/com/google/common/collect/testing/google/DerivedGoogleCollectionGenerators.java:126-130 | guava-testlib/src/com/google/common/collect/testing/google/DerivedGoogleCollectionGenerators.java:126-130 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/DerivedGoogleCollectionGenerators.java` and `guava-testlib/src/com/google/common/collect/testing/google/DerivedGoogleCollectionGenerators.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 49 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 `android/guava-testlib/src/com/google/common/collect/testing/google/DerivedGoogleCollectionGenerators.java:126` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (5 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapEqualsTester.java:34— android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapEqualsTester.java:34-38 | guava-testlib/src/com/google/common/collect/testing/google/ListMultimapEqualsTester.java:34-38 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapEqualsTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/ListMultimapEqualsTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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.
Duplicated block (5 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/MapGenerators.java:103— android/guava-testlib/src/com/google/common/collect/testing/google/MapGenerators.java:103-107 | guava-testlib/src/com/google/common/collect/testing/google/MapGenerators.java:103-107 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MapGenerators.java` and `guava-testlib/src/com/google/common/collect/testing/google/MapGenerators.java` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 88 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 `android/guava-testlib/src/com/google/common/collect/testing/google/MapGenerators.java:103` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (5 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/MapGenerators.java:114— android/guava-testlib/src/com/google/common/collect/testing/google/MapGenerators.java:114-118 | guava-testlib/src/com/google/common/collect/testing/google/MapGenerators.java:114-118 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MapGenerators.java` and `guava-testlib/src/com/google/common/collect/testing/google/MapGenerators.java` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 88 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 `android/guava-testlib/src/com/google/common/collect/testing/google/MapGenerators.java:114` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (5 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/MultimapAsMapTester.java:121— android/guava-testlib/src/com/google/common/collect/testing/google/MultimapAsMapTester.java:121-125 | guava-testlib/src/com/google/common/collect/testing/google/MultimapAsMapTester.java:121-125 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultimapAsMapTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultimapAsMapTester.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 44 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 `android/guava-testlib/src/com/google/common/collect/testing/google/MultimapAsMapTester.java:121` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (5 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/MultimapAsMapTester.java:132— android/guava-testlib/src/com/google/common/collect/testing/google/MultimapAsMapTester.java:132-136 | guava-testlib/src/com/google/common/collect/testing/google/MultimapAsMapTester.java:132-136 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultimapAsMapTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultimapAsMapTester.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 44 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 `android/guava-testlib/src/com/google/common/collect/testing/google/MultimapAsMapTester.java:132` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (5 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/MultimapKeysTester.java:87— android/guava-testlib/src/com/google/common/collect/testing/google/MultimapKeysTester.java:87-91 | guava-testlib/src/com/google/common/collect/testing/google/MultimapKeysTester.java:87-91 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultimapKeysTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultimapKeysTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 3 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/google/MultimapKeysTester.java:87` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (5 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/MultimapSizeTester.java:103— android/guava-testlib/src/com/google/common/collect/testing/google/MultimapSizeTester.java:103-107 | guava-testlib/src/com/google/common/collect/testing/google/MultimapSizeTester.java:103-107 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultimapSizeTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultimapSizeTester.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 37 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 `android/guava-testlib/src/com/google/common/collect/testing/google/MultimapSizeTester.java:103` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (5 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/MultisetElementSetTester.java:66— android/guava-testlib/src/com/google/common/collect/testing/google/MultisetElementSetTester.java:66-70 | guava-testlib/src/com/google/common/collect/testing/google/MultisetElementSetTester.java:66-70 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultisetElementSetTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultisetElementSetTester.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 30 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 `android/guava-testlib/src/com/google/common/collect/testing/google/MultisetElementSetTester.java:66` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (5 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java:182— android/guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java:182-186 | guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java:182-186 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 110 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 `android/guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java:182` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (5 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java:194— android/guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java:194-198 | guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java:194-198 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 110 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 `android/guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java:194` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (5 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java:206— android/guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java:206-210 | guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java:206-210 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 110 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 `android/guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java:206` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (5 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java:236— android/guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java:236-240 | guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java:236-240 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 110 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 `android/guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java:236` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (5 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java:71— android/guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java:71-75 | guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java:71-75 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java` as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 239 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 `android/guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java:71` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (5 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java:135— android/guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java:135-139 | guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java:135-139 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java` as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 239 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 `android/guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java:135` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (5 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java:224— android/guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java:224-228 | guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java:224-228 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java` as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 239 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 `android/guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java:224` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (5 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java:411— android/guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java:411-415 | guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java:411-415 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java` as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 239 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.
Duplicated block (5 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java:494— android/guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java:494-498 | guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java:494-498 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java` as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 239 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 `android/guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java:494` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (5 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java:503— android/guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java:503-507 | guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java:503-507 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java` as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 239 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 `android/guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java:503` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (5 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java:513— android/guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java:513-517 | guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java:513-517 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java` as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 239 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 `android/guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java:513` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (5 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/SetMultimapEqualsTester.java:34— android/guava-testlib/src/com/google/common/collect/testing/google/SetMultimapEqualsTester.java:34-38 | guava-testlib/src/com/google/common/collect/testing/google/SetMultimapEqualsTester.java:34-38 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/SetMultimapEqualsTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/SetMultimapEqualsTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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.
Duplicated block (9 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/AbstractMapTester.java:203— android/guava-testlib/src/com/google/common/collect/testing/AbstractMapTester.java:203-211 | guava-testlib/src/com/google/common/collect/testing/AbstractMapTester.java:203-211 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/AbstractMapTester.java` and `guava-testlib/src/com/google/common/collect/testing/AbstractMapTester.java` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 49 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 `android/guava-testlib/src/com/google/common/collect/testing/AbstractMapTester.java:203` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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) android/guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java:87— android/guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java:87-95 | guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java:87-95 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java` and `guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 128 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 `android/guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java:87` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (9 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapRemoveTester.java:72— android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapRemoveTester.java:72-80 | guava-testlib/src/com/google/common/collect/testing/google/ListMultimapRemoveTester.java:72-80 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapRemoveTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/ListMultimapRemoveTester.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 30 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 `android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapRemoveTester.java:72` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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) android/guava-testlib/src/com/google/common/collect/testing/google/MultimapEqualsTester.java:60— android/guava-testlib/src/com/google/common/collect/testing/google/MultimapEqualsTester.java:60-68 | guava-testlib/src/com/google/common/collect/testing/google/MultimapEqualsTester.java:60-68 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultimapEqualsTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultimapEqualsTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 4 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (9 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/MultimapEqualsTester.java:73— android/guava-testlib/src/com/google/common/collect/testing/google/MultimapEqualsTester.java:73-81 | guava-testlib/src/com/google/common/collect/testing/google/MultimapEqualsTester.java:73-81 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultimapEqualsTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultimapEqualsTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 4 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (9 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/MultimapKeySetTester.java:68— android/guava-testlib/src/com/google/common/collect/testing/google/MultimapKeySetTester.java:68-76 | guava-testlib/src/com/google/common/collect/testing/google/MultimapKeySetTester.java:68-76 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultimapKeySetTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultimapKeySetTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 3 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/google/MultimapKeySetTester.java:68` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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) android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java:59— android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java:59-67 | guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java:59-67 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 124 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (9 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java:72— android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java:72-80 | guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java:72-80 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 124 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (9 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionToArrayTester.java:84— android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionToArrayTester.java:84-92 | guava-testlib/src/com/google/common/collect/testing/testers/CollectionToArrayTester.java:84-92 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionToArrayTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/CollectionToArrayTester.java` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 87 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (9 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/ListSetTester.java:67— android/guava-testlib/src/com/google/common/collect/testing/testers/ListSetTester.java:67-75 | guava-testlib/src/com/google/common/collect/testing/testers/ListSetTester.java:67-75 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/ListSetTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/ListSetTester.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 30 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (9 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/MapEqualsTester.java:57— android/guava-testlib/src/com/google/common/collect/testing/testers/MapEqualsTester.java:57-65 | guava-testlib/src/com/google/common/collect/testing/testers/MapEqualsTester.java:57-65 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/MapEqualsTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/MapEqualsTester.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 57 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (9 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/MapEqualsTester.java:81— android/guava-testlib/src/com/google/common/collect/testing/testers/MapEqualsTester.java:81-89 | guava-testlib/src/com/google/common/collect/testing/testers/MapEqualsTester.java:81-89 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/MapEqualsTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/MapEqualsTester.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 57 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (9 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/NavigableMapNavigationTester.java:95— android/guava-testlib/src/com/google/common/collect/testing/testers/NavigableMapNavigationTester.java:95-103 | guava-testlib/src/com/google/common/collect/testing/testers/NavigableMapNavigationTester.java:95-103 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/NavigableMapNavigationTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/NavigableMapNavigationTester.java` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 81 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (9 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/SetEqualsTester.java:55— android/guava-testlib/src/com/google/common/collect/testing/testers/SetEqualsTester.java:55-63 | guava-testlib/src/com/google/common/collect/testing/testers/SetEqualsTester.java:55-63 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/SetEqualsTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/SetEqualsTester.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 38 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (9 lines × 2) android/guava-testlib/src/com/google/common/testing/DummyProxy.java:96— android/guava-testlib/src/com/google/common/testing/DummyProxy.java:96-104 | guava-testlib/src/com/google/common/testing/DummyProxy.java:96-104 — before extracting anything, compare `android/guava-testlib/src/com/google/common/testing/DummyProxy.java` and `guava-testlib/src/com/google/common/testing/DummyProxy.java` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 43 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 `android/guava-testlib/src/com/google/common/testing/DummyProxy.java:96` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (9 lines × 2) android/guava/src/com/google/common/base/Ascii.java:432— android/guava/src/com/google/common/base/Ascii.java:432-440 | guava/src/com/google/common/base/Ascii.java:432-440 — before extracting anything, compare `android/guava/src/com/google/common/base/Ascii.java` and `guava/src/com/google/common/base/Ascii.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 96 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (9 lines × 2) android/guava/src/com/google/common/base/Ascii.java:480— android/guava/src/com/google/common/base/Ascii.java:480-488 | guava/src/com/google/common/base/Ascii.java:480-488 — before extracting anything, compare `android/guava/src/com/google/common/base/Ascii.java` and `guava/src/com/google/common/base/Ascii.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 96 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (9 lines × 2) android/guava/src/com/google/common/base/Equivalence.java:321— android/guava/src/com/google/common/base/Equivalence.java:321-329 | guava/src/com/google/common/base/Equivalence.java:330-338 — before extracting anything, compare `android/guava/src/com/google/common/base/Equivalence.java` and `guava/src/com/google/common/base/Equivalence.java` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (9 lines × 2) android/guava/src/com/google/common/base/FunctionalEquivalence.java:58— android/guava/src/com/google/common/base/FunctionalEquivalence.java:58-66 | guava/src/com/google/common/base/FunctionalEquivalence.java:58-66 — before extracting anything, compare `android/guava/src/com/google/common/base/FunctionalEquivalence.java` and `guava/src/com/google/common/base/FunctionalEquivalence.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (9 lines × 2) android/guava/src/com/google/common/cache/LocalCache.java:1797— android/guava/src/com/google/common/cache/LocalCache.java:1797-1805 | guava/src/com/google/common/cache/LocalCache.java:1801-1809 — before extracting anything, compare `android/guava/src/com/google/common/cache/LocalCache.java` and `guava/src/com/google/common/cache/LocalCache.java` as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1881 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (9 lines × 2) android/guava/src/com/google/common/cache/LocalCache.java:2550— android/guava/src/com/google/common/cache/LocalCache.java:2550-2558 | guava/src/com/google/common/cache/LocalCache.java:2640-2648 — before extracting anything, compare `android/guava/src/com/google/common/cache/LocalCache.java` and `guava/src/com/google/common/cache/LocalCache.java` as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1881 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (9 lines × 2) android/guava/src/com/google/common/collect/AbstractMapBasedMultimap.java:1560— android/guava/src/com/google/common/collect/AbstractMapBasedMultimap.java:1560-1568 | guava/src/com/google/common/collect/AbstractMapBasedMultimap.java:1610-1618 — before extracting anything, compare `android/guava/src/com/google/common/collect/AbstractMapBasedMultimap.java` and `guava/src/com/google/common/collect/AbstractMapBasedMultimap.java` as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 408 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (9 lines × 2) android/guava/src/com/google/common/collect/AbstractSortedMultiset.java:75— android/guava/src/com/google/common/collect/AbstractSortedMultiset.java:75-83 | guava/src/com/google/common/collect/AbstractSortedMultiset.java:75-83 — before extracting anything, compare `android/guava/src/com/google/common/collect/AbstractSortedMultiset.java` and `guava/src/com/google/common/collect/AbstractSortedMultiset.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 44 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (9 lines × 2) android/guava/src/com/google/common/collect/AbstractSortedMultiset.java:87— android/guava/src/com/google/common/collect/AbstractSortedMultiset.java:87-95 | guava/src/com/google/common/collect/AbstractSortedMultiset.java:87-95 — before extracting anything, compare `android/guava/src/com/google/common/collect/AbstractSortedMultiset.java` and `guava/src/com/google/common/collect/AbstractSortedMultiset.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 44 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (9 lines × 2) android/guava/src/com/google/common/collect/ByFunctionOrdering.java:51— android/guava/src/com/google/common/collect/ByFunctionOrdering.java:51-59 | guava/src/com/google/common/collect/ByFunctionOrdering.java:51-59 — before extracting anything, compare `android/guava/src/com/google/common/collect/ByFunctionOrdering.java` and `guava/src/com/google/common/collect/ByFunctionOrdering.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (10 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java:104— android/guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java:104-113 | guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java:104-113 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java` and `guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 192 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (10 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java:465— android/guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java:465-474 | guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java:465-474 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java` and `guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 192 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.
Duplicated block (10 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/Helpers.java:176— android/guava-testlib/src/com/google/common/collect/testing/Helpers.java:176-185 | guava-testlib/src/com/google/common/collect/testing/Helpers.java:176-185 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/Helpers.java` and `guava-testlib/src/com/google/common/collect/testing/Helpers.java` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 293 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (10 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/Helpers.java:327— android/guava-testlib/src/com/google/common/collect/testing/Helpers.java:327-336 | guava-testlib/src/com/google/common/collect/testing/Helpers.java:327-336 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/Helpers.java` and `guava-testlib/src/com/google/common/collect/testing/Helpers.java` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 293 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.
Duplicated block (10 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java:65— android/guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java:65-74 | guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java:65-74 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java` and `guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 128 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 `android/guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java:65` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (10 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/BiMapPutTester.java:97— android/guava-testlib/src/com/google/common/collect/testing/google/BiMapPutTester.java:97-106 | guava-testlib/src/com/google/common/collect/testing/google/BiMapPutTester.java:97-106 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/BiMapPutTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/BiMapPutTester.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 61 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.
Duplicated block (10 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/ListGenerators.java:105— android/guava-testlib/src/com/google/common/collect/testing/google/ListGenerators.java:105-114 | guava-testlib/src/com/google/common/collect/testing/google/ListGenerators.java:105-114 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/ListGenerators.java` and `guava-testlib/src/com/google/common/collect/testing/google/ListGenerators.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 40 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (10 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/MapGenerators.java:206— android/guava-testlib/src/com/google/common/collect/testing/google/MapGenerators.java:206-215 | guava-testlib/src/com/google/common/collect/testing/google/MapGenerators.java:206-215 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MapGenerators.java` and `guava-testlib/src/com/google/common/collect/testing/google/MapGenerators.java` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 88 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (10 lines × 2) android/guava-testlib/src/com/google/common/testing/CollectorTester.java:165— android/guava-testlib/src/com/google/common/testing/CollectorTester.java:165-174 | guava-testlib/src/com/google/common/testing/CollectorTester.java:163-172 — before extracting anything, compare `android/guava-testlib/src/com/google/common/testing/CollectorTester.java` and `guava-testlib/src/com/google/common/testing/CollectorTester.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 47 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (10 lines × 2) android/guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java:119— android/guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java:119-128 | guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java:119-128 — before extracting anything, compare `android/guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java` and `guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 118 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 `android/guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java:119` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (10 lines × 2) android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java:277— android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java:277-286 | guava-testlib/src/com/google/common/testing/FreshValueGenerator.java:281-290 — before extracting anything, compare `android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java` and `guava-testlib/src/com/google/common/testing/FreshValueGenerator.java` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 152 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (10 lines × 2) android/guava-testlib/src/com/google/common/testing/NullPointerTester.java:480— android/guava-testlib/src/com/google/common/testing/NullPointerTester.java:480-489 | guava-testlib/src/com/google/common/testing/NullPointerTester.java:471-480 — before extracting anything, compare `android/guava-testlib/src/com/google/common/testing/NullPointerTester.java` and `guava-testlib/src/com/google/common/testing/NullPointerTester.java` as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 268 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 `android/guava-testlib/src/com/google/common/testing/NullPointerTester.java:480` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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) android/guava/src/com/google/common/base/Joiner.java:106— android/guava/src/com/google/common/base/Joiner.java:106-115 | guava/src/com/google/common/base/Joiner.java:106-115 — before extracting anything, compare `android/guava/src/com/google/common/base/Joiner.java` and `guava/src/com/google/common/base/Joiner.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 137 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (10 lines × 2) android/guava/src/com/google/common/base/PairwiseEquivalence.java:36— android/guava/src/com/google/common/base/PairwiseEquivalence.java:36-45 | guava/src/com/google/common/base/PairwiseEquivalence.java:36-45 — before extracting anything, compare `android/guava/src/com/google/common/base/PairwiseEquivalence.java` and `guava/src/com/google/common/base/PairwiseEquivalence.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 3 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava/src/com/google/common/base/PairwiseEquivalence.java:36` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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) android/guava/src/com/google/common/base/Utf8.java:124— android/guava/src/com/google/common/base/Utf8.java:124-133 | guava/src/com/google/common/base/Utf8.java:124-133 — before extracting anything, compare `android/guava/src/com/google/common/base/Utf8.java` and `guava/src/com/google/common/base/Utf8.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 114 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (10 lines × 2) android/guava/src/com/google/common/cache/LocalCache.java:2036— android/guava/src/com/google/common/cache/LocalCache.java:2036-2045 | guava/src/com/google/common/cache/LocalCache.java:2040-2049 — before extracting anything, compare `android/guava/src/com/google/common/cache/LocalCache.java` and `guava/src/com/google/common/cache/LocalCache.java` as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1881 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (10 lines × 2) android/guava/src/com/google/common/cache/LocalCache.java:3637— android/guava/src/com/google/common/cache/LocalCache.java:3637-3646 | guava/src/com/google/common/cache/LocalCache.java:3747-3756 — before extracting anything, compare `android/guava/src/com/google/common/cache/LocalCache.java` and `guava/src/com/google/common/cache/LocalCache.java` as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1881 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (10 lines × 2) android/guava/src/com/google/common/cache/LocalCache.java:3777— android/guava/src/com/google/common/cache/LocalCache.java:3777-3786 | guava/src/com/google/common/cache/LocalCache.java:3887-3896 — before extracting anything, compare `android/guava/src/com/google/common/cache/LocalCache.java` and `guava/src/com/google/common/cache/LocalCache.java` as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1881 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (10 lines × 2) android/guava/src/com/google/common/cache/Striped64.java:262— android/guava/src/com/google/common/cache/Striped64.java:262-271 | android/guava/src/com/google/common/hash/Striped64.java:262-271 — `android/guava/src/com/google/common/cache/Striped64.java` and `android/guava/src/com/google/common/hash/Striped64.java` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 3 separate duplicated blocks between them, totalling at least 103 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (10 lines × 2) android/guava/src/com/google/common/collect/CompactHashMap.java:292— android/guava/src/com/google/common/collect/CompactHashMap.java:292-301 | guava/src/com/google/common/collect/CompactHashMap.java:296-305 — before extracting anything, compare `android/guava/src/com/google/common/collect/CompactHashMap.java` and `guava/src/com/google/common/collect/CompactHashMap.java` as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 479 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 `android/guava/src/com/google/common/collect/CompactHashMap.java:292` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (10 lines × 2) android/guava/src/com/google/common/collect/CompactHashMap.java:759— android/guava/src/com/google/common/collect/CompactHashMap.java:759-768 | guava/src/com/google/common/collect/CompactHashMap.java:834-843 — before extracting anything, compare `android/guava/src/com/google/common/collect/CompactHashMap.java` and `guava/src/com/google/common/collect/CompactHashMap.java` as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 479 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (10 lines × 2) android/guava/src/com/google/common/collect/CompactHashSet.java:258— android/guava/src/com/google/common/collect/CompactHashSet.java:258-267 | guava/src/com/google/common/collect/CompactHashSet.java:262-271 — before extracting anything, compare `android/guava/src/com/google/common/collect/CompactHashSet.java` and `guava/src/com/google/common/collect/CompactHashSet.java` as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 356 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (10 lines × 2) android/guava/src/com/google/common/collect/CompactLinkedHashMap.java:198— android/guava/src/com/google/common/collect/CompactLinkedHashMap.java:198-207 | guava/src/com/google/common/collect/CompactLinkedHashMap.java:202-211 — before extracting anything, compare `android/guava/src/com/google/common/collect/CompactLinkedHashMap.java` and `guava/src/com/google/common/collect/CompactLinkedHashMap.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 57 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (10 lines × 2) android/guava/src/com/google/common/collect/FilteredKeyMultimap.java:203— android/guava/src/com/google/common/collect/FilteredKeyMultimap.java:203-212 | guava/src/com/google/common/collect/FilteredKeyMultimap.java:203-212 — before extracting anything, compare `android/guava/src/com/google/common/collect/FilteredKeyMultimap.java` and `guava/src/com/google/common/collect/FilteredKeyMultimap.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 34 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (10 lines × 2) android/guava/src/com/google/common/collect/ForwardingMap.java:169— android/guava/src/com/google/common/collect/ForwardingMap.java:169-178 | guava/src/com/google/common/collect/ForwardingMap.java:169-178 — before extracting anything, compare `android/guava/src/com/google/common/collect/ForwardingMap.java` and `guava/src/com/google/common/collect/ForwardingMap.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava/src/com/google/common/collect/ForwardingMap.java:169` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (6 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/AbstractMapTester.java:173— android/guava-testlib/src/com/google/common/collect/testing/AbstractMapTester.java:173-178 | guava-testlib/src/com/google/common/collect/testing/AbstractMapTester.java:173-178 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/AbstractMapTester.java` and `guava-testlib/src/com/google/common/collect/testing/AbstractMapTester.java` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 49 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 `android/guava-testlib/src/com/google/common/collect/testing/AbstractMapTester.java:173` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (6 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/Helpers.java:339— android/guava-testlib/src/com/google/common/collect/testing/Helpers.java:339-344 | guava-testlib/src/com/google/common/collect/testing/Helpers.java:339-344 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/Helpers.java` and `guava-testlib/src/com/google/common/collect/testing/Helpers.java` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 293 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 `android/guava-testlib/src/com/google/common/collect/testing/Helpers.java:339` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (6 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/MultimapEqualsTester.java:50— android/guava-testlib/src/com/google/common/collect/testing/google/MultimapEqualsTester.java:50-55 | guava-testlib/src/com/google/common/collect/testing/google/MultimapEqualsTester.java:50-55 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultimapEqualsTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultimapEqualsTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 4 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/google/MultimapEqualsTester.java:50` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (6 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutAllMultimapTester.java:96— android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutAllMultimapTester.java:96-101 | guava-testlib/src/com/google/common/collect/testing/google/MultimapPutAllMultimapTester.java:96-101 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutAllMultimapTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultimapPutAllMultimapTester.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 42 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 `android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutAllMultimapTester.java:96` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (6 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/SortedSetMultimapAsMapTester.java:54— android/guava-testlib/src/com/google/common/collect/testing/google/SortedSetMultimapAsMapTester.java:54-59 | guava-testlib/src/com/google/common/collect/testing/google/SortedSetMultimapAsMapTester.java:54-59 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/SortedSetMultimapAsMapTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/SortedSetMultimapAsMapTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 3 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/google/SortedSetMultimapAsMapTester.java:54` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (6 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionAddAllTester.java:85— android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionAddAllTester.java:85-90 | guava-testlib/src/com/google/common/collect/testing/testers/CollectionAddAllTester.java:85-90 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionAddAllTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/CollectionAddAllTester.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 56 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (6 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/ListSubListTester.java:225— android/guava-testlib/src/com/google/common/collect/testing/testers/ListSubListTester.java:225-230 | guava-testlib/src/com/google/common/collect/testing/testers/ListSubListTester.java:225-230 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/ListSubListTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/ListSubListTester.java` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 142 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 `android/guava-testlib/src/com/google/common/collect/testing/testers/ListSubListTester.java:225` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (6 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/MapEntrySetTester.java:61— android/guava-testlib/src/com/google/common/collect/testing/testers/MapEntrySetTester.java:61-66 | guava-testlib/src/com/google/common/collect/testing/testers/MapEntrySetTester.java:61-66 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/MapEntrySetTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/MapEntrySetTester.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 58 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 `android/guava-testlib/src/com/google/common/collect/testing/testers/MapEntrySetTester.java:61` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (6 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/SortedMapNavigationTester.java:147— android/guava-testlib/src/com/google/common/collect/testing/testers/SortedMapNavigationTester.java:147-152 | guava-testlib/src/com/google/common/collect/testing/testers/SortedMapNavigationTester.java:147-152 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/SortedMapNavigationTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/SortedMapNavigationTester.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 40 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 `android/guava-testlib/src/com/google/common/collect/testing/testers/SortedMapNavigationTester.java:147` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (6 lines × 2) android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java:393— android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java:393-398 | guava-testlib/src/com/google/common/testing/ArbitraryInstances.java:405-410 — before extracting anything, compare `android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java` and `guava-testlib/src/com/google/common/testing/ArbitraryInstances.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 65 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 `android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java:393` 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 (6 lines × 2) android/guava/src/com/google/common/base/CharMatcher.java:937— android/guava/src/com/google/common/base/CharMatcher.java:937-942 | guava/src/com/google/common/base/CharMatcher.java:953-958 — before extracting anything, compare `android/guava/src/com/google/common/base/CharMatcher.java` and `guava/src/com/google/common/base/CharMatcher.java` as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 345 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 `android/guava/src/com/google/common/base/CharMatcher.java:937` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (6 lines × 2) android/guava/src/com/google/common/base/CharMatcher.java:1356— android/guava/src/com/google/common/base/CharMatcher.java:1356-1361 | guava/src/com/google/common/base/CharMatcher.java:1372-1377 — before extracting anything, compare `android/guava/src/com/google/common/base/CharMatcher.java` and `guava/src/com/google/common/base/CharMatcher.java` as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 345 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (6 lines × 2) android/guava/src/com/google/common/base/Enums.java:78— android/guava/src/com/google/common/base/Enums.java:78-83 | guava/src/com/google/common/base/Enums.java:78-83 — before extracting anything, compare `android/guava/src/com/google/common/base/Enums.java` and `guava/src/com/google/common/base/Enums.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 30 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 `android/guava/src/com/google/common/base/Enums.java:78` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (6 lines × 2) android/guava/src/com/google/common/cache/LocalCache.java:2687— android/guava/src/com/google/common/cache/LocalCache.java:2687-2692 | guava/src/com/google/common/cache/LocalCache.java:2777-2782 — before extracting anything, compare `android/guava/src/com/google/common/cache/LocalCache.java` and `guava/src/com/google/common/cache/LocalCache.java` as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1881 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 `android/guava/src/com/google/common/cache/LocalCache.java:2687` 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 (6 lines × 2) android/guava/src/com/google/common/collect/AbstractTable.java:129— android/guava/src/com/google/common/collect/AbstractTable.java:129-134 | guava/src/com/google/common/collect/AbstractTable.java:136-141 — before extracting anything, compare `android/guava/src/com/google/common/collect/AbstractTable.java` and `guava/src/com/google/common/collect/AbstractTable.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 34 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 `android/guava/src/com/google/common/collect/AbstractTable.java:129` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (6 lines × 2) android/guava/src/com/google/common/collect/AbstractTable.java:140— android/guava/src/com/google/common/collect/AbstractTable.java:140-145 | guava/src/com/google/common/collect/AbstractTable.java:147-152 — before extracting anything, compare `android/guava/src/com/google/common/collect/AbstractTable.java` and `guava/src/com/google/common/collect/AbstractTable.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 34 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 `android/guava/src/com/google/common/collect/AbstractTable.java:140` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (6 lines × 2) android/guava/src/com/google/common/collect/ImmutableRangeMap.java:429— android/guava/src/com/google/common/collect/ImmutableRangeMap.java:429-434 | guava/src/com/google/common/collect/ImmutableRangeMap.java:446-451 — before extracting anything, compare `android/guava/src/com/google/common/collect/ImmutableRangeMap.java` and `guava/src/com/google/common/collect/ImmutableRangeMap.java` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 194 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (6 lines × 2) android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java:195— android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java:195-200 | guava/src/com/google/common/collect/ImmutableSortedMultiset.java:175-180 — before extracting anything, compare `android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java` and `guava/src/com/google/common/collect/ImmutableSortedMultiset.java` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 91 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (6 lines × 2) android/guava/src/com/google/common/collect/Maps.java:4018— android/guava/src/com/google/common/collect/Maps.java:4018-4023 | guava/src/com/google/common/collect/Maps.java:4229-4234 — before extracting anything, compare `android/guava/src/com/google/common/collect/Maps.java` and `guava/src/com/google/common/collect/Maps.java` as WHOLE FILES: this scan already matched 72 separate duplicated blocks between them, totalling at least 830 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 `android/guava/src/com/google/common/collect/Maps.java:4018` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (6 lines × 2) android/guava/src/com/google/common/collect/Multimaps.java:2008— android/guava/src/com/google/common/collect/Multimaps.java:2008-2013 | guava/src/com/google/common/collect/Multimaps.java:2025-2030 — before extracting anything, compare `android/guava/src/com/google/common/collect/Multimaps.java` and `guava/src/com/google/common/collect/Multimaps.java` as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 271 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 `android/guava/src/com/google/common/collect/Multimaps.java:2008` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (6 lines × 2) android/guava/src/com/google/common/collect/Multisets.java:1148— android/guava/src/com/google/common/collect/Multisets.java:1148-1153 | guava/src/com/google/common/collect/Multisets.java:1145-1150 — before extracting anything, compare `android/guava/src/com/google/common/collect/Multisets.java` and `guava/src/com/google/common/collect/Multisets.java` as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 470 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (6 lines × 2) android/guava/src/com/google/common/collect/Range.java:195— android/guava/src/com/google/common/collect/Range.java:195-200 | guava/src/com/google/common/collect/Range.java:195-200 — before extracting anything, compare `android/guava/src/com/google/common/collect/Range.java` and `guava/src/com/google/common/collect/Range.java` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 137 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.
Duplicated block (6 lines × 2) android/guava/src/com/google/common/collect/RegularContiguousSet.java:200— android/guava/src/com/google/common/collect/RegularContiguousSet.java:200-205 | guava/src/com/google/common/collect/RegularContiguousSet.java:200-205 — before extracting anything, compare `android/guava/src/com/google/common/collect/RegularContiguousSet.java` and `guava/src/com/google/common/collect/RegularContiguousSet.java` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 108 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 `android/guava/src/com/google/common/collect/RegularContiguousSet.java:200` 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 (6 lines × 2) android/guava/src/com/google/common/collect/TreeRangeMap.java:82— android/guava/src/com/google/common/collect/TreeRangeMap.java:82-87 | guava/src/com/google/common/collect/TreeRangeMap.java:83-88 — before extracting anything, compare `android/guava/src/com/google/common/collect/TreeRangeMap.java` and `guava/src/com/google/common/collect/TreeRangeMap.java` as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 356 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 `android/guava/src/com/google/common/collect/TreeRangeMap.java:82` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (6 lines × 2) android/guava/src/com/google/common/graph/AbstractBaseGraph.java:144— android/guava/src/com/google/common/graph/AbstractBaseGraph.java:144-149 | guava/src/com/google/common/graph/AbstractBaseGraph.java:144-149 — before extracting anything, compare `android/guava/src/com/google/common/graph/AbstractBaseGraph.java` and `guava/src/com/google/common/graph/AbstractBaseGraph.java` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 239 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 `android/guava/src/com/google/common/graph/AbstractBaseGraph.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.
Duplicated block (11 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java:481— android/guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java:481-491 | guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java:498-508 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java` and `guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 198 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (11 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java:494— android/guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java:494-504 | guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java:511-521 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java` and `guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 198 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (11 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/BiMapPutTester.java:115— android/guava-testlib/src/com/google/common/collect/testing/google/BiMapPutTester.java:115-125 | guava-testlib/src/com/google/common/collect/testing/google/BiMapPutTester.java:115-125 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/BiMapPutTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/BiMapPutTester.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 61 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.
Duplicated block (11 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java:204— android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java:204-214 | guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java:204-214 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 124 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 `android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.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 (11 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java:59— android/guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java:59-69 | guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java:59-69 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java` as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 239 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 `android/guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.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 (11 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionRetainAllTester.java:71— android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionRetainAllTester.java:71-81 | guava-testlib/src/com/google/common/collect/testing/testers/CollectionRetainAllTester.java:71-81 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionRetainAllTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/CollectionRetainAllTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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.
Duplicated block (11 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/MapPutTester.java:133— android/guava-testlib/src/com/google/common/collect/testing/testers/MapPutTester.java:133-143 | guava-testlib/src/com/google/common/collect/testing/testers/MapPutTester.java:133-143 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/MapPutTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/MapPutTester.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 60 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (11 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/MapRemoveTester.java:88— android/guava-testlib/src/com/google/common/collect/testing/testers/MapRemoveTester.java:88-98 | guava-testlib/src/com/google/common/collect/testing/testers/MapRemoveTester.java:88-98 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/MapRemoveTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/MapRemoveTester.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 63 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (11 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceAllTester.java:175— android/guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceAllTester.java:175-185 | guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceAllTester.java:174-184 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceAllTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceAllTester.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 118 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (11 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceAllTester.java:190— android/guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceAllTester.java:190-200 | guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceAllTester.java:189-199 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceAllTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceAllTester.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 118 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (11 lines × 2) android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java:213— android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java:213-223 | guava-testlib/src/com/google/common/testing/ClassSanityTester.java:213-223 — before extracting anything, compare `android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java` and `guava-testlib/src/com/google/common/testing/ClassSanityTester.java` as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 368 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (11 lines × 2) android/guava-testlib/src/com/google/common/testing/NullPointerTester.java:243— android/guava-testlib/src/com/google/common/testing/NullPointerTester.java:243-253 | guava-testlib/src/com/google/common/testing/NullPointerTester.java:245-255 — before extracting anything, compare `android/guava-testlib/src/com/google/common/testing/NullPointerTester.java` and `guava-testlib/src/com/google/common/testing/NullPointerTester.java` as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 268 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (11 lines × 2) REDACTED:41— REDACTED:41-51 | REDACTED:41-51 — before extracting anything, compare `REDACTED` and `REDACTED` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (11 lines × 2) android/guava/src/com/google/common/base/CharMatcher.java:1309— android/guava/src/com/google/common/base/CharMatcher.java:1309-1319 | guava/src/com/google/common/base/CharMatcher.java:1325-1335 — before extracting anything, compare `android/guava/src/com/google/common/base/CharMatcher.java` and `guava/src/com/google/common/base/CharMatcher.java` as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 345 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (11 lines × 2) android/guava/src/com/google/common/base/Predicates.java:502— android/guava/src/com/google/common/base/Predicates.java:502-512 | guava/src/com/google/common/base/Predicates.java:502-512 — before extracting anything, compare `android/guava/src/com/google/common/base/Predicates.java` and `guava/src/com/google/common/base/Predicates.java` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 104 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (11 lines × 2) android/guava/src/com/google/common/base/Strings.java:94— android/guava/src/com/google/common/base/Strings.java:94-104 | guava/src/com/google/common/base/Strings.java:94-104 — before extracting anything, compare `android/guava/src/com/google/common/base/Strings.java` and `guava/src/com/google/common/base/Strings.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 127 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (11 lines × 2) android/guava/src/com/google/common/base/Strings.java:125— android/guava/src/com/google/common/base/Strings.java:125-135 | guava/src/com/google/common/base/Strings.java:125-135 — before extracting anything, compare `android/guava/src/com/google/common/base/Strings.java` and `guava/src/com/google/common/base/Strings.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 127 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (11 lines × 2) android/guava/src/com/google/common/cache/CacheBuilder.java:500— android/guava/src/com/google/common/cache/CacheBuilder.java:500-510 | guava/src/com/google/common/cache/CacheBuilder.java:500-510 — before extracting anything, compare `android/guava/src/com/google/common/cache/CacheBuilder.java` and `guava/src/com/google/common/cache/CacheBuilder.java` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 152 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (11 lines × 2) android/guava/src/com/google/common/cache/CacheStats.java:281— android/guava/src/com/google/common/cache/CacheStats.java:281-291 | guava/src/com/google/common/cache/CacheStats.java:281-291 — before extracting anything, compare `android/guava/src/com/google/common/cache/CacheStats.java` and `guava/src/com/google/common/cache/CacheStats.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 51 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (11 lines × 2) android/guava/src/com/google/common/cache/LocalCache.java:2399— android/guava/src/com/google/common/cache/LocalCache.java:2399-2409 | guava/src/com/google/common/cache/LocalCache.java:2489-2499 — before extracting anything, compare `android/guava/src/com/google/common/cache/LocalCache.java` and `guava/src/com/google/common/cache/LocalCache.java` as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1881 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (11 lines × 2) android/guava/src/com/google/common/cache/LocalCache.java:2413— android/guava/src/com/google/common/cache/LocalCache.java:2413-2423 | guava/src/com/google/common/cache/LocalCache.java:2503-2513 — before extracting anything, compare `android/guava/src/com/google/common/cache/LocalCache.java` and `guava/src/com/google/common/cache/LocalCache.java` as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1881 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (11 lines × 2) android/guava/src/com/google/common/cache/LocalCache.java:3161— android/guava/src/com/google/common/cache/LocalCache.java:3161-3171 | guava/src/com/google/common/cache/LocalCache.java:3251-3261 — before extracting anything, compare `android/guava/src/com/google/common/cache/LocalCache.java` and `guava/src/com/google/common/cache/LocalCache.java` as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1881 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (11 lines × 2) android/guava/src/com/google/common/cache/LongAdder.java:65— android/guava/src/com/google/common/cache/LongAdder.java:65-75 | android/guava/src/com/google/common/hash/LongAdder.java:63-73 — `android/guava/src/com/google/common/cache/LongAdder.java` and `android/guava/src/com/google/common/hash/LongAdder.java` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 3 separate duplicated blocks between them, totalling at least 37 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at `android/guava/src/com/google/common/cache/LongAdder.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 (11 lines × 2) android/guava/src/com/google/common/cache/LongAdder.java:100— android/guava/src/com/google/common/cache/LongAdder.java:100-110 | android/guava/src/com/google/common/hash/LongAdder.java:98-108 — `android/guava/src/com/google/common/cache/LongAdder.java` and `android/guava/src/com/google/common/hash/LongAdder.java` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 3 separate duplicated blocks between them, totalling at least 37 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (11 lines × 2) android/guava/src/com/google/common/collect/AbstractMapBasedMultimap.java:1327— android/guava/src/com/google/common/collect/AbstractMapBasedMultimap.java:1327-1337 | guava/src/com/google/common/collect/AbstractMapBasedMultimap.java:1369-1379 — before extracting anything, compare `android/guava/src/com/google/common/collect/AbstractMapBasedMultimap.java` and `guava/src/com/google/common/collect/AbstractMapBasedMultimap.java` as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 408 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (12 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java:149— android/guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java:149-160 | guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java:149-160 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java` and `guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 192 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (12 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/MultimapClearTester.java:49— android/guava-testlib/src/com/google/common/collect/testing/google/MultimapClearTester.java:49-60 | guava-testlib/src/com/google/common/collect/testing/google/MultimapClearTester.java:49-60 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultimapClearTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultimapClearTester.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 40 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (12 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java:166— android/guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java:166-177 | guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java:166-177 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 87 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 `android/guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java:166` 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) android/guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java:151— android/guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java:151-162 | guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java:151-162 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 110 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 `android/guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java:151` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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) android/guava-testlib/src/com/google/common/collect/testing/testers/ListRemoveAllTester.java:39— android/guava-testlib/src/com/google/common/collect/testing/testers/ListRemoveAllTester.java:39-50 | guava-testlib/src/com/google/common/collect/testing/testers/ListRemoveAllTester.java:39-50 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/ListRemoveAllTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/ListRemoveAllTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (12 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/ListSubListTester.java:199— android/guava-testlib/src/com/google/common/collect/testing/testers/ListSubListTester.java:199-210 | guava-testlib/src/com/google/common/collect/testing/testers/ListSubListTester.java:199-210 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/ListSubListTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/ListSubListTester.java` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 142 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (12 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceAllTester.java:82— android/guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceAllTester.java:82-93 | guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceAllTester.java:81-92 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceAllTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceAllTester.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 118 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 `android/guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceAllTester.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 (12 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/SortedMapNavigationTester.java:161— android/guava-testlib/src/com/google/common/collect/testing/testers/SortedMapNavigationTester.java:161-172 | guava-testlib/src/com/google/common/collect/testing/testers/SortedMapNavigationTester.java:161-172 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/SortedMapNavigationTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/SortedMapNavigationTester.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 40 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (12 lines × 2) android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java:609— android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java:609-620 | guava-testlib/src/com/google/common/testing/ClassSanityTester.java:609-620 — before extracting anything, compare `android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java` and `guava-testlib/src/com/google/common/testing/ClassSanityTester.java` as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 368 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 `android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java:609` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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) android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java:667— android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java:667-678 | guava-testlib/src/com/google/common/testing/ClassSanityTester.java:667-678 — before extracting anything, compare `android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java` and `guava-testlib/src/com/google/common/testing/ClassSanityTester.java` as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 368 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (12 lines × 2) android/guava-testlib/src/com/google/common/testing/EqualsTester.java:112— android/guava-testlib/src/com/google/common/testing/EqualsTester.java:112-123 | guava-testlib/src/com/google/common/testing/EqualsTester.java:112-123 — before extracting anything, compare `android/guava-testlib/src/com/google/common/testing/EqualsTester.java` and `guava-testlib/src/com/google/common/testing/EqualsTester.java` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 41 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (12 lines × 2) android/guava-testlib/src/com/google/common/testing/EqualsTester.java:128— android/guava-testlib/src/com/google/common/testing/EqualsTester.java:128-139 | guava-testlib/src/com/google/common/testing/EqualsTester.java:128-139 — before extracting anything, compare `android/guava-testlib/src/com/google/common/testing/EqualsTester.java` and `guava-testlib/src/com/google/common/testing/EqualsTester.java` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 41 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (12 lines × 2) android/guava-testlib/src/com/google/common/testing/GcFinalization.java:361— android/guava-testlib/src/com/google/common/testing/GcFinalization.java:361-372 | guava-testlib/src/com/google/common/testing/GcFinalization.java:361-372 — before extracting anything, compare `android/guava-testlib/src/com/google/common/testing/GcFinalization.java` and `guava-testlib/src/com/google/common/testing/GcFinalization.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 110 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (12 lines × 2) android/guava/src/com/google/common/cache/LocalCache.java:2278— android/guava/src/com/google/common/cache/LocalCache.java:2278-2289 | guava/src/com/google/common/cache/LocalCache.java:2368-2379 — before extracting anything, compare `android/guava/src/com/google/common/cache/LocalCache.java` and `guava/src/com/google/common/cache/LocalCache.java` as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1881 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (12 lines × 2) android/guava/src/com/google/common/cache/LocalCache.java:2713— android/guava/src/com/google/common/cache/LocalCache.java:2713-2724 | guava/src/com/google/common/cache/LocalCache.java:2803-2814 — before extracting anything, compare `android/guava/src/com/google/common/cache/LocalCache.java` and `guava/src/com/google/common/cache/LocalCache.java` as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1881 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 `android/guava/src/com/google/common/cache/LocalCache.java:2713` 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) android/guava/src/com/google/common/cache/LocalCache.java:3178— android/guava/src/com/google/common/cache/LocalCache.java:3178-3189 | guava/src/com/google/common/cache/LocalCache.java:3268-3279 — before extracting anything, compare `android/guava/src/com/google/common/cache/LocalCache.java` and `guava/src/com/google/common/cache/LocalCache.java` as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1881 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 `android/guava/src/com/google/common/cache/LocalCache.java:3178` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (12 lines × 2) android/guava/src/com/google/common/cache/LocalCache.java:4460— android/guava/src/com/google/common/cache/LocalCache.java:4460-4471 | guava/src/com/google/common/cache/LocalCache.java:4633-4644 — before extracting anything, compare `android/guava/src/com/google/common/cache/LocalCache.java` and `guava/src/com/google/common/cache/LocalCache.java` as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1881 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (12 lines × 2) android/guava/src/com/google/common/collect/AbstractMapBasedMultimap.java:356— android/guava/src/com/google/common/collect/AbstractMapBasedMultimap.java:356-367 | guava/src/com/google/common/collect/AbstractMapBasedMultimap.java:358-369 — before extracting anything, compare `android/guava/src/com/google/common/collect/AbstractMapBasedMultimap.java` and `guava/src/com/google/common/collect/AbstractMapBasedMultimap.java` as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 408 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (12 lines × 2) android/guava/src/com/google/common/collect/AbstractMapBasedMultimap.java:571— android/guava/src/com/google/common/collect/AbstractMapBasedMultimap.java:571-582 | guava/src/com/google/common/collect/AbstractMapBasedMultimap.java:579-590 — before extracting anything, compare `android/guava/src/com/google/common/collect/AbstractMapBasedMultimap.java` and `guava/src/com/google/common/collect/AbstractMapBasedMultimap.java` as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 408 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (12 lines × 2) android/guava/src/com/google/common/collect/AbstractMapBasedMultimap.java:1170— android/guava/src/com/google/common/collect/AbstractMapBasedMultimap.java:1170-1181 | guava/src/com/google/common/collect/AbstractMapBasedMultimap.java:1183-1194 — before extracting anything, compare `android/guava/src/com/google/common/collect/AbstractMapBasedMultimap.java` and `guava/src/com/google/common/collect/AbstractMapBasedMultimap.java` as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 408 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (12 lines × 2) android/guava/src/com/google/common/collect/CollectCollectors.java:156— android/guava/src/com/google/common/collect/CollectCollectors.java:156-167 | guava/src/com/google/common/collect/CollectCollectors.java:154-165 — before extracting anything, compare `android/guava/src/com/google/common/collect/CollectCollectors.java` and `guava/src/com/google/common/collect/CollectCollectors.java` as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 251 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (12 lines × 2) android/guava/src/com/google/common/collect/CompactHashMap.java:723— android/guava/src/com/google/common/collect/CompactHashMap.java:723-734 | guava/src/com/google/common/collect/CompactHashMap.java:781-792 — before extracting anything, compare `android/guava/src/com/google/common/collect/CompactHashMap.java` and `guava/src/com/google/common/collect/CompactHashMap.java` as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 479 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (12 lines × 2) android/guava/src/com/google/common/collect/CompactHashMap.java:931— android/guava/src/com/google/common/collect/CompactHashMap.java:931-942 | guava/src/com/google/common/collect/CompactHashMap.java:1051-1062 — before extracting anything, compare `android/guava/src/com/google/common/collect/CompactHashMap.java` and `guava/src/com/google/common/collect/CompactHashMap.java` as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 479 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (12 lines × 2) android/guava/src/com/google/common/collect/CompactHashMap.java:1007— android/guava/src/com/google/common/collect/CompactHashMap.java:1007-1018 | guava/src/com/google/common/collect/CompactHashMap.java:1127-1138 — before extracting anything, compare `android/guava/src/com/google/common/collect/CompactHashMap.java` and `guava/src/com/google/common/collect/CompactHashMap.java` as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 479 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (12 lines × 2) android/guava/src/com/google/common/collect/CompactHashSet.java:230— android/guava/src/com/google/common/collect/CompactHashSet.java:230-241 | guava/src/com/google/common/collect/CompactHashSet.java:234-245 — before extracting anything, compare `android/guava/src/com/google/common/collect/CompactHashSet.java` and `guava/src/com/google/common/collect/CompactHashSet.java` as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 356 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (13 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java:344— android/guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java:344-356 | guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java:344-356 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java` and `guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 192 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (13 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapPutAllTester.java:35— android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapPutAllTester.java:35-47 | guava-testlib/src/com/google/common/collect/testing/google/ListMultimapPutAllTester.java:35-47 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapPutAllTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/ListMultimapPutAllTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (13 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java:84— android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java:84-96 | guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java:84-96 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 124 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (13 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java:155— android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java:155-167 | guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java:155-167 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 124 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 `android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java:155` 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) android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java:174— android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java:174-186 | guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java:174-186 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 124 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 `android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java:174` 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) android/guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java:114— android/guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java:114-126 | guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java:114-126 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 87 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 `android/guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.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 (13 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java:135— android/guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java:135-147 | guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java:135-147 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 87 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 `android/guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java:135` 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) android/guava-testlib/src/com/google/common/collect/testing/google/MultimapReplaceValuesTester.java:95— android/guava-testlib/src/com/google/common/collect/testing/google/MultimapReplaceValuesTester.java:95-107 | guava-testlib/src/com/google/common/collect/testing/google/MultimapReplaceValuesTester.java:95-107 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultimapReplaceValuesTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultimapReplaceValuesTester.java` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 48 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (13 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java:379— android/guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java:379-391 | guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java:379-391 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java` as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 239 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (13 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java:396— android/guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java:396-408 | guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java:396-408 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java` as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 239 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (13 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java:299— android/guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java:299-311 | guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java:299-311 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java` and `guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 136 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (13 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/SetMultimapPutAllTester.java:37— android/guava-testlib/src/com/google/common/collect/testing/google/SetMultimapPutAllTester.java:37-49 | guava-testlib/src/com/google/common/collect/testing/google/SetMultimapPutAllTester.java:37-49 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/SetMultimapPutAllTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/SetMultimapPutAllTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (13 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/AbstractListTester.java:55— android/guava-testlib/src/com/google/common/collect/testing/testers/AbstractListTester.java:55-67 | guava-testlib/src/com/google/common/collect/testing/testers/AbstractListTester.java:55-67 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/AbstractListTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/AbstractListTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (13 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionIteratorTester.java:88— android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionIteratorTester.java:88-100 | guava-testlib/src/com/google/common/collect/testing/testers/CollectionIteratorTester.java:88-100 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionIteratorTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/CollectionIteratorTester.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 58 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (13 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/MapComputeIfAbsentTester.java:90— android/guava-testlib/src/com/google/common/collect/testing/testers/MapComputeIfAbsentTester.java:90-102 | guava-testlib/src/com/google/common/collect/testing/testers/MapComputeIfAbsentTester.java:89-101 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/MapComputeIfAbsentTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/MapComputeIfAbsentTester.java` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 134 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (13 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/MapComputeIfPresentTester.java:60— android/guava-testlib/src/com/google/common/collect/testing/testers/MapComputeIfPresentTester.java:60-72 | guava-testlib/src/com/google/common/collect/testing/testers/MapComputeIfPresentTester.java:59-71 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/MapComputeIfPresentTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/MapComputeIfPresentTester.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 107 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (13 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/MapComputeIfPresentTester.java:108— android/guava-testlib/src/com/google/common/collect/testing/testers/MapComputeIfPresentTester.java:108-120 | guava-testlib/src/com/google/common/collect/testing/testers/MapComputeIfPresentTester.java:107-119 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/MapComputeIfPresentTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/MapComputeIfPresentTester.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 107 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (13 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/MapComputeTester.java:61— android/guava-testlib/src/com/google/common/collect/testing/testers/MapComputeTester.java:61-73 | guava-testlib/src/com/google/common/collect/testing/testers/MapComputeTester.java:60-72 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/MapComputeTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/MapComputeTester.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 126 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (13 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/MapComputeTester.java:172— android/guava-testlib/src/com/google/common/collect/testing/testers/MapComputeTester.java:172-184 | guava-testlib/src/com/google/common/collect/testing/testers/MapComputeTester.java:171-183 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/MapComputeTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/MapComputeTester.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 126 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (13 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/MapMergeTester.java:137— android/guava-testlib/src/com/google/common/collect/testing/testers/MapMergeTester.java:137-149 | guava-testlib/src/com/google/common/collect/testing/testers/MapMergeTester.java:136-148 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/MapMergeTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/MapMergeTester.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 120 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (13 lines × 2) android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java:461— android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java:461-473 | guava-testlib/src/com/google/common/testing/ClassSanityTester.java:461-473 — before extracting anything, compare `android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java` and `guava-testlib/src/com/google/common/testing/ClassSanityTester.java` as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 368 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (13 lines × 2) android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java:508— android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java:508-520 | guava-testlib/src/com/google/common/testing/ClassSanityTester.java:508-520 — before extracting anything, compare `android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java` and `guava-testlib/src/com/google/common/testing/ClassSanityTester.java` as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 368 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (13 lines × 2) android/guava-testlib/src/com/google/common/testing/NullPointerTester.java:333— android/guava-testlib/src/com/google/common/testing/NullPointerTester.java:333-345 | guava-testlib/src/com/google/common/testing/NullPointerTester.java:335-347 — before extracting anything, compare `android/guava-testlib/src/com/google/common/testing/NullPointerTester.java` and `guava-testlib/src/com/google/common/testing/NullPointerTester.java` as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 268 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 `android/guava-testlib/src/com/google/common/testing/NullPointerTester.java:333` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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) android/guava/src/com/google/common/base/CharMatcher.java:315— android/guava/src/com/google/common/base/CharMatcher.java:315-327 | guava/src/com/google/common/base/CharMatcher.java:315-327 — before extracting anything, compare `android/guava/src/com/google/common/base/CharMatcher.java` and `guava/src/com/google/common/base/CharMatcher.java` as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 345 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (13 lines × 2) android/guava/src/com/google/common/base/Defaults.java:61— android/guava/src/com/google/common/base/Defaults.java:61-73 | guava/src/com/google/common/base/Defaults.java:61-73 — before extracting anything, compare `android/guava/src/com/google/common/base/Defaults.java` and `guava/src/com/google/common/base/Defaults.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava/src/com/google/common/base/Defaults.java:61` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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) android/guava-testlib/src/com/google/common/collect/testing/google/AbstractBiMapTester.java:50— android/guava-testlib/src/com/google/common/collect/testing/google/AbstractBiMapTester.java:50-63 | guava-testlib/src/com/google/common/collect/testing/google/AbstractBiMapTester.java:50-63 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/AbstractBiMapTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/AbstractBiMapTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (14 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapPutTester.java:58— android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapPutTester.java:58-71 | guava-testlib/src/com/google/common/collect/testing/google/ListMultimapPutTester.java:58-71 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapPutTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/ListMultimapPutTester.java` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 39 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 `android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapPutTester.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.
Duplicated block (14 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutIterableTester.java:166— android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutIterableTester.java:166-179 | guava-testlib/src/com/google/common/collect/testing/google/MultimapPutIterableTester.java:166-179 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutIterableTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultimapPutIterableTester.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 51 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (14 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java:381— android/guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java:381-394 | guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java:381-394 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java` and `guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 136 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (14 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionIteratorTester.java:124— android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionIteratorTester.java:124-137 | guava-testlib/src/com/google/common/collect/testing/testers/CollectionIteratorTester.java:124-137 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionIteratorTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/CollectionIteratorTester.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 58 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (14 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionToArrayTester.java:151— android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionToArrayTester.java:151-164 | guava-testlib/src/com/google/common/collect/testing/testers/CollectionToArrayTester.java:151-164 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionToArrayTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/CollectionToArrayTester.java` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 87 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 `android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionToArrayTester.java:151` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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) android/guava-testlib/src/com/google/common/collect/testing/testers/MapComputeTester.java:44— android/guava-testlib/src/com/google/common/collect/testing/testers/MapComputeTester.java:44-57 | guava-testlib/src/com/google/common/collect/testing/testers/MapComputeTester.java:43-56 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/MapComputeTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/MapComputeTester.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 126 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (14 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/MapComputeTester.java:78— android/guava-testlib/src/com/google/common/collect/testing/testers/MapComputeTester.java:78-91 | guava-testlib/src/com/google/common/collect/testing/testers/MapComputeTester.java:77-90 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/MapComputeTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/MapComputeTester.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 126 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (14 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/MapComputeTester.java:96— android/guava-testlib/src/com/google/common/collect/testing/testers/MapComputeTester.java:96-109 | guava-testlib/src/com/google/common/collect/testing/testers/MapComputeTester.java:95-108 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/MapComputeTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/MapComputeTester.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 126 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (14 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/MapComputeTester.java:136— android/guava-testlib/src/com/google/common/collect/testing/testers/MapComputeTester.java:136-149 | guava-testlib/src/com/google/common/collect/testing/testers/MapComputeTester.java:135-148 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/MapComputeTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/MapComputeTester.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 126 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (14 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/MapComputeTester.java:154— android/guava-testlib/src/com/google/common/collect/testing/testers/MapComputeTester.java:154-167 | guava-testlib/src/com/google/common/collect/testing/testers/MapComputeTester.java:153-166 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/MapComputeTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/MapComputeTester.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 126 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (14 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/MapMergeTester.java:67— android/guava-testlib/src/com/google/common/collect/testing/testers/MapMergeTester.java:67-80 | guava-testlib/src/com/google/common/collect/testing/testers/MapMergeTester.java:66-79 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/MapMergeTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/MapMergeTester.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 120 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (14 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/MapMergeTester.java:101— android/guava-testlib/src/com/google/common/collect/testing/testers/MapMergeTester.java:101-114 | guava-testlib/src/com/google/common/collect/testing/testers/MapMergeTester.java:100-113 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/MapMergeTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/MapMergeTester.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 120 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (14 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/MapMergeTester.java:119— android/guava-testlib/src/com/google/common/collect/testing/testers/MapMergeTester.java:119-132 | guava-testlib/src/com/google/common/collect/testing/testers/MapMergeTester.java:118-131 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/MapMergeTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/MapMergeTester.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 120 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (14 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/SetHashCodeTester.java:51— android/guava-testlib/src/com/google/common/collect/testing/testers/SetHashCodeTester.java:51-64 | guava-testlib/src/com/google/common/collect/testing/testers/SetHashCodeTester.java:51-64 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/SetHashCodeTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/SetHashCodeTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (14 lines × 2) android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java:122— android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java:122-135 | guava-testlib/src/com/google/common/testing/ClassSanityTester.java:122-135 — before extracting anything, compare `android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java` and `guava-testlib/src/com/google/common/testing/ClassSanityTester.java` as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 368 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (14 lines × 2) android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java:734— android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java:734-747 | guava-testlib/src/com/google/common/testing/ClassSanityTester.java:734-747 — before extracting anything, compare `android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java` and `guava-testlib/src/com/google/common/testing/ClassSanityTester.java` as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 368 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (14 lines × 2) android/guava-testlib/src/com/google/common/testing/CollectorTester.java:119— android/guava-testlib/src/com/google/common/testing/CollectorTester.java:119-132 | guava-testlib/src/com/google/common/testing/CollectorTester.java:117-130 — before extracting anything, compare `android/guava-testlib/src/com/google/common/testing/CollectorTester.java` and `guava-testlib/src/com/google/common/testing/CollectorTester.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 47 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (14 lines × 2) android/guava-testlib/src/com/google/common/testing/EquivalenceTester.java:106— android/guava-testlib/src/com/google/common/testing/EquivalenceTester.java:106-119 | guava-testlib/src/com/google/common/testing/EquivalenceTester.java:106-119 — before extracting anything, compare `android/guava-testlib/src/com/google/common/testing/EquivalenceTester.java` and `guava-testlib/src/com/google/common/testing/EquivalenceTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 3 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (14 lines × 2) android/guava/src/com/google/common/base/Ascii.java:409— android/guava/src/com/google/common/base/Ascii.java:409-422 | guava/src/com/google/common/base/Ascii.java:409-422 — before extracting anything, compare `android/guava/src/com/google/common/base/Ascii.java` and `guava/src/com/google/common/base/Ascii.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 96 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 `android/guava/src/com/google/common/base/Ascii.java:409` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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) android/guava/src/com/google/common/base/Ascii.java:457— android/guava/src/com/google/common/base/Ascii.java:457-470 | guava/src/com/google/common/base/Ascii.java:457-470 — before extracting anything, compare `android/guava/src/com/google/common/base/Ascii.java` and `guava/src/com/google/common/base/Ascii.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 96 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 `android/guava/src/com/google/common/base/Ascii.java:457` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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) android/guava/src/com/google/common/base/CharMatcher.java:681— android/guava/src/com/google/common/base/CharMatcher.java:681-694 | guava/src/com/google/common/base/CharMatcher.java:681-694 — before extracting anything, compare `android/guava/src/com/google/common/base/CharMatcher.java` and `guava/src/com/google/common/base/CharMatcher.java` as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 345 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (14 lines × 2) android/guava/src/com/google/common/base/CharMatcher.java:844— android/guava/src/com/google/common/base/CharMatcher.java:844-857 | guava/src/com/google/common/base/CharMatcher.java:844-857 — before extracting anything, compare `android/guava/src/com/google/common/base/CharMatcher.java` and `guava/src/com/google/common/base/CharMatcher.java` as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 345 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 `android/guava/src/com/google/common/base/CharMatcher.java:844` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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) android/guava/src/com/google/common/base/CharMatcher.java:891— android/guava/src/com/google/common/base/CharMatcher.java:891-904 | guava/src/com/google/common/base/CharMatcher.java:891-904 — before extracting anything, compare `android/guava/src/com/google/common/base/CharMatcher.java` and `guava/src/com/google/common/base/CharMatcher.java` as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 345 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (14 lines × 2) android/guava/src/com/google/common/base/FinalizableReferenceQueue.java:368— android/guava/src/com/google/common/base/FinalizableReferenceQueue.java:368-381 | guava/src/com/google/common/base/FinalizableReferenceQueue.java:367-380 — before extracting anything, compare `android/guava/src/com/google/common/base/FinalizableReferenceQueue.java` and `guava/src/com/google/common/base/FinalizableReferenceQueue.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 91 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
TooManyMethods: FreshValueGenerator guava-testlib/src/com/google/common/testing/FreshValueGenerator.java:140— TooManyMethods — 123 methods. The bar is 30 methods; this is 93 over it, 4.10× the bar. 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: FreshValueGenerator android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java:136— TooManyMethods — 118 methods. The bar is 30 methods; this is 88 over it, 3.93× the bar. 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: Maps android/guava/src/com/google/common/collect/Maps.java:104— TooManyMethods — 91 methods. The bar is 30 methods; this is 61 over it, 3.03× the bar. 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: Maps guava/src/com/google/common/collect/Maps.java:109— TooManyMethods — 91 methods. The bar is 30 methods; this is 61 over it, 3.03× the bar. 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: Preconditions android/guava/src/com/google/common/base/Preconditions.java:117— TooManyMethods — 84 methods. The bar is 30 methods; this is 54 over it, 2.80× the bar. 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: Preconditions guava/src/com/google/common/base/Preconditions.java:117— TooManyMethods — 84 methods. The bar is 30 methods; this is 54 over it, 2.80× the bar. 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: LocalCache guava/src/com/google/common/cache/LocalCache.java:112— TooManyMethods — 72 methods. The bar is 30 methods; this is 42 over it, 2.40× the bar. 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: ImmutableSortedMap guava/src/com/google/common/collect/ImmutableSortedMap.java:67— TooManyMethods — 70 methods. The bar is 30 methods; this is 40 over it, 2.33× the bar. 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: ImmutableSortedMap android/guava/src/com/google/common/collect/ImmutableSortedMap.java:65— TooManyMethods — 69 methods. The bar is 30 methods; this is 39 over it, 2.30× the bar. 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: LocalCache android/guava/src/com/google/common/cache/LocalCache.java:108— TooManyMethods — 67 methods. The bar is 30 methods; this is 37 over it, 2.23× the bar. 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: MultisetNavigationTester android/guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java:50— TooManyMethods — 66 methods. The bar is 30 methods; this is 36 over it, 2.20× the bar. 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: MultisetNavigationTester guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java:50— TooManyMethods — 66 methods. The bar is 30 methods; this is 36 over it, 2.20× the bar. 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: Segment guava/src/com/google/common/cache/LocalCache.java:1867— TooManyMethods — 60 methods. The bar is 30 methods; this is 30 over it, 2.00× the bar. 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: Segment android/guava/src/com/google/common/cache/LocalCache.java:1863— TooManyMethods — 59 methods. The bar is 30 methods; this is 29 over it, 1.97× the bar. 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: TypeToken android/guava/src/com/google/common/reflect/TypeToken.java:105— TooManyMethods — 58 methods. The bar is 30 methods; this is 28 over it, 1.93× the bar. 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: TypeToken guava/src/com/google/common/reflect/TypeToken.java:105— TooManyMethods — 58 methods. The bar is 30 methods; this is 28 over it, 1.93× the bar. 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: Iterators android/guava/src/com/google/common/collect/Iterators.java:74— TooManyMethods — 57 methods. The bar is 30 methods; this is 27 over it, 1.90× the bar. 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: CompactHashMap guava/src/com/google/common/collect/CompactHashMap.java:83— TooManyMethods — 57 methods. The bar is 30 methods; this is 27 over it, 1.90× the bar. 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: Iterators guava/src/com/google/common/collect/Iterators.java:74— TooManyMethods — 57 methods. The bar is 30 methods; this is 27 over it, 1.90× the bar. 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: CompactHashMap android/guava/src/com/google/common/collect/CompactHashMap.java:79— TooManyMethods — 55 methods. The bar is 30 methods; this is 25 over it, 1.83× the bar. 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: ImmutableMap guava/src/com/google/common/collect/ImmutableMap.java:79— TooManyMethods — 53 methods. The bar is 30 methods; this is 23 over it, 1.77× the bar. 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: ImmutableSortedSet guava/src/com/google/common/collect/ImmutableSortedSet.java:68— TooManyMethods — 53 methods. The bar is 30 methods; this is 23 over it, 1.77× the bar. 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: ImmutableSortedSet android/guava/src/com/google/common/collect/ImmutableSortedSet.java:65— TooManyMethods — 52 methods. The bar is 30 methods; this is 22 over it, 1.73× the bar. 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: CharMatcher guava/src/com/google/common/base/CharMatcher.java:66— TooManyMethods — 52 methods. The bar is 30 methods; this is 22 over it, 1.73× the bar. 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: CharMatcher android/guava/src/com/google/common/base/CharMatcher.java:66— TooManyMethods — 51 methods. The bar is 30 methods; this is 21 over it, 1.70× the bar. 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.
Duplicated block (16 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/Helpers.java:158— android/guava-testlib/src/com/google/common/collect/testing/Helpers.java:158-173 | guava-testlib/src/com/google/common/collect/testing/Helpers.java:158-173 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/Helpers.java` and `guava-testlib/src/com/google/common/collect/testing/Helpers.java` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 293 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (16 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java:183— android/guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java:183-198 | guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java:178-193 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java` and `guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 105 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (16 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java:188— android/guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java:188-203 | guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java:188-203 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java` and `guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 128 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 `android/guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java:188` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (16 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/AbstractMultisetSetCountTester.java:60— android/guava-testlib/src/com/google/common/collect/testing/google/AbstractMultisetSetCountTester.java:60-75 | guava-testlib/src/com/google/common/collect/testing/google/AbstractMultisetSetCountTester.java:60-75 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/AbstractMultisetSetCountTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/AbstractMultisetSetCountTester.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 45 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (16 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutIterableTester.java:97— android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutIterableTester.java:97-112 | guava-testlib/src/com/google/common/collect/testing/google/MultimapPutIterableTester.java:97-112 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutIterableTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultimapPutIterableTester.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 51 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (16 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/MapComputeTester.java:114— android/guava-testlib/src/com/google/common/collect/testing/testers/MapComputeTester.java:114-129 | guava-testlib/src/com/google/common/collect/testing/testers/MapComputeTester.java:113-128 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/MapComputeTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/MapComputeTester.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 126 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (16 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/MapHashCodeTester.java:63— android/guava-testlib/src/com/google/common/collect/testing/testers/MapHashCodeTester.java:63-78 | guava-testlib/src/com/google/common/collect/testing/testers/MapHashCodeTester.java:63-78 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/MapHashCodeTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/MapHashCodeTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (16 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/SortedMapNavigationTester.java:57— android/guava-testlib/src/com/google/common/collect/testing/testers/SortedMapNavigationTester.java:57-72 | guava-testlib/src/com/google/common/collect/testing/testers/SortedMapNavigationTester.java:57-72 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/SortedMapNavigationTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/SortedMapNavigationTester.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 40 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (16 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/SortedSetNavigationTester.java:52— android/guava-testlib/src/com/google/common/collect/testing/testers/SortedSetNavigationTester.java:52-67 | guava-testlib/src/com/google/common/collect/testing/testers/SortedSetNavigationTester.java:52-67 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/SortedSetNavigationTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/SortedSetNavigationTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (16 lines × 2) android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java:750— android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java:750-765 | guava-testlib/src/com/google/common/testing/ClassSanityTester.java:750-765 — before extracting anything, compare `android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java` and `guava-testlib/src/com/google/common/testing/ClassSanityTester.java` as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 368 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (16 lines × 2) android/guava-testlib/src/com/google/common/testing/NullPointerTester.java:436— android/guava-testlib/src/com/google/common/testing/NullPointerTester.java:436-451 | guava-testlib/src/com/google/common/testing/NullPointerTester.java:427-442 — before extracting anything, compare `android/guava-testlib/src/com/google/common/testing/NullPointerTester.java` and `guava-testlib/src/com/google/common/testing/NullPointerTester.java` as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 268 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (16 lines × 2) android/guava-testlib/src/com/google/common/testing/NullPointerTester.java:493— android/guava-testlib/src/com/google/common/testing/NullPointerTester.java:493-508 | guava-testlib/src/com/google/common/testing/NullPointerTester.java:484-499 — before extracting anything, compare `android/guava-testlib/src/com/google/common/testing/NullPointerTester.java` and `guava-testlib/src/com/google/common/testing/NullPointerTester.java` as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 268 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (16 lines × 2) android/guava-testlib/src/com/google/common/testing/NullPointerTester.java:598— android/guava-testlib/src/com/google/common/testing/NullPointerTester.java:598-613 | guava-testlib/src/com/google/common/testing/NullPointerTester.java:589-604 — before extracting anything, compare `android/guava-testlib/src/com/google/common/testing/NullPointerTester.java` and `guava-testlib/src/com/google/common/testing/NullPointerTester.java` as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 268 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (16 lines × 2) android/guava/src/com/google/common/base/FinalizableReferenceQueue.java:215— android/guava/src/com/google/common/base/FinalizableReferenceQueue.java:215-230 | guava/src/com/google/common/base/FinalizableReferenceQueue.java:215-230 — before extracting anything, compare `android/guava/src/com/google/common/base/FinalizableReferenceQueue.java` and `guava/src/com/google/common/base/FinalizableReferenceQueue.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 91 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (16 lines × 2) android/guava/src/com/google/common/base/Joiner.java:391— android/guava/src/com/google/common/base/Joiner.java:391-406 | guava/src/com/google/common/base/Joiner.java:427-442 — before extracting anything, compare `android/guava/src/com/google/common/base/Joiner.java` and `guava/src/com/google/common/base/Joiner.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 137 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (16 lines × 2) android/guava/src/com/google/common/base/Splitter.java:140— android/guava/src/com/google/common/base/Splitter.java:140-155 | guava/src/com/google/common/base/Splitter.java:140-155 — before extracting anything, compare `android/guava/src/com/google/common/base/Splitter.java` and `guava/src/com/google/common/base/Splitter.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 192 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (16 lines × 2) android/guava/src/com/google/common/base/Splitter.java:509— android/guava/src/com/google/common/base/Splitter.java:509-524 | guava/src/com/google/common/base/Splitter.java:507-522 — before extracting anything, compare `android/guava/src/com/google/common/base/Splitter.java` and `guava/src/com/google/common/base/Splitter.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 192 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (16 lines × 2) android/guava/src/com/google/common/cache/LocalCache.java:2254— android/guava/src/com/google/common/cache/LocalCache.java:2254-2269 | guava/src/com/google/common/cache/LocalCache.java:2344-2359 — before extracting anything, compare `android/guava/src/com/google/common/cache/LocalCache.java` and `guava/src/com/google/common/cache/LocalCache.java` as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1881 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (16 lines × 2) android/guava/src/com/google/common/cache/LocalCache.java:2299— android/guava/src/com/google/common/cache/LocalCache.java:2299-2314 | guava/src/com/google/common/cache/LocalCache.java:2389-2404 — before extracting anything, compare `android/guava/src/com/google/common/cache/LocalCache.java` and `guava/src/com/google/common/cache/LocalCache.java` as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1881 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (16 lines × 2) android/guava/src/com/google/common/cache/LocalCache.java:2647— android/guava/src/com/google/common/cache/LocalCache.java:2647-2662 | guava/src/com/google/common/cache/LocalCache.java:2737-2752 — before extracting anything, compare `android/guava/src/com/google/common/cache/LocalCache.java` and `guava/src/com/google/common/cache/LocalCache.java` as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1881 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (16 lines × 2) android/guava/src/com/google/common/collect/AbstractMapBasedMultimap.java:613— android/guava/src/com/google/common/collect/AbstractMapBasedMultimap.java:613-628 | guava/src/com/google/common/collect/AbstractMapBasedMultimap.java:621-636 — before extracting anything, compare `android/guava/src/com/google/common/collect/AbstractMapBasedMultimap.java` and `guava/src/com/google/common/collect/AbstractMapBasedMultimap.java` as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 408 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (16 lines × 2) android/guava/src/com/google/common/collect/Collections2.java:506— android/guava/src/com/google/common/collect/Collections2.java:506-521 | guava/src/com/google/common/collect/Collections2.java:532-547 — before extracting anything, compare `android/guava/src/com/google/common/collect/Collections2.java` and `guava/src/com/google/common/collect/Collections2.java` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 173 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (16 lines × 2) android/guava/src/com/google/common/collect/CompactHashMap.java:949— android/guava/src/com/google/common/collect/CompactHashMap.java:949-964 | guava/src/com/google/common/collect/CompactHashMap.java:1069-1084 — before extracting anything, compare `android/guava/src/com/google/common/collect/CompactHashMap.java` and `guava/src/com/google/common/collect/CompactHashMap.java` as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 479 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.
Duplicated block (16 lines × 2) android/guava/src/com/google/common/collect/CompactHashSet.java:627— android/guava/src/com/google/common/collect/CompactHashSet.java:627-642 | guava/src/com/google/common/collect/CompactHashSet.java:656-671 — before extracting anything, compare `android/guava/src/com/google/common/collect/CompactHashSet.java` and `guava/src/com/google/common/collect/CompactHashSet.java` as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 356 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.
Duplicated block (16 lines × 2) android/guava/src/com/google/common/collect/EnumMultiset.java:143— android/guava/src/com/google/common/collect/EnumMultiset.java:143-158 | guava/src/com/google/common/collect/EnumMultiset.java:144-159 — before extracting anything, compare `android/guava/src/com/google/common/collect/EnumMultiset.java` and `guava/src/com/google/common/collect/EnumMultiset.java` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 137 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (15 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java:122— android/guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java:122-136 | guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java:122-136 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java` and `guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 192 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (15 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapPutTester.java:39— android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapPutTester.java:39-53 | guava-testlib/src/com/google/common/collect/testing/google/ListMultimapPutTester.java:39-53 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapPutTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/ListMultimapPutTester.java` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 39 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (15 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/MultimapAsMapTester.java:52— android/guava-testlib/src/com/google/common/collect/testing/google/MultimapAsMapTester.java:52-66 | guava-testlib/src/com/google/common/collect/testing/google/MultimapAsMapTester.java:52-66 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultimapAsMapTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultimapAsMapTester.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 44 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 `android/guava-testlib/src/com/google/common/collect/testing/google/MultimapAsMapTester.java:52` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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) android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutIterableTester.java:116— android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutIterableTester.java:116-130 | guava-testlib/src/com/google/common/collect/testing/google/MultimapPutIterableTester.java:116-130 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutIterableTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultimapPutIterableTester.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 51 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (15 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java:53— android/guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java:53-67 | guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java:53-67 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 110 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (15 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/SetMultimapPutTester.java:49— android/guava-testlib/src/com/google/common/collect/testing/google/SetMultimapPutTester.java:49-63 | guava-testlib/src/com/google/common/collect/testing/google/SetMultimapPutTester.java:49-63 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/SetMultimapPutTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/SetMultimapPutTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (15 lines × 2) android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java:399— android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java:399-413 | guava-testlib/src/com/google/common/testing/ArbitraryInstances.java:411-425 — before extracting anything, compare `android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java` and `guava-testlib/src/com/google/common/testing/ArbitraryInstances.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 65 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 `android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java:399` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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) android/guava-testlib/src/com/google/common/testing/ClassPathUtil.java:45— android/guava-testlib/src/com/google/common/testing/ClassPathUtil.java:45-59 | guava-testlib/src/com/google/common/testing/ClassPathUtil.java:45-59 — before extracting anything, compare `android/guava-testlib/src/com/google/common/testing/ClassPathUtil.java` and `guava-testlib/src/com/google/common/testing/ClassPathUtil.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 3 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/testing/ClassPathUtil.java:45` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (15 lines × 2) android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java:608— android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java:608-622 | guava-testlib/src/com/google/common/testing/FreshValueGenerator.java:637-651 — before extracting anything, compare `android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java` and `guava-testlib/src/com/google/common/testing/FreshValueGenerator.java` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 152 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (15 lines × 2) android/guava/src/com/google/common/base/CharMatcher.java:450— android/guava/src/com/google/common/base/CharMatcher.java:450-464 | guava/src/com/google/common/base/CharMatcher.java:450-464 — before extracting anything, compare `android/guava/src/com/google/common/base/CharMatcher.java` and `guava/src/com/google/common/base/CharMatcher.java` as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 345 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (15 lines × 2) android/guava/src/com/google/common/base/Strings.java:304— android/guava/src/com/google/common/base/Strings.java:304-318 | guava/src/com/google/common/base/Strings.java:304-318 — before extracting anything, compare `android/guava/src/com/google/common/base/Strings.java` and `guava/src/com/google/common/base/Strings.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 127 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (15 lines × 2) android/guava/src/com/google/common/cache/LocalCache.java:1974— android/guava/src/com/google/common/cache/LocalCache.java:1974-1988 | guava/src/com/google/common/cache/LocalCache.java:1978-1992 — before extracting anything, compare `android/guava/src/com/google/common/cache/LocalCache.java` and `guava/src/com/google/common/cache/LocalCache.java` as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1881 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (15 lines × 2) android/guava/src/com/google/common/cache/LocalCache.java:2110— android/guava/src/com/google/common/cache/LocalCache.java:2110-2124 | guava/src/com/google/common/cache/LocalCache.java:2114-2128 — before extracting anything, compare `android/guava/src/com/google/common/cache/LocalCache.java` and `guava/src/com/google/common/cache/LocalCache.java` as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1881 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 `android/guava/src/com/google/common/cache/LocalCache.java:2110` 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) android/guava/src/com/google/common/cache/LocalCache.java:2665— android/guava/src/com/google/common/cache/LocalCache.java:2665-2679 | guava/src/com/google/common/cache/LocalCache.java:2755-2769 — before extracting anything, compare `android/guava/src/com/google/common/cache/LocalCache.java` and `guava/src/com/google/common/cache/LocalCache.java` as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1881 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (15 lines × 2) android/guava/src/com/google/common/cache/LocalCache.java:4070— android/guava/src/com/google/common/cache/LocalCache.java:4070-4084 | guava/src/com/google/common/cache/LocalCache.java:4180-4194 — before extracting anything, compare `android/guava/src/com/google/common/cache/LocalCache.java` and `guava/src/com/google/common/cache/LocalCache.java` as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1881 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 `android/guava/src/com/google/common/cache/LocalCache.java:4070` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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) android/guava/src/com/google/common/cache/LocalCache.java:4275— android/guava/src/com/google/common/cache/LocalCache.java:4275-4289 | guava/src/com/google/common/cache/LocalCache.java:4419-4433 — before extracting anything, compare `android/guava/src/com/google/common/cache/LocalCache.java` and `guava/src/com/google/common/cache/LocalCache.java` as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1881 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (15 lines × 2) android/guava/src/com/google/common/cache/LongAdder.java:131— android/guava/src/com/google/common/cache/LongAdder.java:131-145 | android/guava/src/com/google/common/hash/LongAdder.java:129-143 — `android/guava/src/com/google/common/cache/LongAdder.java` and `android/guava/src/com/google/common/hash/LongAdder.java` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 3 separate duplicated blocks between them, totalling at least 37 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (15 lines × 2) android/guava/src/com/google/common/collect/AbstractBiMap.java:140— android/guava/src/com/google/common/collect/AbstractBiMap.java:140-154 | guava/src/com/google/common/collect/AbstractBiMap.java:143-157 — before extracting anything, compare `android/guava/src/com/google/common/collect/AbstractBiMap.java` and `guava/src/com/google/common/collect/AbstractBiMap.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 80 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (15 lines × 2) android/guava/src/com/google/common/collect/CollectCollectors.java:446— android/guava/src/com/google/common/collect/CollectCollectors.java:446-460 | guava/src/com/google/common/collect/CollectCollectors.java:443-457 — before extracting anything, compare `android/guava/src/com/google/common/collect/CollectCollectors.java` and `guava/src/com/google/common/collect/CollectCollectors.java` as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 251 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (15 lines × 2) android/guava/src/com/google/common/collect/Collections2.java:315— android/guava/src/com/google/common/collect/Collections2.java:315-329 | guava/src/com/google/common/collect/Collections2.java:341-355 — before extracting anything, compare `android/guava/src/com/google/common/collect/Collections2.java` and `guava/src/com/google/common/collect/Collections2.java` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 173 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (15 lines × 2) android/guava/src/com/google/common/collect/ImmutableCollection.java:221— android/guava/src/com/google/common/collect/ImmutableCollection.java:221-235 | guava/src/com/google/common/collect/ImmutableCollection.java:215-229 — before extracting anything, compare `android/guava/src/com/google/common/collect/ImmutableCollection.java` and `guava/src/com/google/common/collect/ImmutableCollection.java` as WHOLE FILES: 97% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (15 lines × 2) android/guava/src/com/google/common/collect/ImmutableListMultimap.java:359— android/guava/src/com/google/common/collect/ImmutableListMultimap.java:359-373 | guava/src/com/google/common/collect/ImmutableListMultimap.java:357-371 — before extracting anything, compare `android/guava/src/com/google/common/collect/ImmutableListMultimap.java` and `guava/src/com/google/common/collect/ImmutableListMultimap.java` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 141 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (15 lines × 2) android/guava/src/com/google/common/collect/ImmutableRangeSet.java:116— android/guava/src/com/google/common/collect/ImmutableRangeSet.java:116-130 | guava/src/com/google/common/collect/ImmutableRangeSet.java:115-129 — before extracting anything, compare `android/guava/src/com/google/common/collect/ImmutableRangeSet.java` and `guava/src/com/google/common/collect/ImmutableRangeSet.java` as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 376 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (15 lines × 2) android/guava/src/com/google/common/collect/ImmutableRangeSet.java:697— android/guava/src/com/google/common/collect/ImmutableRangeSet.java:697-711 | guava/src/com/google/common/collect/ImmutableRangeSet.java:696-710 — before extracting anything, compare `android/guava/src/com/google/common/collect/ImmutableRangeSet.java` and `guava/src/com/google/common/collect/ImmutableRangeSet.java` as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 376 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (15 lines × 2) android/guava/src/com/google/common/collect/ImmutableSet.java:239— android/guava/src/com/google/common/collect/ImmutableSet.java:239-253 | guava/src/com/google/common/collect/ImmutableSet.java:643-657 — before extracting anything, compare `android/guava/src/com/google/common/collect/ImmutableSet.java` and `guava/src/com/google/common/collect/ImmutableSet.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 48 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (17 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/MultimapSizeTester.java:45— android/guava-testlib/src/com/google/common/collect/testing/google/MultimapSizeTester.java:45-61 | guava-testlib/src/com/google/common/collect/testing/google/MultimapSizeTester.java:45-61 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultimapSizeTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultimapSizeTester.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 37 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (17 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionToArrayTester.java:130— android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionToArrayTester.java:130-146 | guava-testlib/src/com/google/common/collect/testing/testers/CollectionToArrayTester.java:130-146 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionToArrayTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/CollectionToArrayTester.java` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 87 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 `android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionToArrayTester.java:130` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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) android/guava-testlib/src/com/google/common/collect/testing/testers/MapComputeIfPresentTester.java:125— android/guava-testlib/src/com/google/common/collect/testing/testers/MapComputeIfPresentTester.java:125-141 | guava-testlib/src/com/google/common/collect/testing/testers/MapComputeIfPresentTester.java:124-140 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/MapComputeIfPresentTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/MapComputeIfPresentTester.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 107 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (17 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/MapMergeTester.java:152— android/guava-testlib/src/com/google/common/collect/testing/testers/MapMergeTester.java:152-168 | guava-testlib/src/com/google/common/collect/testing/testers/MapMergeTester.java:151-167 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/MapMergeTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/MapMergeTester.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 120 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (17 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/NavigableMapNavigationTester.java:56— android/guava-testlib/src/com/google/common/collect/testing/testers/NavigableMapNavigationTester.java:56-72 | guava-testlib/src/com/google/common/collect/testing/testers/NavigableMapNavigationTester.java:56-72 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/NavigableMapNavigationTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/NavigableMapNavigationTester.java` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 81 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (17 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/NavigableSetNavigationTester.java:57— android/guava-testlib/src/com/google/common/collect/testing/testers/NavigableSetNavigationTester.java:57-73 | guava-testlib/src/com/google/common/collect/testing/testers/NavigableSetNavigationTester.java:57-73 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/NavigableSetNavigationTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/NavigableSetNavigationTester.java` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 88 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (17 lines × 2) android/guava-testlib/src/com/google/common/testing/EqualsTester.java:142— android/guava-testlib/src/com/google/common/testing/EqualsTester.java:142-158 | guava-testlib/src/com/google/common/testing/EqualsTester.java:142-158 — before extracting anything, compare `android/guava-testlib/src/com/google/common/testing/EqualsTester.java` and `guava-testlib/src/com/google/common/testing/EqualsTester.java` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 41 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (17 lines × 2) android/guava/src/com/google/common/base/CharMatcher.java:763— android/guava/src/com/google/common/base/CharMatcher.java:763-779 | guava/src/com/google/common/base/CharMatcher.java:763-779 — before extracting anything, compare `android/guava/src/com/google/common/base/CharMatcher.java` and `guava/src/com/google/common/base/CharMatcher.java` as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 345 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (17 lines × 2) android/guava/src/com/google/common/base/CharMatcher.java:866— android/guava/src/com/google/common/base/CharMatcher.java:866-882 | guava/src/com/google/common/base/CharMatcher.java:866-882 — before extracting anything, compare `android/guava/src/com/google/common/base/CharMatcher.java` and `guava/src/com/google/common/base/CharMatcher.java` as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 345 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (17 lines × 2) android/guava/src/com/google/common/base/Splitter.java:271— android/guava/src/com/google/common/base/Splitter.java:271-287 | guava/src/com/google/common/base/Splitter.java:271-287 — before extracting anything, compare `android/guava/src/com/google/common/base/Splitter.java` and `guava/src/com/google/common/base/Splitter.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 192 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (17 lines × 2) android/guava/src/com/google/common/base/Splitter.java:377— android/guava/src/com/google/common/base/Splitter.java:377-393 | guava/src/com/google/common/base/Splitter.java:377-393 — before extracting anything, compare `android/guava/src/com/google/common/base/Splitter.java` and `guava/src/com/google/common/base/Splitter.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 192 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (17 lines × 2) android/guava/src/com/google/common/base/Throwables.java:251— android/guava/src/com/google/common/base/Throwables.java:251-267 | guava/src/com/google/common/base/Throwables.java:251-267 — before extracting anything, compare `android/guava/src/com/google/common/base/Throwables.java` and `guava/src/com/google/common/base/Throwables.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 136 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (17 lines × 2) android/guava/src/com/google/common/cache/LocalCache.java:2015— android/guava/src/com/google/common/cache/LocalCache.java:2015-2031 | guava/src/com/google/common/cache/LocalCache.java:2019-2035 — before extracting anything, compare `android/guava/src/com/google/common/cache/LocalCache.java` and `guava/src/com/google/common/cache/LocalCache.java` as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1881 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (17 lines × 2) android/guava/src/com/google/common/cache/LocalCache.java:2693— android/guava/src/com/google/common/cache/LocalCache.java:2693-2709 | guava/src/com/google/common/cache/LocalCache.java:2783-2799 — before extracting anything, compare `android/guava/src/com/google/common/cache/LocalCache.java` and `guava/src/com/google/common/cache/LocalCache.java` as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1881 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 `android/guava/src/com/google/common/cache/LocalCache.java:2693` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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) android/guava/src/com/google/common/collect/AbstractMapBasedMultimap.java:193— android/guava/src/com/google/common/collect/AbstractMapBasedMultimap.java:193-209 | guava/src/com/google/common/collect/AbstractMapBasedMultimap.java:195-211 — before extracting anything, compare `android/guava/src/com/google/common/collect/AbstractMapBasedMultimap.java` and `guava/src/com/google/common/collect/AbstractMapBasedMultimap.java` as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 408 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (17 lines × 2) android/guava/src/com/google/common/collect/CompactHashing.java:182— android/guava/src/com/google/common/collect/CompactHashing.java:182-198 | guava/src/com/google/common/collect/CompactHashing.java:182-198 — before extracting anything, compare `android/guava/src/com/google/common/collect/CompactHashing.java` and `guava/src/com/google/common/collect/CompactHashing.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 67 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 `android/guava/src/com/google/common/collect/CompactHashing.java:182` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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) android/guava/src/com/google/common/collect/EnumMultiset.java:264— android/guava/src/com/google/common/collect/EnumMultiset.java:264-280 | guava/src/com/google/common/collect/EnumMultiset.java:265-281 — before extracting anything, compare `android/guava/src/com/google/common/collect/EnumMultiset.java` and `guava/src/com/google/common/collect/EnumMultiset.java` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 137 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (17 lines × 2) android/guava/src/com/google/common/collect/FluentIterable.java:297— android/guava/src/com/google/common/collect/FluentIterable.java:297-313 | guava/src/com/google/common/collect/FluentIterable.java:290-306 — before extracting anything, compare `android/guava/src/com/google/common/collect/FluentIterable.java` and `guava/src/com/google/common/collect/FluentIterable.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 76 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (17 lines × 2) android/guava/src/com/google/common/collect/ForwardingSortedSet.java:131— android/guava/src/com/google/common/collect/ForwardingSortedSet.java:131-147 | guava/src/com/google/common/collect/ForwardingSortedSet.java:131-147 — before extracting anything, compare `android/guava/src/com/google/common/collect/ForwardingSortedSet.java` and `guava/src/com/google/common/collect/ForwardingSortedSet.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (17 lines × 2) android/guava/src/com/google/common/collect/ImmutableRangeSet.java:171— android/guava/src/com/google/common/collect/ImmutableRangeSet.java:171-187 | guava/src/com/google/common/collect/ImmutableRangeSet.java:170-186 — before extracting anything, compare `android/guava/src/com/google/common/collect/ImmutableRangeSet.java` and `guava/src/com/google/common/collect/ImmutableRangeSet.java` as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 376 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (17 lines × 2) android/guava/src/com/google/common/collect/ImmutableRangeSet.java:617— android/guava/src/com/google/common/collect/ImmutableRangeSet.java:617-633 | guava/src/com/google/common/collect/ImmutableRangeSet.java:616-632 — before extracting anything, compare `android/guava/src/com/google/common/collect/ImmutableRangeSet.java` and `guava/src/com/google/common/collect/ImmutableRangeSet.java` as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 376 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (17 lines × 2) android/guava/src/com/google/common/collect/ImmutableRangeSet.java:637— android/guava/src/com/google/common/collect/ImmutableRangeSet.java:637-653 | guava/src/com/google/common/collect/ImmutableRangeSet.java:636-652 — before extracting anything, compare `android/guava/src/com/google/common/collect/ImmutableRangeSet.java` and `guava/src/com/google/common/collect/ImmutableRangeSet.java` as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 376 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (17 lines × 2) android/guava/src/com/google/common/collect/ImmutableSortedMap.java:470— android/guava/src/com/google/common/collect/ImmutableSortedMap.java:470-486 | guava/src/com/google/common/collect/ImmutableSortedMap.java:468-484 — before extracting anything, compare `android/guava/src/com/google/common/collect/ImmutableSortedMap.java` and `guava/src/com/google/common/collect/ImmutableSortedMap.java` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 178 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (17 lines × 2) android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java:318— android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java:318-334 | guava/src/com/google/common/collect/ImmutableSortedMultiset.java:301-317 — before extracting anything, compare `android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java` and `guava/src/com/google/common/collect/ImmutableSortedMultiset.java` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 91 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (17 lines × 2) android/guava/src/com/google/common/collect/Iterators.java:1339— android/guava/src/com/google/common/collect/Iterators.java:1339-1355 | guava/src/com/google/common/collect/Iterators.java:1339-1355 — before extracting anything, compare `android/guava/src/com/google/common/collect/Iterators.java` and `guava/src/com/google/common/collect/Iterators.java` as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 537 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
+ 45 more in this group — see findings.md.
D4 · Code Duplication· Members sharing a duplicated core (4 members, 50+ identical tokens) · ×58
Members sharing a duplicated core (4 members, 50+ identical tokens) android/guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java:212— android/guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java:212-222 | android/guava-testlib/src/com/google/common/collect/testing/google/DerivedGoogleCollectionGenerators.java:167-177 | guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java:212-222 | guava-testlib/src/com/google/common/collect/testing/google/DerivedGoogleCollectionGenerators.java:167-177 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) android/guava-testlib/src/com/google/common/collect/testing/Helpers.java:300— android/guava-testlib/src/com/google/common/collect/testing/Helpers.java:300-320 | android/guava-testlib/src/com/google/common/collect/testing/Helpers.java:324-344 | guava-testlib/src/com/google/common/collect/testing/Helpers.java:300-320 | guava-testlib/src/com/google/common/collect/testing/Helpers.java:324-344 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) android/guava-testlib/src/com/google/common/collect/testing/google/AbstractListMultimapTester.java:42— android/guava-testlib/src/com/google/common/collect/testing/google/AbstractListMultimapTester.java:42-56 | android/guava-testlib/src/com/google/common/collect/testing/google/AbstractMultimapTester.java:154-169 | guava-testlib/src/com/google/common/collect/testing/google/AbstractListMultimapTester.java:42-56 | guava-testlib/src/com/google/common/collect/testing/google/AbstractMultimapTester.java:154-169 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapPutTester.java:38— android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapPutTester.java:38-53 | android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapPutTester.java:57-74 | guava-testlib/src/com/google/common/collect/testing/google/ListMultimapPutTester.java:38-53 | guava-testlib/src/com/google/common/collect/testing/google/ListMultimapPutTester.java:57-74 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) android/guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java:134— android/guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java:134-143 | android/guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java:229-240 | guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java:134-143 | guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java:229-240 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) android/guava-testlib/src/com/google/common/collect/testing/google/MultisetIteratorTester.java:45— android/guava-testlib/src/com/google/common/collect/testing/google/MultisetIteratorTester.java:45-56 | android/guava-testlib/src/com/google/common/collect/testing/google/MultisetIteratorTester.java:70-81 | guava-testlib/src/com/google/common/collect/testing/google/MultisetIteratorTester.java:45-56 | guava-testlib/src/com/google/common/collect/testing/google/MultisetIteratorTester.java:70-81 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) android/guava-testlib/src/com/google/common/collect/testing/google/MultisetIteratorTester.java:59— android/guava-testlib/src/com/google/common/collect/testing/google/MultisetIteratorTester.java:59-67 | android/guava-testlib/src/com/google/common/collect/testing/google/MultisetIteratorTester.java:84-92 | guava-testlib/src/com/google/common/collect/testing/google/MultisetIteratorTester.java:59-67 | guava-testlib/src/com/google/common/collect/testing/google/MultisetIteratorTester.java:84-92 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionToArrayTester.java:128— android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionToArrayTester.java:128-146 | android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionToArrayTester.java:149-164 | guava-testlib/src/com/google/common/collect/testing/testers/CollectionToArrayTester.java:128-146 | guava-testlib/src/com/google/common/collect/testing/testers/CollectionToArrayTester.java:149-164 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) android/guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceAllTester.java:63— android/guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceAllTester.java:63-76 | android/guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceAllTester.java:80-93 | guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceAllTester.java:62-75 | guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceAllTester.java:79-92 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) android/guava-testlib/src/com/google/common/testing/ClassPathUtil.java:43— android/guava-testlib/src/com/google/common/testing/ClassPathUtil.java:43-59 | android/guava/src/com/google/common/reflect/ClassPath.java:660-674 | guava-testlib/src/com/google/common/testing/ClassPathUtil.java:43-59 | guava/src/com/google/common/reflect/ClassPath.java:660-674 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) android/guava/src/com/google/common/base/Joiner.java:521— android/guava/src/com/google/common/base/Joiner.java:521-537 | android/guava/src/com/google/common/collect/ImmutableCollection.java:399-415 | guava/src/com/google/common/base/Joiner.java:557-573 | guava/src/com/google/common/collect/ImmutableCollection.java:413-429 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) android/guava/src/com/google/common/cache/CacheBuilder.java:1093— android/guava/src/com/google/common/cache/CacheBuilder.java:1093-1129 | android/guava/src/com/google/common/collect/MapMaker.java:295-313 | guava/src/com/google/common/cache/CacheBuilder.java:1090-1126 | guava/src/com/google/common/collect/MapMaker.java:295-313 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) android/guava/src/com/google/common/cache/LocalCache.java:245— android/guava/src/com/google/common/cache/LocalCache.java:245-320 | android/guava/src/com/google/common/collect/MapMakerInternalMap.java:167-201 | guava/src/com/google/common/cache/LocalCache.java:249-324 | guava/src/com/google/common/collect/MapMakerInternalMap.java:167-201 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) android/guava/src/com/google/common/cache/LocalCache.java:1683— android/guava/src/com/google/common/cache/LocalCache.java:1683-1693 | android/guava/src/com/google/common/collect/MapMakerInternalMap.java:1084-1094 | guava/src/com/google/common/cache/LocalCache.java:1687-1697 | guava/src/com/google/common/collect/MapMakerInternalMap.java:1084-1094 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) android/guava/src/com/google/common/cache/LocalCache.java:2611— android/guava/src/com/google/common/cache/LocalCache.java:2611-2629 | android/guava/src/com/google/common/collect/MapMakerInternalMap.java:1411-1431 | guava/src/com/google/common/cache/LocalCache.java:2701-2719 | guava/src/com/google/common/collect/MapMakerInternalMap.java:1411-1431 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) android/guava/src/com/google/common/cache/LocalCache.java:4223— android/guava/src/com/google/common/cache/LocalCache.java:4223-4244 | android/guava/src/com/google/common/collect/MapMakerInternalMap.java:2543-2564 | guava/src/com/google/common/cache/LocalCache.java:4367-4388 | guava/src/com/google/common/collect/MapMakerInternalMap.java:2543-2564 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) android/guava/src/com/google/common/collect/AbstractMapEntry.java:49— android/guava/src/com/google/common/collect/AbstractMapEntry.java:49-56 | android/guava/src/com/google/common/collect/ForwardingMapEntry.java:96-103 | guava/src/com/google/common/collect/AbstractMapEntry.java:49-56 | guava/src/com/google/common/collect/ForwardingMapEntry.java:96-103 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) android/guava/src/com/google/common/collect/CartesianList.java:71— android/guava/src/com/google/common/collect/CartesianList.java:71-90 | android/guava/src/com/google/common/collect/CartesianList.java:93-112 | guava/src/com/google/common/collect/CartesianList.java:71-90 | guava/src/com/google/common/collect/CartesianList.java:93-112 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) android/guava/src/com/google/common/collect/CartesianList.java:153— android/guava/src/com/google/common/collect/CartesianList.java:153-169 | android/guava/src/com/google/common/collect/Sets.java:1553-1569 | guava/src/com/google/common/collect/CartesianList.java:153-169 | guava/src/com/google/common/collect/Sets.java:1602-1618 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) android/guava/src/com/google/common/collect/CollectCollectors.java:262— android/guava/src/com/google/common/collect/CollectCollectors.java:262-285 | android/guava/src/com/google/common/collect/CollectCollectors.java:291-311 | guava/src/com/google/common/collect/CollectCollectors.java:260-283 | guava/src/com/google/common/collect/CollectCollectors.java:289-309 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) android/guava/src/com/google/common/collect/CollectSpliterators.java:355— android/guava/src/com/google/common/collect/CollectSpliterators.java:355-369 | android/guava/src/com/google/common/collect/CollectSpliterators.java:481-495 | guava/src/com/google/common/collect/CollectSpliterators.java:353-367 | guava/src/com/google/common/collect/CollectSpliterators.java:477-491 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) android/guava/src/com/google/common/collect/CompactHashMap.java:404— android/guava/src/com/google/common/collect/CompactHashMap.java:404-413 | android/guava/src/com/google/common/collect/CompactHashSet.java:359-368 | guava/src/com/google/common/collect/CompactHashMap.java:408-417 | guava/src/com/google/common/collect/CompactHashSet.java:363-372 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) android/guava/src/com/google/common/collect/CompactHashMap.java:426— android/guava/src/com/google/common/collect/CompactHashMap.java:426-470 | android/guava/src/com/google/common/collect/CompactHashSet.java:380-414 | guava/src/com/google/common/collect/CompactHashMap.java:430-474 | guava/src/com/google/common/collect/CompactHashSet.java:384-418 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) android/guava/src/com/google/common/collect/CompactHashMap.java:564— android/guava/src/com/google/common/collect/CompactHashMap.java:564-606 | android/guava/src/com/google/common/collect/CompactHashSet.java:478-516 | guava/src/com/google/common/collect/CompactHashMap.java:568-610 | guava/src/com/google/common/collect/CompactHashSet.java:482-520 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) android/guava/src/com/google/common/collect/CompactHashMap.java:948— android/guava/src/com/google/common/collect/CompactHashMap.java:948-968 | android/guava/src/com/google/common/collect/CompactHashSet.java:626-646 | guava/src/com/google/common/collect/CompactHashMap.java:1068-1088 | guava/src/com/google/common/collect/CompactHashSet.java:655-675 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Duplicated block (18 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/Helpers.java:303— android/guava-testlib/src/com/google/common/collect/testing/Helpers.java:303-320 | guava-testlib/src/com/google/common/collect/testing/Helpers.java:303-320 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/Helpers.java` and `guava-testlib/src/com/google/common/collect/testing/Helpers.java` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 293 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 `android/guava-testlib/src/com/google/common/collect/testing/Helpers.java:303` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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) android/guava-testlib/src/com/google/common/collect/testing/testers/ListListIteratorTester.java:72— android/guava-testlib/src/com/google/common/collect/testing/testers/ListListIteratorTester.java:72-89 | guava-testlib/src/com/google/common/collect/testing/testers/ListListIteratorTester.java:72-89 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/ListListIteratorTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/ListListIteratorTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (18 lines × 2) android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java:556— android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java:556-573 | guava-testlib/src/com/google/common/testing/ClassSanityTester.java:556-573 — before extracting anything, compare `android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java` and `guava-testlib/src/com/google/common/testing/ClassSanityTester.java` as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 368 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (18 lines × 2) android/guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java:219— android/guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java:219-236 | guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java:219-236 — before extracting anything, compare `android/guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java` and `guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 118 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (18 lines × 2) android/guava/src/com/google/common/base/CaseFormat.java:138— android/guava/src/com/google/common/base/CaseFormat.java:138-155 | guava/src/com/google/common/base/CaseFormat.java:138-155 — before extracting anything, compare `android/guava/src/com/google/common/base/CaseFormat.java` and `guava/src/com/google/common/base/CaseFormat.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 57 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (18 lines × 2) android/guava/src/com/google/common/base/Equivalence.java:237— android/guava/src/com/google/common/base/Equivalence.java:237-254 | guava/src/com/google/common/base/Equivalence.java:246-263 — before extracting anything, compare `android/guava/src/com/google/common/base/Equivalence.java` and `guava/src/com/google/common/base/Equivalence.java` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (18 lines × 2) android/guava/src/com/google/common/base/FinalizableReferenceQueue.java:244— android/guava/src/com/google/common/base/FinalizableReferenceQueue.java:244-261 | guava/src/com/google/common/base/FinalizableReferenceQueue.java:244-261 — before extracting anything, compare `android/guava/src/com/google/common/base/FinalizableReferenceQueue.java` and `guava/src/com/google/common/base/FinalizableReferenceQueue.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 91 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (18 lines × 2) android/guava/src/com/google/common/base/Joiner.java:242— android/guava/src/com/google/common/base/Joiner.java:242-259 | guava/src/com/google/common/base/Joiner.java:278-295 — before extracting anything, compare `android/guava/src/com/google/common/base/Joiner.java` and `guava/src/com/google/common/base/Joiner.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 137 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (18 lines × 2) android/guava/src/com/google/common/base/Optional.java:348— android/guava/src/com/google/common/base/Optional.java:348-365 | guava/src/com/google/common/base/Optional.java:343-360 — before extracting anything, compare `android/guava/src/com/google/common/base/Optional.java` and `guava/src/com/google/common/base/Optional.java` as WHOLE FILES: 97% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (18 lines × 2) android/guava/src/com/google/common/base/Suppliers.java:305— android/guava/src/com/google/common/base/Suppliers.java:305-322 | guava/src/com/google/common/base/Suppliers.java:305-322 — before extracting anything, compare `android/guava/src/com/google/common/base/Suppliers.java` and `guava/src/com/google/common/base/Suppliers.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 89 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (18 lines × 2) android/guava/src/com/google/common/cache/LocalCache.java:2612— android/guava/src/com/google/common/cache/LocalCache.java:2612-2629 | guava/src/com/google/common/cache/LocalCache.java:2702-2719 — before extracting anything, compare `android/guava/src/com/google/common/cache/LocalCache.java` and `guava/src/com/google/common/cache/LocalCache.java` as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1881 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (18 lines × 2) android/guava/src/com/google/common/collect/CollectSpliterators.java:120— android/guava/src/com/google/common/collect/CollectSpliterators.java:120-137 | guava/src/com/google/common/collect/CollectSpliterators.java:114-131 — before extracting anything, compare `android/guava/src/com/google/common/collect/CollectSpliterators.java` and `guava/src/com/google/common/collect/CollectSpliterators.java` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 237 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 `android/guava/src/com/google/common/collect/CollectSpliterators.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 (18 lines × 2) android/guava/src/com/google/common/collect/Collections2.java:437— android/guava/src/com/google/common/collect/Collections2.java:437-454 | guava/src/com/google/common/collect/Collections2.java:463-480 — before extracting anything, compare `android/guava/src/com/google/common/collect/Collections2.java` and `guava/src/com/google/common/collect/Collections2.java` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 173 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (18 lines × 2) android/guava/src/com/google/common/collect/CompactHashSet.java:650— android/guava/src/com/google/common/collect/CompactHashSet.java:650-667 | guava/src/com/google/common/collect/CompactHashSet.java:679-696 — before extracting anything, compare `android/guava/src/com/google/common/collect/CompactHashSet.java` and `guava/src/com/google/common/collect/CompactHashSet.java` as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 356 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (18 lines × 2) android/guava/src/com/google/common/collect/DescendingMultiset.java:110— android/guava/src/com/google/common/collect/DescendingMultiset.java:110-127 | guava/src/com/google/common/collect/DescendingMultiset.java:110-127 — before extracting anything, compare `android/guava/src/com/google/common/collect/DescendingMultiset.java` and `guava/src/com/google/common/collect/DescendingMultiset.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (18 lines × 2) android/guava/src/com/google/common/collect/ImmutableListMultimap.java:419— android/guava/src/com/google/common/collect/ImmutableListMultimap.java:419-436 | guava/src/com/google/common/collect/ImmutableListMultimap.java:417-434 — before extracting anything, compare `android/guava/src/com/google/common/collect/ImmutableListMultimap.java` and `guava/src/com/google/common/collect/ImmutableListMultimap.java` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 141 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (18 lines × 2) android/guava/src/com/google/common/collect/ImmutableMap.java:1165— android/guava/src/com/google/common/collect/ImmutableMap.java:1165-1182 | guava/src/com/google/common/collect/ImmutableMap.java:1286-1303 — before extracting anything, compare `android/guava/src/com/google/common/collect/ImmutableMap.java` and `guava/src/com/google/common/collect/ImmutableMap.java` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 116 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (18 lines × 2) android/guava/src/com/google/common/collect/ImmutableMultimap.java:746— android/guava/src/com/google/common/collect/ImmutableMultimap.java:746-763 | guava/src/com/google/common/collect/ImmutableMultimap.java:773-790 — before extracting anything, compare `android/guava/src/com/google/common/collect/ImmutableMultimap.java` and `guava/src/com/google/common/collect/ImmutableMultimap.java` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 136 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (18 lines × 2) android/guava/src/com/google/common/collect/ImmutableRangeSet.java:361— android/guava/src/com/google/common/collect/ImmutableRangeSet.java:361-378 | guava/src/com/google/common/collect/ImmutableRangeSet.java:360-377 — before extracting anything, compare `android/guava/src/com/google/common/collect/ImmutableRangeSet.java` and `guava/src/com/google/common/collect/ImmutableRangeSet.java` as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 376 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (18 lines × 2) android/guava/src/com/google/common/collect/MapMaker.java:296— android/guava/src/com/google/common/collect/MapMaker.java:296-313 | guava/src/com/google/common/collect/MapMaker.java:296-313 — before extracting anything, compare `android/guava/src/com/google/common/collect/MapMaker.java` and `guava/src/com/google/common/collect/MapMaker.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 75 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (18 lines × 2) android/guava/src/com/google/common/collect/Maps.java:4055— android/guava/src/com/google/common/collect/Maps.java:4055-4072 | guava/src/com/google/common/collect/Maps.java:4266-4283 — before extracting anything, compare `android/guava/src/com/google/common/collect/Maps.java` and `guava/src/com/google/common/collect/Maps.java` as WHOLE FILES: this scan already matched 72 separate duplicated blocks between them, totalling at least 830 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (18 lines × 2) android/guava/src/com/google/common/collect/MoreCollectors.java:143— android/guava/src/com/google/common/collect/MoreCollectors.java:143-160 | guava/src/com/google/common/collect/MoreCollectors.java:142-159 — before extracting anything, compare `android/guava/src/com/google/common/collect/MoreCollectors.java` and `guava/src/com/google/common/collect/MoreCollectors.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 57 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (18 lines × 2) android/guava/src/com/google/common/collect/Multimaps.java:1693— android/guava/src/com/google/common/collect/Multimaps.java:1693-1710 | guava/src/com/google/common/collect/Multimaps.java:1699-1716 — before extracting anything, compare `android/guava/src/com/google/common/collect/Multimaps.java` and `guava/src/com/google/common/collect/Multimaps.java` as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 271 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 `android/guava/src/com/google/common/collect/Multimaps.java:1693` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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) android/guava/src/com/google/common/collect/Multisets.java:712— android/guava/src/com/google/common/collect/Multisets.java:712-729 | guava/src/com/google/common/collect/Multisets.java:718-735 — before extracting anything, compare `android/guava/src/com/google/common/collect/Multisets.java` and `guava/src/com/google/common/collect/Multisets.java` as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 470 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (18 lines × 2) android/guava/src/com/google/common/collect/Multisets.java:795— android/guava/src/com/google/common/collect/Multisets.java:795-812 | guava/src/com/google/common/collect/Multisets.java:801-818 — before extracting anything, compare `android/guava/src/com/google/common/collect/Multisets.java` and `guava/src/com/google/common/collect/Multisets.java` as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 470 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (23 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java:256— android/guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java:256-278 | guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java:256-278 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java` and `guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 192 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (23 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/Helpers.java:101— android/guava-testlib/src/com/google/common/collect/testing/Helpers.java:101-123 | guava-testlib/src/com/google/common/collect/testing/Helpers.java:101-123 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/Helpers.java` and `guava-testlib/src/com/google/common/collect/testing/Helpers.java` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 293 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 `android/guava-testlib/src/com/google/common/collect/testing/Helpers.java:101` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (23 lines × 2) android/guava-testlib/src/com/google/common/testing/RelationshipTester.java:78— android/guava-testlib/src/com/google/common/testing/RelationshipTester.java:78-100 | guava-testlib/src/com/google/common/testing/RelationshipTester.java:78-100 — before extracting anything, compare `android/guava-testlib/src/com/google/common/testing/RelationshipTester.java` and `guava-testlib/src/com/google/common/testing/RelationshipTester.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 72 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 `android/guava-testlib/src/com/google/common/testing/RelationshipTester.java:78` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (23 lines × 2) android/guava-testlib/src/com/google/common/testing/RelationshipTester.java:103— android/guava-testlib/src/com/google/common/testing/RelationshipTester.java:103-125 | guava-testlib/src/com/google/common/testing/RelationshipTester.java:103-125 — before extracting anything, compare `android/guava-testlib/src/com/google/common/testing/RelationshipTester.java` and `guava-testlib/src/com/google/common/testing/RelationshipTester.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 72 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (23 lines × 2) android/guava/src/com/google/common/base/Ascii.java:603— android/guava/src/com/google/common/base/Ascii.java:603-625 | guava/src/com/google/common/base/Ascii.java:603-625 — before extracting anything, compare `android/guava/src/com/google/common/base/Ascii.java` and `guava/src/com/google/common/base/Ascii.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 96 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (23 lines × 2) android/guava/src/com/google/common/base/internal/Finalizer.java:157— android/guava/src/com/google/common/base/internal/Finalizer.java:157-179 | guava/src/com/google/common/base/internal/Finalizer.java:157-179 — before extracting anything, compare `android/guava/src/com/google/common/base/internal/Finalizer.java` and `guava/src/com/google/common/base/internal/Finalizer.java` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 136 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (23 lines × 2) android/guava/src/com/google/common/cache/LocalCache.java:3213— android/guava/src/com/google/common/cache/LocalCache.java:3213-3235 | guava/src/com/google/common/cache/LocalCache.java:3303-3325 — before extracting anything, compare `android/guava/src/com/google/common/cache/LocalCache.java` and `guava/src/com/google/common/cache/LocalCache.java` as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1881 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 `android/guava/src/com/google/common/cache/LocalCache.java:3213` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (23 lines × 2) android/guava/src/com/google/common/cache/LocalCache.java:3290— android/guava/src/com/google/common/cache/LocalCache.java:3290-3312 | guava/src/com/google/common/cache/LocalCache.java:3380-3402 — before extracting anything, compare `android/guava/src/com/google/common/cache/LocalCache.java` and `guava/src/com/google/common/cache/LocalCache.java` as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1881 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 `android/guava/src/com/google/common/cache/LocalCache.java:3290` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (23 lines × 2) android/guava/src/com/google/common/collect/CollectCollectors.java:263— android/guava/src/com/google/common/collect/CollectCollectors.java:263-285 | guava/src/com/google/common/collect/CollectCollectors.java:261-283 — before extracting anything, compare `android/guava/src/com/google/common/collect/CollectCollectors.java` and `guava/src/com/google/common/collect/CollectCollectors.java` as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 251 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (23 lines × 2) android/guava/src/com/google/common/collect/FilteredEntryMultimap.java:201— android/guava/src/com/google/common/collect/FilteredEntryMultimap.java:201-223 | guava/src/com/google/common/collect/FilteredEntryMultimap.java:201-223 — before extracting anything, compare `android/guava/src/com/google/common/collect/FilteredEntryMultimap.java` and `guava/src/com/google/common/collect/FilteredEntryMultimap.java` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 221 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (23 lines × 2) android/guava/src/com/google/common/collect/FilteredEntryMultimap.java:360— android/guava/src/com/google/common/collect/FilteredEntryMultimap.java:360-382 | guava/src/com/google/common/collect/FilteredEntryMultimap.java:360-382 — before extracting anything, compare `android/guava/src/com/google/common/collect/FilteredEntryMultimap.java` and `guava/src/com/google/common/collect/FilteredEntryMultimap.java` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 221 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (23 lines × 2) android/guava/src/com/google/common/collect/LinkedListMultimap.java:623— android/guava/src/com/google/common/collect/LinkedListMultimap.java:623-645 | guava/src/com/google/common/collect/LinkedListMultimap.java:626-648 — before extracting anything, compare `android/guava/src/com/google/common/collect/LinkedListMultimap.java` and `guava/src/com/google/common/collect/LinkedListMultimap.java` as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 328 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (23 lines × 2) android/guava/src/com/google/common/collect/LinkedListMultimap.java:709— android/guava/src/com/google/common/collect/LinkedListMultimap.java:709-731 | guava/src/com/google/common/collect/LinkedListMultimap.java:712-734 — before extracting anything, compare `android/guava/src/com/google/common/collect/LinkedListMultimap.java` and `guava/src/com/google/common/collect/LinkedListMultimap.java` as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 328 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (23 lines × 2) android/guava/src/com/google/common/collect/Lists.java:1019— android/guava/src/com/google/common/collect/Lists.java:1019-1041 | guava/src/com/google/common/collect/Lists.java:1059-1081 — before extracting anything, compare `android/guava/src/com/google/common/collect/Lists.java` and `guava/src/com/google/common/collect/Lists.java` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 269 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (23 lines × 2) android/guava/src/com/google/common/collect/Multimaps.java:1740— android/guava/src/com/google/common/collect/Multimaps.java:1740-1762 | guava/src/com/google/common/collect/Multimaps.java:1757-1779 — before extracting anything, compare `android/guava/src/com/google/common/collect/Multimaps.java` and `guava/src/com/google/common/collect/Multimaps.java` as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 271 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (23 lines × 2) android/guava/src/com/google/common/collect/Multisets.java:860— android/guava/src/com/google/common/collect/Multisets.java:860-882 | guava/src/com/google/common/collect/Multisets.java:866-888 — before extracting anything, compare `android/guava/src/com/google/common/collect/Multisets.java` and `guava/src/com/google/common/collect/Multisets.java` as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 470 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (23 lines × 2) android/guava/src/com/google/common/collect/Queues.java:325— android/guava/src/com/google/common/collect/Queues.java:325-347 | guava/src/com/google/common/collect/Queues.java:324-346 — before extracting anything, compare `android/guava/src/com/google/common/collect/Queues.java` and `guava/src/com/google/common/collect/Queues.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 104 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (23 lines × 2) android/guava/src/com/google/common/collect/Sets.java:868— android/guava/src/com/google/common/collect/Sets.java:868-890 | guava/src/com/google/common/collect/Sets.java:897-919 — before extracting anything, compare `android/guava/src/com/google/common/collect/Sets.java` and `guava/src/com/google/common/collect/Sets.java` as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 722 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 `android/guava/src/com/google/common/collect/Sets.java:868` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (23 lines × 2) android/guava/src/com/google/common/collect/StandardTable.java:384— android/guava/src/com/google/common/collect/StandardTable.java:384-406 | guava/src/com/google/common/collect/StandardTable.java:401-423 — before extracting anything, compare `android/guava/src/com/google/common/collect/StandardTable.java` and `guava/src/com/google/common/collect/StandardTable.java` as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 375 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (23 lines × 2) android/guava/src/com/google/common/collect/TreeMultiset.java:186— android/guava/src/com/google/common/collect/TreeMultiset.java:186-208 | guava/src/com/google/common/collect/TreeMultiset.java:188-210 — before extracting anything, compare `android/guava/src/com/google/common/collect/TreeMultiset.java` and `guava/src/com/google/common/collect/TreeMultiset.java` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 678 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (23 lines × 2) android/guava/src/com/google/common/collect/TreeMultiset.java:211— android/guava/src/com/google/common/collect/TreeMultiset.java:211-233 | guava/src/com/google/common/collect/TreeMultiset.java:213-235 — before extracting anything, compare `android/guava/src/com/google/common/collect/TreeMultiset.java` and `guava/src/com/google/common/collect/TreeMultiset.java` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 678 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (23 lines × 2) android/guava/src/com/google/common/collect/TreeRangeSet.java:775— android/guava/src/com/google/common/collect/TreeRangeSet.java:775-797 | guava/src/com/google/common/collect/TreeRangeSet.java:775-797 — before extracting anything, compare `android/guava/src/com/google/common/collect/TreeRangeSet.java` and `guava/src/com/google/common/collect/TreeRangeSet.java` as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 494 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.
Duplicated block (23 lines × 2) android/guava/src/com/google/common/graph/DirectedGraphConnections.java:430— android/guava/src/com/google/common/graph/DirectedGraphConnections.java:430-452 | guava/src/com/google/common/graph/DirectedGraphConnections.java:430-452 — before extracting anything, compare `android/guava/src/com/google/common/graph/DirectedGraphConnections.java` and `guava/src/com/google/common/graph/DirectedGraphConnections.java` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 391 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (23 lines × 2) android/guava/src/com/google/common/graph/MapRetrievalCache.java:60— android/guava/src/com/google/common/graph/MapRetrievalCache.java:60-82 | guava/src/com/google/common/graph/MapRetrievalCache.java:60-82 — before extracting anything, compare `android/guava/src/com/google/common/graph/MapRetrievalCache.java` and `guava/src/com/google/common/graph/MapRetrievalCache.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (23 lines × 2) android/guava/src/com/google/common/graph/StandardMutableValueGraph.java:88— android/guava/src/com/google/common/graph/StandardMutableValueGraph.java:88-110 | guava/src/com/google/common/graph/StandardMutableValueGraph.java:88-110 — before extracting anything, compare `android/guava/src/com/google/common/graph/StandardMutableValueGraph.java` and `guava/src/com/google/common/graph/StandardMutableValueGraph.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 81 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (20 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/Helpers.java:198— android/guava-testlib/src/com/google/common/collect/testing/Helpers.java:198-217 | guava-testlib/src/com/google/common/collect/testing/Helpers.java:198-217 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/Helpers.java` and `guava-testlib/src/com/google/common/collect/testing/Helpers.java` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 293 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (20 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java:234— android/guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java:234-253 | guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java:234-253 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java` and `guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 128 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (20 lines × 2) android/guava-testlib/src/com/google/common/testing/GcFinalization.java:183— android/guava-testlib/src/com/google/common/testing/GcFinalization.java:183-202 | guava-testlib/src/com/google/common/testing/GcFinalization.java:183-202 — before extracting anything, compare `android/guava-testlib/src/com/google/common/testing/GcFinalization.java` and `guava-testlib/src/com/google/common/testing/GcFinalization.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 110 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (20 lines × 2) android/guava/src/com/google/common/base/CharMatcher.java:1259— android/guava/src/com/google/common/base/CharMatcher.java:1259-1278 | guava/src/com/google/common/base/CharMatcher.java:1275-1294 — before extracting anything, compare `android/guava/src/com/google/common/base/CharMatcher.java` and `guava/src/com/google/common/base/CharMatcher.java` as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 345 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (20 lines × 2) android/guava/src/com/google/common/base/Joiner.java:499— android/guava/src/com/google/common/base/Joiner.java:499-518 | guava/src/com/google/common/base/Joiner.java:535-554 — before extracting anything, compare `android/guava/src/com/google/common/base/Joiner.java` and `guava/src/com/google/common/base/Joiner.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 137 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (20 lines × 2) android/guava/src/com/google/common/base/Stopwatch.java:253— android/guava/src/com/google/common/base/Stopwatch.java:253-272 | guava/src/com/google/common/base/Stopwatch.java:246-265 — before extracting anything, compare `android/guava/src/com/google/common/base/Stopwatch.java` and `guava/src/com/google/common/base/Stopwatch.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 55 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (20 lines × 2) android/guava/src/com/google/common/base/Utf8.java:79— android/guava/src/com/google/common/base/Utf8.java:79-98 | guava/src/com/google/common/base/Utf8.java:79-98 — before extracting anything, compare `android/guava/src/com/google/common/base/Utf8.java` and `guava/src/com/google/common/base/Utf8.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 114 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (20 lines × 2) android/guava/src/com/google/common/cache/LocalCache.java:2088— android/guava/src/com/google/common/cache/LocalCache.java:2088-2107 | guava/src/com/google/common/cache/LocalCache.java:2092-2111 — before extracting anything, compare `android/guava/src/com/google/common/cache/LocalCache.java` and `guava/src/com/google/common/cache/LocalCache.java` as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1881 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (20 lines × 2) android/guava/src/com/google/common/cache/LocalCache.java:3819— android/guava/src/com/google/common/cache/LocalCache.java:3819-3838 | guava/src/com/google/common/cache/LocalCache.java:3929-3948 — before extracting anything, compare `android/guava/src/com/google/common/cache/LocalCache.java` and `guava/src/com/google/common/cache/LocalCache.java` as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1881 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (20 lines × 2) android/guava/src/com/google/common/cache/LocalCache.java:3892— android/guava/src/com/google/common/cache/LocalCache.java:3892-3911 | guava/src/com/google/common/cache/LocalCache.java:4002-4021 — before extracting anything, compare `android/guava/src/com/google/common/cache/LocalCache.java` and `guava/src/com/google/common/cache/LocalCache.java` as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1881 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (20 lines × 2) android/guava/src/com/google/common/cache/LocalCache.java:4049— android/guava/src/com/google/common/cache/LocalCache.java:4049-4068 | guava/src/com/google/common/cache/LocalCache.java:4159-4178 — before extracting anything, compare `android/guava/src/com/google/common/cache/LocalCache.java` and `guava/src/com/google/common/cache/LocalCache.java` as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1881 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 `android/guava/src/com/google/common/cache/LocalCache.java:4049` 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 (20 lines × 2) android/guava/src/com/google/common/collect/ArrayTable.java:225— android/guava/src/com/google/common/collect/ArrayTable.java:225-244 | guava/src/com/google/common/collect/ArrayTable.java:226-245 — before extracting anything, compare `android/guava/src/com/google/common/collect/ArrayTable.java` and `guava/src/com/google/common/collect/ArrayTable.java` as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 188 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (20 lines × 2) android/guava/src/com/google/common/collect/ArrayTable.java:555— android/guava/src/com/google/common/collect/ArrayTable.java:555-574 | guava/src/com/google/common/collect/ArrayTable.java:569-588 — before extracting anything, compare `android/guava/src/com/google/common/collect/ArrayTable.java` and `guava/src/com/google/common/collect/ArrayTable.java` as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 188 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (20 lines × 2) android/guava/src/com/google/common/collect/CollectCollectors.java:292— android/guava/src/com/google/common/collect/CollectCollectors.java:292-311 | guava/src/com/google/common/collect/CollectCollectors.java:290-309 — before extracting anything, compare `android/guava/src/com/google/common/collect/CollectCollectors.java` and `guava/src/com/google/common/collect/CollectCollectors.java` as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 251 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (20 lines × 2) android/guava/src/com/google/common/collect/MapMakerInternalMap.java:1412— android/guava/src/com/google/common/collect/MapMakerInternalMap.java:1412-1431 | guava/src/com/google/common/collect/MapMakerInternalMap.java:1412-1431 — before extracting anything, compare `android/guava/src/com/google/common/collect/MapMakerInternalMap.java` and `guava/src/com/google/common/collect/MapMakerInternalMap.java` as WHOLE FILES: this scan already matched 73 separate duplicated blocks between them, totalling at least 916 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (20 lines × 2) android/guava/src/com/google/common/collect/MapMakerInternalMap.java:1879— android/guava/src/com/google/common/collect/MapMakerInternalMap.java:1879-1898 | guava/src/com/google/common/collect/MapMakerInternalMap.java:1879-1898 — before extracting anything, compare `android/guava/src/com/google/common/collect/MapMakerInternalMap.java` and `guava/src/com/google/common/collect/MapMakerInternalMap.java` as WHOLE FILES: this scan already matched 73 separate duplicated blocks between them, totalling at least 916 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 `android/guava/src/com/google/common/collect/MapMakerInternalMap.java:1879` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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) android/guava/src/com/google/common/collect/MapMakerInternalMap.java:2320— android/guava/src/com/google/common/collect/MapMakerInternalMap.java:2320-2339 | guava/src/com/google/common/collect/MapMakerInternalMap.java:2320-2339 — before extracting anything, compare `android/guava/src/com/google/common/collect/MapMakerInternalMap.java` and `guava/src/com/google/common/collect/MapMakerInternalMap.java` as WHOLE FILES: this scan already matched 73 separate duplicated blocks between them, totalling at least 916 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (20 lines × 2) android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java:448— android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java:448-467 | guava/src/com/google/common/collect/MinMaxPriorityQueue.java:448-467 — before extracting anything, compare `android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java` and `guava/src/com/google/common/collect/MinMaxPriorityQueue.java` as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 374 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (20 lines × 2) android/guava/src/com/google/common/collect/Ordering.java:358— android/guava/src/com/google/common/collect/Ordering.java:358-377 | guava/src/com/google/common/collect/Ordering.java:358-377 — before extracting anything, compare `android/guava/src/com/google/common/collect/Ordering.java` and `guava/src/com/google/common/collect/Ordering.java` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 147 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (20 lines × 2) android/guava/src/com/google/common/collect/Ordering.java:783— android/guava/src/com/google/common/collect/Ordering.java:783-802 | guava/src/com/google/common/collect/Ordering.java:783-802 — before extracting anything, compare `android/guava/src/com/google/common/collect/Ordering.java` and `guava/src/com/google/common/collect/Ordering.java` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 147 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (20 lines × 2) android/guava/src/com/google/common/collect/Range.java:429— android/guava/src/com/google/common/collect/Range.java:429-448 | guava/src/com/google/common/collect/Range.java:441-460 — before extracting anything, compare `android/guava/src/com/google/common/collect/Range.java` and `guava/src/com/google/common/collect/Range.java` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 137 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (20 lines × 2) android/guava/src/com/google/common/collect/Sets.java:131— android/guava/src/com/google/common/collect/Sets.java:131-150 | guava/src/com/google/common/collect/Sets.java:133-152 — before extracting anything, compare `android/guava/src/com/google/common/collect/Sets.java` and `guava/src/com/google/common/collect/Sets.java` as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 722 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (20 lines × 2) android/guava/src/com/google/common/collect/Sets.java:1648— android/guava/src/com/google/common/collect/Sets.java:1648-1667 | guava/src/com/google/common/collect/Sets.java:1697-1716 — before extracting anything, compare `android/guava/src/com/google/common/collect/Sets.java` and `guava/src/com/google/common/collect/Sets.java` as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 722 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (20 lines × 2) android/guava/src/com/google/common/collect/TreeMultiset.java:289— android/guava/src/com/google/common/collect/TreeMultiset.java:289-308 | guava/src/com/google/common/collect/TreeMultiset.java:291-310 — before extracting anything, compare `android/guava/src/com/google/common/collect/TreeMultiset.java` and `guava/src/com/google/common/collect/TreeMultiset.java` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 678 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (20 lines × 2) android/guava/src/com/google/common/collect/TreeMultiset.java:949— android/guava/src/com/google/common/collect/TreeMultiset.java:949-968 | guava/src/com/google/common/collect/TreeMultiset.java:961-980 — before extracting anything, compare `android/guava/src/com/google/common/collect/TreeMultiset.java` and `guava/src/com/google/common/collect/TreeMultiset.java` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 678 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (21 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/Helpers.java:484— android/guava-testlib/src/com/google/common/collect/testing/Helpers.java:484-504 | guava-testlib/src/com/google/common/collect/testing/Helpers.java:484-504 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/Helpers.java` and `guava-testlib/src/com/google/common/collect/testing/Helpers.java` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 293 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (21 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/AbstractBiMapTester.java:67— android/guava-testlib/src/com/google/common/collect/testing/google/AbstractBiMapTester.java:67-87 | guava-testlib/src/com/google/common/collect/testing/google/AbstractBiMapTester.java:67-87 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/AbstractBiMapTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/AbstractBiMapTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (21 lines × 2) android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java:533— android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java:533-553 | guava-testlib/src/com/google/common/testing/ClassSanityTester.java:533-553 — before extracting anything, compare `android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java` and `guava-testlib/src/com/google/common/testing/ClassSanityTester.java` as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 368 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (21 lines × 2) android/guava/src/com/google/common/base/Converter.java:274— android/guava/src/com/google/common/base/Converter.java:274-294 | guava/src/com/google/common/base/Converter.java:274-294 — before extracting anything, compare `android/guava/src/com/google/common/base/Converter.java` and `guava/src/com/google/common/base/Converter.java` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 66 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (21 lines × 2) android/guava/src/com/google/common/base/SmallCharMatcher.java:113— android/guava/src/com/google/common/base/SmallCharMatcher.java:113-133 | guava/src/com/google/common/base/SmallCharMatcher.java:113-133 — before extracting anything, compare `android/guava/src/com/google/common/base/SmallCharMatcher.java` and `guava/src/com/google/common/base/SmallCharMatcher.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 65 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (21 lines × 2) android/guava/src/com/google/common/base/Splitter.java:213— android/guava/src/com/google/common/base/Splitter.java:213-233 | guava/src/com/google/common/base/Splitter.java:213-233 — before extracting anything, compare `android/guava/src/com/google/common/base/Splitter.java` and `guava/src/com/google/common/base/Splitter.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 192 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (21 lines × 2) android/guava/src/com/google/common/cache/LocalCache.java:2568— android/guava/src/com/google/common/cache/LocalCache.java:2568-2588 | guava/src/com/google/common/cache/LocalCache.java:2658-2678 — before extracting anything, compare `android/guava/src/com/google/common/cache/LocalCache.java` and `guava/src/com/google/common/cache/LocalCache.java` as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1881 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (21 lines × 2) android/guava/src/com/google/common/collect/AbstractMapBasedMultimap.java:229— android/guava/src/com/google/common/collect/AbstractMapBasedMultimap.java:229-249 | guava/src/com/google/common/collect/AbstractMapBasedMultimap.java:231-251 — before extracting anything, compare `android/guava/src/com/google/common/collect/AbstractMapBasedMultimap.java` and `guava/src/com/google/common/collect/AbstractMapBasedMultimap.java` as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 408 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (21 lines × 2) android/guava/src/com/google/common/collect/CompactHashMap.java:473— android/guava/src/com/google/common/collect/CompactHashMap.java:473-493 | guava/src/com/google/common/collect/CompactHashMap.java:477-497 — before extracting anything, compare `android/guava/src/com/google/common/collect/CompactHashMap.java` and `guava/src/com/google/common/collect/CompactHashMap.java` as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 479 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (21 lines × 2) android/guava/src/com/google/common/collect/ImmutableMultimap.java:277— android/guava/src/com/google/common/collect/ImmutableMultimap.java:277-297 | guava/src/com/google/common/collect/ImmutableMultimap.java:279-299 — before extracting anything, compare `android/guava/src/com/google/common/collect/ImmutableMultimap.java` and `guava/src/com/google/common/collect/ImmutableMultimap.java` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 136 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (21 lines × 2) android/guava/src/com/google/common/collect/ImmutableRangeSet.java:566— android/guava/src/com/google/common/collect/ImmutableRangeSet.java:566-586 | guava/src/com/google/common/collect/ImmutableRangeSet.java:565-585 — before extracting anything, compare `android/guava/src/com/google/common/collect/ImmutableRangeSet.java` and `guava/src/com/google/common/collect/ImmutableRangeSet.java` as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 376 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (21 lines × 2) android/guava/src/com/google/common/collect/Iterators.java:997— android/guava/src/com/google/common/collect/Iterators.java:997-1017 | guava/src/com/google/common/collect/Iterators.java:997-1017 — before extracting anything, compare `android/guava/src/com/google/common/collect/Iterators.java` and `guava/src/com/google/common/collect/Iterators.java` as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 537 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (21 lines × 2) android/guava/src/com/google/common/collect/Range.java:525— android/guava/src/com/google/common/collect/Range.java:525-545 | guava/src/com/google/common/collect/Range.java:537-557 — before extracting anything, compare `android/guava/src/com/google/common/collect/Range.java` and `guava/src/com/google/common/collect/Range.java` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 137 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (21 lines × 2) android/guava/src/com/google/common/collect/StandardTable.java:259— android/guava/src/com/google/common/collect/StandardTable.java:259-279 | guava/src/com/google/common/collect/StandardTable.java:261-281 — before extracting anything, compare `android/guava/src/com/google/common/collect/StandardTable.java` and `guava/src/com/google/common/collect/StandardTable.java` as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 375 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (21 lines × 2) android/guava/src/com/google/common/collect/Streams.java:195— android/guava/src/com/google/common/collect/Streams.java:195-215 | guava/src/com/google/common/collect/Streams.java:189-209 — before extracting anything, compare `android/guava/src/com/google/common/collect/Streams.java` and `guava/src/com/google/common/collect/Streams.java` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 481 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (21 lines × 2) android/guava/src/com/google/common/collect/Streams.java:227— android/guava/src/com/google/common/collect/Streams.java:227-247 | guava/src/com/google/common/collect/Streams.java:221-241 — before extracting anything, compare `android/guava/src/com/google/common/collect/Streams.java` and `guava/src/com/google/common/collect/Streams.java` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 481 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (21 lines × 2) android/guava/src/com/google/common/collect/Streams.java:259— android/guava/src/com/google/common/collect/Streams.java:259-279 | guava/src/com/google/common/collect/Streams.java:253-273 — before extracting anything, compare `android/guava/src/com/google/common/collect/Streams.java` and `guava/src/com/google/common/collect/Streams.java` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 481 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (21 lines × 2) android/guava/src/com/google/common/collect/Streams.java:291— android/guava/src/com/google/common/collect/Streams.java:291-311 | guava/src/com/google/common/collect/Streams.java:285-305 — before extracting anything, compare `android/guava/src/com/google/common/collect/Streams.java` and `guava/src/com/google/common/collect/Streams.java` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 481 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (21 lines × 2) android/guava/src/com/google/common/collect/TopKSelector.java:138— android/guava/src/com/google/common/collect/TopKSelector.java:138-158 | guava/src/com/google/common/collect/TopKSelector.java:139-159 — before extracting anything, compare `android/guava/src/com/google/common/collect/TopKSelector.java` and `guava/src/com/google/common/collect/TopKSelector.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 101 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (21 lines × 2) android/guava/src/com/google/common/collect/TreeMultiset.java:360— android/guava/src/com/google/common/collect/TreeMultiset.java:360-380 | guava/src/com/google/common/collect/TreeMultiset.java:362-382 — before extracting anything, compare `android/guava/src/com/google/common/collect/TreeMultiset.java` and `guava/src/com/google/common/collect/TreeMultiset.java` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 678 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (21 lines × 2) android/guava/src/com/google/common/collect/TreeMultiset.java:404— android/guava/src/com/google/common/collect/TreeMultiset.java:404-424 | guava/src/com/google/common/collect/TreeMultiset.java:406-426 — before extracting anything, compare `android/guava/src/com/google/common/collect/TreeMultiset.java` and `guava/src/com/google/common/collect/TreeMultiset.java` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 678 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (21 lines × 2) android/guava/src/com/google/common/collect/TreeMultiset.java:427— android/guava/src/com/google/common/collect/TreeMultiset.java:427-447 | guava/src/com/google/common/collect/TreeMultiset.java:429-449 — before extracting anything, compare `android/guava/src/com/google/common/collect/TreeMultiset.java` and `guava/src/com/google/common/collect/TreeMultiset.java` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 678 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (21 lines × 2) android/guava/src/com/google/common/eventbus/Dispatcher.java:100— android/guava/src/com/google/common/eventbus/Dispatcher.java:100-120 | guava/src/com/google/common/eventbus/Dispatcher.java:100-120 — before extracting anything, compare `android/guava/src/com/google/common/eventbus/Dispatcher.java` and `guava/src/com/google/common/eventbus/Dispatcher.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (21 lines × 2) android/guava/src/com/google/common/graph/AbstractDirectedNetworkConnections.java:66— android/guava/src/com/google/common/graph/AbstractDirectedNetworkConnections.java:66-86 | guava/src/com/google/common/graph/AbstractDirectedNetworkConnections.java:66-86 — before extracting anything, compare `android/guava/src/com/google/common/graph/AbstractDirectedNetworkConnections.java` and `guava/src/com/google/common/graph/AbstractDirectedNetworkConnections.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 52 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (21 lines × 2) android/guava/src/com/google/common/graph/EndpointPairIterator.java:125— android/guava/src/com/google/common/graph/EndpointPairIterator.java:125-145 | guava/src/com/google/common/graph/EndpointPairIterator.java:125-145 — before extracting anything, compare `android/guava/src/com/google/common/graph/EndpointPairIterator.java` and `guava/src/com/google/common/graph/EndpointPairIterator.java` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 41 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
FileTooLong: cache/LocalCache.java guava/src/com/google/common/cache/LocalCache.java— FileTooLong — 2906 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: LocalCache (112-4996). The bar is 500 significant lines; this is 2406 over it, 5.81× the bar. 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: cache/LocalCache.java android/guava/src/com/google/common/cache/LocalCache.java— FileTooLong — 2778 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: LocalCache (108-4823). The bar is 500 significant lines; this is 2278 over it, 5.56× the bar. 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: collect/Maps.java guava/src/com/google/common/collect/Maps.java— FileTooLong — 2058 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1558 over it, 4.12× the bar. 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: collect/Maps.java android/guava/src/com/google/common/collect/Maps.java— FileTooLong — 1923 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1423 over it, 3.85× the bar. 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: collect/MapMakerInternalMap.java android/guava/src/com/google/common/collect/MapMakerInternalMap.java— FileTooLong — 1632 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: MapMakerInternalMap (78-2918). The bar is 500 significant lines; this is 1132 over it, 3.26× the bar. 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: collect/MapMakerInternalMap.java guava/src/com/google/common/collect/MapMakerInternalMap.java— FileTooLong — 1632 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: MapMakerInternalMap (78-2918). The bar is 500 significant lines; this is 1132 over it, 3.26× the bar. 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: collect/Synchronized.java guava/src/com/google/common/collect/Synchronized.java— FileTooLong — 1284 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: Synchronized (87-2213). The bar is 500 significant lines; this is 784 over it, 2.57× the bar. 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: collect/Synchronized.java android/guava/src/com/google/common/collect/Synchronized.java— FileTooLong — 1190 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: Synchronized (78-2062). The bar is 500 significant lines; this is 690 over it, 2.38× the bar. 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: collect/Sets.java guava/src/com/google/common/collect/Sets.java— FileTooLong — 998 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: Sets (87-2348). The bar is 500 significant lines; this is 498 over it, 2.00× the bar. 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: collect/Sets.java android/guava/src/com/google/common/collect/Sets.java— FileTooLong — 961 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: Sets (85-2277). The bar is 500 significant lines; this is 461 over it, 1.92× the bar. 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: collect/AbstractMapBasedMultimap.java guava/src/com/google/common/collect/AbstractMapBasedMultimap.java— FileTooLong — 944 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 444 over it, 1.89× the bar. 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: collect/AbstractMapBasedMultimap.java android/guava/src/com/google/common/collect/AbstractMapBasedMultimap.java— FileTooLong — 907 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 407 over it, 1.81× the bar. 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: collect/Multimaps.java guava/src/com/google/common/collect/Multimaps.java— FileTooLong — 897 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 397 over it, 1.79× the bar. 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: concurrent/ClosingFuture.java guava/src/com/google/common/util/concurrent/ClosingFuture.java— FileTooLong — 892 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 392 over it, 1.78× the bar. 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: collect/Multimaps.java android/guava/src/com/google/common/collect/Multimaps.java— FileTooLong — 886 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 386 over it, 1.77× the bar. 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: concurrent/ClosingFuture.java android/guava/src/com/google/common/util/concurrent/ClosingFuture.java— FileTooLong — 877 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 377 over it, 1.75× the bar. 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: base/CharMatcher.java guava/src/com/google/common/base/CharMatcher.java— FileTooLong — 798 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 298 over it, 1.60× the bar. 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: base/CharMatcher.java android/guava/src/com/google/common/base/CharMatcher.java— FileTooLong — 790 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 290 over it, 1.58× the bar. 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: collect/HashBiMap.java android/guava/src/com/google/common/collect/HashBiMap.java— FileTooLong — 707 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: HashBiMap (59-1184). The bar is 500 significant lines; this is 207 over it, 1.41× the bar. 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: math/LongMath.java android/guava/src/com/google/common/math/LongMath.java— FileTooLong — 706 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: LongMath (55-1373). The bar is 500 significant lines; this is 206 over it, 1.41× the bar. 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: math/LongMath.java guava/src/com/google/common/math/LongMath.java— FileTooLong — 706 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: LongMath (55-1373). The bar is 500 significant lines; this is 206 over it, 1.41× the bar. 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: collect/ImmutableSortedMap.java android/guava/src/com/google/common/collect/ImmutableSortedMap.java— FileTooLong — 701 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 201 over it, 1.40× the bar. 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: collect/TreeMultiset.java guava/src/com/google/common/collect/TreeMultiset.java— FileTooLong — 699 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: TreeMultiset (62-1104). The bar is 500 significant lines; this is 199 over it, 1.40× the bar. 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: collect/TreeMultiset.java android/guava/src/com/google/common/collect/TreeMultiset.java— FileTooLong — 690 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: TreeMultiset (60-1092). The bar is 500 significant lines; this is 190 over it, 1.38× the bar. 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: reflect/TypeToken.java android/guava/src/com/google/common/reflect/TypeToken.java— FileTooLong — 690 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 190 over it, 1.38× the bar. 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.
ClassTooLong: LocalCache guava/src/com/google/common/cache/LocalCache.java:112— ClassTooLong — 2824 significant lines (blank, comment-only and punctuation-only lines excluded), 72 methods. The bar is 400 significant lines; this is 2424 over it, 7.06× the bar. 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.
ClassTooLong: LocalCache android/guava/src/com/google/common/cache/LocalCache.java:108— ClassTooLong — 2700 significant lines (blank, comment-only and punctuation-only lines excluded), 67 methods. The bar is 400 significant lines; this is 2300 over it, 6.75× the bar. 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.
ClassTooLong: MapMakerInternalMap android/guava/src/com/google/common/collect/MapMakerInternalMap.java:78— ClassTooLong — 1588 significant lines (blank, comment-only and punctuation-only lines excluded), 41 methods. The bar is 400 significant lines; this is 1188 over it, 3.97× the bar. 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.
ClassTooLong: MapMakerInternalMap guava/src/com/google/common/collect/MapMakerInternalMap.java:78— ClassTooLong — 1588 significant lines (blank, comment-only and punctuation-only lines excluded), 41 methods. The bar is 400 significant lines; this is 1188 over it, 3.97× the bar. 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.
ClassTooLong: Synchronized guava/src/com/google/common/collect/Synchronized.java:87— ClassTooLong — 1242 significant lines (blank, comment-only and punctuation-only lines excluded), 23 methods. The bar is 400 significant lines; this is 842 over it, 3.11× the bar. 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.
ClassTooLong: Synchronized android/guava/src/com/google/common/collect/Synchronized.java:78— ClassTooLong — 1157 significant lines (blank, comment-only and punctuation-only lines excluded), 23 methods. The bar is 400 significant lines; this is 757 over it, 2.89× the bar. 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.
ClassTooLong: Sets guava/src/com/google/common/collect/Sets.java:87— ClassTooLong — 943 significant lines (blank, comment-only and punctuation-only lines excluded), 44 methods. The bar is 400 significant lines; this is 543 over it, 2.36× the bar. 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.
ClassTooLong: Sets android/guava/src/com/google/common/collect/Sets.java:85— ClassTooLong — 908 significant lines (blank, comment-only and punctuation-only lines excluded), 44 methods. The bar is 400 significant lines; this is 508 over it, 2.27× the bar. 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.
ClassTooLong: LongMath android/guava/src/com/google/common/math/LongMath.java:55— ClassTooLong — 683 significant lines (blank, comment-only and punctuation-only lines excluded), 30 methods. The bar is 400 significant lines; this is 283 over it, 1.71× the bar. 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.
ClassTooLong: LongMath guava/src/com/google/common/math/LongMath.java:55— ClassTooLong — 683 significant lines (blank, comment-only and punctuation-only lines excluded), 30 methods. The bar is 400 significant lines; this is 283 over it, 1.71× the bar. 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.
ClassTooLong: HashBiMap android/guava/src/com/google/common/collect/HashBiMap.java:59— ClassTooLong — 679 significant lines (blank, comment-only and punctuation-only lines excluded), 44 methods. The bar is 400 significant lines; this is 279 over it, 1.70× the bar. 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.
ClassTooLong: TreeMultiset guava/src/com/google/common/collect/TreeMultiset.java:62— ClassTooLong — 674 significant lines (blank, comment-only and punctuation-only lines excluded), 32 methods. The bar is 400 significant lines; this is 274 over it, 1.69× the bar. 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.
ClassTooLong: TreeMultiset android/guava/src/com/google/common/collect/TreeMultiset.java:60— ClassTooLong — 667 significant lines (blank, comment-only and punctuation-only lines excluded), 31 methods. The bar is 400 significant lines; this is 267 over it, 1.67× the bar. 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.
ClassTooLong: BaseEncoding android/guava/src/com/google/common/io/BaseEncoding.java:133— ClassTooLong — 653 significant lines (blank, comment-only and punctuation-only lines excluded), 30 methods. The bar is 400 significant lines; this is 253 over it, 1.63× the bar. 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.
ClassTooLong: BaseEncoding guava/src/com/google/common/io/BaseEncoding.java:133— ClassTooLong — 653 significant lines (blank, comment-only and punctuation-only lines excluded), 30 methods. The bar is 400 significant lines; this is 253 over it, 1.63× the bar. 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.
ClassTooLong: ImmutableMap guava/src/com/google/common/collect/ImmutableMap.java:79— ClassTooLong — 576 significant lines (blank, comment-only and punctuation-only lines excluded), 53 methods. The bar is 400 significant lines; this is 176 over it, 1.44× the bar. 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.
ClassTooLong: ImmutableMap android/guava/src/com/google/common/collect/ImmutableMap.java:75— ClassTooLong — 543 significant lines (blank, comment-only and punctuation-only lines excluded), 43 methods. The bar is 400 significant lines; this is 143 over it, 1.36× the bar. 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.
ClassTooLong: StandardTable guava/src/com/google/common/collect/StandardTable.java:80— ClassTooLong — 540 significant lines (blank, comment-only and punctuation-only lines excluded), 27 methods. The bar is 400 significant lines; this is 140 over it, 1.35× the bar. 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.
ClassTooLong: FreshValueGenerator guava-testlib/src/com/google/common/testing/FreshValueGenerator.java:140— ClassTooLong — 537 significant lines (blank, comment-only and punctuation-only lines excluded), 123 methods. The bar is 400 significant lines; this is 137 over it, 1.34× the bar. 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.
ClassTooLong: HashBiMap guava/src/com/google/common/collect/HashBiMap.java:62— ClassTooLong — 523 significant lines (blank, comment-only and punctuation-only lines excluded), 35 methods. The bar is 400 significant lines; this is 123 over it, 1.31× the bar. 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.
ClassTooLong: FreshValueGenerator android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java:136— ClassTooLong — 522 significant lines (blank, comment-only and punctuation-only lines excluded), 118 methods. The bar is 400 significant lines; this is 122 over it, 1.31× the bar. 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.
ClassTooLong: StandardTable android/guava/src/com/google/common/collect/StandardTable.java:78— ClassTooLong — 517 significant lines (blank, comment-only and punctuation-only lines excluded), 26 methods. The bar is 400 significant lines; this is 117 over it, 1.29× the bar. 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.
ClassTooLong: Preconditions android/guava/src/com/google/common/base/Preconditions.java:117— ClassTooLong — 487 significant lines (blank, comment-only and punctuation-only lines excluded), 84 methods. The bar is 400 significant lines; this is 87 over it, 1.22× the bar. 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.
ClassTooLong: Preconditions guava/src/com/google/common/base/Preconditions.java:117— ClassTooLong — 487 significant lines (blank, comment-only and punctuation-only lines excluded), 84 methods. The bar is 400 significant lines; this is 87 over it, 1.22× the bar. 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.
ClassTooLong: TreeRangeMap guava/src/com/google/common/collect/TreeRangeMap.java:59— ClassTooLong — 486 significant lines (blank, comment-only and punctuation-only lines excluded), 24 methods. The bar is 400 significant lines; this is 86 over it, 1.22× the bar. 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.
Duplicated block (22 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/Helpers.java:130— android/guava-testlib/src/com/google/common/collect/testing/Helpers.java:130-151 | guava-testlib/src/com/google/common/collect/testing/Helpers.java:130-151 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/Helpers.java` and `guava-testlib/src/com/google/common/collect/testing/Helpers.java` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 293 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (22 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/Helpers.java:220— android/guava-testlib/src/com/google/common/collect/testing/Helpers.java:220-241 | guava-testlib/src/com/google/common/collect/testing/Helpers.java:220-241 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/Helpers.java` and `guava-testlib/src/com/google/common/collect/testing/Helpers.java` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 293 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (22 lines × 2) android/guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java:137— android/guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java:137-158 | guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java:137-158 — before extracting anything, compare `android/guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java` and `guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 118 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (22 lines × 2) android/guava-testlib/src/com/google/common/testing/GcFinalization.java:211— android/guava-testlib/src/com/google/common/testing/GcFinalization.java:211-232 | guava-testlib/src/com/google/common/testing/GcFinalization.java:211-232 — before extracting anything, compare `android/guava-testlib/src/com/google/common/testing/GcFinalization.java` and `guava-testlib/src/com/google/common/testing/GcFinalization.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 110 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (22 lines × 2) android/guava-testlib/src/com/google/common/testing/GcFinalization.java:392— android/guava-testlib/src/com/google/common/testing/GcFinalization.java:392-413 | guava-testlib/src/com/google/common/testing/GcFinalization.java:392-413 — before extracting anything, compare `android/guava-testlib/src/com/google/common/testing/GcFinalization.java` and `guava-testlib/src/com/google/common/testing/GcFinalization.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 110 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (22 lines × 2) android/guava/src/com/google/common/base/SmallCharMatcher.java:88— android/guava/src/com/google/common/base/SmallCharMatcher.java:88-109 | guava/src/com/google/common/base/SmallCharMatcher.java:88-109 — before extracting anything, compare `android/guava/src/com/google/common/base/SmallCharMatcher.java` and `guava/src/com/google/common/base/SmallCharMatcher.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 65 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (22 lines × 2) android/guava/src/com/google/common/base/internal/Finalizer.java:229— android/guava/src/com/google/common/base/internal/Finalizer.java:229-250 | guava/src/com/google/common/base/internal/Finalizer.java:229-250 — before extracting anything, compare `android/guava/src/com/google/common/base/internal/Finalizer.java` and `guava/src/com/google/common/base/internal/Finalizer.java` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 136 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (22 lines × 2) android/guava/src/com/google/common/cache/CacheLoader.java:189— android/guava/src/com/google/common/cache/CacheLoader.java:189-210 | guava/src/com/google/common/cache/CacheLoader.java:188-209 — before extracting anything, compare `android/guava/src/com/google/common/cache/CacheLoader.java` and `guava/src/com/google/common/cache/CacheLoader.java` as WHOLE FILES: 98% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (22 lines × 2) android/guava/src/com/google/common/cache/Striped64.java:296— android/guava/src/com/google/common/cache/Striped64.java:296-317 | android/guava/src/com/google/common/hash/Striped64.java:296-317 — `android/guava/src/com/google/common/cache/Striped64.java` and `android/guava/src/com/google/common/hash/Striped64.java` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 3 separate duplicated blocks between them, totalling at least 103 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (22 lines × 2) android/guava/src/com/google/common/collect/CollectSpliterators.java:389— android/guava/src/com/google/common/collect/CollectSpliterators.java:389-410 | guava/src/com/google/common/collect/CollectSpliterators.java:387-408 — before extracting anything, compare `android/guava/src/com/google/common/collect/CollectSpliterators.java` and `guava/src/com/google/common/collect/CollectSpliterators.java` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 237 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (22 lines × 2) android/guava/src/com/google/common/collect/EnumMultiset.java:165— android/guava/src/com/google/common/collect/EnumMultiset.java:165-186 | guava/src/com/google/common/collect/EnumMultiset.java:166-187 — before extracting anything, compare `android/guava/src/com/google/common/collect/EnumMultiset.java` and `guava/src/com/google/common/collect/EnumMultiset.java` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 137 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (22 lines × 2) android/guava/src/com/google/common/collect/FilteredEntryMultimap.java:227— android/guava/src/com/google/common/collect/FilteredEntryMultimap.java:227-248 | guava/src/com/google/common/collect/FilteredEntryMultimap.java:227-248 — before extracting anything, compare `android/guava/src/com/google/common/collect/FilteredEntryMultimap.java` and `guava/src/com/google/common/collect/FilteredEntryMultimap.java` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 221 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (22 lines × 2) android/guava/src/com/google/common/collect/ImmutableListMultimap.java:392— android/guava/src/com/google/common/collect/ImmutableListMultimap.java:392-413 | guava/src/com/google/common/collect/ImmutableListMultimap.java:390-411 — before extracting anything, compare `android/guava/src/com/google/common/collect/ImmutableListMultimap.java` and `guava/src/com/google/common/collect/ImmutableListMultimap.java` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 141 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (22 lines × 2) android/guava/src/com/google/common/collect/LinkedHashMultimap.java:411— android/guava/src/com/google/common/collect/LinkedHashMultimap.java:411-432 | guava/src/com/google/common/collect/LinkedHashMultimap.java:423-444 — before extracting anything, compare `android/guava/src/com/google/common/collect/LinkedHashMultimap.java` and `guava/src/com/google/common/collect/LinkedHashMultimap.java` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 215 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (22 lines × 2) android/guava/src/com/google/common/collect/MapMakerInternalMap.java:1473— android/guava/src/com/google/common/collect/MapMakerInternalMap.java:1473-1494 | guava/src/com/google/common/collect/MapMakerInternalMap.java:1473-1494 — before extracting anything, compare `android/guava/src/com/google/common/collect/MapMakerInternalMap.java` and `guava/src/com/google/common/collect/MapMakerInternalMap.java` as WHOLE FILES: this scan already matched 73 separate duplicated blocks between them, totalling at least 916 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (22 lines × 2) android/guava/src/com/google/common/collect/MapMakerInternalMap.java:1687— android/guava/src/com/google/common/collect/MapMakerInternalMap.java:1687-1708 | guava/src/com/google/common/collect/MapMakerInternalMap.java:1687-1708 — before extracting anything, compare `android/guava/src/com/google/common/collect/MapMakerInternalMap.java` and `guava/src/com/google/common/collect/MapMakerInternalMap.java` as WHOLE FILES: this scan already matched 73 separate duplicated blocks between them, totalling at least 916 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 `android/guava/src/com/google/common/collect/MapMakerInternalMap.java:1687` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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) android/guava/src/com/google/common/collect/Multisets.java:406— android/guava/src/com/google/common/collect/Multisets.java:406-427 | guava/src/com/google/common/collect/Multisets.java:412-433 — before extracting anything, compare `android/guava/src/com/google/common/collect/Multisets.java` and `guava/src/com/google/common/collect/Multisets.java` as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 470 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 `android/guava/src/com/google/common/collect/Multisets.java:406` 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 (22 lines × 2) android/guava/src/com/google/common/collect/TableCollectors.java:59— android/guava/src/com/google/common/collect/TableCollectors.java:59-80 | guava/src/com/google/common/collect/TableCollectors.java:58-79 — before extracting anything, compare `android/guava/src/com/google/common/collect/TableCollectors.java` and `guava/src/com/google/common/collect/TableCollectors.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 96 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (22 lines × 2) android/guava/src/com/google/common/collect/TableCollectors.java:115— android/guava/src/com/google/common/collect/TableCollectors.java:115-136 | guava/src/com/google/common/collect/TableCollectors.java:114-135 — before extracting anything, compare `android/guava/src/com/google/common/collect/TableCollectors.java` and `guava/src/com/google/common/collect/TableCollectors.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 96 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (22 lines × 2) android/guava/src/com/google/common/collect/TreeMultiset.java:335— android/guava/src/com/google/common/collect/TreeMultiset.java:335-356 | guava/src/com/google/common/collect/TreeMultiset.java:337-358 — before extracting anything, compare `android/guava/src/com/google/common/collect/TreeMultiset.java` and `guava/src/com/google/common/collect/TreeMultiset.java` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 678 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (22 lines × 2) android/guava/src/com/google/common/graph/Traverser.java:443— android/guava/src/com/google/common/graph/Traverser.java:443-464 | guava/src/com/google/common/graph/Traverser.java:443-464 — before extracting anything, compare `android/guava/src/com/google/common/graph/Traverser.java` and `guava/src/com/google/common/graph/Traverser.java` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 108 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (22 lines × 2) android/guava/src/com/google/common/hash/AbstractStreamingHasher.java:115— android/guava/src/com/google/common/hash/AbstractStreamingHasher.java:115-136 | guava/src/com/google/common/hash/AbstractStreamingHasher.java:115-136 — before extracting anything, compare `android/guava/src/com/google/common/hash/AbstractStreamingHasher.java` and `guava/src/com/google/common/hash/AbstractStreamingHasher.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 68 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (22 lines × 2) android/guava/src/com/google/common/io/ByteSource.java:506— android/guava/src/com/google/common/io/ByteSource.java:506-527 | guava/src/com/google/common/io/ByteSource.java:506-527 — before extracting anything, compare `android/guava/src/com/google/common/io/ByteSource.java` and `guava/src/com/google/common/io/ByteSource.java` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 206 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (22 lines × 2) android/guava/src/com/google/common/io/Closer.java:197— android/guava/src/com/google/common/io/Closer.java:197-218 | guava/src/com/google/common/io/Closer.java:197-218 — before extracting anything, compare `android/guava/src/com/google/common/io/Closer.java` and `guava/src/com/google/common/io/Closer.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 46 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (22 lines × 2) android/guava/src/com/google/common/io/FileBackedOutputStream.java:471— android/guava/src/com/google/common/io/FileBackedOutputStream.java:471-492 | guava/src/com/google/common/io/FileBackedOutputStream.java:471-492 — before extracting anything, compare `android/guava/src/com/google/common/io/FileBackedOutputStream.java` and `guava/src/com/google/common/io/FileBackedOutputStream.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 115 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (19 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java:349— android/guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java:349-367 | guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java:366-384 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java` and `guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 198 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (19 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/ListRemoveTester.java:38— android/guava-testlib/src/com/google/common/collect/testing/testers/ListRemoveTester.java:38-56 | guava-testlib/src/com/google/common/collect/testing/testers/ListRemoveTester.java:38-56 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/ListRemoveTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/ListRemoveTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (19 lines × 2) android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java:634— android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java:634-652 | guava-testlib/src/com/google/common/testing/ClassSanityTester.java:634-652 — before extracting anything, compare `android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java` and `guava-testlib/src/com/google/common/testing/ClassSanityTester.java` as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 368 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 `android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java:634` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (19 lines × 2) android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java:244— android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java:244-262 | guava-testlib/src/com/google/common/testing/FreshValueGenerator.java:248-266 — before extracting anything, compare `android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java` and `guava-testlib/src/com/google/common/testing/FreshValueGenerator.java` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 152 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 `android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java:244` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (19 lines × 2) android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java:546— android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java:546-564 | guava-testlib/src/com/google/common/testing/FreshValueGenerator.java:575-593 — before extracting anything, compare `android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java` and `guava-testlib/src/com/google/common/testing/FreshValueGenerator.java` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 152 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (19 lines × 2) android/guava/src/com/google/common/cache/LocalCache.java:2195— android/guava/src/com/google/common/cache/LocalCache.java:2195-2213 | guava/src/com/google/common/cache/LocalCache.java:2199-2217 — before extracting anything, compare `android/guava/src/com/google/common/cache/LocalCache.java` and `guava/src/com/google/common/cache/LocalCache.java` as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1881 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (19 lines × 2) android/guava/src/com/google/common/cache/LocalCache.java:3323— android/guava/src/com/google/common/cache/LocalCache.java:3323-3341 | guava/src/com/google/common/cache/LocalCache.java:3413-3431 — before extracting anything, compare `android/guava/src/com/google/common/cache/LocalCache.java` and `guava/src/com/google/common/cache/LocalCache.java` as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1881 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 `android/guava/src/com/google/common/cache/LocalCache.java:3323` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (19 lines × 2) android/guava/src/com/google/common/collect/AbstractSortedMultiset.java:127— android/guava/src/com/google/common/collect/AbstractSortedMultiset.java:127-145 | guava/src/com/google/common/collect/AbstractSortedMultiset.java:127-145 — before extracting anything, compare `android/guava/src/com/google/common/collect/AbstractSortedMultiset.java` and `guava/src/com/google/common/collect/AbstractSortedMultiset.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 44 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (19 lines × 2) android/guava/src/com/google/common/collect/ArrayTable.java:151— android/guava/src/com/google/common/collect/ArrayTable.java:151-169 | guava/src/com/google/common/collect/ArrayTable.java:152-170 — before extracting anything, compare `android/guava/src/com/google/common/collect/ArrayTable.java` and `guava/src/com/google/common/collect/ArrayTable.java` as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 188 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (19 lines × 2) android/guava/src/com/google/common/collect/CompactHashMap.java:972— android/guava/src/com/google/common/collect/CompactHashMap.java:972-990 | guava/src/com/google/common/collect/CompactHashMap.java:1092-1110 — before extracting anything, compare `android/guava/src/com/google/common/collect/CompactHashMap.java` and `guava/src/com/google/common/collect/CompactHashMap.java` as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 479 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (19 lines × 2) android/guava/src/com/google/common/collect/ImmutableSortedMap.java:490— android/guava/src/com/google/common/collect/ImmutableSortedMap.java:490-508 | guava/src/com/google/common/collect/ImmutableSortedMap.java:488-506 — before extracting anything, compare `android/guava/src/com/google/common/collect/ImmutableSortedMap.java` and `guava/src/com/google/common/collect/ImmutableSortedMap.java` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 178 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (19 lines × 2) android/guava/src/com/google/common/collect/Iterators.java:133— android/guava/src/com/google/common/collect/Iterators.java:133-151 | guava/src/com/google/common/collect/Iterators.java:133-151 — before extracting anything, compare `android/guava/src/com/google/common/collect/Iterators.java` and `guava/src/com/google/common/collect/Iterators.java` as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 537 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (19 lines × 2) android/guava/src/com/google/common/collect/MapMakerInternalMap.java:2383— android/guava/src/com/google/common/collect/MapMakerInternalMap.java:2383-2401 | guava/src/com/google/common/collect/MapMakerInternalMap.java:2383-2401 — before extracting anything, compare `android/guava/src/com/google/common/collect/MapMakerInternalMap.java` and `guava/src/com/google/common/collect/MapMakerInternalMap.java` as WHOLE FILES: this scan already matched 73 separate duplicated blocks between them, totalling at least 916 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 `android/guava/src/com/google/common/collect/MapMakerInternalMap.java:2383` 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) android/guava/src/com/google/common/collect/Maps.java:2898— android/guava/src/com/google/common/collect/Maps.java:2898-2916 | guava/src/com/google/common/collect/Maps.java:3009-3027 — before extracting anything, compare `android/guava/src/com/google/common/collect/Maps.java` and `guava/src/com/google/common/collect/Maps.java` as WHOLE FILES: this scan already matched 72 separate duplicated blocks between them, totalling at least 830 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (19 lines × 2) android/guava/src/com/google/common/hash/Murmur3_128HashFunction.java:173— android/guava/src/com/google/common/hash/Murmur3_128HashFunction.java:173-191 | guava/src/com/google/common/hash/Murmur3_128HashFunction.java:173-191 — before extracting anything, compare `android/guava/src/com/google/common/hash/Murmur3_128HashFunction.java` and `guava/src/com/google/common/hash/Murmur3_128HashFunction.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 89 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (19 lines × 2) android/guava/src/com/google/common/io/MoreFiles.java:676— android/guava/src/com/google/common/io/MoreFiles.java:676-694 | guava/src/com/google/common/io/MoreFiles.java:673-691 — before extracting anything, compare `android/guava/src/com/google/common/io/MoreFiles.java` and `guava/src/com/google/common/io/MoreFiles.java` as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 425 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (19 lines × 2) android/guava/src/com/google/common/io/ReaderInputStream.java:212— android/guava/src/com/google/common/io/ReaderInputStream.java:212-230 | guava/src/com/google/common/io/ReaderInputStream.java:212-230 — before extracting anything, compare `android/guava/src/com/google/common/io/ReaderInputStream.java` and `guava/src/com/google/common/io/ReaderInputStream.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 107 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (19 lines × 2) android/guava/src/com/google/common/math/PairedStatsAccumulator.java:74— android/guava/src/com/google/common/math/PairedStatsAccumulator.java:74-92 | guava/src/com/google/common/math/PairedStatsAccumulator.java:74-92 — before extracting anything, compare `android/guava/src/com/google/common/math/PairedStatsAccumulator.java` and `guava/src/com/google/common/math/PairedStatsAccumulator.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 60 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (19 lines × 2) android/guava/src/com/google/common/math/Quantiles.java:576— android/guava/src/com/google/common/math/Quantiles.java:576-594 | guava/src/com/google/common/math/Quantiles.java:576-594 — before extracting anything, compare `android/guava/src/com/google/common/math/Quantiles.java` and `guava/src/com/google/common/math/Quantiles.java` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 229 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (19 lines × 2) android/guava/src/com/google/common/net/InetAddresses.java:829— android/guava/src/com/google/common/net/InetAddresses.java:829-847 | guava/src/com/google/common/net/InetAddresses.java:829-847 — before extracting anything, compare `android/guava/src/com/google/common/net/InetAddresses.java` and `guava/src/com/google/common/net/InetAddresses.java` as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 550 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (19 lines × 2) android/guava/src/com/google/common/reflect/TypeToken.java:408— android/guava/src/com/google/common/reflect/TypeToken.java:408-426 | guava/src/com/google/common/reflect/TypeToken.java:408-426 — before extracting anything, compare `android/guava/src/com/google/common/reflect/TypeToken.java` and `guava/src/com/google/common/reflect/TypeToken.java` as WHOLE FILES: this scan already matched 52 separate duplicated blocks between them, totalling at least 744 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (19 lines × 2) android/guava/src/com/google/common/reflect/TypeToken.java:434— android/guava/src/com/google/common/reflect/TypeToken.java:434-452 | guava/src/com/google/common/reflect/TypeToken.java:434-452 — before extracting anything, compare `android/guava/src/com/google/common/reflect/TypeToken.java` and `guava/src/com/google/common/reflect/TypeToken.java` as WHOLE FILES: this scan already matched 52 separate duplicated blocks between them, totalling at least 744 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (19 lines × 2) android/guava/src/com/google/common/util/concurrent/ClosingFuture.java:383— android/guava/src/com/google/common/util/concurrent/ClosingFuture.java:383-401 | guava/src/com/google/common/util/concurrent/ClosingFuture.java:388-406 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/ClosingFuture.java` and `guava/src/com/google/common/util/concurrent/ClosingFuture.java` as WHOLE FILES: this scan already matched 38 separate duplicated blocks between them, totalling at least 531 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (19 lines × 2) android/guava/src/com/google/common/util/concurrent/Monitor.java:478— android/guava/src/com/google/common/util/concurrent/Monitor.java:478-496 | guava/src/com/google/common/util/concurrent/Monitor.java:474-492 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/Monitor.java` and `guava/src/com/google/common/util/concurrent/Monitor.java` as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 433 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (19 lines × 2) android/guava/src/com/google/common/util/concurrent/Monitor.java:577— android/guava/src/com/google/common/util/concurrent/Monitor.java:577-595 | guava/src/com/google/common/util/concurrent/Monitor.java:572-590 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/Monitor.java` and `guava/src/com/google/common/util/concurrent/Monitor.java` as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 433 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (26 lines × 2) android/guava-testlib/src/com/google/common/testing/DummyProxy.java:55— android/guava-testlib/src/com/google/common/testing/DummyProxy.java:55-80 | guava-testlib/src/com/google/common/testing/DummyProxy.java:55-80 — before extracting anything, compare `android/guava-testlib/src/com/google/common/testing/DummyProxy.java` and `guava-testlib/src/com/google/common/testing/DummyProxy.java` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 43 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 `android/guava-testlib/src/com/google/common/testing/DummyProxy.java:55` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (26 lines × 2) android/guava-testlib/src/com/google/common/testing/TearDownStack.java:82— android/guava-testlib/src/com/google/common/testing/TearDownStack.java:82-107 | guava-testlib/src/com/google/common/testing/TearDownStack.java:82-107 — before extracting anything, compare `android/guava-testlib/src/com/google/common/testing/TearDownStack.java` and `guava-testlib/src/com/google/common/testing/TearDownStack.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (26 lines × 2) android/guava/src/com/google/common/cache/LocalCache.java:3125— android/guava/src/com/google/common/cache/LocalCache.java:3125-3150 | guava/src/com/google/common/cache/LocalCache.java:3215-3240 — before extracting anything, compare `android/guava/src/com/google/common/cache/LocalCache.java` and `guava/src/com/google/common/cache/LocalCache.java` as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1881 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 `android/guava/src/com/google/common/cache/LocalCache.java:3125` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (26 lines × 2) android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java:297— android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java:297-322 | guava/src/com/google/common/collect/ConcurrentHashMultiset.java:297-322 — before extracting anything, compare `android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java` and `guava/src/com/google/common/collect/ConcurrentHashMultiset.java` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 276 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (26 lines × 2) android/guava/src/com/google/common/collect/ImmutableMultimap.java:634— android/guava/src/com/google/common/collect/ImmutableMultimap.java:634-659 | guava/src/com/google/common/collect/ImmutableMultimap.java:636-661 — before extracting anything, compare `android/guava/src/com/google/common/collect/ImmutableMultimap.java` and `guava/src/com/google/common/collect/ImmutableMultimap.java` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 136 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (26 lines × 2) android/guava/src/com/google/common/collect/ImmutableMultiset.java:223— android/guava/src/com/google/common/collect/ImmutableMultiset.java:223-248 | guava/src/com/google/common/collect/ImmutableMultiset.java:230-255 — before extracting anything, compare `android/guava/src/com/google/common/collect/ImmutableMultiset.java` and `guava/src/com/google/common/collect/ImmutableMultiset.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 50 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (26 lines × 2) android/guava/src/com/google/common/collect/Iterators.java:957— android/guava/src/com/google/common/collect/Iterators.java:957-982 | guava/src/com/google/common/collect/Iterators.java:957-982 — before extracting anything, compare `android/guava/src/com/google/common/collect/Iterators.java` and `guava/src/com/google/common/collect/Iterators.java` as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 537 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (26 lines × 2) android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java:812— android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java:812-837 | guava/src/com/google/common/collect/MinMaxPriorityQueue.java:812-837 — before extracting anything, compare `android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java` and `guava/src/com/google/common/collect/MinMaxPriorityQueue.java` as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 374 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (26 lines × 2) android/guava/src/com/google/common/collect/RegularContiguousSet.java:140— android/guava/src/com/google/common/collect/RegularContiguousSet.java:140-165 | guava/src/com/google/common/collect/RegularContiguousSet.java:140-165 — before extracting anything, compare `android/guava/src/com/google/common/collect/RegularContiguousSet.java` and `guava/src/com/google/common/collect/RegularContiguousSet.java` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 108 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (26 lines × 2) android/guava/src/com/google/common/collect/RegularImmutableTable.java:119— android/guava/src/com/google/common/collect/RegularImmutableTable.java:119-144 | guava/src/com/google/common/collect/RegularImmutableTable.java:119-144 — before extracting anything, compare `android/guava/src/com/google/common/collect/RegularImmutableTable.java` and `guava/src/com/google/common/collect/RegularImmutableTable.java` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 48 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (26 lines × 2) android/guava/src/com/google/common/collect/TreeRangeSet.java:746— android/guava/src/com/google/common/collect/TreeRangeSet.java:746-771 | guava/src/com/google/common/collect/TreeRangeSet.java:746-771 — before extracting anything, compare `android/guava/src/com/google/common/collect/TreeRangeSet.java` and `guava/src/com/google/common/collect/TreeRangeSet.java` as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 494 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (26 lines × 2) android/guava/src/com/google/common/graph/DirectedGraphConnections.java:293— android/guava/src/com/google/common/graph/DirectedGraphConnections.java:293-318 | guava/src/com/google/common/graph/DirectedGraphConnections.java:293-318 — before extracting anything, compare `android/guava/src/com/google/common/graph/DirectedGraphConnections.java` and `guava/src/com/google/common/graph/DirectedGraphConnections.java` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 391 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 `android/guava/src/com/google/common/graph/DirectedGraphConnections.java:293` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (26 lines × 2) android/guava/src/com/google/common/graph/DirectedGraphConnections.java:341— android/guava/src/com/google/common/graph/DirectedGraphConnections.java:341-366 | guava/src/com/google/common/graph/DirectedGraphConnections.java:341-366 — before extracting anything, compare `android/guava/src/com/google/common/graph/DirectedGraphConnections.java` and `guava/src/com/google/common/graph/DirectedGraphConnections.java` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 391 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 `android/guava/src/com/google/common/graph/DirectedGraphConnections.java:341` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (26 lines × 2) android/guava/src/com/google/common/graph/EndpointPair.java:214— android/guava/src/com/google/common/graph/EndpointPair.java:214-239 | guava/src/com/google/common/graph/EndpointPair.java:214-239 — before extracting anything, compare `android/guava/src/com/google/common/graph/EndpointPair.java` and `guava/src/com/google/common/graph/EndpointPair.java` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 49 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (26 lines × 2) android/guava/src/com/google/common/io/ByteSource.java:698— android/guava/src/com/google/common/io/ByteSource.java:698-723 | guava/src/com/google/common/io/ByteSource.java:698-723 — before extracting anything, compare `android/guava/src/com/google/common/io/ByteSource.java` and `guava/src/com/google/common/io/ByteSource.java` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 206 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (26 lines × 2) android/guava/src/com/google/common/io/ByteStreams.java:139— android/guava/src/com/google/common/io/ByteStreams.java:139-164 | guava/src/com/google/common/io/ByteStreams.java:139-164 — before extracting anything, compare `android/guava/src/com/google/common/io/ByteStreams.java` and `guava/src/com/google/common/io/ByteStreams.java` as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 285 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (26 lines × 2) android/guava/src/com/google/common/math/Quantiles.java:287— android/guava/src/com/google/common/math/Quantiles.java:287-312 | guava/src/com/google/common/math/Quantiles.java:287-312 — before extracting anything, compare `android/guava/src/com/google/common/math/Quantiles.java` and `guava/src/com/google/common/math/Quantiles.java` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 229 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (26 lines × 2) android/guava/src/com/google/common/reflect/TypeToken.java:871— android/guava/src/com/google/common/reflect/TypeToken.java:871-896 | guava/src/com/google/common/reflect/TypeToken.java:871-896 — before extracting anything, compare `android/guava/src/com/google/common/reflect/TypeToken.java` and `guava/src/com/google/common/reflect/TypeToken.java` as WHOLE FILES: this scan already matched 52 separate duplicated blocks between them, totalling at least 744 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (26 lines × 2) android/guava/src/com/google/common/util/concurrent/AbstractFutureState.java:462— android/guava/src/com/google/common/util/concurrent/AbstractFutureState.java:462-487 | guava/src/com/google/common/util/concurrent/AbstractFutureState.java:449-474 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/AbstractFutureState.java` and `guava/src/com/google/common/util/concurrent/AbstractFutureState.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 166 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (26 lines × 2) android/guava/src/com/google/common/util/concurrent/AbstractScheduledService.java:290— android/guava/src/com/google/common/util/concurrent/AbstractScheduledService.java:290-315 | guava/src/com/google/common/util/concurrent/AbstractScheduledService.java:288-313 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/AbstractScheduledService.java` and `guava/src/com/google/common/util/concurrent/AbstractScheduledService.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 173 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (26 lines × 2) android/guava/src/com/google/common/util/concurrent/AbstractService.java:384— android/guava/src/com/google/common/util/concurrent/AbstractService.java:384-409 | guava/src/com/google/common/util/concurrent/AbstractService.java:401-426 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/AbstractService.java` and `guava/src/com/google/common/util/concurrent/AbstractService.java` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 250 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (26 lines × 2) android/guava/src/com/google/common/util/concurrent/ListenerCallQueue.java:162— android/guava/src/com/google/common/util/concurrent/ListenerCallQueue.java:162-187 | guava/src/com/google/common/util/concurrent/ListenerCallQueue.java:162-187 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/ListenerCallQueue.java` and `guava/src/com/google/common/util/concurrent/ListenerCallQueue.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 85 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (26 lines × 2) android/guava/src/com/google/common/util/concurrent/ServiceManager.java:210— android/guava/src/com/google/common/util/concurrent/ServiceManager.java:210-235 | guava/src/com/google/common/util/concurrent/ServiceManager.java:210-235 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/ServiceManager.java` and `guava/src/com/google/common/util/concurrent/ServiceManager.java` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 276 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (26 lines × 2) android/guava/src/com/google/common/collect/ForwardingSetMultimap.java:41— android/guava/src/com/google/common/collect/ForwardingSetMultimap.java:41-66 | guava/src/com/google/common/collect/ForwardingSetMultimap.java:41-66 — before extracting anything, compare `android/guava/src/com/google/common/collect/ForwardingSetMultimap.java` and `guava/src/com/google/common/collect/ForwardingSetMultimap.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. 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 (26 lines × 2) android/guava/src/com/google/common/eventbus/AsyncEventBus.java:36— android/guava/src/com/google/common/eventbus/AsyncEventBus.java:36-61 | guava/src/com/google/common/eventbus/AsyncEventBus.java:36-61 — before extracting anything, compare `android/guava/src/com/google/common/eventbus/AsyncEventBus.java` and `guava/src/com/google/common/eventbus/AsyncEventBus.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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.
Duplicated block (24 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java:483— android/guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java:483-506 | guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java:483-506 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java` and `guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 192 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (24 lines × 2) android/guava-testlib/src/com/google/common/testing/GcFinalization.java:151— android/guava-testlib/src/com/google/common/testing/GcFinalization.java:151-174 | guava-testlib/src/com/google/common/testing/GcFinalization.java:151-174 — before extracting anything, compare `android/guava-testlib/src/com/google/common/testing/GcFinalization.java` and `guava-testlib/src/com/google/common/testing/GcFinalization.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 110 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (24 lines × 2) android/guava-testlib/src/com/google/common/testing/NullPointerTester.java:456— android/guava-testlib/src/com/google/common/testing/NullPointerTester.java:456-479 | guava-testlib/src/com/google/common/testing/NullPointerTester.java:447-470 — before extracting anything, compare `android/guava-testlib/src/com/google/common/testing/NullPointerTester.java` and `guava-testlib/src/com/google/common/testing/NullPointerTester.java` as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 268 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 `android/guava-testlib/src/com/google/common/testing/NullPointerTester.java:456` 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 (24 lines × 2) android/guava/src/com/google/common/base/CharMatcher.java:419— android/guava/src/com/google/common/base/CharMatcher.java:419-442 | guava/src/com/google/common/base/CharMatcher.java:419-442 — before extracting anything, compare `android/guava/src/com/google/common/base/CharMatcher.java` and `guava/src/com/google/common/base/CharMatcher.java` as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 345 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (24 lines × 2) android/guava/src/com/google/common/base/Strings.java:152— android/guava/src/com/google/common/base/Strings.java:152-175 | guava/src/com/google/common/base/Strings.java:152-175 — before extracting anything, compare `android/guava/src/com/google/common/base/Strings.java` and `guava/src/com/google/common/base/Strings.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 127 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (24 lines × 2) android/guava/src/com/google/common/base/Throwables.java:286— android/guava/src/com/google/common/base/Throwables.java:286-309 | guava/src/com/google/common/base/Throwables.java:286-309 — before extracting anything, compare `android/guava/src/com/google/common/base/Throwables.java` and `guava/src/com/google/common/base/Throwables.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 136 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (24 lines × 2) android/guava/src/com/google/common/collect/ImmutableMap.java:1071— android/guava/src/com/google/common/collect/ImmutableMap.java:1071-1094 | guava/src/com/google/common/collect/ImmutableMap.java:1192-1215 — before extracting anything, compare `android/guava/src/com/google/common/collect/ImmutableMap.java` and `guava/src/com/google/common/collect/ImmutableMap.java` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 116 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (24 lines × 2) android/guava/src/com/google/common/collect/Iterators.java:471— android/guava/src/com/google/common/collect/Iterators.java:471-494 | guava/src/com/google/common/collect/Iterators.java:471-494 — before extracting anything, compare `android/guava/src/com/google/common/collect/Iterators.java` and `guava/src/com/google/common/collect/Iterators.java` as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 537 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (24 lines × 2) android/guava/src/com/google/common/collect/LinkedHashMultimap.java:506— android/guava/src/com/google/common/collect/LinkedHashMultimap.java:506-529 | guava/src/com/google/common/collect/LinkedHashMultimap.java:529-552 — before extracting anything, compare `android/guava/src/com/google/common/collect/LinkedHashMultimap.java` and `guava/src/com/google/common/collect/LinkedHashMultimap.java` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 215 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (24 lines × 2) android/guava/src/com/google/common/collect/Lists.java:1128— android/guava/src/com/google/common/collect/Lists.java:1128-1151 | guava/src/com/google/common/collect/Lists.java:1168-1191 — before extracting anything, compare `android/guava/src/com/google/common/collect/Lists.java` and `guava/src/com/google/common/collect/Lists.java` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 269 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (24 lines × 2) android/guava/src/com/google/common/collect/Maps.java:142— android/guava/src/com/google/common/collect/Maps.java:142-165 | guava/src/com/google/common/collect/Maps.java:147-170 — before extracting anything, compare `android/guava/src/com/google/common/collect/Maps.java` and `guava/src/com/google/common/collect/Maps.java` as WHOLE FILES: this scan already matched 72 separate duplicated blocks between them, totalling at least 830 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (24 lines × 2) android/guava/src/com/google/common/collect/Maps.java:574— android/guava/src/com/google/common/collect/Maps.java:574-597 | guava/src/com/google/common/collect/Maps.java:581-604 — before extracting anything, compare `android/guava/src/com/google/common/collect/Maps.java` and `guava/src/com/google/common/collect/Maps.java` as WHOLE FILES: this scan already matched 72 separate duplicated blocks between them, totalling at least 830 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 `android/guava/src/com/google/common/collect/Maps.java:574` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (24 lines × 2) android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java:542— android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java:542-565 | guava/src/com/google/common/collect/MinMaxPriorityQueue.java:542-565 — before extracting anything, compare `android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java` and `guava/src/com/google/common/collect/MinMaxPriorityQueue.java` as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 374 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (24 lines × 2) android/guava/src/com/google/common/collect/TreeMultiset.java:885— android/guava/src/com/google/common/collect/TreeMultiset.java:885-908 | guava/src/com/google/common/collect/TreeMultiset.java:897-920 — before extracting anything, compare `android/guava/src/com/google/common/collect/TreeMultiset.java` and `guava/src/com/google/common/collect/TreeMultiset.java` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 678 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (24 lines × 2) android/guava/src/com/google/common/hash/BloomFilter.java:286— android/guava/src/com/google/common/hash/BloomFilter.java:286-309 | guava/src/com/google/common/hash/BloomFilter.java:298-321 — before extracting anything, compare `android/guava/src/com/google/common/hash/BloomFilter.java` and `guava/src/com/google/common/hash/BloomFilter.java` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 171 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (24 lines × 2) android/guava/src/com/google/common/hash/Fingerprint2011.java:175— android/guava/src/com/google/common/hash/Fingerprint2011.java:175-198 | guava/src/com/google/common/hash/Fingerprint2011.java:175-198 — before extracting anything, compare `android/guava/src/com/google/common/hash/Fingerprint2011.java` and `guava/src/com/google/common/hash/Fingerprint2011.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 92 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (24 lines × 2) android/guava/src/com/google/common/math/Quantiles.java:629— android/guava/src/com/google/common/math/Quantiles.java:629-652 | guava/src/com/google/common/math/Quantiles.java:629-652 — before extracting anything, compare `android/guava/src/com/google/common/math/Quantiles.java` and `guava/src/com/google/common/math/Quantiles.java` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 229 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (24 lines × 2) android/guava/src/com/google/common/primitives/ParseRequest.java:31— android/guava/src/com/google/common/primitives/ParseRequest.java:31-54 | guava/src/com/google/common/primitives/ParseRequest.java:31-54 — before extracting anything, compare `android/guava/src/com/google/common/primitives/ParseRequest.java` and `guava/src/com/google/common/primitives/ParseRequest.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (24 lines × 2) android/guava/src/com/google/common/reflect/AbstractInvocationHandler.java:65— android/guava/src/com/google/common/reflect/AbstractInvocationHandler.java:65-88 | guava/src/com/google/common/reflect/AbstractInvocationHandler.java:65-88 — before extracting anything, compare `android/guava/src/com/google/common/reflect/AbstractInvocationHandler.java` and `guava/src/com/google/common/reflect/AbstractInvocationHandler.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (24 lines × 2) android/guava/src/com/google/common/reflect/TypeToken.java:1173— android/guava/src/com/google/common/reflect/TypeToken.java:1173-1196 | guava/src/com/google/common/reflect/TypeToken.java:1173-1196 — before extracting anything, compare `android/guava/src/com/google/common/reflect/TypeToken.java` and `guava/src/com/google/common/reflect/TypeToken.java` as WHOLE FILES: this scan already matched 52 separate duplicated blocks between them, totalling at least 744 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (24 lines × 2) android/guava/src/com/google/common/reflect/Types.java:392— android/guava/src/com/google/common/reflect/Types.java:392-415 | guava/src/com/google/common/reflect/Types.java:392-415 — before extracting anything, compare `android/guava/src/com/google/common/reflect/Types.java` and `guava/src/com/google/common/reflect/Types.java` as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 245 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (24 lines × 2) android/guava/src/com/google/common/util/concurrent/AbstractService.java:447— android/guava/src/com/google/common/util/concurrent/AbstractService.java:447-470 | guava/src/com/google/common/util/concurrent/AbstractService.java:464-487 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/AbstractService.java` and `guava/src/com/google/common/util/concurrent/AbstractService.java` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 250 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (24 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/BaseComparable.java:34— android/guava-testlib/src/com/google/common/collect/testing/BaseComparable.java:34-57 | guava-testlib/src/com/google/common/collect/testing/BaseComparable.java:34-57 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/BaseComparable.java` and `guava-testlib/src/com/google/common/collect/testing/BaseComparable.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. 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 (24 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/features/CollectionSize.java:65— android/guava-testlib/src/com/google/common/collect/testing/features/CollectionSize.java:65-88 | guava-testlib/src/com/google/common/collect/testing/features/CollectionSize.java:65-88 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/features/CollectionSize.java` and `guava-testlib/src/com/google/common/collect/testing/features/CollectionSize.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. 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 (24 lines × 2) android/guava/src/com/google/common/collect/ForwardingSortedSetMultimap.java:42— android/guava/src/com/google/common/collect/ForwardingSortedSetMultimap.java:42-65 | guava/src/com/google/common/collect/ForwardingSortedSetMultimap.java:42-65 — before extracting anything, compare `android/guava/src/com/google/common/collect/ForwardingSortedSetMultimap.java` and `guava/src/com/google/common/collect/ForwardingSortedSetMultimap.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. 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 (30 lines × 2) android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java:361— android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java:361-390 | guava-testlib/src/com/google/common/testing/ArbitraryInstances.java:373-402 — before extracting anything, compare `android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java` and `guava-testlib/src/com/google/common/testing/ArbitraryInstances.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 65 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 `android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java:361` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (30 lines × 2) android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java:701— android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java:701-730 | guava-testlib/src/com/google/common/testing/ClassSanityTester.java:701-730 — before extracting anything, compare `android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java` and `guava-testlib/src/com/google/common/testing/ClassSanityTester.java` as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 368 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 `android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java:701` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (30 lines × 2) android/guava/src/com/google/common/cache/LocalCache.java:4556— android/guava/src/com/google/common/cache/LocalCache.java:4556-4585 | guava/src/com/google/common/cache/LocalCache.java:4729-4758 — before extracting anything, compare `android/guava/src/com/google/common/cache/LocalCache.java` and `guava/src/com/google/common/cache/LocalCache.java` as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1881 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (30 lines × 2) android/guava/src/com/google/common/collect/CartesianList.java:116— android/guava/src/com/google/common/collect/CartesianList.java:116-145 | guava/src/com/google/common/collect/CartesianList.java:116-145 — before extracting anything, compare `android/guava/src/com/google/common/collect/CartesianList.java` and `guava/src/com/google/common/collect/CartesianList.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 107 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (30 lines × 2) android/guava/src/com/google/common/collect/CompactHashMap.java:772— android/guava/src/com/google/common/collect/CompactHashMap.java:772-801 | guava/src/com/google/common/collect/CompactHashMap.java:847-876 — before extracting anything, compare `android/guava/src/com/google/common/collect/CompactHashMap.java` and `guava/src/com/google/common/collect/CompactHashMap.java` as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 479 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (30 lines × 2) android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java:638— android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java:638-667 | guava/src/com/google/common/collect/MinMaxPriorityQueue.java:638-667 — before extracting anything, compare `android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java` and `guava/src/com/google/common/collect/MinMaxPriorityQueue.java` as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 374 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (30 lines × 2) android/guava/src/com/google/common/collect/TreeRangeMap.java:499— android/guava/src/com/google/common/collect/TreeRangeMap.java:499-528 | guava/src/com/google/common/collect/TreeRangeMap.java:602-631 — before extracting anything, compare `android/guava/src/com/google/common/collect/TreeRangeMap.java` and `guava/src/com/google/common/collect/TreeRangeMap.java` as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 356 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (30 lines × 2) android/guava/src/com/google/common/collect/TreeRangeMap.java:558— android/guava/src/com/google/common/collect/TreeRangeMap.java:558-587 | guava/src/com/google/common/collect/TreeRangeMap.java:661-690 — before extracting anything, compare `android/guava/src/com/google/common/collect/TreeRangeMap.java` and `guava/src/com/google/common/collect/TreeRangeMap.java` as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 356 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (30 lines × 2) android/guava/src/com/google/common/eventbus/SubscriberRegistry.java:195— android/guava/src/com/google/common/eventbus/SubscriberRegistry.java:195-224 | guava/src/com/google/common/eventbus/SubscriberRegistry.java:195-224 — before extracting anything, compare `android/guava/src/com/google/common/eventbus/SubscriberRegistry.java` and `guava/src/com/google/common/eventbus/SubscriberRegistry.java` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 114 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 `android/guava/src/com/google/common/eventbus/SubscriberRegistry.java:195` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (30 lines × 2) android/guava/src/com/google/common/hash/LittleEndianByteArray.java:187— android/guava/src/com/google/common/hash/LittleEndianByteArray.java:187-216 | guava/src/com/google/common/hash/LittleEndianByteArray.java:222-251 — before extracting anything, compare `android/guava/src/com/google/common/hash/LittleEndianByteArray.java` and `guava/src/com/google/common/hash/LittleEndianByteArray.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 75 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (30 lines × 2) android/guava/src/com/google/common/io/BaseEncoding.java:457— android/guava/src/com/google/common/io/BaseEncoding.java:457-486 | guava/src/com/google/common/io/BaseEncoding.java:457-486 — before extracting anything, compare `android/guava/src/com/google/common/io/BaseEncoding.java` and `guava/src/com/google/common/io/BaseEncoding.java` as WHOLE FILES: this scan already matched 43 separate duplicated blocks between them, totalling at least 587 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (30 lines × 2) android/guava/src/com/google/common/math/IntMath.java:265— android/guava/src/com/google/common/math/IntMath.java:265-294 | guava/src/com/google/common/math/IntMath.java:265-294 — before extracting anything, compare `android/guava/src/com/google/common/math/IntMath.java` and `guava/src/com/google/common/math/IntMath.java` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 357 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (30 lines × 2) android/guava/src/com/google/common/net/InetAddresses.java:1126— android/guava/src/com/google/common/net/InetAddresses.java:1126-1155 | guava/src/com/google/common/net/InetAddresses.java:1126-1155 — before extracting anything, compare `android/guava/src/com/google/common/net/InetAddresses.java` and `guava/src/com/google/common/net/InetAddresses.java` as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 550 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (30 lines × 2) android/guava/src/com/google/common/primitives/UnsignedBytes.java:373— android/guava/src/com/google/common/primitives/UnsignedBytes.java:373-402 | guava/src/com/google/common/primitives/UnsignedBytes.java:374-403 — before extracting anything, compare `android/guava/src/com/google/common/primitives/UnsignedBytes.java` and `guava/src/com/google/common/primitives/UnsignedBytes.java` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 219 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (30 lines × 2) android/guava/src/com/google/common/primitives/UnsignedBytes.java:482— android/guava/src/com/google/common/primitives/UnsignedBytes.java:482-511 | guava/src/com/google/common/primitives/UnsignedBytes.java:489-518 — before extracting anything, compare `android/guava/src/com/google/common/primitives/UnsignedBytes.java` and `guava/src/com/google/common/primitives/UnsignedBytes.java` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 219 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 `guava/src/com/google/common/primitives/UnsignedBytes.java:489` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (30 lines × 2) android/guava/src/com/google/common/util/concurrent/ClosingFuture.java:2120— android/guava/src/com/google/common/util/concurrent/ClosingFuture.java:2120-2149 | guava/src/com/google/common/util/concurrent/ClosingFuture.java:2135-2164 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/ClosingFuture.java` and `guava/src/com/google/common/util/concurrent/ClosingFuture.java` as WHOLE FILES: this scan already matched 38 separate duplicated blocks between them, totalling at least 531 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (30 lines × 2) android/guava/src/com/google/common/util/concurrent/ExecutionList.java:105— android/guava/src/com/google/common/util/concurrent/ExecutionList.java:105-134 | guava/src/com/google/common/util/concurrent/ExecutionList.java:105-134 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/ExecutionList.java` and `guava/src/com/google/common/util/concurrent/ExecutionList.java` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 67 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (30 lines × 2) android/guava/src/com/google/common/util/concurrent/InterruptibleTask.java:62— android/guava/src/com/google/common/util/concurrent/InterruptibleTask.java:62-91 | guava/src/com/google/common/util/concurrent/InterruptibleTask.java:62-91 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/InterruptibleTask.java` and `guava/src/com/google/common/util/concurrent/InterruptibleTask.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 106 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (30 lines × 2) android/guava/src/com/google/common/util/concurrent/ThreadFactoryBuilder.java:190— android/guava/src/com/google/common/util/concurrent/ThreadFactoryBuilder.java:190-219 | guava/src/com/google/common/util/concurrent/ThreadFactoryBuilder.java:190-219 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/ThreadFactoryBuilder.java` and `guava/src/com/google/common/util/concurrent/ThreadFactoryBuilder.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (30 lines × 2) android/guava/src/com/google/common/collect/ComparatorOrdering.java:34— android/guava/src/com/google/common/collect/ComparatorOrdering.java:34-63 | guava/src/com/google/common/collect/ComparatorOrdering.java:34-63 — before extracting anything, compare `android/guava/src/com/google/common/collect/ComparatorOrdering.java` and `guava/src/com/google/common/collect/ComparatorOrdering.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. 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 (30 lines × 2) android/guava/src/com/google/common/io/PatternFilenameFilter.java:44— android/guava/src/com/google/common/io/PatternFilenameFilter.java:44-73 | guava/src/com/google/common/io/PatternFilenameFilter.java:44-73 — before extracting anything, compare `android/guava/src/com/google/common/io/PatternFilenameFilter.java` and `guava/src/com/google/common/io/PatternFilenameFilter.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. 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 (30 lines × 2) android/guava/src/com/google/common/util/concurrent/ForwardingListenableFuture.java:46— android/guava/src/com/google/common/util/concurrent/ForwardingListenableFuture.java:46-75 | guava/src/com/google/common/util/concurrent/ForwardingListenableFuture.java:46-75 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/ForwardingListenableFuture.java` and `guava/src/com/google/common/util/concurrent/ForwardingListenableFuture.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava/src/com/google/common/util/concurrent/ForwardingListenableFuture.java:46` 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 (30 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/MultimapTestSuiteBuilder.java:111— android/guava-testlib/src/com/google/common/collect/testing/google/MultimapTestSuiteBuilder.java:111-140 | guava-testlib/src/com/google/common/collect/testing/google/MultimapTestSuiteBuilder.java:112-141 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultimapTestSuiteBuilder.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultimapTestSuiteBuilder.java` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 252 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (30 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/TestMapEntrySetGenerator.java:42— android/guava-testlib/src/com/google/common/collect/testing/TestMapEntrySetGenerator.java:42-71 | guava-testlib/src/com/google/common/collect/testing/TestMapEntrySetGenerator.java:42-71 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/TestMapEntrySetGenerator.java` and `guava-testlib/src/com/google/common/collect/testing/TestMapEntrySetGenerator.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. 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 (28 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java:387— android/guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java:387-414 | guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java:387-414 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java` and `guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 192 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (28 lines × 2) android/guava/src/com/google/common/base/CharMatcher.java:715— android/guava/src/com/google/common/base/CharMatcher.java:715-742 | guava/src/com/google/common/base/CharMatcher.java:715-742 — before extracting anything, compare `android/guava/src/com/google/common/base/CharMatcher.java` and `guava/src/com/google/common/base/CharMatcher.java` as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 345 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (28 lines × 2) android/guava/src/com/google/common/cache/LocalCache.java:3459— android/guava/src/com/google/common/cache/LocalCache.java:3459-3486 | guava/src/com/google/common/cache/LocalCache.java:3544-3571 — before extracting anything, compare `android/guava/src/com/google/common/cache/LocalCache.java` and `guava/src/com/google/common/cache/LocalCache.java` as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1881 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (28 lines × 2) android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java:475— android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java:475-502 | guava/src/com/google/common/collect/ConcurrentHashMultiset.java:475-502 — before extracting anything, compare `android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java` and `guava/src/com/google/common/collect/ConcurrentHashMultiset.java` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 276 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (28 lines × 2) android/guava/src/com/google/common/collect/ImmutableRangeSet.java:838— android/guava/src/com/google/common/collect/ImmutableRangeSet.java:838-865 | guava/src/com/google/common/collect/ImmutableRangeSet.java:837-864 — before extracting anything, compare `android/guava/src/com/google/common/collect/ImmutableRangeSet.java` and `guava/src/com/google/common/collect/ImmutableRangeSet.java` as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 376 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 `android/guava/src/com/google/common/collect/ImmutableRangeSet.java:838` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (28 lines × 2) android/guava/src/com/google/common/collect/Interners.java:129— android/guava/src/com/google/common/collect/Interners.java:129-156 | guava/src/com/google/common/collect/Interners.java:129-156 — before extracting anything, compare `android/guava/src/com/google/common/collect/Interners.java` and `guava/src/com/google/common/collect/Interners.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (28 lines × 2) android/guava/src/com/google/common/collect/LinkedHashMultimap.java:450— android/guava/src/com/google/common/collect/LinkedHashMultimap.java:450-477 | guava/src/com/google/common/collect/LinkedHashMultimap.java:462-489 — before extracting anything, compare `android/guava/src/com/google/common/collect/LinkedHashMultimap.java` and `guava/src/com/google/common/collect/LinkedHashMultimap.java` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 215 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (28 lines × 2) android/guava/src/com/google/common/collect/MapMakerInternalMap.java:1640— android/guava/src/com/google/common/collect/MapMakerInternalMap.java:1640-1667 | guava/src/com/google/common/collect/MapMakerInternalMap.java:1640-1667 — before extracting anything, compare `android/guava/src/com/google/common/collect/MapMakerInternalMap.java` and `guava/src/com/google/common/collect/MapMakerInternalMap.java` as WHOLE FILES: this scan already matched 73 separate duplicated blocks between them, totalling at least 916 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 `android/guava/src/com/google/common/collect/MapMakerInternalMap.java:1640` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (28 lines × 2) android/guava/src/com/google/common/collect/MapMakerInternalMap.java:1722— android/guava/src/com/google/common/collect/MapMakerInternalMap.java:1722-1749 | guava/src/com/google/common/collect/MapMakerInternalMap.java:1722-1749 — before extracting anything, compare `android/guava/src/com/google/common/collect/MapMakerInternalMap.java` and `guava/src/com/google/common/collect/MapMakerInternalMap.java` as WHOLE FILES: this scan already matched 73 separate duplicated blocks between them, totalling at least 916 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 `android/guava/src/com/google/common/collect/MapMakerInternalMap.java:1722` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (28 lines × 2) android/guava/src/com/google/common/collect/Streams.java:342— android/guava/src/com/google/common/collect/Streams.java:342-369 | guava/src/com/google/common/collect/Streams.java:336-363 — before extracting anything, compare `android/guava/src/com/google/common/collect/Streams.java` and `guava/src/com/google/common/collect/Streams.java` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 481 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (28 lines × 2) android/guava/src/com/google/common/collect/TreeBasedTable.java:311— android/guava/src/com/google/common/collect/TreeBasedTable.java:311-338 | guava/src/com/google/common/collect/TreeBasedTable.java:311-338 — before extracting anything, compare `android/guava/src/com/google/common/collect/TreeBasedTable.java` and `guava/src/com/google/common/collect/TreeBasedTable.java` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 94 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (28 lines × 2) android/guava/src/com/google/common/collect/TreeRangeSet.java:404— android/guava/src/com/google/common/collect/TreeRangeSet.java:404-431 | guava/src/com/google/common/collect/TreeRangeSet.java:404-431 — before extracting anything, compare `android/guava/src/com/google/common/collect/TreeRangeSet.java` and `guava/src/com/google/common/collect/TreeRangeSet.java` as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 494 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (28 lines × 2) android/guava/src/com/google/common/collect/TreeRangeSet.java:531— android/guava/src/com/google/common/collect/TreeRangeSet.java:531-558 | guava/src/com/google/common/collect/TreeRangeSet.java:531-558 — before extracting anything, compare `android/guava/src/com/google/common/collect/TreeRangeSet.java` and `guava/src/com/google/common/collect/TreeRangeSet.java` as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 494 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 `android/guava/src/com/google/common/collect/TreeRangeSet.java:531` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (28 lines × 2) android/guava/src/com/google/common/graph/DirectedGraphConnections.java:522— android/guava/src/com/google/common/graph/DirectedGraphConnections.java:522-549 | guava/src/com/google/common/graph/DirectedGraphConnections.java:522-549 — before extracting anything, compare `android/guava/src/com/google/common/graph/DirectedGraphConnections.java` and `guava/src/com/google/common/graph/DirectedGraphConnections.java` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 391 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (28 lines × 2) android/guava/src/com/google/common/io/BaseEncoding.java:1123— android/guava/src/com/google/common/io/BaseEncoding.java:1123-1150 | guava/src/com/google/common/io/BaseEncoding.java:1123-1150 — before extracting anything, compare `android/guava/src/com/google/common/io/BaseEncoding.java` and `guava/src/com/google/common/io/BaseEncoding.java` as WHOLE FILES: this scan already matched 43 separate duplicated blocks between them, totalling at least 587 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (28 lines × 2) android/guava/src/com/google/common/io/TempFileCreator.java:103— android/guava/src/com/google/common/io/TempFileCreator.java:103-130 | guava/src/com/google/common/io/TempFileCreator.java:103-130 — before extracting anything, compare `android/guava/src/com/google/common/io/TempFileCreator.java` and `guava/src/com/google/common/io/TempFileCreator.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 176 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (28 lines × 2) android/guava/src/com/google/common/net/HostAndPort.java:212— android/guava/src/com/google/common/net/HostAndPort.java:212-239 | guava/src/com/google/common/net/HostAndPort.java:212-239 — before extracting anything, compare `android/guava/src/com/google/common/net/HostAndPort.java` and `guava/src/com/google/common/net/HostAndPort.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 95 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (28 lines × 2) android/guava/src/com/google/common/reflect/TypeVisitor.java:66— android/guava/src/com/google/common/reflect/TypeVisitor.java:66-93 | guava/src/com/google/common/reflect/TypeVisitor.java:66-93 — before extracting anything, compare `android/guava/src/com/google/common/reflect/TypeVisitor.java` and `guava/src/com/google/common/reflect/TypeVisitor.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (28 lines × 2) android/guava/src/com/google/common/util/concurrent/AbstractFuture.java:464— android/guava/src/com/google/common/util/concurrent/AbstractFuture.java:464-491 | guava/src/com/google/common/util/concurrent/AbstractFuture.java:464-491 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/AbstractFuture.java` and `guava/src/com/google/common/util/concurrent/AbstractFuture.java` as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 508 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (28 lines × 2) android/guava/src/com/google/common/util/concurrent/MoreExecutors.java:838— android/guava/src/com/google/common/util/concurrent/MoreExecutors.java:838-865 | guava/src/com/google/common/util/concurrent/MoreExecutors.java:834-861 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/MoreExecutors.java` and `guava/src/com/google/common/util/concurrent/MoreExecutors.java` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 248 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (28 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/UnhashableObject.java:31— android/guava-testlib/src/com/google/common/collect/testing/UnhashableObject.java:31-58 | guava-testlib/src/com/google/common/collect/testing/UnhashableObject.java:31-58 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/UnhashableObject.java` and `guava-testlib/src/com/google/common/collect/testing/UnhashableObject.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. 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 (28 lines × 2) android/guava/src/com/google/common/collect/FilteredEntrySetMultimap.java:36— android/guava/src/com/google/common/collect/FilteredEntrySetMultimap.java:36-63 | guava/src/com/google/common/collect/FilteredEntrySetMultimap.java:36-63 — before extracting anything, compare `android/guava/src/com/google/common/collect/FilteredEntrySetMultimap.java` and `guava/src/com/google/common/collect/FilteredEntrySetMultimap.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. 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 (28 lines × 2) android/guava/src/com/google/common/io/CountingOutputStream.java:42— android/guava/src/com/google/common/io/CountingOutputStream.java:42-69 | guava/src/com/google/common/io/CountingOutputStream.java:42-69 — before extracting anything, compare `android/guava/src/com/google/common/io/CountingOutputStream.java` and `guava/src/com/google/common/io/CountingOutputStream.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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.
Duplicated block (27 lines × 2) android/guava/src/com/google/common/base/Ascii.java:551— android/guava/src/com/google/common/base/Ascii.java:551-577 | guava/src/com/google/common/base/Ascii.java:551-577 — before extracting anything, compare `android/guava/src/com/google/common/base/Ascii.java` and `guava/src/com/google/common/base/Ascii.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 96 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (27 lines × 2) android/guava/src/com/google/common/base/CharMatcher.java:619— android/guava/src/com/google/common/base/CharMatcher.java:619-645 | guava/src/com/google/common/base/CharMatcher.java:619-645 — before extracting anything, compare `android/guava/src/com/google/common/base/CharMatcher.java` and `guava/src/com/google/common/base/CharMatcher.java` as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 345 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (27 lines × 2) android/guava/src/com/google/common/base/Throwables.java:406— android/guava/src/com/google/common/base/Throwables.java:406-432 | guava/src/com/google/common/base/Throwables.java:406-432 — before extracting anything, compare `android/guava/src/com/google/common/base/Throwables.java` and `guava/src/com/google/common/base/Throwables.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 136 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (27 lines × 2) android/guava/src/com/google/common/base/Utf8.java:50— android/guava/src/com/google/common/base/Utf8.java:50-76 | guava/src/com/google/common/base/Utf8.java:50-76 — before extracting anything, compare `android/guava/src/com/google/common/base/Utf8.java` and `guava/src/com/google/common/base/Utf8.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 114 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (27 lines × 2) android/guava/src/com/google/common/collect/AbstractBiMap.java:324— android/guava/src/com/google/common/collect/AbstractBiMap.java:324-350 | guava/src/com/google/common/collect/AbstractBiMap.java:348-374 — before extracting anything, compare `android/guava/src/com/google/common/collect/AbstractBiMap.java` and `guava/src/com/google/common/collect/AbstractBiMap.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 80 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (27 lines × 2) android/guava/src/com/google/common/collect/AbstractMapBasedMultimap.java:944— android/guava/src/com/google/common/collect/AbstractMapBasedMultimap.java:944-970 | guava/src/com/google/common/collect/AbstractMapBasedMultimap.java:952-978 — before extracting anything, compare `android/guava/src/com/google/common/collect/AbstractMapBasedMultimap.java` and `guava/src/com/google/common/collect/AbstractMapBasedMultimap.java` as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 408 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (27 lines × 2) android/guava/src/com/google/common/collect/CompactHashSet.java:447— android/guava/src/com/google/common/collect/CompactHashSet.java:447-473 | guava/src/com/google/common/collect/CompactHashSet.java:451-477 — before extracting anything, compare `android/guava/src/com/google/common/collect/CompactHashSet.java` and `guava/src/com/google/common/collect/CompactHashSet.java` as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 356 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (27 lines × 2) android/guava/src/com/google/common/collect/Multisets.java:537— android/guava/src/com/google/common/collect/Multisets.java:537-563 | guava/src/com/google/common/collect/Multisets.java:543-569 — before extracting anything, compare `android/guava/src/com/google/common/collect/Multisets.java` and `guava/src/com/google/common/collect/Multisets.java` as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 470 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 `android/guava/src/com/google/common/collect/Multisets.java:537` 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 (27 lines × 2) android/guava/src/com/google/common/collect/MutableClassToInstanceMap.java:114— android/guava/src/com/google/common/collect/MutableClassToInstanceMap.java:114-140 | guava/src/com/google/common/collect/MutableClassToInstanceMap.java:123-149 — before extracting anything, compare `android/guava/src/com/google/common/collect/MutableClassToInstanceMap.java` and `guava/src/com/google/common/collect/MutableClassToInstanceMap.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 74 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 `android/guava/src/com/google/common/collect/MutableClassToInstanceMap.java:114` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
Duplicated block (27 lines × 2) android/guava/src/com/google/common/collect/SortedLists.java:277— android/guava/src/com/google/common/collect/SortedLists.java:277-303 | guava/src/com/google/common/collect/SortedLists.java:277-303 — before extracting anything, compare `android/guava/src/com/google/common/collect/SortedLists.java` and `guava/src/com/google/common/collect/SortedLists.java` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 56 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (27 lines × 2) android/guava/src/com/google/common/collect/TreeRangeMap.java:637— android/guava/src/com/google/common/collect/TreeRangeMap.java:637-663 | guava/src/com/google/common/collect/TreeRangeMap.java:740-766 — before extracting anything, compare `android/guava/src/com/google/common/collect/TreeRangeMap.java` and `guava/src/com/google/common/collect/TreeRangeMap.java` as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 356 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (27 lines × 2) android/guava/src/com/google/common/graph/AbstractBaseGraph.java:72— android/guava/src/com/google/common/graph/AbstractBaseGraph.java:72-98 | guava/src/com/google/common/graph/AbstractBaseGraph.java:72-98 — before extracting anything, compare `android/guava/src/com/google/common/graph/AbstractBaseGraph.java` and `guava/src/com/google/common/graph/AbstractBaseGraph.java` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 239 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 `android/guava/src/com/google/common/graph/AbstractBaseGraph.java:72` 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 (27 lines × 2) android/guava/src/com/google/common/graph/AbstractBaseGraph.java:112— android/guava/src/com/google/common/graph/AbstractBaseGraph.java:112-138 | guava/src/com/google/common/graph/AbstractBaseGraph.java:112-138 — before extracting anything, compare `android/guava/src/com/google/common/graph/AbstractBaseGraph.java` and `guava/src/com/google/common/graph/AbstractBaseGraph.java` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 239 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (27 lines × 2) android/guava/src/com/google/common/graph/DirectedGraphConnections.java:491— android/guava/src/com/google/common/graph/DirectedGraphConnections.java:491-517 | guava/src/com/google/common/graph/DirectedGraphConnections.java:491-517 — before extracting anything, compare `android/guava/src/com/google/common/graph/DirectedGraphConnections.java` and `guava/src/com/google/common/graph/DirectedGraphConnections.java` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 391 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (27 lines × 2) android/guava/src/com/google/common/net/InetAddresses.java:425— android/guava/src/com/google/common/net/InetAddresses.java:425-451 | guava/src/com/google/common/net/InetAddresses.java:425-451 — before extracting anything, compare `android/guava/src/com/google/common/net/InetAddresses.java` and `guava/src/com/google/common/net/InetAddresses.java` as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 550 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (27 lines × 2) android/guava/src/com/google/common/primitives/UnsignedBytes.java:412— android/guava/src/com/google/common/primitives/UnsignedBytes.java:412-438 | guava/src/com/google/common/primitives/UnsignedBytes.java:413-439 — before extracting anything, compare `android/guava/src/com/google/common/primitives/UnsignedBytes.java` and `guava/src/com/google/common/primitives/UnsignedBytes.java` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 219 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 `android/guava/src/com/google/common/primitives/UnsignedBytes.java:412` 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 (27 lines × 2) android/guava/src/com/google/common/reflect/MutableTypeToInstanceMap.java:124— android/guava/src/com/google/common/reflect/MutableTypeToInstanceMap.java:124-150 | guava/src/com/google/common/reflect/MutableTypeToInstanceMap.java:124-150 — before extracting anything, compare `android/guava/src/com/google/common/reflect/MutableTypeToInstanceMap.java` and `guava/src/com/google/common/reflect/MutableTypeToInstanceMap.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava/src/com/google/common/reflect/MutableTypeToInstanceMap.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. 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 (27 lines × 2) android/guava/src/com/google/common/graph/EdgesConnecting.java:42— android/guava/src/com/google/common/graph/EdgesConnecting.java:42-68 | guava/src/com/google/common/graph/EdgesConnecting.java:42-68 — before extracting anything, compare `android/guava/src/com/google/common/graph/EdgesConnecting.java` and `guava/src/com/google/common/graph/EdgesConnecting.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. 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 (27 lines × 2) android/guava/src/com/google/common/reflect/TypeParameter.java:51— android/guava/src/com/google/common/reflect/TypeParameter.java:51-77 | guava/src/com/google/common/reflect/TypeParameter.java:51-77 — before extracting anything, compare `android/guava/src/com/google/common/reflect/TypeParameter.java` and `guava/src/com/google/common/reflect/TypeParameter.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. 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 (27 lines × 2) android/guava/src/com/google/common/util/concurrent/WrappingScheduledExecutorService.java:40— android/guava/src/com/google/common/util/concurrent/WrappingScheduledExecutorService.java:40-66 | guava/src/com/google/common/util/concurrent/WrappingScheduledExecutorService.java:40-66 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/WrappingScheduledExecutorService.java` and `guava/src/com/google/common/util/concurrent/WrappingScheduledExecutorService.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. 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 (27 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/TestsForSetsInJavaUtil.java:350— android/guava-testlib/src/com/google/common/collect/testing/TestsForSetsInJavaUtil.java:350-376 | guava-testlib/src/com/google/common/collect/testing/TestsForSetsInJavaUtil.java:475-501 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/TestsForSetsInJavaUtil.java` and `guava-testlib/src/com/google/common/collect/testing/TestsForSetsInJavaUtil.java` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 284 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (27 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/MultisetTestSuiteBuilder.java:124— android/guava-testlib/src/com/google/common/collect/testing/google/MultisetTestSuiteBuilder.java:124-150 | guava-testlib/src/com/google/common/collect/testing/google/MultisetTestSuiteBuilder.java:125-151 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultisetTestSuiteBuilder.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultisetTestSuiteBuilder.java` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 118 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (27 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/SortedMultisetTestSuiteBuilder.java:237— android/guava-testlib/src/com/google/common/collect/testing/google/SortedMultisetTestSuiteBuilder.java:237-263 | guava-testlib/src/com/google/common/collect/testing/google/SortedMultisetTestSuiteBuilder.java:237-263 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/SortedMultisetTestSuiteBuilder.java` and `guava-testlib/src/com/google/common/collect/testing/google/SortedMultisetTestSuiteBuilder.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 170 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (25 lines × 2) android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java:582— android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java:582-606 | guava-testlib/src/com/google/common/testing/ClassSanityTester.java:582-606 — before extracting anything, compare `android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java` and `guava-testlib/src/com/google/common/testing/ClassSanityTester.java` as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 368 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 `android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java:582` 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 (25 lines × 2) android/guava/src/com/google/common/base/FinalizableReferenceQueue.java:302— android/guava/src/com/google/common/base/FinalizableReferenceQueue.java:302-326 | guava/src/com/google/common/base/FinalizableReferenceQueue.java:302-326 — before extracting anything, compare `android/guava/src/com/google/common/base/FinalizableReferenceQueue.java` and `guava/src/com/google/common/base/FinalizableReferenceQueue.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 91 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (25 lines × 2) android/guava/src/com/google/common/collect/CompactHashMap.java:535— android/guava/src/com/google/common/collect/CompactHashMap.java:535-559 | guava/src/com/google/common/collect/CompactHashMap.java:539-563 — before extracting anything, compare `android/guava/src/com/google/common/collect/CompactHashMap.java` and `guava/src/com/google/common/collect/CompactHashMap.java` as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 479 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (25 lines × 2) android/guava/src/com/google/common/collect/CompactHashSet.java:418— android/guava/src/com/google/common/collect/CompactHashSet.java:418-442 | guava/src/com/google/common/collect/CompactHashSet.java:422-446 — before extracting anything, compare `android/guava/src/com/google/common/collect/CompactHashSet.java` and `guava/src/com/google/common/collect/CompactHashSet.java` as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 356 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (25 lines × 2) android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java:338— android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java:338-362 | guava/src/com/google/common/collect/ConcurrentHashMultiset.java:338-362 — before extracting anything, compare `android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java` and `guava/src/com/google/common/collect/ConcurrentHashMultiset.java` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 276 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (25 lines × 2) android/guava/src/com/google/common/collect/FilteredEntryMultimap.java:321— android/guava/src/com/google/common/collect/FilteredEntryMultimap.java:321-345 | guava/src/com/google/common/collect/FilteredEntryMultimap.java:321-345 — before extracting anything, compare `android/guava/src/com/google/common/collect/FilteredEntryMultimap.java` and `guava/src/com/google/common/collect/FilteredEntryMultimap.java` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 221 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 `android/guava/src/com/google/common/collect/FilteredEntryMultimap.java:321` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (25 lines × 2) android/guava/src/com/google/common/collect/LinkedListMultimap.java:748— android/guava/src/com/google/common/collect/LinkedListMultimap.java:748-772 | guava/src/com/google/common/collect/LinkedListMultimap.java:751-775 — before extracting anything, compare `android/guava/src/com/google/common/collect/LinkedListMultimap.java` and `guava/src/com/google/common/collect/LinkedListMultimap.java` as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 328 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (25 lines × 2) android/guava/src/com/google/common/collect/TreeRangeMap.java:412— android/guava/src/com/google/common/collect/TreeRangeMap.java:412-436 | guava/src/com/google/common/collect/TreeRangeMap.java:502-526 — before extracting anything, compare `android/guava/src/com/google/common/collect/TreeRangeMap.java` and `guava/src/com/google/common/collect/TreeRangeMap.java` as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 356 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (25 lines × 2) android/guava/src/com/google/common/graph/Traverser.java:365— android/guava/src/com/google/common/graph/Traverser.java:365-389 | guava/src/com/google/common/graph/Traverser.java:365-389 — before extracting anything, compare `android/guava/src/com/google/common/graph/Traverser.java` and `guava/src/com/google/common/graph/Traverser.java` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 108 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (25 lines × 2) android/guava/src/com/google/common/io/ByteSource.java:205— android/guava/src/com/google/common/io/ByteSource.java:205-229 | guava/src/com/google/common/io/ByteSource.java:205-229 — before extracting anything, compare `android/guava/src/com/google/common/io/ByteSource.java` and `guava/src/com/google/common/io/ByteSource.java` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 206 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (25 lines × 2) android/guava/src/com/google/common/io/FileBackedOutputStream.java:337— android/guava/src/com/google/common/io/FileBackedOutputStream.java:337-361 | guava/src/com/google/common/io/FileBackedOutputStream.java:337-361 — before extracting anything, compare `android/guava/src/com/google/common/io/FileBackedOutputStream.java` and `guava/src/com/google/common/io/FileBackedOutputStream.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 115 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (25 lines × 2) android/guava/src/com/google/common/math/IntMath.java:117— android/guava/src/com/google/common/math/IntMath.java:117-141 | guava/src/com/google/common/math/IntMath.java:117-141 — before extracting anything, compare `android/guava/src/com/google/common/math/IntMath.java` and `guava/src/com/google/common/math/IntMath.java` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 357 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (25 lines × 2) android/guava/src/com/google/common/math/LongMath.java:124— android/guava/src/com/google/common/math/LongMath.java:124-148 | guava/src/com/google/common/math/LongMath.java:124-148 — before extracting anything, compare `android/guava/src/com/google/common/math/LongMath.java` and `guava/src/com/google/common/math/LongMath.java` as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 723 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (25 lines × 2) android/guava/src/com/google/common/math/Quantiles.java:540— android/guava/src/com/google/common/math/Quantiles.java:540-564 | guava/src/com/google/common/math/Quantiles.java:540-564 — before extracting anything, compare `android/guava/src/com/google/common/math/Quantiles.java` and `guava/src/com/google/common/math/Quantiles.java` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 229 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (25 lines × 2) android/guava/src/com/google/common/net/MediaType.java:1059— android/guava/src/com/google/common/net/MediaType.java:1059-1083 | guava/src/com/google/common/net/MediaType.java:1059-1083 — before extracting anything, compare `android/guava/src/com/google/common/net/MediaType.java` and `guava/src/com/google/common/net/MediaType.java` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 188 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (25 lines × 2) android/guava/src/com/google/common/reflect/Types.java:173— android/guava/src/com/google/common/reflect/Types.java:173-197 | guava/src/com/google/common/reflect/Types.java:173-197 — before extracting anything, compare `android/guava/src/com/google/common/reflect/Types.java` and `guava/src/com/google/common/reflect/Types.java` as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 245 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (25 lines × 2) android/guava/src/com/google/common/util/concurrent/AbstractScheduledService.java:261— android/guava/src/com/google/common/util/concurrent/AbstractScheduledService.java:261-285 | guava/src/com/google/common/util/concurrent/AbstractScheduledService.java:259-283 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/AbstractScheduledService.java` and `guava/src/com/google/common/util/concurrent/AbstractScheduledService.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 173 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (25 lines × 2) android/guava/src/com/google/common/util/concurrent/ClosingFuture.java:412— android/guava/src/com/google/common/util/concurrent/ClosingFuture.java:412-436 | guava/src/com/google/common/util/concurrent/ClosingFuture.java:417-441 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/ClosingFuture.java` and `guava/src/com/google/common/util/concurrent/ClosingFuture.java` as WHOLE FILES: this scan already matched 38 separate duplicated blocks between them, totalling at least 531 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (25 lines × 2) android/guava/src/com/google/common/util/concurrent/ClosingFuture.java:2061— android/guava/src/com/google/common/util/concurrent/ClosingFuture.java:2061-2085 | guava/src/com/google/common/util/concurrent/ClosingFuture.java:2076-2100 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/ClosingFuture.java` and `guava/src/com/google/common/util/concurrent/ClosingFuture.java` as WHOLE FILES: this scan already matched 38 separate duplicated blocks between them, totalling at least 531 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (25 lines × 2) android/guava/src/com/google/common/collect/AbstractSequentialIterator.java:50— android/guava/src/com/google/common/collect/AbstractSequentialIterator.java:50-74 | guava/src/com/google/common/collect/AbstractSequentialIterator.java:50-74 — before extracting anything, compare `android/guava/src/com/google/common/collect/AbstractSequentialIterator.java` and `guava/src/com/google/common/collect/AbstractSequentialIterator.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. 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 (25 lines × 2) android/guava/src/com/google/common/io/Java8Compatibility.java:28— android/guava/src/com/google/common/io/Java8Compatibility.java:28-52 | guava/src/com/google/common/io/Java8Compatibility.java:28-52 — before extracting anything, compare `android/guava/src/com/google/common/io/Java8Compatibility.java` and `guava/src/com/google/common/io/Java8Compatibility.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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.
Duplicated block (25 lines × 2) android/guava/src/com/google/common/eventbus/SubscriberRegistry.java:166— android/guava/src/com/google/common/eventbus/SubscriberRegistry.java:166-190 | guava/src/com/google/common/eventbus/SubscriberRegistry.java:166-190 — before extracting anything, compare `android/guava/src/com/google/common/eventbus/SubscriberRegistry.java` and `guava/src/com/google/common/eventbus/SubscriberRegistry.java` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 114 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.
Duplicated block (32 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java:222— android/guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java:222-253 | guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java:217-248 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java` and `guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 105 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (32 lines × 2) android/guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java:83— android/guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java:83-114 | guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java:83-114 — before extracting anything, compare `android/guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java` and `guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 118 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (32 lines × 2) android/guava/src/com/google/common/collect/ContiguousSet.java:64— android/guava/src/com/google/common/collect/ContiguousSet.java:64-95 | guava/src/com/google/common/collect/ContiguousSet.java:64-95 — before extracting anything, compare `android/guava/src/com/google/common/collect/ContiguousSet.java` and `guava/src/com/google/common/collect/ContiguousSet.java` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 44 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (32 lines × 2) android/guava/src/com/google/common/collect/ForwardingNavigableMap.java:292— android/guava/src/com/google/common/collect/ForwardingNavigableMap.java:292-323 | guava/src/com/google/common/collect/ForwardingNavigableMap.java:298-329 — before extracting anything, compare `android/guava/src/com/google/common/collect/ForwardingNavigableMap.java` and `guava/src/com/google/common/collect/ForwardingNavigableMap.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (32 lines × 2) android/guava/src/com/google/common/collect/ImmutableListMultimap.java:536— android/guava/src/com/google/common/collect/ImmutableListMultimap.java:536-567 | guava/src/com/google/common/collect/ImmutableListMultimap.java:534-565 — before extracting anything, compare `android/guava/src/com/google/common/collect/ImmutableListMultimap.java` and `guava/src/com/google/common/collect/ImmutableListMultimap.java` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 141 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (32 lines × 2) android/guava/src/com/google/common/collect/Sets.java:1012— android/guava/src/com/google/common/collect/Sets.java:1012-1043 | guava/src/com/google/common/collect/Sets.java:1061-1092 — before extracting anything, compare `android/guava/src/com/google/common/collect/Sets.java` and `guava/src/com/google/common/collect/Sets.java` as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 722 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 `android/guava/src/com/google/common/collect/Sets.java:1012` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (32 lines × 2) android/guava/src/com/google/common/hash/Murmur3_32HashFunction.java:369— android/guava/src/com/google/common/hash/Murmur3_32HashFunction.java:369-400 | guava/src/com/google/common/hash/Murmur3_32HashFunction.java:369-400 — before extracting anything, compare `android/guava/src/com/google/common/hash/Murmur3_32HashFunction.java` and `guava/src/com/google/common/hash/Murmur3_32HashFunction.java` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 228 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 `android/guava/src/com/google/common/hash/Murmur3_32HashFunction.java:369` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (32 lines × 2) android/guava/src/com/google/common/reflect/TypeToken.java:602— android/guava/src/com/google/common/reflect/TypeToken.java:602-633 | guava/src/com/google/common/reflect/TypeToken.java:602-633 — before extracting anything, compare `android/guava/src/com/google/common/reflect/TypeToken.java` and `guava/src/com/google/common/reflect/TypeToken.java` as WHOLE FILES: this scan already matched 52 separate duplicated blocks between them, totalling at least 744 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (32 lines × 2) android/guava/src/com/google/common/reflect/TypeToken.java:641— android/guava/src/com/google/common/reflect/TypeToken.java:641-672 | guava/src/com/google/common/reflect/TypeToken.java:641-672 — before extracting anything, compare `android/guava/src/com/google/common/reflect/TypeToken.java` and `guava/src/com/google/common/reflect/TypeToken.java` as WHOLE FILES: this scan already matched 52 separate duplicated blocks between them, totalling at least 744 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (32 lines × 2) android/guava/src/com/google/common/reflect/TypeToken.java:1107— android/guava/src/com/google/common/reflect/TypeToken.java:1107-1138 | guava/src/com/google/common/reflect/TypeToken.java:1107-1138 — before extracting anything, compare `android/guava/src/com/google/common/reflect/TypeToken.java` and `guava/src/com/google/common/reflect/TypeToken.java` as WHOLE FILES: this scan already matched 52 separate duplicated blocks between them, totalling at least 744 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (32 lines × 2) android/guava/src/com/google/common/util/concurrent/AbstractExecutionThreadService.java:44— android/guava/src/com/google/common/util/concurrent/AbstractExecutionThreadService.java:44-75 | guava/src/com/google/common/util/concurrent/AbstractExecutionThreadService.java:45-76 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/AbstractExecutionThreadService.java` and `guava/src/com/google/common/util/concurrent/AbstractExecutionThreadService.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (32 lines × 2) android/guava/src/com/google/common/util/concurrent/AggregateFuture.java:209— android/guava/src/com/google/common/util/concurrent/AggregateFuture.java:209-240 | guava/src/com/google/common/util/concurrent/AggregateFuture.java:209-240 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/AggregateFuture.java` and `guava/src/com/google/common/util/concurrent/AggregateFuture.java` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 228 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (32 lines × 2) android/guava/src/com/google/common/util/concurrent/JdkFutureAdapters.java:140— android/guava/src/com/google/common/util/concurrent/JdkFutureAdapters.java:140-171 | guava/src/com/google/common/util/concurrent/JdkFutureAdapters.java:140-171 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/JdkFutureAdapters.java` and `guava/src/com/google/common/util/concurrent/JdkFutureAdapters.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (32 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/SortedSetMultimapGetTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/google/SortedSetMultimapGetTester.java:1-32 | guava-testlib/src/com/google/common/collect/testing/google/SortedSetMultimapGetTester.java:1-32 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/SortedSetMultimapGetTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/SortedSetMultimapGetTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/google/SortedSetMultimapGetTester.java:1` 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 (32 lines × 2) android/guava/src/com/google/common/cache/AbstractLoadingCache.java:46— android/guava/src/com/google/common/cache/AbstractLoadingCache.java:46-77 | guava/src/com/google/common/cache/AbstractLoadingCache.java:46-77 — before extracting anything, compare `android/guava/src/com/google/common/cache/AbstractLoadingCache.java` and `guava/src/com/google/common/cache/AbstractLoadingCache.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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.
Duplicated block (32 lines × 2) android/guava/src/com/google/common/hash/HashingOutputStream.java:46— android/guava/src/com/google/common/hash/HashingOutputStream.java:46-77 | guava/src/com/google/common/hash/HashingOutputStream.java:46-77 — before extracting anything, compare `android/guava/src/com/google/common/hash/HashingOutputStream.java` and `guava/src/com/google/common/hash/HashingOutputStream.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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.
Duplicated block (32 lines × 2) android/guava/src/com/google/common/io/MoreFiles.java:720— android/guava/src/com/google/common/io/MoreFiles.java:720-751 | guava/src/com/google/common/io/MoreFiles.java:717-748 — before extracting anything, compare `android/guava/src/com/google/common/io/MoreFiles.java` and `guava/src/com/google/common/io/MoreFiles.java` as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 425 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.
Duplicated block (6 lines × 4) android/guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java:113— android/guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java:113-118 | android/guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java:134-139 | guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java:113-118 | guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java:134-139 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 87 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 `android/guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java:113` 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 (6 lines × 4) android/guava-testlib/src/com/google/common/collect/testing/google/MultisetIteratorTester.java:62— android/guava-testlib/src/com/google/common/collect/testing/google/MultisetIteratorTester.java:62-67 | android/guava-testlib/src/com/google/common/collect/testing/google/MultisetIteratorTester.java:87-92 | guava-testlib/src/com/google/common/collect/testing/google/MultisetIteratorTester.java:62-67 | guava-testlib/src/com/google/common/collect/testing/google/MultisetIteratorTester.java:87-92 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultisetIteratorTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultisetIteratorTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 3 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/google/MultisetIteratorTester.java:62` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (6 lines × 4) android/guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceAllTester.java:64— android/guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceAllTester.java:64-69 | android/guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceAllTester.java:81-86 | guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceAllTester.java:63-68 | guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceAllTester.java:80-85 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceAllTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceAllTester.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 118 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.
Duplicated block (6 lines × 4) android/guava/src/com/google/common/cache/LocalCache.java:3247— android/guava/src/com/google/common/cache/LocalCache.java:3247-3252 | android/guava/src/com/google/common/cache/LocalCache.java:3289-3294 | guava/src/com/google/common/cache/LocalCache.java:3337-3342 | guava/src/com/google/common/cache/LocalCache.java:3379-3384 — before extracting anything, compare `android/guava/src/com/google/common/cache/LocalCache.java` and `guava/src/com/google/common/cache/LocalCache.java` as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1881 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 `android/guava/src/com/google/common/cache/LocalCache.java:3247` 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 first that the copies are not typed on the same thing: the declarations holding them bind `valueReference` to `ValueReference<K, V>` in one and `LoadingValueReference<K, V>` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (6 lines × 4) android/guava/src/com/google/common/collect/AbstractMapEntry.java:51— android/guava/src/com/google/common/collect/AbstractMapEntry.java:51-56 | android/guava/src/com/google/common/collect/ForwardingMapEntry.java:98-103 | guava/src/com/google/common/collect/AbstractMapEntry.java:51-56 | guava/src/com/google/common/collect/ForwardingMapEntry.java:98-103 — before extracting anything, compare `android/guava/src/com/google/common/collect/AbstractMapEntry.java` and `guava/src/com/google/common/collect/AbstractMapEntry.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava/src/com/google/common/collect/AbstractMapEntry.java:51` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (6 lines × 4) android/guava/src/com/google/common/collect/Comparators.java:75— android/guava/src/com/google/common/collect/Comparators.java:75-80 | android/guava/src/com/google/common/collect/Comparators.java:97-102 | guava/src/com/google/common/collect/Comparators.java:75-80 | guava/src/com/google/common/collect/Comparators.java:97-102 — before extracting anything, compare `android/guava/src/com/google/common/collect/Comparators.java` and `guava/src/com/google/common/collect/Comparators.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 50 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 `android/guava/src/com/google/common/collect/Comparators.java:75` 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 (6 lines × 4) android/guava/src/com/google/common/collect/Maps.java:3954— android/guava/src/com/google/common/collect/Maps.java:3954-3959 | android/guava/src/com/google/common/collect/Maps.java:3969-3974 | guava/src/com/google/common/collect/Maps.java:4165-4170 | guava/src/com/google/common/collect/Maps.java:4180-4185 — before extracting anything, compare `android/guava/src/com/google/common/collect/Maps.java` and `guava/src/com/google/common/collect/Maps.java` as WHOLE FILES: this scan already matched 72 separate duplicated blocks between them, totalling at least 830 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.
Duplicated block (6 lines × 4) android/guava/src/com/google/common/graph/Graphs.java:547— android/guava/src/com/google/common/graph/Graphs.java:547-552 | android/guava/src/com/google/common/graph/Graphs.java:574-579 | guava/src/com/google/common/graph/Graphs.java:568-573 | guava/src/com/google/common/graph/Graphs.java:595-600 — before extracting anything, compare `android/guava/src/com/google/common/graph/Graphs.java` and `guava/src/com/google/common/graph/Graphs.java` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 235 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 `android/guava/src/com/google/common/graph/Graphs.java:547` 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 first that the copies are not typed on the same thing: the declarations holding them bind `graph` to `Graph<N>` in one and `ValueGraph<N, V>` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (6 lines × 4) android/guava/src/com/google/common/io/BaseEncoding.java:788— android/guava/src/com/google/common/io/BaseEncoding.java:788-793 | android/guava/src/com/google/common/io/BaseEncoding.java:1066-1071 | guava/src/com/google/common/io/BaseEncoding.java:788-793 | guava/src/com/google/common/io/BaseEncoding.java:1066-1071 — before extracting anything, compare `android/guava/src/com/google/common/io/BaseEncoding.java` and `guava/src/com/google/common/io/BaseEncoding.java` as WHOLE FILES: this scan already matched 43 separate duplicated blocks between them, totalling at least 587 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.
Duplicated block (6 lines × 4) android/guava/src/com/google/common/cache/LocalCache.java:502— android/guava/src/com/google/common/cache/LocalCache.java:502-507 | android/guava/src/com/google/common/cache/LocalCache.java:564-569 | guava/src/com/google/common/cache/LocalCache.java:506-511 | guava/src/com/google/common/cache/LocalCache.java:568-573 — before extracting anything, compare `android/guava/src/com/google/common/cache/LocalCache.java` and `guava/src/com/google/common/cache/LocalCache.java` as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1881 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 `android/guava/src/com/google/common/cache/LocalCache.java:502` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (6 lines × 4) android/guava/src/com/google/common/cache/LocalCache.java:4088— android/guava/src/com/google/common/cache/LocalCache.java:4088-4093 | android/guava/src/com/google/common/collect/MapMakerInternalMap.java:2421-2426 | guava/src/com/google/common/cache/LocalCache.java:4198-4203 | guava/src/com/google/common/collect/MapMakerInternalMap.java:2421-2426 — 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. 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 (6 lines × 4) android/guava/src/com/google/common/cache/LocalCache.java:4096— android/guava/src/com/google/common/cache/LocalCache.java:4096-4101 | android/guava/src/com/google/common/collect/MapMakerInternalMap.java:2430-2435 | guava/src/com/google/common/cache/LocalCache.java:4206-4211 | guava/src/com/google/common/collect/MapMakerInternalMap.java:2430-2435 — 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. 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 (6 lines × 4) android/guava/src/com/google/common/cache/LocalCache.java:4144— android/guava/src/com/google/common/cache/LocalCache.java:4144-4149 | android/guava/src/com/google/common/collect/MapMakerInternalMap.java:2478-2483 | guava/src/com/google/common/cache/LocalCache.java:4288-4293 | guava/src/com/google/common/collect/MapMakerInternalMap.java:2478-2483 — 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. 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 (6 lines × 4) android/guava/src/com/google/common/collect/CompactHashMap.java:247— android/guava/src/com/google/common/collect/CompactHashMap.java:247-252 | android/guava/src/com/google/common/collect/CompactHashSet.java:215-220 | guava/src/com/google/common/collect/CompactHashMap.java:251-256 | guava/src/com/google/common/collect/CompactHashSet.java:219-224 — before extracting anything, compare `android/guava/src/com/google/common/collect/CompactHashMap.java` and `android/guava/src/com/google/common/collect/CompactHashSet.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 135 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 4) android/guava/src/com/google/common/math/StatsAccumulator.java:174— android/guava/src/com/google/common/math/StatsAccumulator.java:174-179 | android/guava/src/com/google/common/math/StatsAccumulator.java:187-192 | guava/src/com/google/common/math/StatsAccumulator.java:171-176 | guava/src/com/google/common/math/StatsAccumulator.java:184-189 — before extracting anything, compare `android/guava/src/com/google/common/math/StatsAccumulator.java` and `guava/src/com/google/common/math/StatsAccumulator.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 93 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. Note first that the copies are not typed on the same thing: the declarations holding them bind `values` to `Stats` in one and `StatsAccumulator` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (6 lines × 4) android/guava-testlib/src/com/google/common/collect/testing/google/SetMultimapTestSuiteBuilder.java:57— android/guava-testlib/src/com/google/common/collect/testing/google/SetMultimapTestSuiteBuilder.java:57-62 | android/guava-testlib/src/com/google/common/collect/testing/google/SortedSetMultimapTestSuiteBuilder.java:56-61 | guava-testlib/src/com/google/common/collect/testing/google/SetMultimapTestSuiteBuilder.java:57-62 | guava-testlib/src/com/google/common/collect/testing/google/SortedSetMultimapTestSuiteBuilder.java:56-61 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/SetMultimapTestSuiteBuilder.java` and `guava-testlib/src/com/google/common/collect/testing/google/SetMultimapTestSuiteBuilder.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 41 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `android/guava-testlib/src/com/google/common/collect/testing/google/SortedSetMultimapTestSuiteBuilder.java:62` calls `add` and `android/guava-testlib/src/com/google/common/collect/testing/google/SetMultimapTestSuiteBuilder.java:63` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (6 lines × 4) android/guava-testlib/src/com/google/common/collect/testing/MapTestSuiteBuilder.java:155— android/guava-testlib/src/com/google/common/collect/testing/MapTestSuiteBuilder.java:155-160 | android/guava-testlib/src/com/google/common/collect/testing/google/MultimapTestSuiteBuilder.java:252-257 | guava-testlib/src/com/google/common/collect/testing/MapTestSuiteBuilder.java:177-182 | guava-testlib/src/com/google/common/collect/testing/google/MultimapTestSuiteBuilder.java:253-258 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/MapTestSuiteBuilder.java` and `guava-testlib/src/com/google/common/collect/testing/MapTestSuiteBuilder.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 109 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 `android/guava-testlib/src/com/google/common/collect/testing/google/MultimapTestSuiteBuilder.java:252` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. 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.
HackComment android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureCancellationCauseTest.java:53— // Hack to load AbstractFuture et. al. in a new classloader so that it re-reads the cancellation — a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there.
HackComment guava-tests/test/com/google/common/util/concurrent/AbstractFutureCancellationCauseTest.java:53— // Hack to load AbstractFuture et. al. in a new classloader so that it re-reads the cancellation — a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there.
HackComment android/guava/src/com/google/common/collect/ImmutableSortedSet.java:211— // Hack around E not being a subtype of Comparable. — a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there.
HackComment android/guava/src/com/google/common/collect/ImmutableSortedSet.java:243— // Hack around E not being a subtype of Comparable. — a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there.
HackComment android/guava/src/com/google/common/collect/ImmutableSortedSet.java:262— // Hack around E not being a subtype of Comparable. — a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there.
HackComment android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java:234— // Hack around E not being a subtype of Comparable. — a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there.
HackComment android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java:252— // Hack around E not being a subtype of Comparable. — a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there.
HackComment guava/src/com/google/common/collect/ImmutableSortedSet.java:216— // Hack around E not being a subtype of Comparable. — a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there.
HackComment guava/src/com/google/common/collect/ImmutableSortedSet.java:248— // Hack around E not being a subtype of Comparable. — a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there.
HackComment guava/src/com/google/common/collect/ImmutableSortedSet.java:267— // Hack around E not being a subtype of Comparable. — a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there.
HackComment guava/src/com/google/common/collect/ImmutableSortedMultiset.java:214— // Hack around E not being a subtype of Comparable. — a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there.
HackComment guava/src/com/google/common/collect/ImmutableSortedMultiset.java:232— // Hack around E not being a subtype of Comparable. — a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there.
HackComment android/guava/src/com/google/common/collect/ImmutableSortedMap.java:401— // Hack around K not being a subtype of Comparable. — a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there.
HackComment android/guava/src/com/google/common/collect/ImmutableSortedMap.java:437— // Hack around K not being a subtype of Comparable. — a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there.
HackComment guava/src/com/google/common/collect/ImmutableSortedMap.java:399— // Hack around K not being a subtype of Comparable. — a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there.
HackComment guava/src/com/google/common/collect/ImmutableSortedMap.java:435— // Hack around K not being a subtype of Comparable. — a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there.
Duplicated block (33 lines × 2) android/guava/src/com/google/common/base/internal/Finalizer.java:74— android/guava/src/com/google/common/base/internal/Finalizer.java:74-106 | guava/src/com/google/common/base/internal/Finalizer.java:74-106 — before extracting anything, compare `android/guava/src/com/google/common/base/internal/Finalizer.java` and `guava/src/com/google/common/base/internal/Finalizer.java` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 136 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (33 lines × 2) android/guava/src/com/google/common/cache/LocalCache.java:2931— android/guava/src/com/google/common/cache/LocalCache.java:2931-2963 | guava/src/com/google/common/cache/LocalCache.java:3021-3053 — before extracting anything, compare `android/guava/src/com/google/common/cache/LocalCache.java` and `guava/src/com/google/common/cache/LocalCache.java` as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1881 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 `android/guava/src/com/google/common/cache/LocalCache.java:2931` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (33 lines × 2) android/guava/src/com/google/common/collect/Iterators.java:633— android/guava/src/com/google/common/collect/Iterators.java:633-665 | guava/src/com/google/common/collect/Iterators.java:633-665 — before extracting anything, compare `android/guava/src/com/google/common/collect/Iterators.java` and `guava/src/com/google/common/collect/Iterators.java` as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 537 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (33 lines × 2) android/guava/src/com/google/common/collect/Maps.java:1113— android/guava/src/com/google/common/collect/Maps.java:1113-1145 | guava/src/com/google/common/collect/Maps.java:1150-1182 — before extracting anything, compare `android/guava/src/com/google/common/collect/Maps.java` and `guava/src/com/google/common/collect/Maps.java` as WHOLE FILES: this scan already matched 72 separate duplicated blocks between them, totalling at least 830 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (33 lines × 2) android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java:408— android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java:408-440 | guava/src/com/google/common/collect/MinMaxPriorityQueue.java:408-440 — before extracting anything, compare `android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java` and `guava/src/com/google/common/collect/MinMaxPriorityQueue.java` as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 374 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (33 lines × 2) android/guava/src/com/google/common/collect/Queues.java:394— android/guava/src/com/google/common/collect/Queues.java:394-426 | guava/src/com/google/common/collect/Queues.java:392-424 — before extracting anything, compare `android/guava/src/com/google/common/collect/Queues.java` and `guava/src/com/google/common/collect/Queues.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 104 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (33 lines × 2) android/guava/src/com/google/common/collect/TreeRangeSet.java:368— android/guava/src/com/google/common/collect/TreeRangeSet.java:368-400 | guava/src/com/google/common/collect/TreeRangeSet.java:368-400 — before extracting anything, compare `android/guava/src/com/google/common/collect/TreeRangeSet.java` and `guava/src/com/google/common/collect/TreeRangeSet.java` as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 494 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (33 lines × 2) android/guava/src/com/google/common/collect/TreeRangeSet.java:817— android/guava/src/com/google/common/collect/TreeRangeSet.java:817-849 | guava/src/com/google/common/collect/TreeRangeSet.java:817-849 — before extracting anything, compare `android/guava/src/com/google/common/collect/TreeRangeSet.java` and `guava/src/com/google/common/collect/TreeRangeSet.java` as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 494 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (33 lines × 2) android/guava/src/com/google/common/io/TempFileCreator.java:209— android/guava/src/com/google/common/io/TempFileCreator.java:209-241 | guava/src/com/google/common/io/TempFileCreator.java:209-241 — before extracting anything, compare `android/guava/src/com/google/common/io/TempFileCreator.java` and `guava/src/com/google/common/io/TempFileCreator.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 176 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (33 lines × 2) android/guava/src/com/google/common/math/LongMath.java:269— android/guava/src/com/google/common/math/LongMath.java:269-301 | guava/src/com/google/common/math/LongMath.java:269-301 — before extracting anything, compare `android/guava/src/com/google/common/math/LongMath.java` and `guava/src/com/google/common/math/LongMath.java` as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 723 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (33 lines × 2) android/guava/src/com/google/common/math/Quantiles.java:665— android/guava/src/com/google/common/math/Quantiles.java:665-697 | guava/src/com/google/common/math/Quantiles.java:665-697 — before extracting anything, compare `android/guava/src/com/google/common/math/Quantiles.java` and `guava/src/com/google/common/math/Quantiles.java` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 229 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (33 lines × 2) android/guava/src/com/google/common/net/HostAndPort.java:170— android/guava/src/com/google/common/net/HostAndPort.java:170-202 | guava/src/com/google/common/net/HostAndPort.java:170-202 — before extracting anything, compare `android/guava/src/com/google/common/net/HostAndPort.java` and `guava/src/com/google/common/net/HostAndPort.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 95 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (33 lines × 2) android/guava/src/com/google/common/reflect/TypeToken.java:499— android/guava/src/com/google/common/reflect/TypeToken.java:499-531 | guava/src/com/google/common/reflect/TypeToken.java:499-531 — before extracting anything, compare `android/guava/src/com/google/common/reflect/TypeToken.java` and `guava/src/com/google/common/reflect/TypeToken.java` as WHOLE FILES: this scan already matched 52 separate duplicated blocks between them, totalling at least 744 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (33 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/MinimalIterable.java:54— android/guava-testlib/src/com/google/common/collect/testing/MinimalIterable.java:54-86 | guava-testlib/src/com/google/common/collect/testing/MinimalIterable.java:54-86 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/MinimalIterable.java` and `guava-testlib/src/com/google/common/collect/testing/MinimalIterable.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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.
Duplicated block (33 lines × 2) android/guava/src/com/google/common/util/concurrent/Platform.java:30— android/guava/src/com/google/common/util/concurrent/Platform.java:30-62 | guava/src/com/google/common/util/concurrent/Platform.java:30-62 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/Platform.java` and `guava/src/com/google/common/util/concurrent/Platform.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava/src/com/google/common/util/concurrent/Platform.java:30` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
Duplicated block (29 lines × 2) android/guava/src/com/google/common/base/MoreObjects.java:377— android/guava/src/com/google/common/base/MoreObjects.java:377-405 | guava/src/com/google/common/base/MoreObjects.java:388-416 — before extracting anything, compare `android/guava/src/com/google/common/base/MoreObjects.java` and `guava/src/com/google/common/base/MoreObjects.java` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 43 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (29 lines × 2) android/guava/src/com/google/common/base/Splitter.java:166— android/guava/src/com/google/common/base/Splitter.java:166-194 | guava/src/com/google/common/base/Splitter.java:166-194 — before extracting anything, compare `android/guava/src/com/google/common/base/Splitter.java` and `guava/src/com/google/common/base/Splitter.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 192 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (29 lines × 2) android/guava/src/com/google/common/collect/Collections2.java:638— android/guava/src/com/google/common/collect/Collections2.java:638-666 | guava/src/com/google/common/collect/Collections2.java:664-692 — before extracting anything, compare `android/guava/src/com/google/common/collect/Collections2.java` and `guava/src/com/google/common/collect/Collections2.java` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 173 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (29 lines × 2) android/guava/src/com/google/common/collect/CompactHashSet.java:320— android/guava/src/com/google/common/collect/CompactHashSet.java:320-348 | guava/src/com/google/common/collect/CompactHashSet.java:324-352 — before extracting anything, compare `android/guava/src/com/google/common/collect/CompactHashSet.java` and `guava/src/com/google/common/collect/CompactHashSet.java` as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 356 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 `android/guava/src/com/google/common/collect/CompactHashSet.java:320` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (29 lines × 2) android/guava/src/com/google/common/collect/FluentIterable.java:545— android/guava/src/com/google/common/collect/FluentIterable.java:545-573 | guava/src/com/google/common/collect/FluentIterable.java:538-566 — before extracting anything, compare `android/guava/src/com/google/common/collect/FluentIterable.java` and `guava/src/com/google/common/collect/FluentIterable.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 76 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (29 lines × 2) android/guava/src/com/google/common/collect/MapMakerInternalMap.java:1762— android/guava/src/com/google/common/collect/MapMakerInternalMap.java:1762-1790 | guava/src/com/google/common/collect/MapMakerInternalMap.java:1762-1790 — before extracting anything, compare `android/guava/src/com/google/common/collect/MapMakerInternalMap.java` and `guava/src/com/google/common/collect/MapMakerInternalMap.java` as WHOLE FILES: this scan already matched 73 separate duplicated blocks between them, totalling at least 916 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 `android/guava/src/com/google/common/collect/MapMakerInternalMap.java:1762` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (29 lines × 2) android/guava/src/com/google/common/io/ByteStreams.java:855— android/guava/src/com/google/common/io/ByteStreams.java:855-883 | guava/src/com/google/common/io/ByteStreams.java:855-883 — before extracting anything, compare `android/guava/src/com/google/common/io/ByteStreams.java` and `guava/src/com/google/common/io/ByteStreams.java` as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 285 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (29 lines × 2) android/guava/src/com/google/common/util/concurrent/Monitor.java:914— android/guava/src/com/google/common/util/concurrent/Monitor.java:914-942 | guava/src/com/google/common/util/concurrent/Monitor.java:904-932 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/Monitor.java` and `guava/src/com/google/common/util/concurrent/Monitor.java` as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 433 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (29 lines × 2) android/guava/src/com/google/common/collect/ForwardingConcurrentMap.java:44— android/guava/src/com/google/common/collect/ForwardingConcurrentMap.java:44-72 | guava/src/com/google/common/collect/ForwardingConcurrentMap.java:44-72 — before extracting anything, compare `android/guava/src/com/google/common/collect/ForwardingConcurrentMap.java` and `guava/src/com/google/common/collect/ForwardingConcurrentMap.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. 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 (29 lines × 2) android/guava/src/com/google/common/eventbus/DeadEvent.java:41— android/guava/src/com/google/common/eventbus/DeadEvent.java:41-69 | guava/src/com/google/common/eventbus/DeadEvent.java:41-69 — before extracting anything, compare `android/guava/src/com/google/common/eventbus/DeadEvent.java` and `guava/src/com/google/common/eventbus/DeadEvent.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. 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 (29 lines × 2) android/guava/src/com/google/common/eventbus/SubscriberExceptionContext.java:40— android/guava/src/com/google/common/eventbus/SubscriberExceptionContext.java:40-68 | guava/src/com/google/common/eventbus/SubscriberExceptionContext.java:40-68 — before extracting anything, compare `android/guava/src/com/google/common/eventbus/SubscriberExceptionContext.java` and `guava/src/com/google/common/eventbus/SubscriberExceptionContext.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava/src/com/google/common/eventbus/SubscriberExceptionContext.java:40` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. 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 (29 lines × 2) android/guava/src/com/google/common/graph/DirectedNetworkConnections.java:37— android/guava/src/com/google/common/graph/DirectedNetworkConnections.java:37-65 | guava/src/com/google/common/graph/DirectedNetworkConnections.java:37-65 — before extracting anything, compare `android/guava/src/com/google/common/graph/DirectedNetworkConnections.java` and `guava/src/com/google/common/graph/DirectedNetworkConnections.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. 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 (29 lines × 2) android/guava/src/com/google/common/util/concurrent/LazyLogger.java:29— android/guava/src/com/google/common/util/concurrent/LazyLogger.java:29-57 | guava/src/com/google/common/util/concurrent/LazyLogger.java:29-57 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/LazyLogger.java` and `guava/src/com/google/common/util/concurrent/LazyLogger.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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.
Duplicated block (29 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/MapTestSuiteBuilder.java:199— android/guava-testlib/src/com/google/common/collect/testing/MapTestSuiteBuilder.java:199-227 | guava-testlib/src/com/google/common/collect/testing/MapTestSuiteBuilder.java:221-249 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/MapTestSuiteBuilder.java` and `guava-testlib/src/com/google/common/collect/testing/MapTestSuiteBuilder.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 109 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (40 lines × 2) android/guava/src/com/google/common/cache/LocalCache.java:2872— android/guava/src/com/google/common/cache/LocalCache.java:2872-2911 | guava/src/com/google/common/cache/LocalCache.java:2962-3001 — before extracting anything, compare `android/guava/src/com/google/common/cache/LocalCache.java` and `guava/src/com/google/common/cache/LocalCache.java` as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1881 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 `android/guava/src/com/google/common/cache/LocalCache.java:2872` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (40 lines × 2) android/guava/src/com/google/common/cache/LocalCache.java:3073— android/guava/src/com/google/common/cache/LocalCache.java:3073-3112 | guava/src/com/google/common/cache/LocalCache.java:3163-3202 — before extracting anything, compare `android/guava/src/com/google/common/cache/LocalCache.java` and `guava/src/com/google/common/cache/LocalCache.java` as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1881 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 `android/guava/src/com/google/common/cache/LocalCache.java:3073` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (40 lines × 2) android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java:430— android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java:430-469 | guava/src/com/google/common/collect/ConcurrentHashMultiset.java:430-469 — before extracting anything, compare `android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java` and `guava/src/com/google/common/collect/ConcurrentHashMultiset.java` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 276 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (40 lines × 2) android/guava/src/com/google/common/collect/LinkedListMultimap.java:255— android/guava/src/com/google/common/collect/LinkedListMultimap.java:255-294 | guava/src/com/google/common/collect/LinkedListMultimap.java:258-297 — before extracting anything, compare `android/guava/src/com/google/common/collect/LinkedListMultimap.java` and `guava/src/com/google/common/collect/LinkedListMultimap.java` as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 328 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (40 lines × 2) android/guava/src/com/google/common/collect/Multimaps.java:1149— android/guava/src/com/google/common/collect/Multimaps.java:1149-1188 | guava/src/com/google/common/collect/Multimaps.java:1155-1194 — before extracting anything, compare `android/guava/src/com/google/common/collect/Multimaps.java` and `guava/src/com/google/common/collect/Multimaps.java` as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 271 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (40 lines × 2) android/guava/src/com/google/common/collect/TreeMultiset.java:456— android/guava/src/com/google/common/collect/TreeMultiset.java:456-495 | guava/src/com/google/common/collect/TreeMultiset.java:458-497 — before extracting anything, compare `android/guava/src/com/google/common/collect/TreeMultiset.java` and `guava/src/com/google/common/collect/TreeMultiset.java` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 678 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (40 lines × 2) android/guava/src/com/google/common/collect/TreeRangeSet.java:223— android/guava/src/com/google/common/collect/TreeRangeSet.java:223-262 | guava/src/com/google/common/collect/TreeRangeSet.java:223-262 — before extracting anything, compare `android/guava/src/com/google/common/collect/TreeRangeSet.java` and `guava/src/com/google/common/collect/TreeRangeSet.java` as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 494 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (40 lines × 2) android/guava/src/com/google/common/graph/StandardMutableNetwork.java:79— android/guava/src/com/google/common/graph/StandardMutableNetwork.java:79-118 | guava/src/com/google/common/graph/StandardMutableNetwork.java:79-118 — before extracting anything, compare `android/guava/src/com/google/common/graph/StandardMutableNetwork.java` and `guava/src/com/google/common/graph/StandardMutableNetwork.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 85 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (40 lines × 2) android/guava/src/com/google/common/net/InternetDomainName.java:273— android/guava/src/com/google/common/net/InternetDomainName.java:273-312 | guava/src/com/google/common/net/InternetDomainName.java:273-312 — before extracting anything, compare `android/guava/src/com/google/common/net/InternetDomainName.java` and `guava/src/com/google/common/net/InternetDomainName.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 125 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (40 lines × 2) android/guava/src/com/google/common/primitives/Longs.java:403— android/guava/src/com/google/common/primitives/Longs.java:403-442 | guava/src/com/google/common/primitives/Longs.java:403-442 — before extracting anything, compare `android/guava/src/com/google/common/primitives/Longs.java` and `guava/src/com/google/common/primitives/Longs.java` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 256 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (40 lines × 2) android/guava/src/com/google/common/util/concurrent/Futures.java:528— android/guava/src/com/google/common/util/concurrent/Futures.java:528-567 | guava/src/com/google/common/util/concurrent/Futures.java:526-565 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/Futures.java` and `guava/src/com/google/common/util/concurrent/Futures.java` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 211 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (40 lines × 2) android/guava/src/com/google/common/collect/Count.java:30— android/guava/src/com/google/common/collect/Count.java:30-69 | guava/src/com/google/common/collect/Count.java:30-69 — before extracting anything, compare `android/guava/src/com/google/common/collect/Count.java` and `guava/src/com/google/common/collect/Count.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. 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 (40 lines × 2) android/guava/src/com/google/common/graph/StandardMutableGraph.java:35— android/guava/src/com/google/common/graph/StandardMutableGraph.java:35-74 | guava/src/com/google/common/graph/StandardMutableGraph.java:35-74 — before extracting anything, compare `android/guava/src/com/google/common/graph/StandardMutableGraph.java` and `guava/src/com/google/common/graph/StandardMutableGraph.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. 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 (31 lines × 2) android/guava/src/com/google/common/cache/LocalCache.java:2977— android/guava/src/com/google/common/cache/LocalCache.java:2977-3007 | guava/src/com/google/common/cache/LocalCache.java:3067-3097 — before extracting anything, compare `android/guava/src/com/google/common/cache/LocalCache.java` and `guava/src/com/google/common/cache/LocalCache.java` as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1881 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 `android/guava/src/com/google/common/cache/LocalCache.java:2977` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (31 lines × 2) android/guava/src/com/google/common/cache/LocalCache.java:3021— android/guava/src/com/google/common/cache/LocalCache.java:3021-3051 | guava/src/com/google/common/cache/LocalCache.java:3111-3141 — before extracting anything, compare `android/guava/src/com/google/common/cache/LocalCache.java` and `guava/src/com/google/common/cache/LocalCache.java` as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1881 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 `android/guava/src/com/google/common/cache/LocalCache.java:3021` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (31 lines × 2) android/guava/src/com/google/common/cache/LocalCache.java:3248— android/guava/src/com/google/common/cache/LocalCache.java:3248-3278 | guava/src/com/google/common/cache/LocalCache.java:3338-3368 — before extracting anything, compare `android/guava/src/com/google/common/cache/LocalCache.java` and `guava/src/com/google/common/cache/LocalCache.java` as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1881 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 `android/guava/src/com/google/common/cache/LocalCache.java:3248` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (31 lines × 2) android/guava/src/com/google/common/graph/DirectedGraphConnections.java:457— android/guava/src/com/google/common/graph/DirectedGraphConnections.java:457-487 | guava/src/com/google/common/graph/DirectedGraphConnections.java:457-487 — before extracting anything, compare `android/guava/src/com/google/common/graph/DirectedGraphConnections.java` and `guava/src/com/google/common/graph/DirectedGraphConnections.java` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 391 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (31 lines × 2) android/guava/src/com/google/common/graph/MapIteratorCache.java:103— android/guava/src/com/google/common/graph/MapIteratorCache.java:103-133 | guava/src/com/google/common/graph/MapIteratorCache.java:103-133 — before extracting anything, compare `android/guava/src/com/google/common/graph/MapIteratorCache.java` and `guava/src/com/google/common/graph/MapIteratorCache.java` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 50 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (31 lines × 2) android/guava/src/com/google/common/io/ByteStreams.java:181— android/guava/src/com/google/common/io/ByteStreams.java:181-211 | guava/src/com/google/common/io/ByteStreams.java:181-211 — before extracting anything, compare `android/guava/src/com/google/common/io/ByteStreams.java` and `guava/src/com/google/common/io/ByteStreams.java` as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 285 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (31 lines × 2) android/guava/src/com/google/common/io/ByteStreams.java:253— android/guava/src/com/google/common/io/ByteStreams.java:253-283 | guava/src/com/google/common/io/ByteStreams.java:253-283 — before extracting anything, compare `android/guava/src/com/google/common/io/ByteStreams.java` and `guava/src/com/google/common/io/ByteStreams.java` as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 285 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (31 lines × 2) android/guava/src/com/google/common/math/BigIntegerMath.java:222— android/guava/src/com/google/common/math/BigIntegerMath.java:222-252 | guava/src/com/google/common/math/BigIntegerMath.java:222-252 — before extracting anything, compare `android/guava/src/com/google/common/math/BigIntegerMath.java` and `guava/src/com/google/common/math/BigIntegerMath.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 270 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (31 lines × 2) android/guava/src/com/google/common/math/IntMath.java:223— android/guava/src/com/google/common/math/IntMath.java:223-253 | guava/src/com/google/common/math/IntMath.java:223-253 — before extracting anything, compare `android/guava/src/com/google/common/math/IntMath.java` and `guava/src/com/google/common/math/IntMath.java` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 357 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (31 lines × 2) android/guava/src/com/google/common/math/LongMath.java:1026— android/guava/src/com/google/common/math/LongMath.java:1026-1056 | guava/src/com/google/common/math/LongMath.java:1026-1056 — before extracting anything, compare `android/guava/src/com/google/common/math/LongMath.java` and `guava/src/com/google/common/math/LongMath.java` as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 723 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 `android/guava/src/com/google/common/math/LongMath.java:1026` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (31 lines × 2) android/guava/src/com/google/common/net/HostSpecifier.java:81— android/guava/src/com/google/common/net/HostSpecifier.java:81-111 | guava/src/com/google/common/net/HostSpecifier.java:81-111 — before extracting anything, compare `android/guava/src/com/google/common/net/HostSpecifier.java` and `guava/src/com/google/common/net/HostSpecifier.java` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 56 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (31 lines × 2) android/guava/src/com/google/common/util/concurrent/AbstractScheduledService.java:224— android/guava/src/com/google/common/util/concurrent/AbstractScheduledService.java:224-254 | guava/src/com/google/common/util/concurrent/AbstractScheduledService.java:222-252 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/AbstractScheduledService.java` and `guava/src/com/google/common/util/concurrent/AbstractScheduledService.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 173 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (31 lines × 2) android/guava/src/com/google/common/base/Objects.java:51— android/guava/src/com/google/common/base/Objects.java:51-81 | guava/src/com/google/common/base/Objects.java:51-81 — before extracting anything, compare `android/guava/src/com/google/common/base/Objects.java` and `guava/src/com/google/common/base/Objects.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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.
Duplicated block (7 lines × 4) android/guava-testlib/src/com/google/common/collect/testing/google/MultisetIteratorTester.java:50— android/guava-testlib/src/com/google/common/collect/testing/google/MultisetIteratorTester.java:50-56 | android/guava-testlib/src/com/google/common/collect/testing/google/MultisetIteratorTester.java:75-81 | guava-testlib/src/com/google/common/collect/testing/google/MultisetIteratorTester.java:50-56 | guava-testlib/src/com/google/common/collect/testing/google/MultisetIteratorTester.java:75-81 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultisetIteratorTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultisetIteratorTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 3 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/google/MultisetIteratorTester.java:50` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 × 4) android/guava/src/com/google/common/cache/LocalCache.java:1687— android/guava/src/com/google/common/cache/LocalCache.java:1687-1693 | android/guava/src/com/google/common/collect/MapMakerInternalMap.java:1088-1094 | guava/src/com/google/common/cache/LocalCache.java:1691-1697 | guava/src/com/google/common/collect/MapMakerInternalMap.java:1088-1094 — 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (7 lines × 4) android/guava/src/com/google/common/collect/ImmutableList.java:220— android/guava/src/com/google/common/collect/ImmutableList.java:220-226 | android/guava/src/com/google/common/collect/ImmutableSortedSet.java:165-171 | guava/src/com/google/common/collect/ImmutableList.java:224-230 | guava/src/com/google/common/collect/ImmutableSortedSet.java:170-176 — before extracting anything, compare `android/guava/src/com/google/common/collect/ImmutableList.java` and `guava/src/com/google/common/collect/ImmutableList.java` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 81 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.
Duplicated block (7 lines × 4) android/guava/src/com/google/common/hash/Murmur3_128HashFunction.java:132— android/guava/src/com/google/common/hash/Murmur3_128HashFunction.java:132-138 | android/guava/src/com/google/common/hash/Murmur3_128HashFunction.java:149-155 | guava/src/com/google/common/hash/Murmur3_128HashFunction.java:132-138 | guava/src/com/google/common/hash/Murmur3_128HashFunction.java:149-155 — before extracting anything, compare `android/guava/src/com/google/common/hash/Murmur3_128HashFunction.java` and `guava/src/com/google/common/hash/Murmur3_128HashFunction.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 89 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 `android/guava/src/com/google/common/hash/Murmur3_128HashFunction.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 (7 lines × 4) android/guava-testlib/src/com/google/common/collect/testing/AbstractMapTester.java:98— android/guava-testlib/src/com/google/common/collect/testing/AbstractMapTester.java:98-104 | android/guava-testlib/src/com/google/common/collect/testing/google/AbstractMultimapTester.java:92-98 | guava-testlib/src/com/google/common/collect/testing/AbstractMapTester.java:98-104 | guava-testlib/src/com/google/common/collect/testing/google/AbstractMultimapTester.java:92-98 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/AbstractMapTester.java` and `guava-testlib/src/com/google/common/collect/testing/AbstractMapTester.java` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 49 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. 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 × 4) android/guava-testlib/src/com/google/common/collect/testing/testers/ListSubListTester.java:110— android/guava-testlib/src/com/google/common/collect/testing/testers/ListSubListTester.java:110-116 | android/guava-testlib/src/com/google/common/collect/testing/testers/ListSubListTester.java:150-156 | guava-testlib/src/com/google/common/collect/testing/testers/ListSubListTester.java:110-116 | guava-testlib/src/com/google/common/collect/testing/testers/ListSubListTester.java:150-156 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/ListSubListTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/ListSubListTester.java` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 142 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.
Duplicated block (7 lines × 4) android/guava/src/com/google/common/cache/LocalCache.java:3856— android/guava/src/com/google/common/cache/LocalCache.java:3856-3862 | android/guava/src/com/google/common/collect/MapMakerInternalMap.java:2352-2358 | guava/src/com/google/common/cache/LocalCache.java:3966-3972 | guava/src/com/google/common/collect/MapMakerInternalMap.java:2352-2358 — 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. 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 × 4) android/guava/src/com/google/common/cache/LocalCache.java:4022— android/guava/src/com/google/common/cache/LocalCache.java:4022-4029 | android/guava/src/com/google/common/collect/MapMakerInternalMap.java:2364-2370 | guava/src/com/google/common/cache/LocalCache.java:4132-4139 | guava/src/com/google/common/collect/MapMakerInternalMap.java:2364-2370 — 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. 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 × 4) android/guava/src/com/google/common/cache/LocalCache.java:4037— android/guava/src/com/google/common/cache/LocalCache.java:4037-4044 | android/guava/src/com/google/common/collect/MapMakerInternalMap.java:2373-2379 | guava/src/com/google/common/cache/LocalCache.java:4147-4154 | guava/src/com/google/common/collect/MapMakerInternalMap.java:2373-2379 — 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. 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 × 4) android/guava/src/com/google/common/cache/LocalCache.java:4112— android/guava/src/com/google/common/cache/LocalCache.java:4112-4118 | android/guava/src/com/google/common/collect/MapMakerInternalMap.java:2446-2452 | guava/src/com/google/common/cache/LocalCache.java:4256-4262 | guava/src/com/google/common/collect/MapMakerInternalMap.java:2446-2452 — 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. 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 × 4) android/guava/src/com/google/common/cache/LocalCache.java:4122— android/guava/src/com/google/common/cache/LocalCache.java:4122-4128 | android/guava/src/com/google/common/collect/MapMakerInternalMap.java:2456-2462 | guava/src/com/google/common/cache/LocalCache.java:4266-4272 | guava/src/com/google/common/collect/MapMakerInternalMap.java:2456-2462 — 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. 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 × 4) android/guava/src/com/google/common/collect/Collections2.java:472— android/guava/src/com/google/common/collect/Collections2.java:472-478 | android/guava/src/com/google/common/collect/Collections2.java:597-603 | guava/src/com/google/common/collect/Collections2.java:498-504 | guava/src/com/google/common/collect/Collections2.java:623-629 — before extracting anything, compare `android/guava/src/com/google/common/collect/Collections2.java` and `guava/src/com/google/common/collect/Collections2.java` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 173 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. 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 × 4) android/guava/src/com/google/common/math/Stats.java:341— android/guava/src/com/google/common/math/Stats.java:341-347 | android/guava/src/com/google/common/math/StatsAccumulator.java:333-339 | guava/src/com/google/common/math/Stats.java:337-343 | guava/src/com/google/common/math/StatsAccumulator.java:330-336 — before extracting anything, compare `android/guava/src/com/google/common/math/Stats.java` and `guava/src/com/google/common/math/Stats.java` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 128 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. 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 (5 lines × 4) android/guava-testlib/src/com/google/common/collect/testing/Helpers.java:302— android/guava-testlib/src/com/google/common/collect/testing/Helpers.java:302-307 | android/guava-testlib/src/com/google/common/collect/testing/Helpers.java:326-330 | guava-testlib/src/com/google/common/collect/testing/Helpers.java:302-307 | guava-testlib/src/com/google/common/collect/testing/Helpers.java:326-330 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/Helpers.java` and `guava-testlib/src/com/google/common/collect/testing/Helpers.java` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 293 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 `android/guava-testlib/src/com/google/common/collect/testing/Helpers.java:302` 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 (5 lines × 4) android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionToArrayTester.java:129— android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionToArrayTester.java:129-133 | android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionToArrayTester.java:150-154 | guava-testlib/src/com/google/common/collect/testing/testers/CollectionToArrayTester.java:129-133 | guava-testlib/src/com/google/common/collect/testing/testers/CollectionToArrayTester.java:150-154 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionToArrayTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/CollectionToArrayTester.java` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 87 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.
Duplicated block (5 lines × 4) android/guava-testlib/src/com/google/common/testing/ClassPathUtil.java:45— android/guava-testlib/src/com/google/common/testing/ClassPathUtil.java:45-49 | android/guava/src/com/google/common/reflect/ClassPath.java:662-666 | guava-testlib/src/com/google/common/testing/ClassPathUtil.java:45-49 | guava/src/com/google/common/reflect/ClassPath.java:662-666 — before extracting anything, compare `android/guava-testlib/src/com/google/common/testing/ClassPathUtil.java` and `guava-testlib/src/com/google/common/testing/ClassPathUtil.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 3 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/testing/ClassPathUtil.java:45` 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 (5 lines × 4) android/guava/src/com/google/common/collect/Ordering.java:899— android/guava/src/com/google/common/collect/Ordering.java:899-903 | android/guava/src/com/google/common/collect/Ordering.java:923-927 | guava/src/com/google/common/collect/Ordering.java:899-903 | guava/src/com/google/common/collect/Ordering.java:923-927 — before extracting anything, compare `android/guava/src/com/google/common/collect/Ordering.java` and `guava/src/com/google/common/collect/Ordering.java` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 147 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 `android/guava/src/com/google/common/collect/Ordering.java:899` 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 (5 lines × 4) android/guava/src/com/google/common/hash/Murmur3_128HashFunction.java:141— android/guava/src/com/google/common/hash/Murmur3_128HashFunction.java:141-145 | android/guava/src/com/google/common/hash/Murmur3_128HashFunction.java:158-162 | guava/src/com/google/common/hash/Murmur3_128HashFunction.java:141-145 | guava/src/com/google/common/hash/Murmur3_128HashFunction.java:158-162 — before extracting anything, compare `android/guava/src/com/google/common/hash/Murmur3_128HashFunction.java` and `guava/src/com/google/common/hash/Murmur3_128HashFunction.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 89 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.
Duplicated block (5 lines × 4) android/guava/src/com/google/common/base/Joiner.java:123— android/guava/src/com/google/common/base/Joiner.java:123-127 | android/guava/src/com/google/common/base/Joiner.java:170-174 | guava/src/com/google/common/base/Joiner.java:123-127 | guava/src/com/google/common/base/Joiner.java:170-174 — before extracting anything, compare `android/guava/src/com/google/common/base/Joiner.java` and `guava/src/com/google/common/base/Joiner.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 137 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. 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 (5 lines × 4) android/guava/src/com/google/common/cache/LocalCache.java:466— android/guava/src/com/google/common/cache/LocalCache.java:466-470 | android/guava/src/com/google/common/cache/LocalCache.java:528-532 | guava/src/com/google/common/cache/LocalCache.java:470-474 | guava/src/com/google/common/cache/LocalCache.java:532-536 — before extracting anything, compare `android/guava/src/com/google/common/cache/LocalCache.java` and `guava/src/com/google/common/cache/LocalCache.java` as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1881 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 `android/guava/src/com/google/common/cache/LocalCache.java:466` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (5 lines × 4) android/guava/src/com/google/common/cache/LocalCache.java:484— android/guava/src/com/google/common/cache/LocalCache.java:484-488 | android/guava/src/com/google/common/cache/LocalCache.java:546-550 | guava/src/com/google/common/cache/LocalCache.java:488-492 | guava/src/com/google/common/cache/LocalCache.java:550-554 — before extracting anything, compare `android/guava/src/com/google/common/cache/LocalCache.java` and `guava/src/com/google/common/cache/LocalCache.java` as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1881 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 `android/guava/src/com/google/common/cache/LocalCache.java:484` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (5 lines × 4) android/guava/src/com/google/common/collect/CompactHashMap.java:304— android/guava/src/com/google/common/collect/CompactHashMap.java:304-308 | android/guava/src/com/google/common/collect/CompactHashSet.java:275-279 | guava/src/com/google/common/collect/CompactHashMap.java:308-312 | guava/src/com/google/common/collect/CompactHashSet.java:279-283 — before extracting anything, compare `android/guava/src/com/google/common/collect/CompactHashMap.java` and `android/guava/src/com/google/common/collect/CompactHashSet.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 135 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (5 lines × 4) android/guava/src/com/google/common/collect/Multimaps.java:1307— android/guava/src/com/google/common/collect/Multimaps.java:1307-1311 | android/guava/src/com/google/common/collect/Multimaps.java:1349-1353 | guava/src/com/google/common/collect/Multimaps.java:1313-1317 | guava/src/com/google/common/collect/Multimaps.java:1355-1359 — before extracting anything, compare `android/guava/src/com/google/common/collect/Multimaps.java` and `guava/src/com/google/common/collect/Multimaps.java` as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 271 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 `android/guava/src/com/google/common/collect/Multimaps.java:1307` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. Note first that the copies are not typed on the same thing: the declarations holding them bind `fromMultimap` to `Multimap<K, V1>` in one and `ListMultimap<K, V1>` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (5 lines × 4) android/guava/src/com/google/common/graph/AbstractBaseGraph.java:162— android/guava/src/com/google/common/graph/AbstractBaseGraph.java:162-166 | android/guava/src/com/google/common/graph/AbstractNetwork.java:213-217 | guava/src/com/google/common/graph/AbstractBaseGraph.java:162-166 | guava/src/com/google/common/graph/AbstractNetwork.java:225-229 — 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. 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 (5 lines × 4) android/guava/src/com/google/common/graph/AbstractBaseGraph.java:329— android/guava/src/com/google/common/graph/AbstractBaseGraph.java:329-333 | android/guava/src/com/google/common/graph/AbstractNetwork.java:294-298 | guava/src/com/google/common/graph/AbstractBaseGraph.java:329-333 | guava/src/com/google/common/graph/AbstractNetwork.java:306-310 — 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.
Duplicated block (5 lines × 4) android/guava/src/com/google/common/hash/HashCode.java:152— android/guava/src/com/google/common/hash/HashCode.java:152-156 | android/guava/src/com/google/common/hash/HashCode.java:218-222 | guava/src/com/google/common/hash/HashCode.java:152-156 | guava/src/com/google/common/hash/HashCode.java:218-222 — before extracting anything, compare `android/guava/src/com/google/common/hash/HashCode.java` and `guava/src/com/google/common/hash/HashCode.java` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 97 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.
Duplicated block (41 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/Helpers.java:407— android/guava-testlib/src/com/google/common/collect/testing/Helpers.java:407-447 | guava-testlib/src/com/google/common/collect/testing/Helpers.java:407-447 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/Helpers.java` and `guava-testlib/src/com/google/common/collect/testing/Helpers.java` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 293 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (41 lines × 2) android/guava/src/com/google/common/collect/LinkedHashMultimap.java:310— android/guava/src/com/google/common/collect/LinkedHashMultimap.java:310-350 | guava/src/com/google/common/collect/LinkedHashMultimap.java:314-354 — before extracting anything, compare `android/guava/src/com/google/common/collect/LinkedHashMultimap.java` and `guava/src/com/google/common/collect/LinkedHashMultimap.java` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 215 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (41 lines × 2) android/guava/src/com/google/common/collect/Multisets.java:473— android/guava/src/com/google/common/collect/Multisets.java:473-513 | guava/src/com/google/common/collect/Multisets.java:479-519 — before extracting anything, compare `android/guava/src/com/google/common/collect/Multisets.java` and `guava/src/com/google/common/collect/Multisets.java` as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 470 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (41 lines × 2) android/guava/src/com/google/common/collect/TreeMultiset.java:499— android/guava/src/com/google/common/collect/TreeMultiset.java:499-539 | guava/src/com/google/common/collect/TreeMultiset.java:501-541 — before extracting anything, compare `android/guava/src/com/google/common/collect/TreeMultiset.java` and `guava/src/com/google/common/collect/TreeMultiset.java` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 678 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (41 lines × 2) android/guava/src/com/google/common/escape/UnicodeEscaper.java:252— android/guava/src/com/google/common/escape/UnicodeEscaper.java:252-292 | guava/src/com/google/common/escape/UnicodeEscaper.java:252-292 — before extracting anything, compare `android/guava/src/com/google/common/escape/UnicodeEscaper.java` and `guava/src/com/google/common/escape/UnicodeEscaper.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 123 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (41 lines × 2) android/guava/src/com/google/common/math/DoubleUtils.java:82— android/guava/src/com/google/common/math/DoubleUtils.java:82-122 | guava/src/com/google/common/math/DoubleUtils.java:82-122 — before extracting anything, compare `android/guava/src/com/google/common/math/DoubleUtils.java` and `guava/src/com/google/common/math/DoubleUtils.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (41 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/MapIsEmptyTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/testers/MapIsEmptyTester.java:1-41 | guava-testlib/src/com/google/common/collect/testing/testers/MapIsEmptyTester.java:1-41 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/MapIsEmptyTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/MapIsEmptyTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/testers/MapIsEmptyTester.java:1` 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 (41 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/SetRemoveTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/testers/SetRemoveTester.java:1-41 | guava-testlib/src/com/google/common/collect/testing/testers/SetRemoveTester.java:1-41 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/SetRemoveTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/SetRemoveTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/testers/SetRemoveTester.java:1` 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 (41 lines × 2) android/guava/src/com/google/common/base/StandardSystemProperty.java:123— android/guava/src/com/google/common/base/StandardSystemProperty.java:123-163 | guava/src/com/google/common/base/StandardSystemProperty.java:123-163 — before extracting anything, compare `android/guava/src/com/google/common/base/StandardSystemProperty.java` and `guava/src/com/google/common/base/StandardSystemProperty.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. 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 (41 lines × 2) android/guava/src/com/google/common/util/concurrent/ForwardingFluentFuture.java:49— android/guava/src/com/google/common/util/concurrent/ForwardingFluentFuture.java:49-89 | guava/src/com/google/common/util/concurrent/ForwardingFluentFuture.java:49-89 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/ForwardingFluentFuture.java` and `guava/src/com/google/common/util/concurrent/ForwardingFluentFuture.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. 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 (41 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/NavigableSetTestSuiteBuilder.java:105— android/guava-testlib/src/com/google/common/collect/testing/NavigableSetTestSuiteBuilder.java:105-145 | guava-testlib/src/com/google/common/collect/testing/NavigableSetTestSuiteBuilder.java:105-145 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/NavigableSetTestSuiteBuilder.java` and `guava-testlib/src/com/google/common/collect/testing/NavigableSetTestSuiteBuilder.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 64 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (41 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/BiMapTestSuiteBuilder.java:83— android/guava-testlib/src/com/google/common/collect/testing/google/BiMapTestSuiteBuilder.java:83-123 | guava-testlib/src/com/google/common/collect/testing/google/BiMapTestSuiteBuilder.java:83-123 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/BiMapTestSuiteBuilder.java` and `guava-testlib/src/com/google/common/collect/testing/google/BiMapTestSuiteBuilder.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 79 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (39 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/Helpers.java:359— android/guava-testlib/src/com/google/common/collect/testing/Helpers.java:359-397 | guava-testlib/src/com/google/common/collect/testing/Helpers.java:359-397 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/Helpers.java` and `guava-testlib/src/com/google/common/collect/testing/Helpers.java` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 293 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (39 lines × 2) android/guava/src/com/google/common/base/Joiner.java:266— android/guava/src/com/google/common/base/Joiner.java:266-304 | guava/src/com/google/common/base/Joiner.java:302-340 — before extracting anything, compare `android/guava/src/com/google/common/base/Joiner.java` and `guava/src/com/google/common/base/Joiner.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 137 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (39 lines × 2) android/guava/src/com/google/common/collect/MapMakerInternalMap.java:1513— android/guava/src/com/google/common/collect/MapMakerInternalMap.java:1513-1551 | guava/src/com/google/common/collect/MapMakerInternalMap.java:1513-1551 — before extracting anything, compare `android/guava/src/com/google/common/collect/MapMakerInternalMap.java` and `guava/src/com/google/common/collect/MapMakerInternalMap.java` as WHOLE FILES: this scan already matched 73 separate duplicated blocks between them, totalling at least 916 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 `android/guava/src/com/google/common/collect/MapMakerInternalMap.java:1513` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (39 lines × 2) android/guava/src/com/google/common/collect/StandardTable.java:547— android/guava/src/com/google/common/collect/StandardTable.java:547-585 | guava/src/com/google/common/collect/StandardTable.java:577-615 — before extracting anything, compare `android/guava/src/com/google/common/collect/StandardTable.java` and `guava/src/com/google/common/collect/StandardTable.java` as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 375 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (39 lines × 2) android/guava/src/com/google/common/collect/TreeMultiset.java:680— android/guava/src/com/google/common/collect/TreeMultiset.java:680-718 | guava/src/com/google/common/collect/TreeMultiset.java:692-730 — before extracting anything, compare `android/guava/src/com/google/common/collect/TreeMultiset.java` and `guava/src/com/google/common/collect/TreeMultiset.java` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 678 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (39 lines × 2) android/guava/src/com/google/common/util/concurrent/AbstractScheduledService.java:590— android/guava/src/com/google/common/util/concurrent/AbstractScheduledService.java:590-628 | guava/src/com/google/common/util/concurrent/AbstractScheduledService.java:604-642 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/AbstractScheduledService.java` and `guava/src/com/google/common/util/concurrent/AbstractScheduledService.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 173 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (39 lines × 2) android/guava/src/com/google/common/util/concurrent/ListenerCallQueue.java:192— android/guava/src/com/google/common/util/concurrent/ListenerCallQueue.java:192-230 | guava/src/com/google/common/util/concurrent/ListenerCallQueue.java:192-230 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/ListenerCallQueue.java` and `guava/src/com/google/common/util/concurrent/ListenerCallQueue.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 85 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (39 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/MapSerializationTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/testers/MapSerializationTester.java:1-39 | guava-testlib/src/com/google/common/collect/testing/testers/MapSerializationTester.java:1-39 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/MapSerializationTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/MapSerializationTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/testers/MapSerializationTester.java:1` 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 (39 lines × 2) android/guava/src/com/google/common/collect/ExplicitOrdering.java:33— android/guava/src/com/google/common/collect/ExplicitOrdering.java:33-71 | guava/src/com/google/common/collect/ExplicitOrdering.java:33-71 — before extracting anything, compare `android/guava/src/com/google/common/collect/ExplicitOrdering.java` and `guava/src/com/google/common/collect/ExplicitOrdering.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. 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 (39 lines × 2) android/guava/src/com/google/common/util/concurrent/AbstractListeningExecutorService.java:41— android/guava/src/com/google/common/util/concurrent/AbstractListeningExecutorService.java:41-79 | guava/src/com/google/common/util/concurrent/AbstractListeningExecutorService.java:41-79 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/AbstractListeningExecutorService.java` and `guava/src/com/google/common/util/concurrent/AbstractListeningExecutorService.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. 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 (39 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/FeatureSpecificTestSuiteBuilder.java:223— android/guava-testlib/src/com/google/common/collect/testing/FeatureSpecificTestSuiteBuilder.java:223-261 | guava-testlib/src/com/google/common/collect/testing/FeatureSpecificTestSuiteBuilder.java:223-261 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/FeatureSpecificTestSuiteBuilder.java` and `guava-testlib/src/com/google/common/collect/testing/FeatureSpecificTestSuiteBuilder.java` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 121 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (36 lines × 2) android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java:208— android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java:208-243 | guava-testlib/src/com/google/common/testing/FreshValueGenerator.java:212-247 — before extracting anything, compare `android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java` and `guava-testlib/src/com/google/common/testing/FreshValueGenerator.java` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 152 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 `android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java:208` 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 (36 lines × 2) android/guava-testlib/src/com/google/common/testing/NullPointerTester.java:397— android/guava-testlib/src/com/google/common/testing/NullPointerTester.java:397-432 | guava-testlib/src/com/google/common/testing/NullPointerTester.java:388-423 — before extracting anything, compare `android/guava-testlib/src/com/google/common/testing/NullPointerTester.java` and `guava-testlib/src/com/google/common/testing/NullPointerTester.java` as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 268 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 `android/guava-testlib/src/com/google/common/testing/NullPointerTester.java:397` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `android/guava-testlib/src/com/google/common/testing/NullPointerTester.java:394` calls `getPackageName`, `startsWith` and `guava-testlib/src/com/google/common/testing/NullPointerTester.java:387` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (36 lines × 2) android/guava/src/com/google/common/cache/CacheBuilder.java:1094— android/guava/src/com/google/common/cache/CacheBuilder.java:1094-1129 | guava/src/com/google/common/cache/CacheBuilder.java:1091-1126 — before extracting anything, compare `android/guava/src/com/google/common/cache/CacheBuilder.java` and `guava/src/com/google/common/cache/CacheBuilder.java` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 152 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (36 lines × 2) android/guava/src/com/google/common/cache/LocalCache.java:2333— android/guava/src/com/google/common/cache/LocalCache.java:2333-2368 | guava/src/com/google/common/cache/LocalCache.java:2423-2458 — before extracting anything, compare `android/guava/src/com/google/common/cache/LocalCache.java` and `guava/src/com/google/common/cache/LocalCache.java` as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1881 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 `android/guava/src/com/google/common/cache/LocalCache.java:2333` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (36 lines × 2) android/guava/src/com/google/common/collect/GeneralRange.java:111— android/guava/src/com/google/common/collect/GeneralRange.java:111-146 | guava/src/com/google/common/collect/GeneralRange.java:111-146 — before extracting anything, compare `android/guava/src/com/google/common/collect/GeneralRange.java` and `guava/src/com/google/common/collect/GeneralRange.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 154 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (36 lines × 2) android/guava/src/com/google/common/collect/Iterators.java:406— android/guava/src/com/google/common/collect/Iterators.java:406-441 | guava/src/com/google/common/collect/Iterators.java:406-441 — before extracting anything, compare `android/guava/src/com/google/common/collect/Iterators.java` and `guava/src/com/google/common/collect/Iterators.java` as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 537 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (36 lines × 2) android/guava/src/com/google/common/collect/Sets.java:1505— android/guava/src/com/google/common/collect/Sets.java:1505-1540 | guava/src/com/google/common/collect/Sets.java:1554-1589 — before extracting anything, compare `android/guava/src/com/google/common/collect/Sets.java` and `guava/src/com/google/common/collect/Sets.java` as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 722 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 `android/guava/src/com/google/common/collect/Sets.java:1505` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (36 lines × 2) android/guava/src/com/google/common/math/IntMath.java:499— android/guava/src/com/google/common/math/IntMath.java:499-534 | guava/src/com/google/common/math/IntMath.java:499-534 — before extracting anything, compare `android/guava/src/com/google/common/math/IntMath.java` and `guava/src/com/google/common/math/IntMath.java` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 357 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (36 lines × 2) android/guava/src/com/google/common/net/PercentEscaper.java:161— android/guava/src/com/google/common/net/PercentEscaper.java:161-196 | guava/src/com/google/common/net/PercentEscaper.java:161-196 — before extracting anything, compare `android/guava/src/com/google/common/net/PercentEscaper.java` and `guava/src/com/google/common/net/PercentEscaper.java` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 106 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 `android/guava/src/com/google/common/net/PercentEscaper.java:161` 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 (36 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/AbstractMultisetTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/google/AbstractMultisetTester.java:1-36 | guava-testlib/src/com/google/common/collect/testing/google/AbstractMultisetTester.java:1-36 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/AbstractMultisetTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/AbstractMultisetTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/google/AbstractMultisetTester.java:1` 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 (36 lines × 2) android/guava/src/com/google/common/collect/ForwardingListIterator.java:44— android/guava/src/com/google/common/collect/ForwardingListIterator.java:44-79 | guava/src/com/google/common/collect/ForwardingListIterator.java:44-79 — before extracting anything, compare `android/guava/src/com/google/common/collect/ForwardingListIterator.java` and `guava/src/com/google/common/collect/ForwardingListIterator.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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.
Duplicated block (34 lines × 2) android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java:308— android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java:308-341 | guava-testlib/src/com/google/common/testing/ClassSanityTester.java:308-341 — before extracting anything, compare `android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java` and `guava-testlib/src/com/google/common/testing/ClassSanityTester.java` as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 368 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (34 lines × 2) android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java:355— android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java:355-388 | guava-testlib/src/com/google/common/testing/ClassSanityTester.java:355-388 — before extracting anything, compare `android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java` and `guava-testlib/src/com/google/common/testing/ClassSanityTester.java` as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 368 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (34 lines × 2) android/guava/src/com/google/common/base/Strings.java:267— android/guava/src/com/google/common/base/Strings.java:267-300 | guava/src/com/google/common/base/Strings.java:267-300 — before extracting anything, compare `android/guava/src/com/google/common/base/Strings.java` and `guava/src/com/google/common/base/Strings.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 127 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (34 lines × 2) android/guava/src/com/google/common/collect/CompactHashMap.java:358— android/guava/src/com/google/common/collect/CompactHashMap.java:358-391 | guava/src/com/google/common/collect/CompactHashMap.java:362-395 — before extracting anything, compare `android/guava/src/com/google/common/collect/CompactHashMap.java` and `guava/src/com/google/common/collect/CompactHashMap.java` as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 479 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 `android/guava/src/com/google/common/collect/CompactHashMap.java:358` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (34 lines × 2) android/guava/src/com/google/common/collect/MapMakerInternalMap.java:168— android/guava/src/com/google/common/collect/MapMakerInternalMap.java:168-201 | guava/src/com/google/common/collect/MapMakerInternalMap.java:168-201 — before extracting anything, compare `android/guava/src/com/google/common/collect/MapMakerInternalMap.java` and `guava/src/com/google/common/collect/MapMakerInternalMap.java` as WHOLE FILES: this scan already matched 73 separate duplicated blocks between them, totalling at least 916 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (34 lines × 2) android/guava/src/com/google/common/collect/RegularImmutableSortedSet.java:161— android/guava/src/com/google/common/collect/RegularImmutableSortedSet.java:161-194 | guava/src/com/google/common/collect/RegularImmutableSortedSet.java:172-205 — before extracting anything, compare `android/guava/src/com/google/common/collect/RegularImmutableSortedSet.java` and `guava/src/com/google/common/collect/RegularImmutableSortedSet.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 129 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (34 lines × 2) android/guava/src/com/google/common/io/LineBuffer.java:53— android/guava/src/com/google/common/io/LineBuffer.java:53-86 | guava/src/com/google/common/io/LineBuffer.java:53-86 — before extracting anything, compare `android/guava/src/com/google/common/io/LineBuffer.java` and `guava/src/com/google/common/io/LineBuffer.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (34 lines × 2) android/guava/src/com/google/common/util/concurrent/AbstractService.java:267— android/guava/src/com/google/common/util/concurrent/AbstractService.java:267-300 | guava/src/com/google/common/util/concurrent/AbstractService.java:268-301 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/AbstractService.java` and `guava/src/com/google/common/util/concurrent/AbstractService.java` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 250 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (34 lines × 2) android/guava/src/com/google/common/util/concurrent/ExecutionSequencer.java:449— android/guava/src/com/google/common/util/concurrent/ExecutionSequencer.java:449-482 | guava/src/com/google/common/util/concurrent/ExecutionSequencer.java:449-482 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/ExecutionSequencer.java` and `guava/src/com/google/common/util/concurrent/ExecutionSequencer.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 188 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 `android/guava/src/com/google/common/util/concurrent/ExecutionSequencer.java:449` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (34 lines × 2) android/guava/src/com/google/common/graph/InvalidatableSet.java:19— android/guava/src/com/google/common/graph/InvalidatableSet.java:19-52 | guava/src/com/google/common/graph/InvalidatableSet.java:19-52 — before extracting anything, compare `android/guava/src/com/google/common/graph/InvalidatableSet.java` and `guava/src/com/google/common/graph/InvalidatableSet.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava/src/com/google/common/graph/InvalidatableSet.java:19` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
Duplicated block (34 lines × 2) android/guava/src/com/google/common/reflect/TypeCapture.java:1— android/guava/src/com/google/common/reflect/TypeCapture.java:1-34 | guava/src/com/google/common/reflect/TypeCapture.java:1-34 — before extracting anything, compare `android/guava/src/com/google/common/reflect/TypeCapture.java` and `guava/src/com/google/common/reflect/TypeCapture.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava/src/com/google/common/reflect/TypeCapture.java:1` 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 × 4) android/guava/src/com/google/common/cache/CacheBuilder.java:1113— android/guava/src/com/google/common/cache/CacheBuilder.java:1113-1121 | android/guava/src/com/google/common/collect/MapMaker.java:303-311 | guava/src/com/google/common/cache/CacheBuilder.java:1110-1118 | guava/src/com/google/common/collect/MapMaker.java:303-311 — before extracting anything, compare `android/guava/src/com/google/common/cache/CacheBuilder.java` and `guava/src/com/google/common/cache/CacheBuilder.java` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 152 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.
Duplicated block (9 lines × 4) android/guava/src/com/google/common/collect/CompactHashMap.java:405— android/guava/src/com/google/common/collect/CompactHashMap.java:405-413 | android/guava/src/com/google/common/collect/CompactHashSet.java:360-368 | guava/src/com/google/common/collect/CompactHashMap.java:409-417 | guava/src/com/google/common/collect/CompactHashSet.java:364-372 — before extracting anything, compare `android/guava/src/com/google/common/collect/CompactHashMap.java` and `android/guava/src/com/google/common/collect/CompactHashSet.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 135 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (9 lines × 4) android/guava/src/com/google/common/collect/ImmutableSortedMap.java:296— android/guava/src/com/google/common/collect/ImmutableSortedMap.java:296-304 | guava/src/com/google/common/collect/ImmutableBiMap.java:185-193 | guava/src/com/google/common/collect/ImmutableMap.java:240-248 | guava/src/com/google/common/collect/ImmutableSortedMap.java:294-302 — before extracting anything, compare `android/guava/src/com/google/common/collect/ImmutableSortedMap.java` and `guava/src/com/google/common/collect/ImmutableSortedMap.java` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 178 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 `android/guava/src/com/google/common/collect/ImmutableSortedMap.java:296` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 × 4) android/guava/src/com/google/common/collect/Maps.java:4291— android/guava/src/com/google/common/collect/Maps.java:4291-4299 | android/guava/src/com/google/common/collect/Sets.java:2242-2250 | guava/src/com/google/common/collect/Maps.java:4502-4510 | guava/src/com/google/common/collect/Sets.java:2313-2321 — before extracting anything, compare `android/guava/src/com/google/common/collect/Maps.java` and `guava/src/com/google/common/collect/Maps.java` as WHOLE FILES: this scan already matched 72 separate duplicated blocks between them, totalling at least 830 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 `android/guava/src/com/google/common/collect/Maps.java:4291` 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 × 4) android/guava/src/com/google/common/math/LongMath.java:602— android/guava/src/com/google/common/math/LongMath.java:602-610 | android/guava/src/com/google/common/math/LongMath.java:720-728 | guava/src/com/google/common/math/LongMath.java:602-610 | guava/src/com/google/common/math/LongMath.java:720-728 — before extracting anything, compare `android/guava/src/com/google/common/math/LongMath.java` and `guava/src/com/google/common/math/LongMath.java` as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 723 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 `android/guava/src/com/google/common/math/LongMath.java:602` 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 × 4) android/guava/src/com/google/common/math/LongMath.java:1269— android/guava/src/com/google/common/math/LongMath.java:1269-1277 | android/guava/src/com/google/common/math/ToDoubleRounder.java:74-82 | guava/src/com/google/common/math/LongMath.java:1269-1277 | guava/src/com/google/common/math/ToDoubleRounder.java:74-82 — before extracting anything, compare `android/guava/src/com/google/common/math/LongMath.java` and `guava/src/com/google/common/math/LongMath.java` as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 723 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 `android/guava/src/com/google/common/math/LongMath.java:1269` 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 × 4) android/guava/src/com/google/common/util/concurrent/ClosingFuture.java:1823— android/guava/src/com/google/common/util/concurrent/ClosingFuture.java:1823-1831 | android/guava/src/com/google/common/util/concurrent/ClosingFuture.java:2033-2041 | guava/src/com/google/common/util/concurrent/ClosingFuture.java:1836-1844 | guava/src/com/google/common/util/concurrent/ClosingFuture.java:2048-2056 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/ClosingFuture.java` and `guava/src/com/google/common/util/concurrent/ClosingFuture.java` as WHOLE FILES: this scan already matched 38 separate duplicated blocks between them, totalling at least 531 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 `android/guava/src/com/google/common/util/concurrent/ClosingFuture.java:1823` 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 first that the copies are not typed on the same thing: the declarations holding them bind `function` to `AsyncClosingFunction4<V1, V2, V3, V4, U>` in one and `AsyncClosingFunction5<V1, V2, V3, V4, V5, U>` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `android/guava/src/com/google/common/util/concurrent/ClosingFuture.java:2042` calls `getDone` and `android/guava/src/com/google/common/util/concurrent/ClosingFuture.java:1832` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (9 lines × 4) android/guava/src/com/google/common/cache/CacheBuilder.java:417— android/guava/src/com/google/common/cache/CacheBuilder.java:417-425 | android/guava/src/com/google/common/collect/MapMaker.java:145-153 | guava/src/com/google/common/cache/CacheBuilder.java:417-425 | guava/src/com/google/common/collect/MapMaker.java:145-153 — before extracting anything, compare `android/guava/src/com/google/common/cache/CacheBuilder.java` and `guava/src/com/google/common/cache/CacheBuilder.java` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 152 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. 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 × 4) android/guava/src/com/google/common/cache/CacheBuilder.java:463— android/guava/src/com/google/common/cache/CacheBuilder.java:463-471 | android/guava/src/com/google/common/collect/MapMaker.java:179-187 | guava/src/com/google/common/cache/CacheBuilder.java:463-471 | guava/src/com/google/common/collect/MapMaker.java:179-187 — before extracting anything, compare `android/guava/src/com/google/common/cache/CacheBuilder.java` and `guava/src/com/google/common/cache/CacheBuilder.java` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 152 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. 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 × 4) android/guava/src/com/google/common/cache/LocalCache.java:4132— android/guava/src/com/google/common/cache/LocalCache.java:4132-4140 | android/guava/src/com/google/common/collect/MapMakerInternalMap.java:2466-2474 | guava/src/com/google/common/cache/LocalCache.java:4276-4284 | guava/src/com/google/common/collect/MapMakerInternalMap.java:2466-2474 — 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. 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 × 4) android/guava/src/com/google/common/primitives/Doubles.java:268— android/guava/src/com/google/common/primitives/Doubles.java:268-276 | android/guava/src/com/google/common/primitives/Floats.java:265-273 | guava/src/com/google/common/primitives/Doubles.java:268-276 | guava/src/com/google/common/primitives/Floats.java:265-273 — before extracting anything, compare `android/guava/src/com/google/common/primitives/Doubles.java` and `android/guava/src/com/google/common/primitives/Floats.java` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 105 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: the declarations holding them bind `max` to `double` in one and `float` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (8 lines × 4) android/guava/src/com/google/common/collect/CompactHashMap.java:379— android/guava/src/com/google/common/collect/CompactHashMap.java:379-386 | android/guava/src/com/google/common/collect/CompactHashSet.java:336-343 | guava/src/com/google/common/collect/CompactHashMap.java:383-390 | guava/src/com/google/common/collect/CompactHashSet.java:340-347 — before extracting anything, compare `android/guava/src/com/google/common/collect/CompactHashMap.java` and `android/guava/src/com/google/common/collect/CompactHashSet.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 135 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `android/guava/src/com/google/common/collect/CompactHashMap.java:379` 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 (8 lines × 4) android/guava/src/com/google/common/collect/CompactLinkedHashMap.java:198— android/guava/src/com/google/common/collect/CompactLinkedHashMap.java:198-205 | android/guava/src/com/google/common/collect/CompactLinkedHashSet.java:201-208 | guava/src/com/google/common/collect/CompactLinkedHashMap.java:202-209 | guava/src/com/google/common/collect/CompactLinkedHashSet.java:203-210 — before extracting anything, compare `android/guava/src/com/google/common/collect/CompactLinkedHashMap.java` and `guava/src/com/google/common/collect/CompactLinkedHashMap.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 57 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.
Duplicated block (8 lines × 4) android/guava/src/com/google/common/collect/ForwardingSortedMultiset.java:165— android/guava/src/com/google/common/collect/ForwardingSortedMultiset.java:165-172 | android/guava/src/com/google/common/collect/ForwardingSortedMultiset.java:188-195 | guava/src/com/google/common/collect/ForwardingSortedMultiset.java:165-172 | guava/src/com/google/common/collect/ForwardingSortedMultiset.java:188-195 — before extracting anything, compare `android/guava/src/com/google/common/collect/ForwardingSortedMultiset.java` and `guava/src/com/google/common/collect/ForwardingSortedMultiset.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 3 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava/src/com/google/common/collect/ForwardingSortedMultiset.java:165` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 × 4) android/guava/src/com/google/common/hash/Murmur3_32HashFunction.java:160— android/guava/src/com/google/common/hash/Murmur3_32HashFunction.java:160-167 | android/guava/src/com/google/common/hash/Murmur3_32HashFunction.java:361-368 | guava/src/com/google/common/hash/Murmur3_32HashFunction.java:160-167 | guava/src/com/google/common/hash/Murmur3_32HashFunction.java:361-368 — before extracting anything, compare `android/guava/src/com/google/common/hash/Murmur3_32HashFunction.java` and `guava/src/com/google/common/hash/Murmur3_32HashFunction.java` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 228 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 `android/guava/src/com/google/common/hash/Murmur3_32HashFunction.java:160` 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 × 4) android/guava-testlib/src/com/google/common/collect/testing/google/MapGenerators.java:125— android/guava-testlib/src/com/google/common/collect/testing/google/MapGenerators.java:125-132 | android/guava-testlib/src/com/google/common/collect/testing/google/SortedMapGenerators.java:72-79 | guava-testlib/src/com/google/common/collect/testing/google/MapGenerators.java:125-132 | guava-testlib/src/com/google/common/collect/testing/google/SortedMapGenerators.java:72-79 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MapGenerators.java` and `guava-testlib/src/com/google/common/collect/testing/google/MapGenerators.java` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 88 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. 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 × 4) android/guava/src/com/google/common/base/Joiner.java:155— android/guava/src/com/google/common/base/Joiner.java:155-162 | android/guava/src/com/google/common/base/Joiner.java:428-435 | guava/src/com/google/common/base/Joiner.java:155-162 | guava/src/com/google/common/base/Joiner.java:464-471 — before extracting anything, compare `android/guava/src/com/google/common/base/Joiner.java` and `guava/src/com/google/common/base/Joiner.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 137 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. 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 × 4) android/guava/src/com/google/common/graph/AbstractBaseGraph.java:335— android/guava/src/com/google/common/graph/AbstractBaseGraph.java:335-342 | android/guava/src/com/google/common/graph/AbstractNetwork.java:306-313 | guava/src/com/google/common/graph/AbstractBaseGraph.java:335-342 | guava/src/com/google/common/graph/AbstractNetwork.java:318-325 — 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.
Duplicated block (8 lines × 4) android/guava/src/com/google/common/math/Quantiles.java:498— android/guava/src/com/google/common/math/Quantiles.java:498-505 | android/guava/src/com/google/common/math/Quantiles.java:507-514 | guava/src/com/google/common/math/Quantiles.java:498-505 | guava/src/com/google/common/math/Quantiles.java:507-514 — before extracting anything, compare `android/guava/src/com/google/common/math/Quantiles.java` and `guava/src/com/google/common/math/Quantiles.java` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 229 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. 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 × 4) android/guava/src/com/google/common/primitives/ImmutableIntArray.java:391— android/guava/src/com/google/common/primitives/ImmutableIntArray.java:391-398 | android/guava/src/com/google/common/primitives/ImmutableLongArray.java:393-400 | guava/src/com/google/common/primitives/ImmutableIntArray.java:390-397 | guava/src/com/google/common/primitives/ImmutableLongArray.java:392-399 — before extracting anything, compare `android/guava/src/com/google/common/primitives/ImmutableIntArray.java` and `android/guava/src/com/google/common/primitives/ImmutableLongArray.java` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 90 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. 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 first that the copies are not typed on the same thing: the declarations holding them bind `target` to `int` in one and `long` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (8 lines × 4) android/guava/src/com/google/common/primitives/ImmutableIntArray.java:404— android/guava/src/com/google/common/primitives/ImmutableIntArray.java:404-411 | android/guava/src/com/google/common/primitives/ImmutableLongArray.java:406-413 | guava/src/com/google/common/primitives/ImmutableIntArray.java:403-410 | guava/src/com/google/common/primitives/ImmutableLongArray.java:405-412 — before extracting anything, compare `android/guava/src/com/google/common/primitives/ImmutableIntArray.java` and `android/guava/src/com/google/common/primitives/ImmutableLongArray.java` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 90 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. 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 first that the copies are not typed on the same thing: the declarations holding them bind `target` to `int` in one and `long` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (8 lines × 4) android/guava/src/com/google/common/util/concurrent/Futures.java:587— android/guava/src/com/google/common/util/concurrent/Futures.java:587-594 | android/guava/src/com/google/common/util/concurrent/Futures.java:613-620 | guava/src/com/google/common/util/concurrent/Futures.java:585-592 | guava/src/com/google/common/util/concurrent/Futures.java:611-618 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/Futures.java` and `guava/src/com/google/common/util/concurrent/Futures.java` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 211 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 `android/guava/src/com/google/common/util/concurrent/Futures.java:587` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on. Note first that the copies are not typed on the same thing: the declarations holding them bind `futures` to `ListenableFuture<? extends V>...` in one and `Iterable<? extends ListenableFuture<? extends V>>` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
D4 · Code Duplication· Members sharing a duplicated core (6 members, 50+ identical tokens) · ×10
Members sharing a duplicated core (6 members, 50+ identical tokens) android/guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java:121— android/guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java:121-136 | android/guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java:230-245 | android/guava-testlib/src/com/google/common/collect/testing/google/DerivedGoogleCollectionGenerators.java:185-200 | guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java:121-136 | guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java:230-245 | guava-testlib/src/com/google/common/collect/testing/google/DerivedGoogleCollectionGenerators.java:185-200 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
Members sharing a duplicated core (6 members, 50+ identical tokens) android/guava-testlib/src/com/google/common/collect/testing/testers/SortedMapNavigationTester.java:114— android/guava-testlib/src/com/google/common/collect/testing/testers/SortedMapNavigationTester.java:114-124 | android/guava-testlib/src/com/google/common/collect/testing/testers/SortedMapNavigationTester.java:126-137 | android/guava-testlib/src/com/google/common/collect/testing/testers/SortedMapNavigationTester.java:139-152 | guava-testlib/src/com/google/common/collect/testing/testers/SortedMapNavigationTester.java:114-124 | guava-testlib/src/com/google/common/collect/testing/testers/SortedMapNavigationTester.java:126-137 | guava-testlib/src/com/google/common/collect/testing/testers/SortedMapNavigationTester.java:139-152 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
Members sharing a duplicated core (6 members, 50+ identical tokens) android/guava/src/com/google/common/collect/ImmutableBiMap.java:129— android/guava/src/com/google/common/collect/ImmutableBiMap.java:129-137 | android/guava/src/com/google/common/collect/ImmutableBiMap.java:146-155 | android/guava/src/com/google/common/collect/ImmutableBiMap.java:164-174 | android/guava/src/com/google/common/collect/ImmutableBiMap.java:198-209 | android/guava/src/com/google/common/collect/ImmutableBiMap.java:235-247 | android/guava/src/com/google/common/collect/ImmutableBiMap.java:275-291 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
Members sharing a duplicated core (6 members, 50+ identical tokens) android/guava/src/com/google/common/graph/AbstractBaseGraph.java:71— android/guava/src/com/google/common/graph/AbstractBaseGraph.java:71-103 | android/guava/src/com/google/common/graph/AbstractNetwork.java:59-140 | android/guava/src/com/google/common/graph/AbstractNetwork.java:68-100 | guava/src/com/google/common/graph/AbstractBaseGraph.java:71-103 | guava/src/com/google/common/graph/AbstractNetwork.java:60-141 | guava/src/com/google/common/graph/AbstractNetwork.java:69-101 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
Members sharing a duplicated core (6 members, 50+ identical tokens) android/guava/src/com/google/common/math/Stats.java:518— android/guava/src/com/google/common/math/Stats.java:518-531 | android/guava/src/com/google/common/math/Stats.java:542-555 | android/guava/src/com/google/common/math/Stats.java:567-580 | guava/src/com/google/common/math/Stats.java:514-527 | guava/src/com/google/common/math/Stats.java:538-551 | guava/src/com/google/common/math/Stats.java:563-576 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
Members sharing a duplicated core (6 members, 50+ identical tokens) android/guava/src/com/google/common/primitives/ImmutableDoubleArray.java:315— android/guava/src/com/google/common/primitives/ImmutableDoubleArray.java:315-328 | android/guava/src/com/google/common/primitives/ImmutableIntArray.java:312-325 | android/guava/src/com/google/common/primitives/ImmutableLongArray.java:314-327 | guava/src/com/google/common/primitives/ImmutableDoubleArray.java:314-327 | guava/src/com/google/common/primitives/ImmutableIntArray.java:311-324 | guava/src/com/google/common/primitives/ImmutableLongArray.java:313-326 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
Members sharing a duplicated core (6 members, 50+ identical tokens) android/guava/src/com/google/common/primitives/ImmutableDoubleArray.java:545— android/guava/src/com/google/common/primitives/ImmutableDoubleArray.java:545-566 | android/guava/src/com/google/common/primitives/ImmutableIntArray.java:540-561 | android/guava/src/com/google/common/primitives/ImmutableLongArray.java:542-563 | guava/src/com/google/common/primitives/ImmutableDoubleArray.java:540-561 | guava/src/com/google/common/primitives/ImmutableIntArray.java:535-556 | guava/src/com/google/common/primitives/ImmutableLongArray.java:537-558 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
Members sharing a duplicated core (6 members, 50+ identical tokens) android/guava/src/com/google/common/primitives/ImmutableDoubleArray.java:627— android/guava/src/com/google/common/primitives/ImmutableDoubleArray.java:627-639 | android/guava/src/com/google/common/primitives/ImmutableIntArray.java:617-629 | android/guava/src/com/google/common/primitives/ImmutableLongArray.java:619-631 | guava/src/com/google/common/primitives/ImmutableDoubleArray.java:622-634 | guava/src/com/google/common/primitives/ImmutableIntArray.java:612-624 | guava/src/com/google/common/primitives/ImmutableLongArray.java:614-626 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
Members sharing a duplicated core (6 members, 50+ identical tokens) android/guava/src/com/google/common/primitives/UnsignedBytes.java:536— android/guava/src/com/google/common/primitives/UnsignedBytes.java:536-546 | android/guava/src/com/google/common/primitives/UnsignedInts.java:234-244 | android/guava/src/com/google/common/primitives/UnsignedLongs.java:200-210 | guava/src/com/google/common/primitives/UnsignedBytes.java:583-593 | guava/src/com/google/common/primitives/UnsignedInts.java:234-244 | guava/src/com/google/common/primitives/UnsignedLongs.java:200-210 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
Members sharing a duplicated core (6 members, 50+ identical tokens) android/guava-testlib/src/com/google/common/collect/testing/CollectionTestSuiteBuilder.java:50— android/guava-testlib/src/com/google/common/collect/testing/CollectionTestSuiteBuilder.java:50-64 | android/guava-testlib/src/com/google/common/collect/testing/ListTestSuiteBuilder.java:107-121 | android/guava-testlib/src/com/google/common/collect/testing/SetTestSuiteBuilder.java:73-87 | guava-testlib/src/com/google/common/collect/testing/CollectionTestSuiteBuilder.java:50-64 | guava-testlib/src/com/google/common/collect/testing/ListTestSuiteBuilder.java:109-123 | guava-testlib/src/com/google/common/collect/testing/SetTestSuiteBuilder.java:73-87 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
Duplicated block (42 lines × 2) android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java:374— android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java:374-415 | guava/src/com/google/common/collect/ConcurrentHashMultiset.java:374-415 — before extracting anything, compare `android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java` and `guava/src/com/google/common/collect/ConcurrentHashMultiset.java` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 276 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (42 lines × 2) android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java:536— android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java:536-577 | guava/src/com/google/common/collect/ConcurrentHashMultiset.java:536-577 — before extracting anything, compare `android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java` and `guava/src/com/google/common/collect/ConcurrentHashMultiset.java` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 276 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (42 lines × 2) android/guava/src/com/google/common/collect/TopKSelector.java:165— android/guava/src/com/google/common/collect/TopKSelector.java:165-206 | guava/src/com/google/common/collect/TopKSelector.java:166-207 — before extracting anything, compare `android/guava/src/com/google/common/collect/TopKSelector.java` and `guava/src/com/google/common/collect/TopKSelector.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 101 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (42 lines × 2) android/guava/src/com/google/common/io/TempFileCreator.java:249— android/guava/src/com/google/common/io/TempFileCreator.java:249-290 | guava/src/com/google/common/io/TempFileCreator.java:249-290 — before extracting anything, compare `android/guava/src/com/google/common/io/TempFileCreator.java` and `guava/src/com/google/common/io/TempFileCreator.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 176 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (42 lines × 2) android/guava/src/com/google/common/net/InetAddresses.java:1003— android/guava/src/com/google/common/net/InetAddresses.java:1003-1044 | guava/src/com/google/common/net/InetAddresses.java:1003-1044 — before extracting anything, compare `android/guava/src/com/google/common/net/InetAddresses.java` and `guava/src/com/google/common/net/InetAddresses.java` as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 550 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (42 lines × 2) android/guava/src/com/google/common/util/concurrent/Striped.java:143— android/guava/src/com/google/common/util/concurrent/Striped.java:143-184 | guava/src/com/google/common/util/concurrent/Striped.java:143-184 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/Striped.java` and `guava/src/com/google/common/util/concurrent/Striped.java` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 104 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (42 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapReplaceValuesTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapReplaceValuesTester.java:1-42 | guava-testlib/src/com/google/common/collect/testing/google/ListMultimapReplaceValuesTester.java:1-42 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapReplaceValuesTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/ListMultimapReplaceValuesTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapReplaceValuesTester.java:1` 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 (42 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/ListGetTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/testers/ListGetTester.java:1-42 | guava-testlib/src/com/google/common/collect/testing/testers/ListGetTester.java:1-42 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/ListGetTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/ListGetTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/testers/ListGetTester.java:1` 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 (42 lines × 2) android/guava/src/com/google/common/collect/CompoundOrdering.java:34— android/guava/src/com/google/common/collect/CompoundOrdering.java:34-75 | guava/src/com/google/common/collect/CompoundOrdering.java:34-75 — before extracting anything, compare `android/guava/src/com/google/common/collect/CompoundOrdering.java` and `guava/src/com/google/common/collect/CompoundOrdering.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. 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 (42 lines × 2) android/guava/src/com/google/common/io/Flushables.java:36— android/guava/src/com/google/common/io/Flushables.java:36-77 | guava/src/com/google/common/io/Flushables.java:36-77 — before extracting anything, compare `android/guava/src/com/google/common/io/Flushables.java` and `guava/src/com/google/common/io/Flushables.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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.
Duplicated block (10 lines × 4) android/guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java:213— android/guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java:213-222 | android/guava-testlib/src/com/google/common/collect/testing/google/DerivedGoogleCollectionGenerators.java:168-177 | guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java:213-222 | guava-testlib/src/com/google/common/collect/testing/google/DerivedGoogleCollectionGenerators.java:168-177 — 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: the declarations holding them bind `mapGenerator` to `OneSizeTestContainerGenerator<Map<K, V>, Entry<K, V>>` in one and `OneSizeTestContainerGenerator<BiMap<K, V>, Entry<K, V>>` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (10 lines × 4) android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java:201— android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java:201-210 | android/guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java:163-172 | guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java:201-210 | guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java:163-172 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 124 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.
Duplicated block (10 lines × 4) android/guava/src/com/google/common/graph/DirectedGraphConnections.java:274— android/guava/src/com/google/common/graph/DirectedGraphConnections.java:274-283 | android/guava/src/com/google/common/graph/DirectedGraphConnections.java:322-331 | guava/src/com/google/common/graph/DirectedGraphConnections.java:274-283 | guava/src/com/google/common/graph/DirectedGraphConnections.java:322-331 — before extracting anything, compare `android/guava/src/com/google/common/graph/DirectedGraphConnections.java` and `guava/src/com/google/common/graph/DirectedGraphConnections.java` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 391 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 `android/guava/src/com/google/common/graph/DirectedGraphConnections.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 (10 lines × 4) android/guava/src/com/google/common/graph/DirectedGraphConnections.java:288— android/guava/src/com/google/common/graph/DirectedGraphConnections.java:288-297 | android/guava/src/com/google/common/graph/DirectedGraphConnections.java:336-345 | guava/src/com/google/common/graph/DirectedGraphConnections.java:288-297 | guava/src/com/google/common/graph/DirectedGraphConnections.java:336-345 — before extracting anything, compare `android/guava/src/com/google/common/graph/DirectedGraphConnections.java` and `guava/src/com/google/common/graph/DirectedGraphConnections.java` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 391 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 `android/guava/src/com/google/common/graph/DirectedGraphConnections.java:288` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. 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 × 4) android/guava/src/com/google/common/primitives/ImmutableIntArray.java:590— android/guava/src/com/google/common/primitives/ImmutableIntArray.java:590-599 | android/guava/src/com/google/common/primitives/ImmutableLongArray.java:592-601 | guava/src/com/google/common/primitives/ImmutableIntArray.java:585-594 | guava/src/com/google/common/primitives/ImmutableLongArray.java:587-596 — before extracting anything, compare `android/guava/src/com/google/common/primitives/ImmutableIntArray.java` and `android/guava/src/com/google/common/primitives/ImmutableLongArray.java` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 90 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `android/guava/src/com/google/common/primitives/ImmutableIntArray.java:590` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 × 4) android/guava/src/com/google/common/util/concurrent/ClosingFuture.java:1765— android/guava/src/com/google/common/util/concurrent/ClosingFuture.java:1765-1774 | android/guava/src/com/google/common/util/concurrent/ClosingFuture.java:1973-1982 | guava/src/com/google/common/util/concurrent/ClosingFuture.java:1778-1787 | guava/src/com/google/common/util/concurrent/ClosingFuture.java:1988-1997 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/ClosingFuture.java` and `guava/src/com/google/common/util/concurrent/ClosingFuture.java` as WHOLE FILES: this scan already matched 38 separate duplicated blocks between them, totalling at least 531 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 `android/guava/src/com/google/common/util/concurrent/ClosingFuture.java:1765` 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 first that the copies are not typed on the same thing: the declarations holding them bind `function` to `ClosingFunction4<V1, V2, V3, V4, U>` in one and `ClosingFunction5<V1, V2, V3, V4, V5, U>` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `android/guava/src/com/google/common/util/concurrent/ClosingFuture.java:1983` calls `getDone` and `android/guava/src/com/google/common/util/concurrent/ClosingFuture.java:1775` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (10 lines × 4) android/guava/src/com/google/common/cache/LocalCache.java:4247— android/guava/src/com/google/common/cache/LocalCache.java:4247-4256 | android/guava/src/com/google/common/collect/MapMakerInternalMap.java:2567-2576 | guava/src/com/google/common/cache/LocalCache.java:4391-4400 | guava/src/com/google/common/collect/MapMakerInternalMap.java:2567-2576 — 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. 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 × 4) android/guava/src/com/google/common/cache/LocalCache.java:4259— android/guava/src/com/google/common/cache/LocalCache.java:4259-4268 | android/guava/src/com/google/common/collect/MapMakerInternalMap.java:2579-2588 | guava/src/com/google/common/cache/LocalCache.java:4403-4412 | guava/src/com/google/common/collect/MapMakerInternalMap.java:2579-2588 — 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. 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 × 4) android/guava/src/com/google/common/escape/CharEscaper.java:167— android/guava/src/com/google/common/escape/CharEscaper.java:167-176 | android/guava/src/com/google/common/escape/UnicodeEscaper.java:302-311 | guava/src/com/google/common/escape/CharEscaper.java:167-176 | guava/src/com/google/common/escape/UnicodeEscaper.java:302-311 — before extracting anything, compare `android/guava/src/com/google/common/escape/CharEscaper.java` and `guava/src/com/google/common/escape/CharEscaper.java` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 80 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. 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 × 4) android/guava-testlib/src/com/google/common/collect/testing/google/MultimapTestSuiteBuilder.java:599— android/guava-testlib/src/com/google/common/collect/testing/google/MultimapTestSuiteBuilder.java:599-608 | android/guava-testlib/src/com/google/common/collect/testing/google/MultimapTestSuiteBuilder.java:623-632 | guava-testlib/src/com/google/common/collect/testing/google/MultimapTestSuiteBuilder.java:600-609 | guava-testlib/src/com/google/common/collect/testing/google/MultimapTestSuiteBuilder.java:624-633 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultimapTestSuiteBuilder.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultimapTestSuiteBuilder.java` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 252 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.
Duplicated block (43 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java:305— android/guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java:305-347 | guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java:300-342 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java` and `guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 105 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (43 lines × 2) android/guava/src/com/google/common/cache/LocalCache.java:3914— android/guava/src/com/google/common/cache/LocalCache.java:3914-3956 | guava/src/com/google/common/cache/LocalCache.java:4024-4066 — before extracting anything, compare `android/guava/src/com/google/common/cache/LocalCache.java` and `guava/src/com/google/common/cache/LocalCache.java` as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1881 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (43 lines × 2) android/guava/src/com/google/common/collect/Iterables.java:924— android/guava/src/com/google/common/collect/Iterables.java:924-966 | guava/src/com/google/common/collect/Iterables.java:916-958 — before extracting anything, compare `android/guava/src/com/google/common/collect/Iterables.java` and `guava/src/com/google/common/collect/Iterables.java` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 192 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 `android/guava/src/com/google/common/collect/Iterables.java:924` 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 (43 lines × 2) android/guava/src/com/google/common/collect/Sets.java:826— android/guava/src/com/google/common/collect/Sets.java:826-868 | guava/src/com/google/common/collect/Sets.java:845-887 — before extracting anything, compare `android/guava/src/com/google/common/collect/Sets.java` and `guava/src/com/google/common/collect/Sets.java` as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 722 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 `android/guava/src/com/google/common/collect/Sets.java:826` 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 (43 lines × 2) android/guava/src/com/google/common/graph/DirectedGraphConnections.java:370— android/guava/src/com/google/common/graph/DirectedGraphConnections.java:370-412 | guava/src/com/google/common/graph/DirectedGraphConnections.java:370-412 — before extracting anything, compare `android/guava/src/com/google/common/graph/DirectedGraphConnections.java` and `guava/src/com/google/common/graph/DirectedGraphConnections.java` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 391 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (43 lines × 2) android/guava/src/com/google/common/primitives/UnsignedLongs.java:461— android/guava/src/com/google/common/primitives/UnsignedLongs.java:461-503 | guava/src/com/google/common/primitives/UnsignedLongs.java:461-503 — before extracting anything, compare `android/guava/src/com/google/common/primitives/UnsignedLongs.java` and `guava/src/com/google/common/primitives/UnsignedLongs.java` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 199 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (43 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/features/TesterRequirements.java:39— android/guava-testlib/src/com/google/common/collect/testing/features/TesterRequirements.java:39-81 | guava-testlib/src/com/google/common/collect/testing/features/TesterRequirements.java:39-81 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/features/TesterRequirements.java` and `guava-testlib/src/com/google/common/collect/testing/features/TesterRequirements.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. 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 (43 lines × 2) android/guava/src/com/google/common/collect/Hashing.java:34— android/guava/src/com/google/common/collect/Hashing.java:34-76 | guava/src/com/google/common/collect/Hashing.java:34-76 — before extracting anything, compare `android/guava/src/com/google/common/collect/Hashing.java` and `guava/src/com/google/common/collect/Hashing.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. 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 (43 lines × 2) android/guava/src/com/google/common/collect/NaturalOrdering.java:42— android/guava/src/com/google/common/collect/NaturalOrdering.java:42-84 | guava/src/com/google/common/collect/NaturalOrdering.java:42-84 — before extracting anything, compare `android/guava/src/com/google/common/collect/NaturalOrdering.java` and `guava/src/com/google/common/collect/NaturalOrdering.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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.
Duplicated block (35 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/SafeTreeMap.java:123— android/guava-testlib/src/com/google/common/collect/testing/SafeTreeMap.java:123-157 | guava-testlib/src/com/google/common/collect/testing/SafeTreeMap.java:123-157 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/SafeTreeMap.java` and `guava-testlib/src/com/google/common/collect/testing/SafeTreeMap.java` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 49 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (35 lines × 2) android/guava-testlib/src/com/google/common/testing/NullPointerTester.java:91— android/guava-testlib/src/com/google/common/testing/NullPointerTester.java:91-125 | guava-testlib/src/com/google/common/testing/NullPointerTester.java:93-127 — before extracting anything, compare `android/guava-testlib/src/com/google/common/testing/NullPointerTester.java` and `guava-testlib/src/com/google/common/testing/NullPointerTester.java` as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 268 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (35 lines × 2) android/guava/src/com/google/common/cache/LocalCache.java:2051— android/guava/src/com/google/common/cache/LocalCache.java:2051-2085 | guava/src/com/google/common/cache/LocalCache.java:2055-2089 — before extracting anything, compare `android/guava/src/com/google/common/cache/LocalCache.java` and `guava/src/com/google/common/cache/LocalCache.java` as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1881 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (35 lines × 2) android/guava/src/com/google/common/collect/FilteredEntryMultimap.java:386— android/guava/src/com/google/common/collect/FilteredEntryMultimap.java:386-420 | guava/src/com/google/common/collect/FilteredEntryMultimap.java:386-420 — before extracting anything, compare `android/guava/src/com/google/common/collect/FilteredEntryMultimap.java` and `guava/src/com/google/common/collect/FilteredEntryMultimap.java` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 221 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (35 lines × 2) android/guava/src/com/google/common/collect/Iterators.java:1415— android/guava/src/com/google/common/collect/Iterators.java:1415-1449 | guava/src/com/google/common/collect/Iterators.java:1415-1449 — before extracting anything, compare `android/guava/src/com/google/common/collect/Iterators.java` and `guava/src/com/google/common/collect/Iterators.java` as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 537 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (35 lines × 2) android/guava/src/com/google/common/collect/Maps.java:1386— android/guava/src/com/google/common/collect/Maps.java:1386-1420 | guava/src/com/google/common/collect/Maps.java:1423-1457 — before extracting anything, compare `android/guava/src/com/google/common/collect/Maps.java` and `guava/src/com/google/common/collect/Maps.java` as WHOLE FILES: this scan already matched 72 separate duplicated blocks between them, totalling at least 830 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (35 lines × 2) android/guava/src/com/google/common/graph/DirectedGraphConnections.java:236— android/guava/src/com/google/common/graph/DirectedGraphConnections.java:236-270 | guava/src/com/google/common/graph/DirectedGraphConnections.java:236-270 — before extracting anything, compare `android/guava/src/com/google/common/graph/DirectedGraphConnections.java` and `guava/src/com/google/common/graph/DirectedGraphConnections.java` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 391 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (35 lines × 2) android/guava/src/com/google/common/math/BigIntegerMath.java:88— android/guava/src/com/google/common/math/BigIntegerMath.java:88-122 | guava/src/com/google/common/math/BigIntegerMath.java:88-122 — before extracting anything, compare `android/guava/src/com/google/common/math/BigIntegerMath.java` and `guava/src/com/google/common/math/BigIntegerMath.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 270 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (35 lines × 2) android/guava/src/com/google/common/net/MediaType.java:1264— android/guava/src/com/google/common/net/MediaType.java:1264-1298 | guava/src/com/google/common/net/MediaType.java:1264-1298 — before extracting anything, compare `android/guava/src/com/google/common/net/MediaType.java` and `guava/src/com/google/common/net/MediaType.java` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 188 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (6 lines × 6) android/guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java:126— android/guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java:126-131 | android/guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java:235-240 | android/guava-testlib/src/com/google/common/collect/testing/google/DerivedGoogleCollectionGenerators.java:190-195 | guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java:126-131 | guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java:235-240 | guava-testlib/src/com/google/common/collect/testing/google/DerivedGoogleCollectionGenerators.java:190-195 — there are 6 copies across 4 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 6 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at `android/guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.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 (6 lines × 6) android/guava-testlib/src/com/google/common/collect/testing/testers/SortedMapNavigationTester.java:115— android/guava-testlib/src/com/google/common/collect/testing/testers/SortedMapNavigationTester.java:115-120 | android/guava-testlib/src/com/google/common/collect/testing/testers/SortedMapNavigationTester.java:127-132 | android/guava-testlib/src/com/google/common/collect/testing/testers/SortedMapNavigationTester.java:140-145 | guava-testlib/src/com/google/common/collect/testing/testers/SortedMapNavigationTester.java:115-120 | guava-testlib/src/com/google/common/collect/testing/testers/SortedMapNavigationTester.java:127-132 | guava-testlib/src/com/google/common/collect/testing/testers/SortedMapNavigationTester.java:140-145 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/SortedMapNavigationTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/SortedMapNavigationTester.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 40 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 `android/guava-testlib/src/com/google/common/collect/testing/testers/SortedMapNavigationTester.java:115` 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 (6 lines × 6) android/guava/src/com/google/common/collect/ImmutableBiMap.java:130— android/guava/src/com/google/common/collect/ImmutableBiMap.java:130-135 | android/guava/src/com/google/common/collect/ImmutableBiMap.java:148-153 | android/guava/src/com/google/common/collect/ImmutableBiMap.java:167-172 | android/guava/src/com/google/common/collect/ImmutableBiMap.java:202-207 | android/guava/src/com/google/common/collect/ImmutableBiMap.java:240-245 | android/guava/src/com/google/common/collect/ImmutableBiMap.java:281-287 — 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 `android/guava/src/com/google/common/collect/ImmutableBiMap.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. 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) android/guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java:264— android/guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java:264-269 | android/guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java:274-279 | android/guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java:285-290 | guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java:259-264 | guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java:269-274 | guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java:280-285 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java` and `guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 105 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 `android/guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java:285` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. Note first that the copies are not typed on the same thing: the declarations holding them bind `spliteratorSupplier` to `Supplier<Spliterator.OfInt>` in one and `Supplier<Spliterator.OfLong>` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (6 lines × 6) android/guava/src/com/google/common/primitives/ImmutableDoubleArray.java:242— android/guava/src/com/google/common/primitives/ImmutableDoubleArray.java:242-247 | android/guava/src/com/google/common/primitives/ImmutableIntArray.java:239-244 | android/guava/src/com/google/common/primitives/ImmutableLongArray.java:241-246 | guava/src/com/google/common/primitives/ImmutableDoubleArray.java:242-247 | guava/src/com/google/common/primitives/ImmutableIntArray.java:239-244 | guava/src/com/google/common/primitives/ImmutableLongArray.java:241-246 — before extracting anything, compare `android/guava/src/com/google/common/primitives/ImmutableDoubleArray.java` and `android/guava/src/com/google/common/primitives/ImmutableIntArray.java` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 64 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. 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 first that the copies are not typed on the same thing: the declarations holding them bind `values` to `double[]` in one and `int[]` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (6 lines × 6) android/guava/src/com/google/common/primitives/ImmutableDoubleArray.java:300— android/guava/src/com/google/common/primitives/ImmutableDoubleArray.java:300-305 | android/guava/src/com/google/common/primitives/ImmutableIntArray.java:297-302 | android/guava/src/com/google/common/primitives/ImmutableLongArray.java:299-304 | guava/src/com/google/common/primitives/ImmutableDoubleArray.java:299-304 | guava/src/com/google/common/primitives/ImmutableIntArray.java:296-301 | guava/src/com/google/common/primitives/ImmutableLongArray.java:298-303 — before extracting anything, compare `android/guava/src/com/google/common/primitives/ImmutableDoubleArray.java` and `android/guava/src/com/google/common/primitives/ImmutableIntArray.java` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 64 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. 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 first that the copies are not typed on the same thing: the declarations holding them bind `values` to `ImmutableDoubleArray` in one and `ImmutableIntArray` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (6 lines × 6) android/guava/src/com/google/common/primitives/ImmutableDoubleArray.java:307— android/guava/src/com/google/common/primitives/ImmutableDoubleArray.java:307-312 | android/guava/src/com/google/common/primitives/ImmutableIntArray.java:304-309 | android/guava/src/com/google/common/primitives/ImmutableLongArray.java:306-311 | guava/src/com/google/common/primitives/ImmutableDoubleArray.java:306-311 | guava/src/com/google/common/primitives/ImmutableIntArray.java:303-308 | guava/src/com/google/common/primitives/ImmutableLongArray.java:305-310 — before extracting anything, compare `android/guava/src/com/google/common/primitives/ImmutableDoubleArray.java` and `android/guava/src/com/google/common/primitives/ImmutableIntArray.java` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 64 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 6) android/guava/src/com/google/common/primitives/ImmutableDoubleArray.java:432— android/guava/src/com/google/common/primitives/ImmutableDoubleArray.java:432-437 | android/guava/src/com/google/common/primitives/ImmutableIntArray.java:427-432 | android/guava/src/com/google/common/primitives/ImmutableLongArray.java:429-434 | guava/src/com/google/common/primitives/ImmutableDoubleArray.java:430-435 | guava/src/com/google/common/primitives/ImmutableIntArray.java:425-430 | guava/src/com/google/common/primitives/ImmutableLongArray.java:427-432 — before extracting anything, compare `android/guava/src/com/google/common/primitives/ImmutableDoubleArray.java` and `android/guava/src/com/google/common/primitives/ImmutableIntArray.java` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 64 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: the declarations holding them bind `consumer` to `DoubleConsumer` in one and `IntConsumer` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (6 lines × 6) android/guava-testlib/src/com/google/common/collect/testing/CollectionTestSuiteBuilder.java:95— android/guava-testlib/src/com/google/common/collect/testing/CollectionTestSuiteBuilder.java:95-100 | android/guava-testlib/src/com/google/common/collect/testing/ListTestSuiteBuilder.java:151-156 | android/guava-testlib/src/com/google/common/collect/testing/SetTestSuiteBuilder.java:117-122 | guava-testlib/src/com/google/common/collect/testing/CollectionTestSuiteBuilder.java:95-100 | guava-testlib/src/com/google/common/collect/testing/ListTestSuiteBuilder.java:153-158 | guava-testlib/src/com/google/common/collect/testing/SetTestSuiteBuilder.java:117-122 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/CollectionTestSuiteBuilder.java` and `guava-testlib/src/com/google/common/collect/testing/CollectionTestSuiteBuilder.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 3 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. 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.
Low cohesion: LocalCache (LCOM4 6) android/guava/src/com/google/common/cache/LocalCache.java:108— LocalCache's methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: HashBiMap (LCOM4 6) android/guava/src/com/google/common/collect/HashBiMap.java:59— HashBiMap's methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: LocalCache (LCOM4 5) guava/src/com/google/common/cache/LocalCache.java:112— LocalCache's methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: NetworkBuilder (LCOM4 5) guava/src/com/google/common/graph/NetworkBuilder.java:74— NetworkBuilder's methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: ThreadFactoryBuilder (LCOM4 5) guava/src/com/google/common/util/concurrent/ThreadFactoryBuilder.java:55— ThreadFactoryBuilder's methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: NetworkBuilder (LCOM4 5) android/guava/src/com/google/common/graph/NetworkBuilder.java:74— NetworkBuilder's methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: ThreadFactoryBuilder (LCOM4 5) android/guava/src/com/google/common/util/concurrent/ThreadFactoryBuilder.java:55— ThreadFactoryBuilder's methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: ImmutableListMultimap (LCOM4 4) guava/src/com/google/common/collect/ImmutableListMultimap.java:54— ImmutableListMultimap's methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: ImmutableListMultimap (LCOM4 4) android/guava/src/com/google/common/collect/ImmutableListMultimap.java:54— ImmutableListMultimap's methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
XxxComment android/guava-tests/test/com/google/common/net/UrlEscaperTesting.java:69— // xxx-0000,x-100000,x-00,0000 — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
XxxComment android/guava-tests/test/com/google/common/net/PercentEscaperTest.java:56— // xxx-0000,x-100000,x-00,0000 — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
XxxComment guava-tests/test/com/google/common/net/UrlEscaperTesting.java:69— // xxx-0000,x-100000,x-00,0000 — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
XxxComment guava-tests/test/com/google/common/net/PercentEscaperTest.java:56— // xxx-0000,x-100000,x-00,0000 — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
XxxComment android/guava-tests/test/com/google/common/net/UrlEscaperTesting.java:70— // xxx-1111,x-111111,x-11,1111 — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
XxxComment android/guava-tests/test/com/google/common/net/PercentEscaperTest.java:57— // xxx-1111,x-111111,x-11,1111 — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
XxxComment guava-tests/test/com/google/common/net/UrlEscaperTesting.java:70— // xxx-1111,x-111111,x-11,1111 — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
XxxComment guava-tests/test/com/google/common/net/PercentEscaperTest.java:57— // xxx-1111,x-111111,x-11,1111 — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
Duplicated block (67 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java:387— android/guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java:387-453 | guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java:404-470 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java` and `guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 198 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (67 lines × 2) android/guava/src/com/google/common/collect/Lists.java:927— android/guava/src/com/google/common/collect/Lists.java:927-993 | guava/src/com/google/common/collect/Lists.java:967-1033 — before extracting anything, compare `android/guava/src/com/google/common/collect/Lists.java` and `guava/src/com/google/common/collect/Lists.java` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 269 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (67 lines × 2) android/guava/src/com/google/common/io/BaseEncoding.java:648— android/guava/src/com/google/common/io/BaseEncoding.java:648-714 | guava/src/com/google/common/io/BaseEncoding.java:648-714 — before extracting anything, compare `android/guava/src/com/google/common/io/BaseEncoding.java` and `guava/src/com/google/common/io/BaseEncoding.java` as WHOLE FILES: this scan already matched 43 separate duplicated blocks between them, totalling at least 587 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (67 lines × 2) android/guava/src/com/google/common/net/InetAddresses.java:274— android/guava/src/com/google/common/net/InetAddresses.java:274-340 | guava/src/com/google/common/net/InetAddresses.java:274-340 — before extracting anything, compare `android/guava/src/com/google/common/net/InetAddresses.java` and `guava/src/com/google/common/net/InetAddresses.java` as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 550 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (67 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/MultimapToStringTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/google/MultimapToStringTester.java:1-67 | guava-testlib/src/com/google/common/collect/testing/google/MultimapToStringTester.java:1-67 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultimapToStringTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultimapToStringTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/google/MultimapToStringTester.java:1` 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 (67 lines × 2) android/guava/src/com/google/common/base/Absent.java:32— android/guava/src/com/google/common/base/Absent.java:32-98 | guava/src/com/google/common/base/Absent.java:32-98 — before extracting anything, compare `android/guava/src/com/google/common/base/Absent.java` and `guava/src/com/google/common/base/Absent.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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.
Duplicated block (67 lines × 2) android/guava/src/com/google/common/collect/ReverseNaturalOrdering.java:34— android/guava/src/com/google/common/collect/ReverseNaturalOrdering.java:34-100 | guava/src/com/google/common/collect/ReverseNaturalOrdering.java:34-100 — before extracting anything, compare `android/guava/src/com/google/common/collect/ReverseNaturalOrdering.java` and `guava/src/com/google/common/collect/ReverseNaturalOrdering.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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.
Duplicated block (67 lines × 2) android/guava/src/com/google/common/graph/AbstractUndirectedNetworkConnections.java:39— android/guava/src/com/google/common/graph/AbstractUndirectedNetworkConnections.java:39-105 | guava/src/com/google/common/graph/AbstractUndirectedNetworkConnections.java:39-105 — before extracting anything, compare `android/guava/src/com/google/common/graph/AbstractUndirectedNetworkConnections.java` and `guava/src/com/google/common/graph/AbstractUndirectedNetworkConnections.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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.
Duplicated block (57 lines × 2) android/guava/src/com/google/common/base/Utf8.java:136— android/guava/src/com/google/common/base/Utf8.java:136-192 | guava/src/com/google/common/base/Utf8.java:136-192 — before extracting anything, compare `android/guava/src/com/google/common/base/Utf8.java` and `guava/src/com/google/common/base/Utf8.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 114 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (57 lines × 2) android/guava/src/com/google/common/math/DoubleMath.java:55— android/guava/src/com/google/common/math/DoubleMath.java:55-111 | guava/src/com/google/common/math/DoubleMath.java:55-111 — before extracting anything, compare `android/guava/src/com/google/common/math/DoubleMath.java` and `guava/src/com/google/common/math/DoubleMath.java` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 200 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (57 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/ListAddAllTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/testers/ListAddAllTester.java:1-57 | guava-testlib/src/com/google/common/collect/testing/testers/ListAddAllTester.java:1-57 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/ListAddAllTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/ListAddAllTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/testers/ListAddAllTester.java:1` 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 (57 lines × 2) android/guava/src/com/google/common/collect/AbstractIndexedListIterator.java:50— android/guava/src/com/google/common/collect/AbstractIndexedListIterator.java:50-106 | guava/src/com/google/common/collect/AbstractIndexedListIterator.java:50-106 — before extracting anything, compare `android/guava/src/com/google/common/collect/AbstractIndexedListIterator.java` and `guava/src/com/google/common/collect/AbstractIndexedListIterator.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. 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 (57 lines × 2) android/guava/src/com/google/common/collect/NullsFirstOrdering.java:32— android/guava/src/com/google/common/collect/NullsFirstOrdering.java:32-88 | guava/src/com/google/common/collect/NullsFirstOrdering.java:32-88 — before extracting anything, compare `android/guava/src/com/google/common/collect/NullsFirstOrdering.java` and `guava/src/com/google/common/collect/NullsFirstOrdering.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. 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 (57 lines × 2) android/guava/src/com/google/common/collect/NullsLastOrdering.java:32— android/guava/src/com/google/common/collect/NullsLastOrdering.java:32-88 | guava/src/com/google/common/collect/NullsLastOrdering.java:32-88 — before extracting anything, compare `android/guava/src/com/google/common/collect/NullsLastOrdering.java` and `guava/src/com/google/common/collect/NullsLastOrdering.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. 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 (57 lines × 2) android/guava/src/com/google/common/io/CountingInputStream.java:44— android/guava/src/com/google/common/io/CountingInputStream.java:44-100 | guava/src/com/google/common/io/CountingInputStream.java:44-100 — before extracting anything, compare `android/guava/src/com/google/common/io/CountingInputStream.java` and `guava/src/com/google/common/io/CountingInputStream.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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.
Duplicated block (57 lines × 2) android/guava/src/com/google/common/util/concurrent/ForwardingLock.java:1— android/guava/src/com/google/common/util/concurrent/ForwardingLock.java:1-57 | guava/src/com/google/common/util/concurrent/ForwardingLock.java:1-57 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/ForwardingLock.java` and `guava/src/com/google/common/util/concurrent/ForwardingLock.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava/src/com/google/common/util/concurrent/ForwardingLock.java:1` 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 (55 lines × 2) android/guava/src/com/google/common/collect/ImmutableSortedMap.java:536— android/guava/src/com/google/common/collect/ImmutableSortedMap.java:536-590 | guava/src/com/google/common/collect/ImmutableSortedMap.java:534-588 — before extracting anything, compare `android/guava/src/com/google/common/collect/ImmutableSortedMap.java` and `guava/src/com/google/common/collect/ImmutableSortedMap.java` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 178 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 `android/guava/src/com/google/common/collect/ImmutableSortedMap.java:536` 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 (55 lines × 2) android/guava/src/com/google/common/escape/UnicodeEscaper.java:164— android/guava/src/com/google/common/escape/UnicodeEscaper.java:164-218 | guava/src/com/google/common/escape/UnicodeEscaper.java:164-218 — before extracting anything, compare `android/guava/src/com/google/common/escape/UnicodeEscaper.java` and `guava/src/com/google/common/escape/UnicodeEscaper.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 123 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (55 lines × 2) android/guava/src/com/google/common/hash/Murmur3_32HashFunction.java:169— android/guava/src/com/google/common/hash/Murmur3_32HashFunction.java:169-223 | guava/src/com/google/common/hash/Murmur3_32HashFunction.java:169-223 — before extracting anything, compare `android/guava/src/com/google/common/hash/Murmur3_32HashFunction.java` and `guava/src/com/google/common/hash/Murmur3_32HashFunction.java` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 228 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 `android/guava/src/com/google/common/hash/Murmur3_32HashFunction.java:169` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (55 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/ListLastIndexOfTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/testers/ListLastIndexOfTester.java:1-55 | guava-testlib/src/com/google/common/collect/testing/testers/ListLastIndexOfTester.java:1-55 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/ListLastIndexOfTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/ListLastIndexOfTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/testers/ListLastIndexOfTester.java:1` 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 (55 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/QueueElementTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/testers/QueueElementTester.java:1-55 | guava-testlib/src/com/google/common/collect/testing/testers/QueueElementTester.java:1-55 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/QueueElementTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/QueueElementTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/testers/QueueElementTester.java:1` 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 (55 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/SetAddAllTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/testers/SetAddAllTester.java:1-55 | guava-testlib/src/com/google/common/collect/testing/testers/SetAddAllTester.java:1-55 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/SetAddAllTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/SetAddAllTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/testers/SetAddAllTester.java:1` 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 (55 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/PerCollectionSizeTestSuiteBuilder.java:59— android/guava-testlib/src/com/google/common/collect/testing/PerCollectionSizeTestSuiteBuilder.java:59-113 | guava-testlib/src/com/google/common/collect/testing/PerCollectionSizeTestSuiteBuilder.java:59-113 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/PerCollectionSizeTestSuiteBuilder.java` and `guava-testlib/src/com/google/common/collect/testing/PerCollectionSizeTestSuiteBuilder.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (55 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/ConcurrentMapTestSuiteBuilder.java:1— android/guava-testlib/src/com/google/common/collect/testing/ConcurrentMapTestSuiteBuilder.java:1-55 | guava-testlib/src/com/google/common/collect/testing/ConcurrentMapTestSuiteBuilder.java:1-55 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/ConcurrentMapTestSuiteBuilder.java` and `guava-testlib/src/com/google/common/collect/testing/ConcurrentMapTestSuiteBuilder.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/ConcurrentMapTestSuiteBuilder.java:1` 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 (53 lines × 2) android/guava/src/com/google/common/cache/LocalCache.java:2730— android/guava/src/com/google/common/cache/LocalCache.java:2730-2782 | guava/src/com/google/common/cache/LocalCache.java:2820-2872 — before extracting anything, compare `android/guava/src/com/google/common/cache/LocalCache.java` and `guava/src/com/google/common/cache/LocalCache.java` as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1881 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 `android/guava/src/com/google/common/cache/LocalCache.java:2730` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (53 lines × 2) android/guava/src/com/google/common/math/BigIntegerMath.java:383— android/guava/src/com/google/common/math/BigIntegerMath.java:383-435 | guava/src/com/google/common/math/BigIntegerMath.java:383-435 — before extracting anything, compare `android/guava/src/com/google/common/math/BigIntegerMath.java` and `guava/src/com/google/common/math/BigIntegerMath.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 270 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (53 lines × 2) android/guava/src/com/google/common/util/concurrent/ServiceManager.java:680— android/guava/src/com/google/common/util/concurrent/ServiceManager.java:680-732 | guava/src/com/google/common/util/concurrent/ServiceManager.java:676-728 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/ServiceManager.java` and `guava/src/com/google/common/util/concurrent/ServiceManager.java` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 276 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (53 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/ListIndexOfTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/testers/ListIndexOfTester.java:1-53 | guava-testlib/src/com/google/common/collect/testing/testers/ListIndexOfTester.java:1-53 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/ListIndexOfTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/ListIndexOfTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/testers/ListIndexOfTester.java:1` 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 (53 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/ListToArrayTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/testers/ListToArrayTester.java:1-53 | guava-testlib/src/com/google/common/collect/testing/testers/ListToArrayTester.java:1-53 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/ListToArrayTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/ListToArrayTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/testers/ListToArrayTester.java:1` 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 (53 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/QueuePeekTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/testers/QueuePeekTester.java:1-53 | guava-testlib/src/com/google/common/collect/testing/testers/QueuePeekTester.java:1-53 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/QueuePeekTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/QueuePeekTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/testers/QueuePeekTester.java:1` 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 (53 lines × 2) android/guava/src/com/google/common/collect/SingletonImmutableSet.java:41— android/guava/src/com/google/common/collect/SingletonImmutableSet.java:41-93 | guava/src/com/google/common/collect/SingletonImmutableSet.java:41-93 — before extracting anything, compare `android/guava/src/com/google/common/collect/SingletonImmutableSet.java` and `guava/src/com/google/common/collect/SingletonImmutableSet.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. 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 (53 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/ConcurrentNavigableMapTestSuiteBuilder.java:1— android/guava-testlib/src/com/google/common/collect/testing/ConcurrentNavigableMapTestSuiteBuilder.java:1-53 | guava-testlib/src/com/google/common/collect/testing/ConcurrentNavigableMapTestSuiteBuilder.java:1-53 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/ConcurrentNavigableMapTestSuiteBuilder.java` and `guava-testlib/src/com/google/common/collect/testing/ConcurrentNavigableMapTestSuiteBuilder.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/ConcurrentNavigableMapTestSuiteBuilder.java:1` 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 (45 lines × 2) android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java:230— android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java:230-274 | guava/src/com/google/common/collect/ConcurrentHashMultiset.java:230-274 — before extracting anything, compare `android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java` and `guava/src/com/google/common/collect/ConcurrentHashMultiset.java` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 276 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (45 lines × 2) android/guava/src/com/google/common/collect/FilteredEntryMultimap.java:252— android/guava/src/com/google/common/collect/FilteredEntryMultimap.java:252-296 | guava/src/com/google/common/collect/FilteredEntryMultimap.java:252-296 — before extracting anything, compare `android/guava/src/com/google/common/collect/FilteredEntryMultimap.java` and `guava/src/com/google/common/collect/FilteredEntryMultimap.java` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 221 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (45 lines × 2) android/guava/src/com/google/common/collect/GeneralRange.java:195— android/guava/src/com/google/common/collect/GeneralRange.java:195-239 | guava/src/com/google/common/collect/GeneralRange.java:195-239 — before extracting anything, compare `android/guava/src/com/google/common/collect/GeneralRange.java` and `guava/src/com/google/common/collect/GeneralRange.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 154 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (45 lines × 2) android/guava/src/com/google/common/collect/RegularImmutableSortedSet.java:99— android/guava/src/com/google/common/collect/RegularImmutableSortedSet.java:99-143 | guava/src/com/google/common/collect/RegularImmutableSortedSet.java:110-154 — before extracting anything, compare `android/guava/src/com/google/common/collect/RegularImmutableSortedSet.java` and `guava/src/com/google/common/collect/RegularImmutableSortedSet.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 129 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (45 lines × 2) android/guava/src/com/google/common/net/InetAddresses.java:201— android/guava/src/com/google/common/net/InetAddresses.java:201-245 | guava/src/com/google/common/net/InetAddresses.java:201-245 — before extracting anything, compare `android/guava/src/com/google/common/net/InetAddresses.java` and `guava/src/com/google/common/net/InetAddresses.java` as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 550 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (45 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/MinimalSet.java:43— android/guava-testlib/src/com/google/common/collect/testing/MinimalSet.java:43-87 | guava-testlib/src/com/google/common/collect/testing/MinimalSet.java:43-87 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/MinimalSet.java` and `guava-testlib/src/com/google/common/collect/testing/MinimalSet.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. 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 (45 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/MultisetSerializationTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/google/MultisetSerializationTester.java:1-45 | guava-testlib/src/com/google/common/collect/testing/google/MultisetSerializationTester.java:1-45 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultisetSerializationTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultisetSerializationTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/google/MultisetSerializationTester.java:1` 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 (45 lines × 2) android/guava-testlib/src/com/google/common/testing/SloppyTearDown.java:1— android/guava-testlib/src/com/google/common/testing/SloppyTearDown.java:1-45 | guava-testlib/src/com/google/common/testing/SloppyTearDown.java:1-45 — before extracting anything, compare `android/guava-testlib/src/com/google/common/testing/SloppyTearDown.java` and `guava-testlib/src/com/google/common/testing/SloppyTearDown.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/testing/SloppyTearDown.java:1` 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 (44 lines × 2) android/guava/src/com/google/common/collect/TreeRangeSet.java:176— android/guava/src/com/google/common/collect/TreeRangeSet.java:176-219 | guava/src/com/google/common/collect/TreeRangeSet.java:176-219 — before extracting anything, compare `android/guava/src/com/google/common/collect/TreeRangeSet.java` and `guava/src/com/google/common/collect/TreeRangeSet.java` as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 494 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (44 lines × 2) android/guava/src/com/google/common/io/Files.java:736— android/guava/src/com/google/common/io/Files.java:736-779 | guava/src/com/google/common/io/Files.java:736-779 — before extracting anything, compare `android/guava/src/com/google/common/io/Files.java` and `guava/src/com/google/common/io/Files.java` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 164 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (44 lines × 2) android/guava/src/com/google/common/io/MoreFiles.java:525— android/guava/src/com/google/common/io/MoreFiles.java:525-568 | guava/src/com/google/common/io/MoreFiles.java:522-565 — before extracting anything, compare `android/guava/src/com/google/common/io/MoreFiles.java` and `guava/src/com/google/common/io/MoreFiles.java` as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 425 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (44 lines × 2) android/guava/src/com/google/common/math/IntMath.java:575— android/guava/src/com/google/common/math/IntMath.java:575-618 | guava/src/com/google/common/math/IntMath.java:575-618 — before extracting anything, compare `android/guava/src/com/google/common/math/IntMath.java` and `guava/src/com/google/common/math/IntMath.java` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 357 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (44 lines × 2) android/guava/src/com/google/common/math/LongMath.java:722— android/guava/src/com/google/common/math/LongMath.java:722-765 | guava/src/com/google/common/math/LongMath.java:722-765 — before extracting anything, compare `android/guava/src/com/google/common/math/LongMath.java` and `guava/src/com/google/common/math/LongMath.java` as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 723 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 `android/guava/src/com/google/common/math/LongMath.java:722` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (44 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/ListCreationTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/testers/ListCreationTester.java:1-44 | guava-testlib/src/com/google/common/collect/testing/testers/ListCreationTester.java:1-44 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/ListCreationTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/ListCreationTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/testers/ListCreationTester.java:1` 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 (44 lines × 2) android/guava/src/com/google/common/util/concurrent/ForwardingBlockingQueue.java:46— android/guava/src/com/google/common/util/concurrent/ForwardingBlockingQueue.java:46-89 | guava/src/com/google/common/util/concurrent/ForwardingBlockingQueue.java:46-89 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/ForwardingBlockingQueue.java` and `guava/src/com/google/common/util/concurrent/ForwardingBlockingQueue.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. 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 (44 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/MapTestSuiteBuilder.java:96— android/guava-testlib/src/com/google/common/collect/testing/MapTestSuiteBuilder.java:96-139 | guava-testlib/src/com/google/common/collect/testing/MapTestSuiteBuilder.java:118-161 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/MapTestSuiteBuilder.java` and `guava-testlib/src/com/google/common/collect/testing/MapTestSuiteBuilder.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 109 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (66 lines × 2) android/guava/src/com/google/common/cache/LocalCache.java:2787— android/guava/src/com/google/common/cache/LocalCache.java:2787-2852 | guava/src/com/google/common/cache/LocalCache.java:2877-2942 — before extracting anything, compare `android/guava/src/com/google/common/cache/LocalCache.java` and `guava/src/com/google/common/cache/LocalCache.java` as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1881 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (66 lines × 2) android/guava/src/com/google/common/collect/ImmutableRangeSet.java:465— android/guava/src/com/google/common/collect/ImmutableRangeSet.java:465-530 | guava/src/com/google/common/collect/ImmutableRangeSet.java:464-529 — before extracting anything, compare `android/guava/src/com/google/common/collect/ImmutableRangeSet.java` and `guava/src/com/google/common/collect/ImmutableRangeSet.java` as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 376 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (66 lines × 2) android/guava/src/com/google/common/collect/Sets.java:1058— android/guava/src/com/google/common/collect/Sets.java:1058-1123 | guava/src/com/google/common/collect/Sets.java:1107-1172 — before extracting anything, compare `android/guava/src/com/google/common/collect/Sets.java` and `guava/src/com/google/common/collect/Sets.java` as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 722 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (66 lines × 2) android/guava/src/com/google/common/collect/Streams.java:877— android/guava/src/com/google/common/collect/Streams.java:877-942 | guava/src/com/google/common/collect/Streams.java:865-930 — before extracting anything, compare `android/guava/src/com/google/common/collect/Streams.java` and `guava/src/com/google/common/collect/Streams.java` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 481 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (66 lines × 2) android/guava/src/com/google/common/util/concurrent/AbstractFuture.java:362— android/guava/src/com/google/common/util/concurrent/AbstractFuture.java:362-427 | guava/src/com/google/common/util/concurrent/AbstractFuture.java:362-427 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/AbstractFuture.java` and `guava/src/com/google/common/util/concurrent/AbstractFuture.java` as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 508 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (66 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionCreationTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionCreationTester.java:1-66 | guava-testlib/src/com/google/common/collect/testing/testers/CollectionCreationTester.java:1-66 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionCreationTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/CollectionCreationTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionCreationTester.java:1` 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 (66 lines × 2) android/guava/src/com/google/common/collect/AllEqualOrdering.java:1— android/guava/src/com/google/common/collect/AllEqualOrdering.java:1-66 | guava/src/com/google/common/collect/AllEqualOrdering.java:1-66 — before extracting anything, compare `android/guava/src/com/google/common/collect/AllEqualOrdering.java` and `guava/src/com/google/common/collect/AllEqualOrdering.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava/src/com/google/common/collect/AllEqualOrdering.java:1` 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 (52 lines × 2) android/guava/src/com/google/common/collect/CollectSpliterators.java:160— android/guava/src/com/google/common/collect/CollectSpliterators.java:160-211 | guava/src/com/google/common/collect/CollectSpliterators.java:160-211 — before extracting anything, compare `android/guava/src/com/google/common/collect/CollectSpliterators.java` and `guava/src/com/google/common/collect/CollectSpliterators.java` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 237 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 `android/guava/src/com/google/common/collect/CollectSpliterators.java:160` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (52 lines × 2) android/guava/src/com/google/common/graph/DirectedGraphConnections.java:181— android/guava/src/com/google/common/graph/DirectedGraphConnections.java:181-232 | guava/src/com/google/common/graph/DirectedGraphConnections.java:181-232 — before extracting anything, compare `android/guava/src/com/google/common/graph/DirectedGraphConnections.java` and `guava/src/com/google/common/graph/DirectedGraphConnections.java` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 391 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (52 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionEqualsTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionEqualsTester.java:1-52 | guava-testlib/src/com/google/common/collect/testing/testers/CollectionEqualsTester.java:1-52 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionEqualsTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/CollectionEqualsTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionEqualsTester.java:1` 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 (52 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionStreamTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionStreamTester.java:1-53 | guava-testlib/src/com/google/common/collect/testing/testers/CollectionStreamTester.java:1-52 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionStreamTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/CollectionStreamTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionStreamTester.java:1` 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 (52 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/ListHashCodeTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/testers/ListHashCodeTester.java:1-52 | guava-testlib/src/com/google/common/collect/testing/testers/ListHashCodeTester.java:1-52 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/ListHashCodeTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/ListHashCodeTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/testers/ListHashCodeTester.java:1` 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 (52 lines × 2) android/guava/src/com/google/common/cache/ForwardingLoadingCache.java:41— android/guava/src/com/google/common/cache/ForwardingLoadingCache.java:41-92 | guava/src/com/google/common/cache/ForwardingLoadingCache.java:41-92 — before extracting anything, compare `android/guava/src/com/google/common/cache/ForwardingLoadingCache.java` and `guava/src/com/google/common/cache/ForwardingLoadingCache.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava/src/com/google/common/cache/ForwardingLoadingCache.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. 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 (52 lines × 2) android/guava/src/com/google/common/util/concurrent/ListenableFutureTask.java:56— android/guava/src/com/google/common/util/concurrent/ListenableFutureTask.java:56-107 | guava/src/com/google/common/util/concurrent/ListenableFutureTask.java:56-107 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/ListenableFutureTask.java` and `guava/src/com/google/common/util/concurrent/ListenableFutureTask.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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.
Change coupling: StandardNetwork.java ↔ StandardValueGraph.java android/guava/src/com/google/common/graph/StandardNetwork.java:1— `android/guava/src/com/google/common/graph/StandardNetwork.java` and `android/guava/src/com/google/common/graph/StandardValueGraph.java` change together 80% of the time (8 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package — so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are `00e16c0e` More aggressively throw `NullPointerException` in `common.graph`.; `e716c22a` In implementation code, use nullable types over `Optional`.; `8dca7763` change behavior of views returned by graph accessor methods that take… — run `git show` on any of them.
Change coupling: StandardNetwork.java ↔ StandardValueGraph.java android/guava/src/com/google/common/graph/StandardNetwork.java:1— `android/guava/src/com/google/common/graph/StandardNetwork.java` and `guava/src/com/google/common/graph/StandardValueGraph.java` change together 70% of the time (7 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency — the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE — the registration is the link, and it is meant not to be an import — and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are `00e16c0e` More aggressively throw `NullPointerException` in `common.graph`.; `e716c22a` In implementation code, use nullable types over `Optional`.; `8dca7763` change behavior of views returned by graph accessor methods that take… — run `git show` on any of them.
Change coupling: CompactLinkedHashMap.java ↔ CompactLinkedHashSet.java guava/src/com/google/common/collect/CompactLinkedHashMap.java:1— `guava/src/com/google/common/collect/CompactLinkedHashMap.java` and `guava/src/com/google/common/collect/CompactLinkedHashSet.java` change together 64% of the time (7 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package — so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are `4eb712cd` Make package-private `collect` classes `final` where possible.; `9851ee47` Annotate the compact collections for nullness.; `c81c0368` Use int[] for entries and byte[]/short[]/int[] for hashtable — run `git show` on any of them.
Change coupling: CompactLinkedHashSet.java ↔ CompactLinkedHashMap.java android/guava/src/com/google/common/collect/CompactLinkedHashSet.java:1— `android/guava/src/com/google/common/collect/CompactLinkedHashSet.java` and `guava/src/com/google/common/collect/CompactLinkedHashMap.java` change together 64% of the time (7 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency — the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE — the registration is the link, and it is meant not to be an import — and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are `4eb712cd` Make package-private `collect` classes `final` where possible.; `9851ee47` Annotate the compact collections for nullness.; `c81c0368` Use int[] for entries and byte[]/short[]/int[] for hashtable — run `git show` on any of them.
Change coupling: CompactLinkedHashMap.java ↔ CompactLinkedHashSet.java android/guava/src/com/google/common/collect/CompactLinkedHashMap.java:1— `android/guava/src/com/google/common/collect/CompactLinkedHashMap.java` and `guava/src/com/google/common/collect/CompactLinkedHashSet.java` change together 64% of the time (7 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency — the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE — the registration is the link, and it is meant not to be an import — and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are `4eb712cd` Make package-private `collect` classes `final` where possible.; `9851ee47` Annotate the compact collections for nullness.; `c81c0368` Use int[] for entries and byte[]/short[]/int[] for hashtable — run `git show` on any of them.
Change coupling: CompactLinkedHashMap.java ↔ CompactLinkedHashSet.java android/guava/src/com/google/common/collect/CompactLinkedHashMap.java:1— `android/guava/src/com/google/common/collect/CompactLinkedHashMap.java` and `android/guava/src/com/google/common/collect/CompactLinkedHashSet.java` change together 64% of the time (7 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package — so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are `4eb712cd` Make package-private `collect` classes `final` where possible.; `9851ee47` Annotate the compact collections for nullness.; `c81c0368` Use int[] for entries and byte[]/short[]/int[] for hashtable — run `git show` on any of them.
Duplicated block (75 lines × 2) android/guava/src/com/google/common/cache/LocalCache.java:246— android/guava/src/com/google/common/cache/LocalCache.java:246-320 | guava/src/com/google/common/cache/LocalCache.java:250-324 — before extracting anything, compare `android/guava/src/com/google/common/cache/LocalCache.java` and `guava/src/com/google/common/cache/LocalCache.java` as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1881 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (75 lines × 2) android/guava/src/com/google/common/io/BaseEncoding.java:815— android/guava/src/com/google/common/io/BaseEncoding.java:815-889 | guava/src/com/google/common/io/BaseEncoding.java:815-889 — before extracting anything, compare `android/guava/src/com/google/common/io/BaseEncoding.java` and `guava/src/com/google/common/io/BaseEncoding.java` as WHOLE FILES: this scan already matched 43 separate duplicated blocks between them, totalling at least 587 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (75 lines × 2) android/guava/src/com/google/common/collect/FilteredKeySetMultimap.java:1— android/guava/src/com/google/common/collect/FilteredKeySetMultimap.java:1-75 | guava/src/com/google/common/collect/FilteredKeySetMultimap.java:1-75 — before extracting anything, compare `android/guava/src/com/google/common/collect/FilteredKeySetMultimap.java` and `guava/src/com/google/common/collect/FilteredKeySetMultimap.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava/src/com/google/common/collect/FilteredKeySetMultimap.java:1` 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 (75 lines × 2) android/guava/src/com/google/common/collect/UnmodifiableSortedMultiset.java:40— android/guava/src/com/google/common/collect/UnmodifiableSortedMultiset.java:40-114 | guava/src/com/google/common/collect/UnmodifiableSortedMultiset.java:40-114 — before extracting anything, compare `android/guava/src/com/google/common/collect/UnmodifiableSortedMultiset.java` and `guava/src/com/google/common/collect/UnmodifiableSortedMultiset.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. 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 (75 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/SortedMultisetTestSuiteBuilder.java:143— android/guava-testlib/src/com/google/common/collect/testing/google/SortedMultisetTestSuiteBuilder.java:143-217 | guava-testlib/src/com/google/common/collect/testing/google/SortedMultisetTestSuiteBuilder.java:143-217 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/SortedMultisetTestSuiteBuilder.java` and `guava-testlib/src/com/google/common/collect/testing/google/SortedMultisetTestSuiteBuilder.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 170 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (75 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/TestStringSortedSetGenerator.java:1— android/guava-testlib/src/com/google/common/collect/testing/TestStringSortedSetGenerator.java:1-75 | guava-testlib/src/com/google/common/collect/testing/TestStringSortedSetGenerator.java:1-75 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/TestStringSortedSetGenerator.java` and `guava-testlib/src/com/google/common/collect/testing/TestStringSortedSetGenerator.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/TestStringSortedSetGenerator.java:1` 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 (63 lines × 2) android/guava/src/com/google/common/math/BigIntegerMath.java:145— android/guava/src/com/google/common/math/BigIntegerMath.java:145-207 | guava/src/com/google/common/math/BigIntegerMath.java:145-207 — before extracting anything, compare `android/guava/src/com/google/common/math/BigIntegerMath.java` and `guava/src/com/google/common/math/BigIntegerMath.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 270 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (63 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/MultimapValuesTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/google/MultimapValuesTester.java:1-63 | guava-testlib/src/com/google/common/collect/testing/google/MultimapValuesTester.java:1-63 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultimapValuesTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultimapValuesTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/google/MultimapValuesTester.java:1` 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 (63 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/SetAddTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/testers/SetAddTester.java:1-63 | guava-testlib/src/com/google/common/collect/testing/testers/SetAddTester.java:1-63 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/SetAddTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/SetAddTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/testers/SetAddTester.java:1` 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 (63 lines × 2) android/guava/src/com/google/common/util/concurrent/ForwardingCondition.java:1— android/guava/src/com/google/common/util/concurrent/ForwardingCondition.java:1-63 | guava/src/com/google/common/util/concurrent/ForwardingCondition.java:1-63 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/ForwardingCondition.java` and `guava/src/com/google/common/util/concurrent/ForwardingCondition.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava/src/com/google/common/util/concurrent/ForwardingCondition.java:1` 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 (63 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/TestCharacterListGenerator.java:1— android/guava-testlib/src/com/google/common/collect/testing/TestCharacterListGenerator.java:1-63 | guava-testlib/src/com/google/common/collect/testing/TestCharacterListGenerator.java:1-63 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/TestCharacterListGenerator.java` and `guava-testlib/src/com/google/common/collect/testing/TestCharacterListGenerator.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/TestCharacterListGenerator.java:1` 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 (63 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/TestUnhashableCollectionGenerator.java:1— android/guava-testlib/src/com/google/common/collect/testing/TestUnhashableCollectionGenerator.java:1-63 | guava-testlib/src/com/google/common/collect/testing/TestUnhashableCollectionGenerator.java:1-63 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/TestUnhashableCollectionGenerator.java` and `guava-testlib/src/com/google/common/collect/testing/TestUnhashableCollectionGenerator.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/TestUnhashableCollectionGenerator.java:1` 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 (60 lines × 2) android/guava/src/com/google/common/escape/CharEscaper.java:102— android/guava/src/com/google/common/escape/CharEscaper.java:102-161 | guava/src/com/google/common/escape/CharEscaper.java:102-161 — before extracting anything, compare `android/guava/src/com/google/common/escape/CharEscaper.java` and `guava/src/com/google/common/escape/CharEscaper.java` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 80 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (60 lines × 2) android/guava/src/com/google/common/io/ReaderInputStream.java:132— android/guava/src/com/google/common/io/ReaderInputStream.java:132-191 | guava/src/com/google/common/io/ReaderInputStream.java:132-191 — before extracting anything, compare `android/guava/src/com/google/common/io/ReaderInputStream.java` and `guava/src/com/google/common/io/ReaderInputStream.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 107 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (60 lines × 2) android/guava/src/com/google/common/math/LongMath.java:312— android/guava/src/com/google/common/math/LongMath.java:312-371 | guava/src/com/google/common/math/LongMath.java:312-371 — before extracting anything, compare `android/guava/src/com/google/common/math/LongMath.java` and `guava/src/com/google/common/math/LongMath.java` as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 723 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (60 lines × 2) android/guava/src/com/google/common/util/concurrent/ExecutionSequencer.java:340— android/guava/src/com/google/common/util/concurrent/ExecutionSequencer.java:340-399 | guava/src/com/google/common/util/concurrent/ExecutionSequencer.java:340-399 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/ExecutionSequencer.java` and `guava/src/com/google/common/util/concurrent/ExecutionSequencer.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 188 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (60 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/MultisetEqualsTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/google/MultisetEqualsTester.java:1-60 | guava-testlib/src/com/google/common/collect/testing/google/MultisetEqualsTester.java:1-60 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultisetEqualsTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultisetEqualsTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/google/MultisetEqualsTester.java:1` 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 (60 lines × 2) android/guava/src/com/google/common/base/JdkPattern.java:28— android/guava/src/com/google/common/base/JdkPattern.java:28-87 | guava/src/com/google/common/base/JdkPattern.java:28-87 — before extracting anything, compare `android/guava/src/com/google/common/base/JdkPattern.java` and `guava/src/com/google/common/base/JdkPattern.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava/src/com/google/common/base/JdkPattern.java:28` 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 (56 lines × 2) android/guava/src/com/google/common/cache/LocalCache.java:3961— android/guava/src/com/google/common/cache/LocalCache.java:3961-4016 | guava/src/com/google/common/cache/LocalCache.java:4071-4126 — before extracting anything, compare `android/guava/src/com/google/common/cache/LocalCache.java` and `guava/src/com/google/common/cache/LocalCache.java` as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1881 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (56 lines × 2) android/guava/src/com/google/common/collect/TreeMultiset.java:827— android/guava/src/com/google/common/collect/TreeMultiset.java:827-882 | guava/src/com/google/common/collect/TreeMultiset.java:839-894 — before extracting anything, compare `android/guava/src/com/google/common/collect/TreeMultiset.java` and `guava/src/com/google/common/collect/TreeMultiset.java` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 678 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (56 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/QueuePollTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/testers/QueuePollTester.java:1-56 | guava-testlib/src/com/google/common/collect/testing/testers/QueuePollTester.java:1-56 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/QueuePollTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/QueuePollTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/testers/QueuePollTester.java:1` 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 (56 lines × 2) android/guava-testlib/src/com/google/common/testing/SerializableTester.java:39— android/guava-testlib/src/com/google/common/testing/SerializableTester.java:39-94 | guava-testlib/src/com/google/common/testing/SerializableTester.java:39-94 — before extracting anything, compare `android/guava-testlib/src/com/google/common/testing/SerializableTester.java` and `guava-testlib/src/com/google/common/testing/SerializableTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. 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 (56 lines × 2) android/guava/src/com/google/common/io/MultiReader.java:39— android/guava/src/com/google/common/io/MultiReader.java:39-94 | guava/src/com/google/common/io/MultiReader.java:39-94 — before extracting anything, compare `android/guava/src/com/google/common/io/MultiReader.java` and `guava/src/com/google/common/io/MultiReader.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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.
Duplicated block (56 lines × 2) android/guava/src/com/google/common/util/concurrent/ForwardingFuture.java:50— android/guava/src/com/google/common/util/concurrent/ForwardingFuture.java:50-105 | guava/src/com/google/common/util/concurrent/ForwardingFuture.java:50-105 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/ForwardingFuture.java` and `guava/src/com/google/common/util/concurrent/ForwardingFuture.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava/src/com/google/common/util/concurrent/ForwardingFuture.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. 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 (54 lines × 2) android/guava/src/com/google/common/collect/Streams.java:536— android/guava/src/com/google/common/collect/Streams.java:536-589 | guava/src/com/google/common/collect/Streams.java:530-583 — before extracting anything, compare `android/guava/src/com/google/common/collect/Streams.java` and `guava/src/com/google/common/collect/Streams.java` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 481 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (54 lines × 2) android/guava/src/com/google/common/collect/Streams.java:615— android/guava/src/com/google/common/collect/Streams.java:615-668 | guava/src/com/google/common/collect/Streams.java:609-662 — before extracting anything, compare `android/guava/src/com/google/common/collect/Streams.java` and `guava/src/com/google/common/collect/Streams.java` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 481 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (54 lines × 2) android/guava/src/com/google/common/collect/Streams.java:694— android/guava/src/com/google/common/collect/Streams.java:694-747 | guava/src/com/google/common/collect/Streams.java:688-741 — before extracting anything, compare `android/guava/src/com/google/common/collect/Streams.java` and `guava/src/com/google/common/collect/Streams.java` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 481 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (54 lines × 2) android/guava/src/com/google/common/math/IntMath.java:314— android/guava/src/com/google/common/math/IntMath.java:314-367 | guava/src/com/google/common/math/IntMath.java:314-367 — before extracting anything, compare `android/guava/src/com/google/common/math/IntMath.java` and `guava/src/com/google/common/math/IntMath.java` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 357 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (54 lines × 2) android/guava/src/com/google/common/math/Quantiles.java:404— android/guava/src/com/google/common/math/Quantiles.java:404-457 | guava/src/com/google/common/math/Quantiles.java:404-457 — before extracting anything, compare `android/guava/src/com/google/common/math/Quantiles.java` and `guava/src/com/google/common/math/Quantiles.java` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 229 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (54 lines × 2) android/guava/src/com/google/common/reflect/Reflection.java:35— android/guava/src/com/google/common/reflect/Reflection.java:35-88 | guava/src/com/google/common/reflect/Reflection.java:35-88 — before extracting anything, compare `android/guava/src/com/google/common/reflect/Reflection.java` and `guava/src/com/google/common/reflect/Reflection.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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.
Duplicated block (38 lines × 2) android/guava/src/com/google/common/graph/Graphs.java:102— android/guava/src/com/google/common/graph/Graphs.java:102-139 | guava/src/com/google/common/graph/Graphs.java:103-140 — before extracting anything, compare `android/guava/src/com/google/common/graph/Graphs.java` and `guava/src/com/google/common/graph/Graphs.java` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 235 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (38 lines × 2) android/guava/src/com/google/common/math/IntMath.java:408— android/guava/src/com/google/common/math/IntMath.java:408-445 | guava/src/com/google/common/math/IntMath.java:408-445 — before extracting anything, compare `android/guava/src/com/google/common/math/IntMath.java` and `guava/src/com/google/common/math/IntMath.java` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 357 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (38 lines × 2) android/guava/src/com/google/common/math/LongMath.java:499— android/guava/src/com/google/common/math/LongMath.java:499-536 | guava/src/com/google/common/math/LongMath.java:499-536 — before extracting anything, compare `android/guava/src/com/google/common/math/LongMath.java` and `guava/src/com/google/common/math/LongMath.java` as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 723 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (38 lines × 2) android/guava/src/com/google/common/util/concurrent/AbstractFuture.java:933— android/guava/src/com/google/common/util/concurrent/AbstractFuture.java:933-970 | guava/src/com/google/common/util/concurrent/AbstractFuture.java:933-970 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/AbstractFuture.java` and `guava/src/com/google/common/util/concurrent/AbstractFuture.java` as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 508 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (38 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/MultisetContainsTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/google/MultisetContainsTester.java:1-38 | guava-testlib/src/com/google/common/collect/testing/google/MultisetContainsTester.java:1-38 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultisetContainsTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultisetContainsTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/google/MultisetContainsTester.java:1` 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 (38 lines × 2) android/guava/src/com/google/common/collect/TransformedListIterator.java:33— android/guava/src/com/google/common/collect/TransformedListIterator.java:33-70 | guava/src/com/google/common/collect/TransformedListIterator.java:33-70 — before extracting anything, compare `android/guava/src/com/google/common/collect/TransformedListIterator.java` and `guava/src/com/google/common/collect/TransformedListIterator.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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.
Duplicated block (37 lines × 2) android/guava/src/com/google/common/collect/Sets.java:941— android/guava/src/com/google/common/collect/Sets.java:941-977 | guava/src/com/google/common/collect/Sets.java:980-1016 — before extracting anything, compare `android/guava/src/com/google/common/collect/Sets.java` and `guava/src/com/google/common/collect/Sets.java` as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 722 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 `android/guava/src/com/google/common/collect/Sets.java:941` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (37 lines × 2) android/guava/src/com/google/common/escape/ArrayBasedUnicodeEscaper.java:100— android/guava/src/com/google/common/escape/ArrayBasedUnicodeEscaper.java:100-136 | guava/src/com/google/common/escape/ArrayBasedUnicodeEscaper.java:100-136 — before extracting anything, compare `android/guava/src/com/google/common/escape/ArrayBasedUnicodeEscaper.java` and `guava/src/com/google/common/escape/ArrayBasedUnicodeEscaper.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 72 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (37 lines × 2) android/guava/src/com/google/common/graph/StandardMutableValueGraph.java:122— android/guava/src/com/google/common/graph/StandardMutableValueGraph.java:122-158 | guava/src/com/google/common/graph/StandardMutableValueGraph.java:122-158 — before extracting anything, compare `android/guava/src/com/google/common/graph/StandardMutableValueGraph.java` and `guava/src/com/google/common/graph/StandardMutableValueGraph.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 81 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (37 lines × 2) android/guava/src/com/google/common/math/DoubleMath.java:243— android/guava/src/com/google/common/math/DoubleMath.java:243-279 | guava/src/com/google/common/math/DoubleMath.java:243-279 — before extracting anything, compare `android/guava/src/com/google/common/math/DoubleMath.java` and `guava/src/com/google/common/math/DoubleMath.java` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 200 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (37 lines × 2) android/guava/src/com/google/common/math/LongMath.java:604— android/guava/src/com/google/common/math/LongMath.java:604-640 | guava/src/com/google/common/math/LongMath.java:604-640 — before extracting anything, compare `android/guava/src/com/google/common/math/LongMath.java` and `guava/src/com/google/common/math/LongMath.java` as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 723 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 `android/guava/src/com/google/common/math/LongMath.java:604` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (37 lines × 2) android/guava/src/com/google/common/util/concurrent/AbstractFutureState.java:224— android/guava/src/com/google/common/util/concurrent/AbstractFutureState.java:224-260 | guava/src/com/google/common/util/concurrent/AbstractFutureState.java:227-263 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/AbstractFutureState.java` and `guava/src/com/google/common/util/concurrent/AbstractFutureState.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 166 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (13 lines × 4) android/guava/src/com/google/common/cache/LocalCache.java:3210— android/guava/src/com/google/common/cache/LocalCache.java:3210-3222 | android/guava/src/com/google/common/cache/LocalCache.java:3320-3332 | guava/src/com/google/common/cache/LocalCache.java:3300-3312 | guava/src/com/google/common/cache/LocalCache.java:3410-3422 — before extracting anything, compare `android/guava/src/com/google/common/cache/LocalCache.java` and `guava/src/com/google/common/cache/LocalCache.java` as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1881 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 `android/guava/src/com/google/common/cache/LocalCache.java:3210` 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 × 4) android/guava/src/com/google/common/collect/CompactHashMap.java:956— android/guava/src/com/google/common/collect/CompactHashMap.java:956-968 | android/guava/src/com/google/common/collect/CompactHashSet.java:634-646 | guava/src/com/google/common/collect/CompactHashMap.java:1076-1088 | guava/src/com/google/common/collect/CompactHashSet.java:663-675 — before extracting anything, compare `android/guava/src/com/google/common/collect/CompactHashMap.java` and `android/guava/src/com/google/common/collect/CompactHashSet.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 135 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `android/guava/src/com/google/common/collect/CompactHashMap.java:956` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 × 4) android/guava/src/com/google/common/collect/Multisets.java:421— android/guava/src/com/google/common/collect/Multisets.java:421-433 | android/guava/src/com/google/common/collect/Multisets.java:557-569 | guava/src/com/google/common/collect/Multisets.java:427-439 | guava/src/com/google/common/collect/Multisets.java:563-575 — before extracting anything, compare `android/guava/src/com/google/common/collect/Multisets.java` and `guava/src/com/google/common/collect/Multisets.java` as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 470 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 `android/guava/src/com/google/common/collect/Multisets.java:421` 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 × 4) android/guava/src/com/google/common/collect/Sets.java:919— android/guava/src/com/google/common/collect/Sets.java:919-931 | android/guava/src/com/google/common/collect/Sets.java:990-1002 | guava/src/com/google/common/collect/Sets.java:948-960 | guava/src/com/google/common/collect/Sets.java:1029-1041 — before extracting anything, compare `android/guava/src/com/google/common/collect/Sets.java` and `guava/src/com/google/common/collect/Sets.java` as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 722 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 `android/guava/src/com/google/common/collect/Sets.java:919` 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 (13 lines × 4) android/guava/src/com/google/common/graph/AbstractBaseGraph.java:91— android/guava/src/com/google/common/graph/AbstractBaseGraph.java:91-103 | android/guava/src/com/google/common/graph/AbstractNetwork.java:88-100 | guava/src/com/google/common/graph/AbstractBaseGraph.java:91-103 | guava/src/com/google/common/graph/AbstractNetwork.java:89-101 — 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 `android/guava/src/com/google/common/graph/AbstractBaseGraph.java:91` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 × 4) android/guava/src/com/google/common/primitives/UnsignedInts.java:167— android/guava/src/com/google/common/primitives/UnsignedInts.java:167-179 | android/guava/src/com/google/common/primitives/UnsignedLongs.java:132-144 | guava/src/com/google/common/primitives/UnsignedInts.java:167-179 | guava/src/com/google/common/primitives/UnsignedLongs.java:132-144 — before extracting anything, compare `android/guava/src/com/google/common/primitives/UnsignedInts.java` and `guava/src/com/google/common/primitives/UnsignedInts.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 90 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: the declarations holding them bind `array` to `int...` in one and `long...` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (89 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveAllTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveAllTester.java:1-89 | guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveAllTester.java:1-89 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveAllTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveAllTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveAllTester.java:1` 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 (89 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/MultisetCountTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/google/MultisetCountTester.java:1-89 | guava-testlib/src/com/google/common/collect/testing/google/MultisetCountTester.java:1-89 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultisetCountTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultisetCountTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/google/MultisetCountTester.java:1` 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 (89 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/MapClearTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/testers/MapClearTester.java:1-89 | guava-testlib/src/com/google/common/collect/testing/testers/MapClearTester.java:1-89 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/MapClearTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/MapClearTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/testers/MapClearTester.java:1` 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 (89 lines × 2) android/guava/src/com/google/common/collect/EvictingQueue.java:54— android/guava/src/com/google/common/collect/EvictingQueue.java:54-142 | guava/src/com/google/common/collect/EvictingQueue.java:54-142 — before extracting anything, compare `android/guava/src/com/google/common/collect/EvictingQueue.java` and `guava/src/com/google/common/collect/EvictingQueue.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. 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 (89 lines × 2) android/guava/src/com/google/common/collect/ImmutableAsList.java:1— android/guava/src/com/google/common/collect/ImmutableAsList.java:1-89 | guava/src/com/google/common/collect/ImmutableAsList.java:1-89 — before extracting anything, compare `android/guava/src/com/google/common/collect/ImmutableAsList.java` and `guava/src/com/google/common/collect/ImmutableAsList.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava/src/com/google/common/collect/ImmutableAsList.java:1` 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 (89 lines × 2) android/guava/src/com/google/common/io/ByteSink.java:54— android/guava/src/com/google/common/io/ByteSink.java:54-142 | guava/src/com/google/common/io/ByteSink.java:54-142 — before extracting anything, compare `android/guava/src/com/google/common/io/ByteSink.java` and `guava/src/com/google/common/io/ByteSink.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava/src/com/google/common/io/ByteSink.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. 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.
D4 · Code Duplication· Members sharing a duplicated core (8 members, 50+ identical tokens) · ×5
Members sharing a duplicated core (8 members, 50+ identical tokens) android/guava/src/com/google/common/cache/LocalCache.java:3205— android/guava/src/com/google/common/cache/LocalCache.java:3205-3235 | android/guava/src/com/google/common/cache/LocalCache.java:3239-3278 | android/guava/src/com/google/common/cache/LocalCache.java:3281-3312 | android/guava/src/com/google/common/cache/LocalCache.java:3317-3341 | guava/src/com/google/common/cache/LocalCache.java:3295-3325 | guava/src/com/google/common/cache/LocalCache.java:3329-3368 | guava/src/com/google/common/cache/LocalCache.java:3371-3402 | guava/src/com/google/common/cache/LocalCache.java:3407-3431 — These 8 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 8 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 8 times.
Members sharing a duplicated core (8 members, 50+ identical tokens) android/guava/src/com/google/common/collect/Streams.java:451— android/guava/src/com/google/common/collect/Streams.java:451-510 | android/guava/src/com/google/common/collect/Streams.java:535-589 | android/guava/src/com/google/common/collect/Streams.java:614-668 | android/guava/src/com/google/common/collect/Streams.java:693-747 | guava/src/com/google/common/collect/Streams.java:445-504 | guava/src/com/google/common/collect/Streams.java:529-583 | guava/src/com/google/common/collect/Streams.java:608-662 | guava/src/com/google/common/collect/Streams.java:687-741 — These 8 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 8 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 8 times.
Members sharing a duplicated core (8 members, 50+ identical tokens) android/guava/src/com/google/common/collect/TreeRangeSet.java:363— android/guava/src/com/google/common/collect/TreeRangeSet.java:363-400 | android/guava/src/com/google/common/collect/TreeRangeSet.java:403-431 | android/guava/src/com/google/common/collect/TreeRangeSet.java:774-813 | android/guava/src/com/google/common/collect/TreeRangeSet.java:816-849 | guava/src/com/google/common/collect/TreeRangeSet.java:363-400 | guava/src/com/google/common/collect/TreeRangeSet.java:403-431 | guava/src/com/google/common/collect/TreeRangeSet.java:774-813 | guava/src/com/google/common/collect/TreeRangeSet.java:816-849 — These 8 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 8 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 8 times.
Members sharing a duplicated core (8 members, 50+ identical tokens) android/guava/src/com/google/common/graph/DirectedGraphConnections.java:273— android/guava/src/com/google/common/graph/DirectedGraphConnections.java:273-318 | android/guava/src/com/google/common/graph/DirectedGraphConnections.java:276-306 | android/guava/src/com/google/common/graph/DirectedGraphConnections.java:321-366 | android/guava/src/com/google/common/graph/DirectedGraphConnections.java:324-354 | guava/src/com/google/common/graph/DirectedGraphConnections.java:273-318 | guava/src/com/google/common/graph/DirectedGraphConnections.java:276-306 | guava/src/com/google/common/graph/DirectedGraphConnections.java:321-366 | guava/src/com/google/common/graph/DirectedGraphConnections.java:324-354 — These 8 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 8 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 8 times.
Members sharing a duplicated core (8 members, 50+ identical tokens) android/guava-testlib/src/com/google/common/collect/testing/TestStringMapGenerator.java:49— android/guava-testlib/src/com/google/common/collect/testing/TestStringMapGenerator.java:49-59 | android/guava-testlib/src/com/google/common/collect/testing/google/TestStringBiMapGenerator.java:51-61 | android/guava-testlib/src/com/google/common/collect/testing/google/TestStringListMultimapGenerator.java:66-76 | android/guava-testlib/src/com/google/common/collect/testing/google/TestStringSetMultimapGenerator.java:65-75 | guava-testlib/src/com/google/common/collect/testing/TestStringMapGenerator.java:49-59 | guava-testlib/src/com/google/common/collect/testing/google/TestStringBiMapGenerator.java:51-61 | guava-testlib/src/com/google/common/collect/testing/google/TestStringListMultimapGenerator.java:66-76 | guava-testlib/src/com/google/common/collect/testing/google/TestStringSetMultimapGenerator.java:65-75 — These 8 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 8 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 8 times.
Duplicated block (73 lines × 2) android/guava/src/com/google/common/util/concurrent/AbstractFuture.java:648— android/guava/src/com/google/common/util/concurrent/AbstractFuture.java:648-720 | guava/src/com/google/common/util/concurrent/AbstractFuture.java:648-720 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/AbstractFuture.java` and `guava/src/com/google/common/util/concurrent/AbstractFuture.java` as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 508 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (73 lines × 2) android/guava/src/com/google/common/util/concurrent/SequentialExecutor.java:102— android/guava/src/com/google/common/util/concurrent/SequentialExecutor.java:102-174 | guava/src/com/google/common/util/concurrent/SequentialExecutor.java:102-174 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/SequentialExecutor.java` and `guava/src/com/google/common/util/concurrent/SequentialExecutor.java` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 127 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (73 lines × 2) android/guava/src/com/google/common/util/concurrent/AggregateFutureState.java:61— android/guava/src/com/google/common/util/concurrent/AggregateFutureState.java:61-133 | guava/src/com/google/common/util/concurrent/AggregateFutureState.java:61-133 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/AggregateFutureState.java` and `guava/src/com/google/common/util/concurrent/AggregateFutureState.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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.
Duplicated block (73 lines × 2) android/guava/src/com/google/common/util/concurrent/ImmediateFuture.java:35— android/guava/src/com/google/common/util/concurrent/ImmediateFuture.java:35-107 | guava/src/com/google/common/util/concurrent/ImmediateFuture.java:35-107 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/ImmediateFuture.java` and `guava/src/com/google/common/util/concurrent/ImmediateFuture.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava/src/com/google/common/util/concurrent/ImmediateFuture.java:35` 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 (73 lines × 2) android/guava/src/com/google/common/collect/AbstractRangeSet.java:28— android/guava/src/com/google/common/collect/AbstractRangeSet.java:28-124 | guava/src/com/google/common/collect/AbstractRangeSet.java:28-100 — before extracting anything, compare `android/guava/src/com/google/common/collect/AbstractRangeSet.java` and `guava/src/com/google/common/collect/AbstractRangeSet.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. 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 (58 lines × 2) android/guava/src/com/google/common/base/Splitter.java:565— android/guava/src/com/google/common/base/Splitter.java:565-622 | guava/src/com/google/common/base/Splitter.java:563-620 — before extracting anything, compare `android/guava/src/com/google/common/base/Splitter.java` and `guava/src/com/google/common/base/Splitter.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 192 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (58 lines × 2) android/guava/src/com/google/common/collect/Maps.java:1150— android/guava/src/com/google/common/collect/Maps.java:1150-1207 | guava/src/com/google/common/collect/Maps.java:1187-1244 — before extracting anything, compare `android/guava/src/com/google/common/collect/Maps.java` and `guava/src/com/google/common/collect/Maps.java` as WHOLE FILES: this scan already matched 72 separate duplicated blocks between them, totalling at least 830 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (58 lines × 2) android/guava/src/com/google/common/math/LongMath.java:812— android/guava/src/com/google/common/math/LongMath.java:812-869 | guava/src/com/google/common/math/LongMath.java:812-869 — before extracting anything, compare `android/guava/src/com/google/common/math/LongMath.java` and `guava/src/com/google/common/math/LongMath.java` as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 723 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (58 lines × 2) android/guava/src/com/google/common/util/concurrent/Monitor.java:617— android/guava/src/com/google/common/util/concurrent/Monitor.java:617-674 | guava/src/com/google/common/util/concurrent/Monitor.java:611-668 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/Monitor.java` and `guava/src/com/google/common/util/concurrent/Monitor.java` as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 433 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (58 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/QueueRemoveTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/testers/QueueRemoveTester.java:1-58 | guava-testlib/src/com/google/common/collect/testing/testers/QueueRemoveTester.java:1-58 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/QueueRemoveTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/QueueRemoveTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/testers/QueueRemoveTester.java:1` 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 (51 lines × 2) android/guava/src/com/google/common/collect/TreeRangeSet.java:570— android/guava/src/com/google/common/collect/TreeRangeSet.java:570-620 | guava/src/com/google/common/collect/TreeRangeSet.java:570-620 — before extracting anything, compare `android/guava/src/com/google/common/collect/TreeRangeSet.java` and `guava/src/com/google/common/collect/TreeRangeSet.java` as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 494 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (51 lines × 2) android/guava/src/com/google/common/math/LongMath.java:385— android/guava/src/com/google/common/math/LongMath.java:385-435 | guava/src/com/google/common/math/LongMath.java:385-435 — before extracting anything, compare `android/guava/src/com/google/common/math/LongMath.java` and `guava/src/com/google/common/math/LongMath.java` as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 723 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (51 lines × 2) android/guava/src/com/google/common/util/concurrent/ExecutionSequencer.java:180— android/guava/src/com/google/common/util/concurrent/ExecutionSequencer.java:180-230 | guava/src/com/google/common/util/concurrent/ExecutionSequencer.java:180-230 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/ExecutionSequencer.java` and `guava/src/com/google/common/util/concurrent/ExecutionSequencer.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 188 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 `android/guava/src/com/google/common/util/concurrent/ExecutionSequencer.java:180` 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 (51 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionForEachTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionForEachTester.java:1-52 | guava-testlib/src/com/google/common/collect/testing/testers/CollectionForEachTester.java:1-51 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionForEachTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/CollectionForEachTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionForEachTester.java:1` 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 (51 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/QueueOfferTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/testers/QueueOfferTester.java:1-51 | guava-testlib/src/com/google/common/collect/testing/testers/QueueOfferTester.java:1-51 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/QueueOfferTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/QueueOfferTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/testers/QueueOfferTester.java:1` 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 (48 lines × 2) android/guava/src/com/google/common/collect/CompactHashSet.java:537— android/guava/src/com/google/common/collect/CompactHashSet.java:537-584 | guava/src/com/google/common/collect/CompactHashSet.java:541-588 — before extracting anything, compare `android/guava/src/com/google/common/collect/CompactHashSet.java` and `guava/src/com/google/common/collect/CompactHashSet.java` as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 356 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (48 lines × 2) android/guava/src/com/google/common/collect/Sets.java:732— android/guava/src/com/google/common/collect/Sets.java:732-779 | guava/src/com/google/common/collect/Sets.java:751-798 — before extracting anything, compare `android/guava/src/com/google/common/collect/Sets.java` and `guava/src/com/google/common/collect/Sets.java` as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 722 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (48 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/OneSizeGenerator.java:41— android/guava-testlib/src/com/google/common/collect/testing/OneSizeGenerator.java:41-88 | guava-testlib/src/com/google/common/collect/testing/OneSizeGenerator.java:41-88 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/OneSizeGenerator.java` and `guava-testlib/src/com/google/common/collect/testing/OneSizeGenerator.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. 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 (48 lines × 2) android/guava-testlib/src/com/google/common/util/concurrent/testing/MockFutureListener.java:40— android/guava-testlib/src/com/google/common/util/concurrent/testing/MockFutureListener.java:40-87 | guava-testlib/src/com/google/common/util/concurrent/testing/MockFutureListener.java:40-87 — before extracting anything, compare `android/guava-testlib/src/com/google/common/util/concurrent/testing/MockFutureListener.java` and `guava-testlib/src/com/google/common/util/concurrent/testing/MockFutureListener.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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.
Duplicated block (48 lines × 2) android/guava/src/com/google/common/collect/CollectPreconditions.java:30— android/guava/src/com/google/common/collect/CollectPreconditions.java:30-77 | guava/src/com/google/common/collect/CollectPreconditions.java:30-77 — before extracting anything, compare `android/guava/src/com/google/common/collect/CollectPreconditions.java` and `guava/src/com/google/common/collect/CollectPreconditions.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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.
Duplicated block (47 lines × 2) android/guava/src/com/google/common/collect/CollectSpliterators.java:64— android/guava/src/com/google/common/collect/CollectSpliterators.java:64-110 | guava/src/com/google/common/collect/CollectSpliterators.java:57-103 — before extracting anything, compare `android/guava/src/com/google/common/collect/CollectSpliterators.java` and `guava/src/com/google/common/collect/CollectSpliterators.java` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 237 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 `android/guava/src/com/google/common/collect/CollectSpliterators.java:64` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (47 lines × 2) android/guava/src/com/google/common/collect/TreeRangeMap.java:213— android/guava/src/com/google/common/collect/TreeRangeMap.java:213-259 | guava/src/com/google/common/collect/TreeRangeMap.java:214-260 — before extracting anything, compare `android/guava/src/com/google/common/collect/TreeRangeMap.java` and `guava/src/com/google/common/collect/TreeRangeMap.java` as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 356 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (47 lines × 2) android/guava/src/com/google/common/util/concurrent/SequentialExecutor.java:208— android/guava/src/com/google/common/util/concurrent/SequentialExecutor.java:208-254 | guava/src/com/google/common/util/concurrent/SequentialExecutor.java:208-254 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/SequentialExecutor.java` and `guava/src/com/google/common/util/concurrent/SequentialExecutor.java` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 127 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (47 lines × 2) android/guava/src/com/google/common/util/concurrent/TimeoutFuture.java:100— android/guava/src/com/google/common/util/concurrent/TimeoutFuture.java:100-146 | guava/src/com/google/common/util/concurrent/TimeoutFuture.java:100-146 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/TimeoutFuture.java` and `guava/src/com/google/common/util/concurrent/TimeoutFuture.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 84 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (47 lines × 2) android/guava/src/com/google/common/collect/ForwardingSet.java:57— android/guava/src/com/google/common/collect/ForwardingSet.java:57-103 | guava/src/com/google/common/collect/ForwardingSet.java:57-103 — before extracting anything, compare `android/guava/src/com/google/common/collect/ForwardingSet.java` and `guava/src/com/google/common/collect/ForwardingSet.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. 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 (46 lines × 2) android/guava/src/com/google/common/collect/TreeMultiset.java:774— android/guava/src/com/google/common/collect/TreeMultiset.java:774-819 | guava/src/com/google/common/collect/TreeMultiset.java:786-831 — before extracting anything, compare `android/guava/src/com/google/common/collect/TreeMultiset.java` and `guava/src/com/google/common/collect/TreeMultiset.java` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 678 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (46 lines × 2) android/guava/src/com/google/common/io/MoreFiles.java:819— android/guava/src/com/google/common/io/MoreFiles.java:819-864 | guava/src/com/google/common/io/MoreFiles.java:816-861 — before extracting anything, compare `android/guava/src/com/google/common/io/MoreFiles.java` and `guava/src/com/google/common/io/MoreFiles.java` as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 425 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (46 lines × 2) android/guava/src/com/google/common/math/BigIntegerMath.java:467— android/guava/src/com/google/common/math/BigIntegerMath.java:467-512 | guava/src/com/google/common/math/BigIntegerMath.java:467-512 — before extracting anything, compare `android/guava/src/com/google/common/math/BigIntegerMath.java` and `guava/src/com/google/common/math/BigIntegerMath.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 270 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (46 lines × 2) android/guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java:629— android/guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java:629-674 | guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java:629-674 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java` and `guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 168 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (46 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/MultisetSetCountUnconditionallyTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/google/MultisetSetCountUnconditionallyTester.java:1-46 | guava-testlib/src/com/google/common/collect/testing/google/MultisetSetCountUnconditionallyTester.java:1-46 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultisetSetCountUnconditionallyTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultisetSetCountUnconditionallyTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/google/MultisetSetCountUnconditionallyTester.java:1` 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 (15 lines × 4) android/guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java:231— android/guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java:231-245 | android/guava-testlib/src/com/google/common/collect/testing/google/DerivedGoogleCollectionGenerators.java:186-200 | guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java:231-245 | guava-testlib/src/com/google/common/collect/testing/google/DerivedGoogleCollectionGenerators.java:186-200 — 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (15 lines × 4) android/guava/src/com/google/common/collect/Multisets.java:443— android/guava/src/com/google/common/collect/Multisets.java:443-457 | android/guava/src/com/google/common/collect/Multisets.java:578-592 | guava/src/com/google/common/collect/Multisets.java:449-463 | guava/src/com/google/common/collect/Multisets.java:584-598 — before extracting anything, compare `android/guava/src/com/google/common/collect/Multisets.java` and `guava/src/com/google/common/collect/Multisets.java` as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 470 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 `android/guava/src/com/google/common/collect/Multisets.java:443` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 × 4) android/guava/src/com/google/common/io/Files.java:550— android/guava/src/com/google/common/io/Files.java:550-564 | android/guava/src/com/google/common/io/Resources.java:148-162 | guava/src/com/google/common/io/Files.java:550-564 | guava/src/com/google/common/io/Resources.java:148-162 — before extracting anything, compare `android/guava/src/com/google/common/io/Files.java` and `guava/src/com/google/common/io/Files.java` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 164 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 `android/guava/src/com/google/common/io/Files.java:550` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 × 4) android/guava/src/com/google/common/util/concurrent/ClosingFuture.java:1770— android/guava/src/com/google/common/util/concurrent/ClosingFuture.java:1770-1784 | android/guava/src/com/google/common/util/concurrent/ClosingFuture.java:1827-1841 | guava/src/com/google/common/util/concurrent/ClosingFuture.java:1783-1797 | guava/src/com/google/common/util/concurrent/ClosingFuture.java:1840-1854 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/ClosingFuture.java` and `guava/src/com/google/common/util/concurrent/ClosingFuture.java` as WHOLE FILES: this scan already matched 38 separate duplicated blocks between them, totalling at least 531 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 `android/guava/src/com/google/common/util/concurrent/ClosingFuture.java:1770` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 × 4) android/guava-testlib/src/com/google/common/collect/testing/google/MultimapTestSuiteBuilder.java:474— android/guava-testlib/src/com/google/common/collect/testing/google/MultimapTestSuiteBuilder.java:474-488 | android/guava-testlib/src/com/google/common/collect/testing/google/MultimapTestSuiteBuilder.java:581-595 | guava-testlib/src/com/google/common/collect/testing/google/MultimapTestSuiteBuilder.java:475-489 | guava-testlib/src/com/google/common/collect/testing/google/MultimapTestSuiteBuilder.java:582-596 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultimapTestSuiteBuilder.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultimapTestSuiteBuilder.java` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 252 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
TodoComment repeated across 10 files android/guava-testlib/src/com/google/common/testing/ClassPathUtil.java:30— The identical TodoComment appears in 10 files (14 occurrences) — almost certainly one boilerplate line from a single migration or decision, not 14 independent debts. Fix the systemic cause once rather than file-by-file. Text: "// TODO(b/65488446): Make this a public API.". Source code is not a task system: track the cleanup where tasks live. (Every occurrence still counts toward the score and metrics.)
TodoComment repeated across 10 files android/guava-tests/test/com/google/common/io/SourceSinkTester.java:39— The identical TodoComment appears in 10 files (10 occurrences) — almost certainly one boilerplate line from a single migration or decision, not 10 independent debts. Fix the systemic cause once rather than file-by-file. Text: "// TODO(b/230620681): Make this available (even though we won't run it).". Source code is not a task system: track the cleanup where tasks live. (Every occurrence still counts toward the score and metrics.)
TodoComment repeated across 10 files android/guava/src/com/google/common/cache/LocalCache.java:3854— The identical TodoComment appears in 10 files (18 occurrences) — almost certainly one boilerplate line from a single migration or decision, not 18 independent debts. Fix the systemic cause once rather than file-by-file. Text: "// TODO(b/27479612): consider removing this". Source code is not a task system: track the cleanup where tasks live. (Every occurrence still counts toward the score and metrics.)
TodoComment repeated across 10 files android/guava/src/com/google/common/net/MediaType.java:1262— The identical TodoComment appears in 10 files (10 occurrences) — almost certainly one boilerplate line from a single migration or decision, not 10 independent debts. Fix the systemic cause once rather than file-by-file. Text: "// TODO(b/219820829): consider removing". Source code is not a task system: track the cleanup where tasks live. (Every occurrence still counts toward the score and metrics.)
Segment.expand (cognitive 27) guava/src/com/google/common/cache/LocalCache.java:2876— Segment.expand has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (18 pts), loops 3 (9 pts) (nesting depth added 17). 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.
Segment.expand (cognitive 27) guava/src/com/google/common/collect/MapMakerInternalMap.java:1555— Segment.expand has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (18 pts), loops 3 (9 pts) (nesting depth added 17). 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.
Segment.expand (cognitive 27) android/guava/src/com/google/common/cache/LocalCache.java:2786— Segment.expand has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (18 pts), loops 3 (9 pts) (nesting depth added 17). 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.
Segment.expand (cognitive 27) android/guava/src/com/google/common/collect/MapMakerInternalMap.java:1555— Segment.expand has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (18 pts), loops 3 (9 pts) (nesting depth added 17). 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· Edited copy of a member (16 corresponding lines) · ×4
Edited copy of a member (16 corresponding lines) android/guava-testlib/src/com/google/common/collect/testing/testers/ListSubListTester.java:251— android/guava-testlib/src/com/google/common/collect/testing/testers/ListSubListTester.java:251-266 | guava-testlib/src/com/google/common/collect/testing/testers/ListSubListTester.java:251-266 — These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (16 corresponding lines) android/guava-testlib/src/com/google/common/collect/testing/testers/ListSubListTester.java:233— android/guava-testlib/src/com/google/common/collect/testing/testers/ListSubListTester.java:233-248 | guava-testlib/src/com/google/common/collect/testing/testers/ListSubListTester.java:233-248 — These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (16 corresponding lines) android/guava-testlib/src/com/google/common/collect/testing/NavigableMapTestSuiteBuilder.java:95— android/guava-testlib/src/com/google/common/collect/testing/NavigableMapTestSuiteBuilder.java:95-110 | guava-testlib/src/com/google/common/collect/testing/NavigableMapTestSuiteBuilder.java:95-110 — These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (16 corresponding lines) android/guava-testlib/src/com/google/common/collect/testing/NavigableSetTestSuiteBuilder.java:77— android/guava-testlib/src/com/google/common/collect/testing/NavigableSetTestSuiteBuilder.java:77-92 | guava-testlib/src/com/google/common/collect/testing/NavigableSetTestSuiteBuilder.java:77-92 — These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Duplicated block (49 lines × 2) android/guava/src/com/google/common/collect/TreeMultiset.java:722— android/guava/src/com/google/common/collect/TreeMultiset.java:722-770 | guava/src/com/google/common/collect/TreeMultiset.java:734-782 — before extracting anything, compare `android/guava/src/com/google/common/collect/TreeMultiset.java` and `guava/src/com/google/common/collect/TreeMultiset.java` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 678 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (49 lines × 2) android/guava/src/com/google/common/util/concurrent/Monitor.java:525— android/guava/src/com/google/common/util/concurrent/Monitor.java:525-573 | guava/src/com/google/common/util/concurrent/Monitor.java:520-568 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/Monitor.java` and `guava/src/com/google/common/util/concurrent/Monitor.java` as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 433 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (49 lines × 2) android/guava/src/com/google/common/collect/HashBasedTable.java:57— android/guava/src/com/google/common/collect/HashBasedTable.java:57-105 | guava/src/com/google/common/collect/HashBasedTable.java:57-105 — before extracting anything, compare `android/guava/src/com/google/common/collect/HashBasedTable.java` and `guava/src/com/google/common/collect/HashBasedTable.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava/src/com/google/common/collect/HashBasedTable.java:57` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
Duplicated block (49 lines × 2) android/guava/src/com/google/common/collect/SingletonImmutableTable.java:37— android/guava/src/com/google/common/collect/SingletonImmutableTable.java:37-85 | guava/src/com/google/common/collect/SingletonImmutableTable.java:37-85 — before extracting anything, compare `android/guava/src/com/google/common/collect/SingletonImmutableTable.java` and `guava/src/com/google/common/collect/SingletonImmutableTable.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. 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 × 4) android/guava/src/com/google/common/base/Joiner.java:522— android/guava/src/com/google/common/base/Joiner.java:522-537 | android/guava/src/com/google/common/collect/ImmutableCollection.java:400-415 | guava/src/com/google/common/base/Joiner.java:558-573 | guava/src/com/google/common/collect/ImmutableCollection.java:414-429 — before extracting anything, compare `android/guava/src/com/google/common/base/Joiner.java` and `guava/src/com/google/common/base/Joiner.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 137 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (16 lines × 4) android/guava/src/com/google/common/collect/CartesianList.java:154— android/guava/src/com/google/common/collect/CartesianList.java:154-169 | android/guava/src/com/google/common/collect/Sets.java:1554-1569 | guava/src/com/google/common/collect/CartesianList.java:154-169 | guava/src/com/google/common/collect/Sets.java:1603-1618 — before extracting anything, compare `android/guava/src/com/google/common/collect/CartesianList.java` and `guava/src/com/google/common/collect/CartesianList.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 107 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (16 lines × 4) android/guava/src/com/google/common/collect/MapMakerInternalMap.java:1632— android/guava/src/com/google/common/collect/MapMakerInternalMap.java:1632-1647 | android/guava/src/com/google/common/collect/MapMakerInternalMap.java:1679-1694 | guava/src/com/google/common/collect/MapMakerInternalMap.java:1632-1647 | guava/src/com/google/common/collect/MapMakerInternalMap.java:1679-1694 — before extracting anything, compare `android/guava/src/com/google/common/collect/MapMakerInternalMap.java` and `guava/src/com/google/common/collect/MapMakerInternalMap.java` as WHOLE FILES: this scan already matched 73 separate duplicated blocks between them, totalling at least 916 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 `android/guava/src/com/google/common/collect/MapMakerInternalMap.java:1632` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `android/guava/src/com/google/common/collect/MapMakerInternalMap.java:1651` calls `valueEquivalence`, `equivalent` and `android/guava/src/com/google/common/collect/MapMakerInternalMap.java:1698` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (16 lines × 4) android/guava/src/com/google/common/util/concurrent/ClosingFuture.java:1978— android/guava/src/com/google/common/util/concurrent/ClosingFuture.java:1978-1993 | android/guava/src/com/google/common/util/concurrent/ClosingFuture.java:2037-2052 | guava/src/com/google/common/util/concurrent/ClosingFuture.java:1993-2008 | guava/src/com/google/common/util/concurrent/ClosingFuture.java:2052-2067 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/ClosingFuture.java` and `guava/src/com/google/common/util/concurrent/ClosingFuture.java` as WHOLE FILES: this scan already matched 38 separate duplicated blocks between them, totalling at least 531 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 `android/guava/src/com/google/common/util/concurrent/ClosingFuture.java:1978` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 × 4) android/guava/src/com/google/common/cache/LocalCache.java:2613— android/guava/src/com/google/common/cache/LocalCache.java:2613-2626 | android/guava/src/com/google/common/collect/MapMakerInternalMap.java:1414-1427 | guava/src/com/google/common/cache/LocalCache.java:2703-2716 | guava/src/com/google/common/collect/MapMakerInternalMap.java:1414-1427 — 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 `android/guava/src/com/google/common/cache/LocalCache.java:2613` 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 × 4) android/guava/src/com/google/common/collect/CollectSpliterators.java:356— android/guava/src/com/google/common/collect/CollectSpliterators.java:356-369 | android/guava/src/com/google/common/collect/CollectSpliterators.java:482-495 | guava/src/com/google/common/collect/CollectSpliterators.java:354-367 | guava/src/com/google/common/collect/CollectSpliterators.java:478-491 — before extracting anything, compare `android/guava/src/com/google/common/collect/CollectSpliterators.java` and `guava/src/com/google/common/collect/CollectSpliterators.java` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 237 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (14 lines × 4) android/guava/src/com/google/common/hash/FarmHashFingerprint64.java:102— android/guava/src/com/google/common/hash/FarmHashFingerprint64.java:102-115 | android/guava/src/com/google/common/hash/Fingerprint2011.java:99-112 | guava/src/com/google/common/hash/FarmHashFingerprint64.java:102-115 | guava/src/com/google/common/hash/Fingerprint2011.java:99-112 — before extracting anything, compare `android/guava/src/com/google/common/hash/FarmHashFingerprint64.java` and `guava/src/com/google/common/hash/FarmHashFingerprint64.java` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 114 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (14 lines × 4) android/guava/src/com/google/common/util/concurrent/ClosingFuture.java:1577— android/guava/src/com/google/common/util/concurrent/ClosingFuture.java:1577-1590 | android/guava/src/com/google/common/util/concurrent/ClosingFuture.java:1633-1646 | guava/src/com/google/common/util/concurrent/ClosingFuture.java:1588-1601 | guava/src/com/google/common/util/concurrent/ClosingFuture.java:1644-1657 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/ClosingFuture.java` and `guava/src/com/google/common/util/concurrent/ClosingFuture.java` as WHOLE FILES: this scan already matched 38 separate duplicated blocks between them, totalling at least 531 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 `android/guava/src/com/google/common/util/concurrent/ClosingFuture.java:1577` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 × 4) android/guava-testlib/src/com/google/common/collect/testing/google/MultimapAsMapGetTester.java:107— android/guava-testlib/src/com/google/common/collect/testing/google/MultimapAsMapGetTester.java:107-117 | android/guava-testlib/src/com/google/common/collect/testing/google/MultimapGetTester.java:110-120 | guava-testlib/src/com/google/common/collect/testing/google/MultimapAsMapGetTester.java:107-117 | guava-testlib/src/com/google/common/collect/testing/google/MultimapGetTester.java:110-120 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultimapAsMapGetTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultimapAsMapGetTester.java` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 43 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.
Duplicated block (11 lines × 4) android/guava/src/com/google/common/collect/CartesianList.java:72— android/guava/src/com/google/common/collect/CartesianList.java:72-82 | android/guava/src/com/google/common/collect/CartesianList.java:94-104 | guava/src/com/google/common/collect/CartesianList.java:72-82 | guava/src/com/google/common/collect/CartesianList.java:94-104 — before extracting anything, compare `android/guava/src/com/google/common/collect/CartesianList.java` and `guava/src/com/google/common/collect/CartesianList.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 107 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 `android/guava/src/com/google/common/collect/CartesianList.java:72` 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 × 4) android/guava/src/com/google/common/collect/ImmutableRangeMap.java:185— android/guava/src/com/google/common/collect/ImmutableRangeMap.java:185-195 | android/guava/src/com/google/common/collect/ImmutableRangeMap.java:202-212 | guava/src/com/google/common/collect/ImmutableRangeMap.java:185-195 | guava/src/com/google/common/collect/ImmutableRangeMap.java:202-212 — before extracting anything, compare `android/guava/src/com/google/common/collect/ImmutableRangeMap.java` and `guava/src/com/google/common/collect/ImmutableRangeMap.java` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 194 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 `android/guava/src/com/google/common/collect/ImmutableRangeMap.java:185` 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 (11 lines × 4) android/guava/src/com/google/common/hash/LittleEndianByteArray.java:192— android/guava/src/com/google/common/hash/LittleEndianByteArray.java:192-202 | android/guava/src/com/google/common/primitives/UnsignedBytes.java:378-388 | guava/src/com/google/common/hash/LittleEndianByteArray.java:227-237 | guava/src/com/google/common/primitives/UnsignedBytes.java:379-389 — before extracting anything, compare `android/guava/src/com/google/common/hash/LittleEndianByteArray.java` and `guava/src/com/google/common/hash/LittleEndianByteArray.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 75 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 `android/guava/src/com/google/common/hash/LittleEndianByteArray.java:192` 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 (76 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/MultimapContainsEntryTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/google/MultimapContainsEntryTester.java:1-76 | guava-testlib/src/com/google/common/collect/testing/google/MultimapContainsEntryTester.java:1-76 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultimapContainsEntryTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultimapContainsEntryTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/google/MultimapContainsEntryTester.java:1` 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 (76 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/MapForEachTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/testers/MapForEachTester.java:1-77 | guava-testlib/src/com/google/common/collect/testing/testers/MapForEachTester.java:1-76 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/MapForEachTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/MapForEachTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/testers/MapForEachTester.java:1` 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 (76 lines × 2) android/guava-testlib/src/com/google/common/escape/testing/EscaperAsserts.java:36— android/guava-testlib/src/com/google/common/escape/testing/EscaperAsserts.java:36-111 | guava-testlib/src/com/google/common/escape/testing/EscaperAsserts.java:36-111 — before extracting anything, compare `android/guava-testlib/src/com/google/common/escape/testing/EscaperAsserts.java` and `guava-testlib/src/com/google/common/escape/testing/EscaperAsserts.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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.
Duplicated block (76 lines × 2) android/guava/src/com/google/common/collect/ForwardingQueue.java:52— android/guava/src/com/google/common/collect/ForwardingQueue.java:52-127 | guava/src/com/google/common/collect/ForwardingQueue.java:52-127 — before extracting anything, compare `android/guava/src/com/google/common/collect/ForwardingQueue.java` and `guava/src/com/google/common/collect/ForwardingQueue.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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.
Duplicated block (80 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/MapContainsValueTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/testers/MapContainsValueTester.java:1-80 | guava-testlib/src/com/google/common/collect/testing/testers/MapContainsValueTester.java:1-80 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/MapContainsValueTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/MapContainsValueTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/testers/MapContainsValueTester.java:1` 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 (80 lines × 2) android/guava/src/com/google/common/collect/EnumHashBiMap.java:57— android/guava/src/com/google/common/collect/EnumHashBiMap.java:57-136 | guava/src/com/google/common/collect/EnumHashBiMap.java:57-136 — before extracting anything, compare `android/guava/src/com/google/common/collect/EnumHashBiMap.java` and `guava/src/com/google/common/collect/EnumHashBiMap.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava/src/com/google/common/collect/EnumHashBiMap.java:57` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
Duplicated block (80 lines × 2) android/guava/src/com/google/common/collect/ReverseOrdering.java:34— android/guava/src/com/google/common/collect/ReverseOrdering.java:34-113 | guava/src/com/google/common/collect/ReverseOrdering.java:34-113 — before extracting anything, compare `android/guava/src/com/google/common/collect/ReverseOrdering.java` and `guava/src/com/google/common/collect/ReverseOrdering.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. 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 (80 lines × 2) android/guava/src/com/google/common/hash/AbstractHashFunction.java:1— android/guava/src/com/google/common/hash/AbstractHashFunction.java:1-80 | guava/src/com/google/common/hash/AbstractHashFunction.java:1-80 — before extracting anything, compare `android/guava/src/com/google/common/hash/AbstractHashFunction.java` and `guava/src/com/google/common/hash/AbstractHashFunction.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava/src/com/google/common/hash/AbstractHashFunction.java:1` 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.
D4 · Code Duplication· Edited copy of a member (18 corresponding lines) · ×3
Edited copy of a member (18 corresponding lines) android/guava-testlib/src/com/google/common/collect/testing/testers/ListSubListTester.java:213— android/guava-testlib/src/com/google/common/collect/testing/testers/ListSubListTester.java:213-230 | guava-testlib/src/com/google/common/collect/testing/testers/ListSubListTester.java:213-230 — These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (18 corresponding lines) android/guava/src/com/google/common/collect/MapMakerInternalMap.java:205— android/guava/src/com/google/common/collect/MapMakerInternalMap.java:205-222 | guava/src/com/google/common/collect/MapMakerInternalMap.java:205-222 — These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (18 corresponding lines) android/guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java:58— android/guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java:58-75 | guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java:58-75 — These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (15 corresponding lines) · ×3
Edited copy of a member (15 corresponding lines) android/guava/src/com/google/common/io/BaseEncoding.java:1048— android/guava/src/com/google/common/io/BaseEncoding.java:1048-1062 | guava/src/com/google/common/io/BaseEncoding.java:1048-1062 — These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (15 corresponding lines) android/guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java:148— android/guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java:148-162 | guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java:148-162 — These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (15 corresponding lines) android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java:733— android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java:733-747 | guava/src/com/google/common/collect/MinMaxPriorityQueue.java:733-747 — These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Members sharing a duplicated core (16 members, 50+ identical tokens) · ×3
Members sharing a duplicated core (16 members, 50+ identical tokens) android/guava/src/com/google/common/primitives/Booleans.java:186— android/guava/src/com/google/common/primitives/Booleans.java:186-203 | android/guava/src/com/google/common/primitives/Bytes.java:117-134 | android/guava/src/com/google/common/primitives/Chars.java:176-193 | android/guava/src/com/google/common/primitives/Doubles.java:171-188 | android/guava/src/com/google/common/primitives/Floats.java:168-185 | android/guava/src/com/google/common/primitives/Ints.java:184-201 | android/guava/src/com/google/common/primitives/Longs.java:145-162 | android/guava/src/com/google/common/primitives/Shorts.java:178-195 | guava/src/com/google/common/primitives/Booleans.java:186-203 | guava/src/com/google/common/primitives/Bytes.java:117-134 | guava/src/com/google/common/primitives/Chars.java:176-193 | guava/src/com/google/common/primitives/Doubles.java:171-188 | guava/src/com/google/common/primitives/Floats.java:168-185 | guava/src/com/google/common/primitives/Ints.java:184-201 | guava/src/com/google/common/primitives/Longs.java:145-162 | guava/src/com/google/common/primitives/Shorts.java:178-195 — These 16 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 16 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 16 times.
Members sharing a duplicated core (16 members, 50+ identical tokens) android/guava/src/com/google/common/primitives/Booleans.java:474— android/guava/src/com/google/common/primitives/Booleans.java:474-492 | android/guava/src/com/google/common/primitives/Bytes.java:339-357 | android/guava/src/com/google/common/primitives/Chars.java:661-679 | android/guava/src/com/google/common/primitives/Doubles.java:688-706 | android/guava/src/com/google/common/primitives/Floats.java:671-689 | android/guava/src/com/google/common/primitives/Ints.java:754-772 | android/guava/src/com/google/common/primitives/Longs.java:812-830 | android/guava/src/com/google/common/primitives/Shorts.java:709-727 | guava/src/com/google/common/primitives/Booleans.java:474-492 | guava/src/com/google/common/primitives/Bytes.java:339-357 | guava/src/com/google/common/primitives/Chars.java:661-679 | guava/src/com/google/common/primitives/Doubles.java:683-701 | guava/src/com/google/common/primitives/Floats.java:671-689 | guava/src/com/google/common/primitives/Ints.java:749-767 | guava/src/com/google/common/primitives/Longs.java:807-825 | guava/src/com/google/common/primitives/Shorts.java:709-727 — These 16 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 16 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 16 times.
Members sharing a duplicated core (16 members, 50+ identical tokens) android/guava/src/com/google/common/primitives/Booleans.java:592— android/guava/src/com/google/common/primitives/Booleans.java:592-614 | android/guava/src/com/google/common/primitives/Bytes.java:442-464 | android/guava/src/com/google/common/primitives/Chars.java:533-555 | android/guava/src/com/google/common/primitives/Doubles.java:516-538 | android/guava/src/com/google/common/primitives/Floats.java:513-535 | android/guava/src/com/google/common/primitives/Ints.java:560-608 | android/guava/src/com/google/common/primitives/Longs.java:644-666 | android/guava/src/com/google/common/primitives/Shorts.java:554-576 | guava/src/com/google/common/primitives/Booleans.java:592-614 | guava/src/com/google/common/primitives/Bytes.java:442-464 | guava/src/com/google/common/primitives/Chars.java:533-555 | guava/src/com/google/common/primitives/Doubles.java:516-538 | guava/src/com/google/common/primitives/Floats.java:513-535 | guava/src/com/google/common/primitives/Ints.java:560-608 | guava/src/com/google/common/primitives/Longs.java:644-666 | guava/src/com/google/common/primitives/Shorts.java:554-576 — These 16 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 16 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 16 times.
Duplicated block (93 lines × 2) android/guava/src/com/google/common/collect/Sets.java:1772— android/guava/src/com/google/common/collect/Sets.java:1772-1864 | guava/src/com/google/common/collect/Sets.java:1821-1913 — before extracting anything, compare `android/guava/src/com/google/common/collect/Sets.java` and `guava/src/com/google/common/collect/Sets.java` as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 722 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 `android/guava/src/com/google/common/collect/Sets.java:1772` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (93 lines × 2) android/guava/src/com/google/common/math/LongMath.java:1249— android/guava/src/com/google/common/math/LongMath.java:1249-1341 | guava/src/com/google/common/math/LongMath.java:1249-1341 — before extracting anything, compare `android/guava/src/com/google/common/math/LongMath.java` and `guava/src/com/google/common/math/LongMath.java` as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 723 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (93 lines × 2) android/guava/src/com/google/common/collect/DescendingImmutableSortedSet.java:32— android/guava/src/com/google/common/collect/DescendingImmutableSortedSet.java:32-124 | guava/src/com/google/common/collect/DescendingImmutableSortedSet.java:32-124 — before extracting anything, compare `android/guava/src/com/google/common/collect/DescendingImmutableSortedSet.java` and `guava/src/com/google/common/collect/DescendingImmutableSortedSet.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. 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 (71 lines × 2) android/guava/src/com/google/common/cache/Striped64.java:188— android/guava/src/com/google/common/cache/Striped64.java:188-258 | android/guava/src/com/google/common/hash/Striped64.java:188-258 — `android/guava/src/com/google/common/cache/Striped64.java` and `android/guava/src/com/google/common/hash/Striped64.java` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 3 separate duplicated blocks between them, totalling at least 103 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (71 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionClearTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionClearTester.java:1-71 | guava-testlib/src/com/google/common/collect/testing/testers/CollectionClearTester.java:1-71 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionClearTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/CollectionClearTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionClearTester.java:1` 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 (71 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionToStringTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionToStringTester.java:1-71 | guava-testlib/src/com/google/common/collect/testing/testers/CollectionToStringTester.java:1-71 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionToStringTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/CollectionToStringTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionToStringTester.java:1` 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 (70 lines × 2) android/guava/src/com/google/common/util/concurrent/AbstractCatchingFuture.java:80— android/guava/src/com/google/common/util/concurrent/AbstractCatchingFuture.java:80-149 | guava/src/com/google/common/util/concurrent/AbstractCatchingFuture.java:80-149 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/AbstractCatchingFuture.java` and `guava/src/com/google/common/util/concurrent/AbstractCatchingFuture.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 116 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (70 lines × 2) android/guava/src/com/google/common/util/concurrent/MoreExecutors.java:723— android/guava/src/com/google/common/util/concurrent/MoreExecutors.java:723-792 | guava/src/com/google/common/util/concurrent/MoreExecutors.java:719-788 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/MoreExecutors.java` and `guava/src/com/google/common/util/concurrent/MoreExecutors.java` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 248 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (70 lines × 2) android/guava/src/com/google/common/cache/LongAddables.java:1— android/guava/src/com/google/common/cache/LongAddables.java:1-75 | android/guava/src/com/google/common/hash/LongAddables.java:1-70 — `android/guava/src/com/google/common/cache/LongAddables.java` and `android/guava/src/com/google/common/hash/LongAddables.java` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 1 separate duplicated blocks between them, totalling at least 75 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at `android/guava/src/com/google/common/cache/LongAddables.java:1` 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 (62 lines × 2) android/guava/src/com/google/common/graph/AbstractValueGraph.java:45— android/guava/src/com/google/common/graph/AbstractValueGraph.java:45-106 | guava/src/com/google/common/graph/AbstractValueGraph.java:46-107 — before extracting anything, compare `android/guava/src/com/google/common/graph/AbstractValueGraph.java` and `guava/src/com/google/common/graph/AbstractValueGraph.java` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 81 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (62 lines × 2) android/guava/src/com/google/common/util/concurrent/AbstractTransformFuture.java:73— android/guava/src/com/google/common/util/concurrent/AbstractTransformFuture.java:73-134 | guava/src/com/google/common/util/concurrent/AbstractTransformFuture.java:73-134 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/AbstractTransformFuture.java` and `guava/src/com/google/common/util/concurrent/AbstractTransformFuture.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 101 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.
Duplicated block (62 lines × 2) android/guava/src/com/google/common/util/concurrent/AggregateFuture.java:118— android/guava/src/com/google/common/util/concurrent/AggregateFuture.java:118-179 | guava/src/com/google/common/util/concurrent/AggregateFuture.java:118-179 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/AggregateFuture.java` and `guava/src/com/google/common/util/concurrent/AggregateFuture.java` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 228 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (61 lines × 2) android/guava/src/com/google/common/util/concurrent/AbstractFuture.java:748— android/guava/src/com/google/common/util/concurrent/AbstractFuture.java:748-808 | guava/src/com/google/common/util/concurrent/AbstractFuture.java:748-808 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/AbstractFuture.java` and `guava/src/com/google/common/util/concurrent/AbstractFuture.java` as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 508 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (61 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/MultimapContainsValueTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/google/MultimapContainsValueTester.java:1-61 | guava-testlib/src/com/google/common/collect/testing/google/MultimapContainsValueTester.java:1-61 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultimapContainsValueTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultimapContainsValueTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/google/MultimapContainsValueTester.java:1` 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 (61 lines × 2) android/guava/src/com/google/common/collect/DescendingImmutableSortedMultiset.java:31— android/guava/src/com/google/common/collect/DescendingImmutableSortedMultiset.java:31-91 | guava/src/com/google/common/collect/DescendingImmutableSortedMultiset.java:31-91 — before extracting anything, compare `android/guava/src/com/google/common/collect/DescendingImmutableSortedMultiset.java` and `guava/src/com/google/common/collect/DescendingImmutableSortedMultiset.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. 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 (59 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceAllTester.java:112— android/guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceAllTester.java:112-170 | guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceAllTester.java:111-169 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceAllTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceAllTester.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 118 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (59 lines × 2) android/guava/src/com/google/common/collect/Multisets.java:608— android/guava/src/com/google/common/collect/Multisets.java:608-666 | guava/src/com/google/common/collect/Multisets.java:614-672 — before extracting anything, compare `android/guava/src/com/google/common/collect/Multisets.java` and `guava/src/com/google/common/collect/Multisets.java` as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 470 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (59 lines × 2) android/guava/src/com/google/common/collect/Streams.java:452— android/guava/src/com/google/common/collect/Streams.java:452-510 | guava/src/com/google/common/collect/Streams.java:446-504 — before extracting anything, compare `android/guava/src/com/google/common/collect/Streams.java` and `guava/src/com/google/common/collect/Streams.java` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 481 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (50 lines × 2) android/guava/src/com/google/common/collect/LinkedListMultimap.java:199— android/guava/src/com/google/common/collect/LinkedListMultimap.java:199-248 | guava/src/com/google/common/collect/LinkedListMultimap.java:202-251 — before extracting anything, compare `android/guava/src/com/google/common/collect/LinkedListMultimap.java` and `guava/src/com/google/common/collect/LinkedListMultimap.java` as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 328 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (50 lines × 2) android/guava/src/com/google/common/hash/BloomFilter.java:665— android/guava/src/com/google/common/hash/BloomFilter.java:665-714 | guava/src/com/google/common/hash/BloomFilter.java:675-724 — before extracting anything, compare `android/guava/src/com/google/common/hash/BloomFilter.java` and `guava/src/com/google/common/hash/BloomFilter.java` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 171 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (50 lines × 2) android/guava/src/com/google/common/util/concurrent/AbstractFuture.java:585— android/guava/src/com/google/common/util/concurrent/AbstractFuture.java:585-634 | guava/src/com/google/common/util/concurrent/AbstractFuture.java:585-634 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/AbstractFuture.java` and `guava/src/com/google/common/util/concurrent/AbstractFuture.java` as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 508 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (20 lines × 4) android/guava/src/com/google/common/cache/LocalCache.java:2867— android/guava/src/com/google/common/cache/LocalCache.java:2867-2886 | android/guava/src/com/google/common/cache/LocalCache.java:2926-2945 | guava/src/com/google/common/cache/LocalCache.java:2957-2976 | guava/src/com/google/common/cache/LocalCache.java:3016-3035 — before extracting anything, compare `android/guava/src/com/google/common/cache/LocalCache.java` and `guava/src/com/google/common/cache/LocalCache.java` as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1881 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 `android/guava/src/com/google/common/cache/LocalCache.java:2867` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `android/guava/src/com/google/common/cache/LocalCache.java:2890` calls `equivalent` and `android/guava/src/com/google/common/cache/LocalCache.java:2949` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (20 lines × 4) android/guava/src/com/google/common/collect/MutableClassToInstanceMap.java:125— android/guava/src/com/google/common/collect/MutableClassToInstanceMap.java:125-144 | android/guava/src/com/google/common/reflect/MutableTypeToInstanceMap.java:135-154 | guava/src/com/google/common/collect/MutableClassToInstanceMap.java:134-153 | guava/src/com/google/common/reflect/MutableTypeToInstanceMap.java:135-154 — before extracting anything, compare `android/guava/src/com/google/common/collect/MutableClassToInstanceMap.java` and `guava/src/com/google/common/collect/MutableClassToInstanceMap.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 74 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 `android/guava/src/com/google/common/collect/MutableClassToInstanceMap.java:125` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 × 4) android/guava/src/com/google/common/math/IntMath.java:333— android/guava/src/com/google/common/math/IntMath.java:333-352 | android/guava/src/com/google/common/math/LongMath.java:401-420 | guava/src/com/google/common/math/IntMath.java:333-352 | guava/src/com/google/common/math/LongMath.java:401-420 — before extracting anything, compare `android/guava/src/com/google/common/math/IntMath.java` and `android/guava/src/com/google/common/math/LongMath.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 63 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `android/guava/src/com/google/common/math/IntMath.java:333` 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 (13 lines × 6) android/guava/src/com/google/common/collect/Streams.java:571— android/guava/src/com/google/common/collect/Streams.java:571-583 | android/guava/src/com/google/common/collect/Streams.java:650-662 | android/guava/src/com/google/common/collect/Streams.java:729-741 | guava/src/com/google/common/collect/Streams.java:565-577 | guava/src/com/google/common/collect/Streams.java:644-656 | guava/src/com/google/common/collect/Streams.java:723-735 — before extracting anything, compare `android/guava/src/com/google/common/collect/Streams.java` and `guava/src/com/google/common/collect/Streams.java` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 481 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 `android/guava/src/com/google/common/collect/Streams.java:571` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. Note first that the copies are not typed on the same thing: the declarations holding them bind `t` to `int` in one and `long` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (13 lines × 6) android/guava/src/com/google/common/math/Stats.java:519— android/guava/src/com/google/common/math/Stats.java:519-531 | android/guava/src/com/google/common/math/Stats.java:543-555 | android/guava/src/com/google/common/math/Stats.java:568-580 | guava/src/com/google/common/math/Stats.java:515-527 | guava/src/com/google/common/math/Stats.java:539-551 | guava/src/com/google/common/math/Stats.java:564-576 — before extracting anything, compare `android/guava/src/com/google/common/math/Stats.java` and `guava/src/com/google/common/math/Stats.java` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 128 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: the declarations holding them bind `values` to `double...` in one and `int...` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (13 lines × 6) android/guava/src/com/google/common/primitives/ImmutableDoubleArray.java:316— android/guava/src/com/google/common/primitives/ImmutableDoubleArray.java:316-328 | android/guava/src/com/google/common/primitives/ImmutableIntArray.java:313-325 | android/guava/src/com/google/common/primitives/ImmutableLongArray.java:315-327 | guava/src/com/google/common/primitives/ImmutableDoubleArray.java:315-327 | guava/src/com/google/common/primitives/ImmutableIntArray.java:312-324 | guava/src/com/google/common/primitives/ImmutableLongArray.java:314-326 — before extracting anything, compare `android/guava/src/com/google/common/primitives/ImmutableDoubleArray.java` and `android/guava/src/com/google/common/primitives/ImmutableIntArray.java` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 64 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (12 lines × 4) android/guava/src/com/google/common/collect/CollectCollectors.java:271— android/guava/src/com/google/common/collect/CollectCollectors.java:271-282 | android/guava/src/com/google/common/collect/CollectCollectors.java:298-309 | guava/src/com/google/common/collect/CollectCollectors.java:269-280 | guava/src/com/google/common/collect/CollectCollectors.java:296-307 — before extracting anything, compare `android/guava/src/com/google/common/collect/CollectCollectors.java` and `guava/src/com/google/common/collect/CollectCollectors.java` as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 251 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.
Duplicated block (12 lines × 4) android/guava/src/com/google/common/math/IntMath.java:599— android/guava/src/com/google/common/math/IntMath.java:599-610 | android/guava/src/com/google/common/math/LongMath.java:746-757 | guava/src/com/google/common/math/IntMath.java:599-610 | guava/src/com/google/common/math/LongMath.java:746-757 — before extracting anything, compare `android/guava/src/com/google/common/math/IntMath.java` and `android/guava/src/com/google/common/math/LongMath.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 63 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `android/guava/src/com/google/common/math/IntMath.java:599` 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 first that the copies are not typed on the same thing: the declarations holding them bind `b` to `int` in one and `long` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (12 lines × 4) android/guava/src/com/google/common/escape/ArrayBasedCharEscaper.java:123— android/guava/src/com/google/common/escape/ArrayBasedCharEscaper.java:123-134 | android/guava/src/com/google/common/escape/ArrayBasedUnicodeEscaper.java:164-175 | guava/src/com/google/common/escape/ArrayBasedCharEscaper.java:123-134 | guava/src/com/google/common/escape/ArrayBasedUnicodeEscaper.java:164-175 — before extracting anything, compare `android/guava/src/com/google/common/escape/ArrayBasedCharEscaper.java` and `guava/src/com/google/common/escape/ArrayBasedCharEscaper.java` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 33 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. 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 × 6) android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java:162— android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java:162-169 | android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java:182-189 | android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java:210-217 | guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java:162-169 | guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java:182-189 | guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java:210-217 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 124 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 `android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java:162` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 × 6) android/guava/src/com/google/common/math/LongMath.java:271— android/guava/src/com/google/common/math/LongMath.java:271-278 | android/guava/src/com/google/common/math/LongMath.java:604-611 | android/guava/src/com/google/common/math/LongMath.java:722-729 | guava/src/com/google/common/math/LongMath.java:271-278 | guava/src/com/google/common/math/LongMath.java:604-611 | guava/src/com/google/common/math/LongMath.java:722-729 — before extracting anything, compare `android/guava/src/com/google/common/math/LongMath.java` and `guava/src/com/google/common/math/LongMath.java` as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 723 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 `android/guava/src/com/google/common/math/LongMath.java:271` 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 × 6) android/guava/src/com/google/common/net/PercentEscaper.java:177— android/guava/src/com/google/common/net/PercentEscaper.java:177-184 | android/guava/src/com/google/common/net/PercentEscaper.java:193-200 | android/guava/src/com/google/common/net/PercentEscaper.java:212-219 | guava/src/com/google/common/net/PercentEscaper.java:177-184 | guava/src/com/google/common/net/PercentEscaper.java:193-200 | guava/src/com/google/common/net/PercentEscaper.java:212-219 — before extracting anything, compare `android/guava/src/com/google/common/net/PercentEscaper.java` and `guava/src/com/google/common/net/PercentEscaper.java` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 106 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.
Duplicated block (78 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/BiMapClearTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/google/BiMapClearTester.java:1-78 | guava-testlib/src/com/google/common/collect/testing/google/BiMapClearTester.java:1-78 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/BiMapClearTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/BiMapClearTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/google/BiMapClearTester.java:1` 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 (78 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/SetCreationTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/testers/SetCreationTester.java:1-78 | guava-testlib/src/com/google/common/collect/testing/testers/SetCreationTester.java:1-78 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/SetCreationTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/SetCreationTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/testers/SetCreationTester.java:1` 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 (78 lines × 2) android/guava/src/com/google/common/util/concurrent/ForwardingExecutorService.java:49— android/guava/src/com/google/common/util/concurrent/ForwardingExecutorService.java:49-126 | guava/src/com/google/common/util/concurrent/ForwardingExecutorService.java:49-126 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/ForwardingExecutorService.java` and `guava/src/com/google/common/util/concurrent/ForwardingExecutorService.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. 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 (102 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapAsMapTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapAsMapTester.java:1-102 | guava-testlib/src/com/google/common/collect/testing/google/ListMultimapAsMapTester.java:1-102 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapAsMapTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/ListMultimapAsMapTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapAsMapTester.java:1` 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 (102 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceTester.java:1-103 | guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceTester.java:1-102 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceTester.java:1` 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 (102 lines × 2) android/guava-testlib/src/com/google/common/testing/TestLogHandler.java:1— android/guava-testlib/src/com/google/common/testing/TestLogHandler.java:1-102 | guava-testlib/src/com/google/common/testing/TestLogHandler.java:1-102 — before extracting anything, compare `android/guava-testlib/src/com/google/common/testing/TestLogHandler.java` and `guava-testlib/src/com/google/common/testing/TestLogHandler.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/testing/TestLogHandler.java:1` 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 (103 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/SetMultimapAsMapTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/google/SetMultimapAsMapTester.java:1-103 | guava-testlib/src/com/google/common/collect/testing/google/SetMultimapAsMapTester.java:1-103 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/SetMultimapAsMapTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/SetMultimapAsMapTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/google/SetMultimapAsMapTester.java:1` 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 (103 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionContainsAllTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionContainsAllTester.java:1-103 | guava-testlib/src/com/google/common/collect/testing/testers/CollectionContainsAllTester.java:1-103 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionContainsAllTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/CollectionContainsAllTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionContainsAllTester.java:1` 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 (103 lines × 2) android/guava/src/com/google/common/collect/ForwardingDeque.java:49— android/guava/src/com/google/common/collect/ForwardingDeque.java:49-151 | guava/src/com/google/common/collect/ForwardingDeque.java:49-151 — before extracting anything, compare `android/guava/src/com/google/common/collect/ForwardingDeque.java` and `guava/src/com/google/common/collect/ForwardingDeque.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. 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 (137 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveTester.java:1-137 | guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveTester.java:1-137 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveTester.java:1` 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 (137 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/MapCreationTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/testers/MapCreationTester.java:1-137 | guava-testlib/src/com/google/common/collect/testing/testers/MapCreationTester.java:1-137 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/MapCreationTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/MapCreationTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/testers/MapCreationTester.java:1` 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 (137 lines × 2) android/guava/src/com/google/common/collect/TreeMultimap.java:84— android/guava/src/com/google/common/collect/TreeMultimap.java:84-220 | guava/src/com/google/common/collect/TreeMultimap.java:84-220 — before extracting anything, compare `android/guava/src/com/google/common/collect/TreeMultimap.java` and `guava/src/com/google/common/collect/TreeMultimap.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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.
Duplicated block (86 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionSpliteratorTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionSpliteratorTester.java:1-87 | guava-testlib/src/com/google/common/collect/testing/testers/CollectionSpliteratorTester.java:1-86 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionSpliteratorTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/CollectionSpliteratorTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionSpliteratorTester.java:1` 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 (86 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/MapToStringTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/testers/MapToStringTester.java:1-86 | guava-testlib/src/com/google/common/collect/testing/testers/MapToStringTester.java:1-86 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/MapToStringTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/MapToStringTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/testers/MapToStringTester.java:1` 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 (86 lines × 2) android/guava/src/com/google/common/cache/RemovalCause.java:1— android/guava/src/com/google/common/cache/RemovalCause.java:1-86 | guava/src/com/google/common/cache/RemovalCause.java:1-86 — before extracting anything, compare `android/guava/src/com/google/common/cache/RemovalCause.java` and `guava/src/com/google/common/cache/RemovalCause.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava/src/com/google/common/cache/RemovalCause.java:1` 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 (135 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/ListAddAtIndexTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/testers/ListAddAtIndexTester.java:1-135 | guava-testlib/src/com/google/common/collect/testing/testers/ListAddAtIndexTester.java:1-135 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/ListAddAtIndexTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/ListAddAtIndexTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/testers/ListAddAtIndexTester.java:1` 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 (135 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/MapPutIfAbsentTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/testers/MapPutIfAbsentTester.java:1-136 | guava-testlib/src/com/google/common/collect/testing/testers/MapPutIfAbsentTester.java:1-135 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/MapPutIfAbsentTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/MapPutIfAbsentTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/testers/MapPutIfAbsentTester.java:1` 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 (135 lines × 2) android/guava/src/com/google/common/collect/StandardRowSortedTable.java:1— android/guava/src/com/google/common/collect/StandardRowSortedTable.java:1-135 | guava/src/com/google/common/collect/StandardRowSortedTable.java:1-135 — before extracting anything, compare `android/guava/src/com/google/common/collect/StandardRowSortedTable.java` and `guava/src/com/google/common/collect/StandardRowSortedTable.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava/src/com/google/common/collect/StandardRowSortedTable.java:1` 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 (79 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/ListAddTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/testers/ListAddTester.java:1-79 | guava-testlib/src/com/google/common/collect/testing/testers/ListAddTester.java:1-79 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/ListAddTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/ListAddTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/testers/ListAddTester.java:1` 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 (79 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/MapGetTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/testers/MapGetTester.java:1-79 | guava-testlib/src/com/google/common/collect/testing/testers/MapGetTester.java:1-79 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/MapGetTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/MapGetTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/testers/MapGetTester.java:1` 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 (79 lines × 2) android/guava/src/com/google/common/util/concurrent/Atomics.java:31— android/guava/src/com/google/common/util/concurrent/Atomics.java:31-109 | guava/src/com/google/common/util/concurrent/Atomics.java:31-109 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/Atomics.java` and `guava/src/com/google/common/util/concurrent/Atomics.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. 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 (68 lines × 2) android/guava/src/com/google/common/base/Present.java:31— android/guava/src/com/google/common/base/Present.java:31-98 | guava/src/com/google/common/base/Present.java:31-98 — before extracting anything, compare `android/guava/src/com/google/common/base/Present.java` and `guava/src/com/google/common/base/Present.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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.
Duplicated block (68 lines × 2) android/guava/src/com/google/common/hash/HashingInputStream.java:44— android/guava/src/com/google/common/hash/HashingInputStream.java:44-111 | guava/src/com/google/common/hash/HashingInputStream.java:44-111 — before extracting anything, compare `android/guava/src/com/google/common/hash/HashingInputStream.java` and `guava/src/com/google/common/hash/HashingInputStream.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. 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 (68 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/TestStringSortedMapGenerator.java:1— android/guava-testlib/src/com/google/common/collect/testing/TestStringSortedMapGenerator.java:1-68 | guava-testlib/src/com/google/common/collect/testing/TestStringSortedMapGenerator.java:1-68 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/TestStringSortedMapGenerator.java` and `guava-testlib/src/com/google/common/collect/testing/TestStringSortedMapGenerator.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/TestStringSortedMapGenerator.java:1` 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 (108 lines × 2) android/guava/src/com/google/common/collect/AbstractSetMultimap.java:47— android/guava/src/com/google/common/collect/AbstractSetMultimap.java:47-154 | guava/src/com/google/common/collect/AbstractSetMultimap.java:47-154 — before extracting anything, compare `android/guava/src/com/google/common/collect/AbstractSetMultimap.java` and `guava/src/com/google/common/collect/AbstractSetMultimap.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. 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 (108 lines × 2) android/guava/src/com/google/common/graph/ForwardingGraph.java:1— android/guava/src/com/google/common/graph/ForwardingGraph.java:1-108 | guava/src/com/google/common/graph/ForwardingGraph.java:1-108 — before extracting anything, compare `android/guava/src/com/google/common/graph/ForwardingGraph.java` and `guava/src/com/google/common/graph/ForwardingGraph.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava/src/com/google/common/graph/ForwardingGraph.java:1` 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 (108 lines × 2) android/guava/src/com/google/common/primitives/Primitives.java:34— android/guava/src/com/google/common/primitives/Primitives.java:34-141 | guava/src/com/google/common/primitives/Primitives.java:34-141 — before extracting anything, compare `android/guava/src/com/google/common/primitives/Primitives.java` and `guava/src/com/google/common/primitives/Primitives.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. 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 (116 lines × 2) android/guava/src/com/google/common/collect/ImmutableEnumSet.java:41— android/guava/src/com/google/common/collect/ImmutableEnumSet.java:41-156 | guava/src/com/google/common/collect/ImmutableEnumSet.java:43-168 — before extracting anything, compare `android/guava/src/com/google/common/collect/ImmutableEnumSet.java` and `guava/src/com/google/common/collect/ImmutableEnumSet.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava/src/com/google/common/collect/ImmutableEnumSet.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. 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 (116 lines × 2) android/guava/src/com/google/common/io/CharSink.java:59— android/guava/src/com/google/common/io/CharSink.java:59-176 | guava/src/com/google/common/io/CharSink.java:59-174 — before extracting anything, compare `android/guava/src/com/google/common/io/CharSink.java` and `guava/src/com/google/common/io/CharSink.java` as WHOLE FILES: 97% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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.
Duplicated block (116 lines × 2) android/guava/src/com/google/common/util/concurrent/WrappingExecutorService.java:52— android/guava/src/com/google/common/util/concurrent/WrappingExecutorService.java:52-167 | guava/src/com/google/common/util/concurrent/WrappingExecutorService.java:52-167 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/WrappingExecutorService.java` and `guava/src/com/google/common/util/concurrent/WrappingExecutorService.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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.
ToDoubleRounder.roundToDouble (cyclomatic 39) guava/src/com/google/common/math/ToDoubleRounder.java:47— ToDoubleRounder.roundToDouble has cyclomatic complexity 39 (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.
ToDoubleRounder.roundToDouble (cyclomatic 39) android/guava/src/com/google/common/math/ToDoubleRounder.java:47— ToDoubleRounder.roundToDouble has cyclomatic complexity 39 (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.
LongMath.roundToDouble (cyclomatic 28) guava/src/com/google/common/math/LongMath.java:1247— LongMath.roundToDouble has cyclomatic complexity 28 (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.
LongMath.roundToDouble (cyclomatic 28) android/guava/src/com/google/common/math/LongMath.java:1247— LongMath.roundToDouble has cyclomatic complexity 28 (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.
Striped64.retryUpdate (cyclomatic 27) android/guava/src/com/google/common/cache/Striped64.java:187— Striped64.retryUpdate has cyclomatic complexity 27 (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.
Striped64.retryUpdate (cyclomatic 27) android/guava/src/com/google/common/hash/Striped64.java:187— Striped64.retryUpdate has cyclomatic complexity 27 (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.
InetAddresses.textToNumericFormatV6 (cyclomatic 23) guava/src/com/google/common/net/InetAddresses.java:272— InetAddresses.textToNumericFormatV6 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.
InetAddresses.textToNumericFormatV6 (cyclomatic 23) android/guava/src/com/google/common/net/InetAddresses.java:272— InetAddresses.textToNumericFormatV6 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.
AvlNode.setCount (cyclomatic 21) guava/src/com/google/common/collect/TreeMultiset.java:833— AvlNode.setCount 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.
AvlNode.setCount (cyclomatic 21) android/guava/src/com/google/common/collect/TreeMultiset.java:821— AvlNode.setCount 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.
AbstractFutureState.blockingGet (cyclomatic 21) guava/src/com/google/common/util/concurrent/AbstractFutureState.java:122— AbstractFutureState.blockingGet 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.
AbstractFutureState.blockingGet (cyclomatic 21) android/guava/src/com/google/common/util/concurrent/AbstractFutureState.java:119— AbstractFutureState.blockingGet 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.
DoubleMath.roundIntermediate (cyclomatic 18) guava/src/com/google/common/math/DoubleMath.java:54— DoubleMath.roundIntermediate 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.
DoubleMath.roundIntermediate (cyclomatic 18) android/guava/src/com/google/common/math/DoubleMath.java:54— DoubleMath.roundIntermediate 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.
LongMath.saturatedPow (cyclomatic 18) guava/src/com/google/common/math/LongMath.java:719— LongMath.saturatedPow 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.
LongMath.saturatedPow (cyclomatic 18) android/guava/src/com/google/common/math/LongMath.java:719— LongMath.saturatedPow 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.
Utf8.isWellFormedSlowPath (cyclomatic 17) guava/src/com/google/common/base/Utf8.java:135— Utf8.isWellFormedSlowPath 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.
Utf8.isWellFormedSlowPath (cyclomatic 17) android/guava/src/com/google/common/base/Utf8.java:135— Utf8.isWellFormedSlowPath 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.
IntMath.saturatedPow (cyclomatic 17) guava/src/com/google/common/math/IntMath.java:574— IntMath.saturatedPow 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.
IntMath.saturatedPow (cyclomatic 17) android/guava/src/com/google/common/math/IntMath.java:574— IntMath.saturatedPow 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.
LongMath.pow (cyclomatic 17) guava/src/com/google/common/math/LongMath.java:268— LongMath.pow 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.
LongMath.pow (cyclomatic 17) android/guava/src/com/google/common/math/LongMath.java:268— LongMath.pow 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.
GeneralRange.intersect (cyclomatic 16) guava/src/com/google/common/collect/GeneralRange.java:194— GeneralRange.intersect 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.
GeneralRange.intersect (cyclomatic 16) android/guava/src/com/google/common/collect/GeneralRange.java:194— GeneralRange.intersect 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.
AvlNode.setCount (cyclomatic 16) guava/src/com/google/common/collect/TreeMultiset.java:784— AvlNode.setCount 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.
AvlNode.setCount (cyclomatic 16) android/guava/src/com/google/common/collect/TreeMultiset.java:772— AvlNode.setCount 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.
LongMath.checkedPow (cyclomatic 16) guava/src/com/google/common/math/LongMath.java:601— LongMath.checkedPow 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.
LongMath.checkedPow (cyclomatic 16) android/guava/src/com/google/common/math/LongMath.java:601— LongMath.checkedPow 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.
Striped64.retryUpdate (cognitive 59) android/guava/src/com/google/common/cache/Striped64.java:187— Striped64.retryUpdate has cognitive complexity 59 (threshold 15). Drivers by points: if/else 18 (45 pts), boolean chains 6, loops 2 (6 pts), ternaries 1 (2 pts) (nesting depth added 32). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
Striped64.retryUpdate (cognitive 59) android/guava/src/com/google/common/hash/Striped64.java:187— Striped64.retryUpdate has cognitive complexity 59 (threshold 15). Drivers by points: if/else 18 (45 pts), boolean chains 6, loops 2 (6 pts), ternaries 1 (2 pts) (nesting depth added 32). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
ToDoubleRounder.roundToDouble (cognitive 55) guava/src/com/google/common/math/ToDoubleRounder.java:47— ToDoubleRounder.roundToDouble has cognitive complexity 55 (threshold 15). Drivers by points: ternaries 11 (31 pts), if/else 11 (19 pts), match/switch 3 (5 pts) (nesting depth added 30). 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.
ToDoubleRounder.roundToDouble (cognitive 55) android/guava/src/com/google/common/math/ToDoubleRounder.java:47— ToDoubleRounder.roundToDouble has cognitive complexity 55 (threshold 15). Drivers by points: ternaries 11 (31 pts), if/else 11 (19 pts), match/switch 3 (5 pts) (nesting depth added 30). 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.
AbstractFutureState.blockingGet (cognitive 51) guava/src/com/google/common/util/concurrent/AbstractFutureState.java:122— AbstractFutureState.blockingGet has cognitive complexity 51 (threshold 15). Drivers by points: if/else 15 (40 pts), loops 3 (9 pts), boolean chains 1, ternaries 1 (nesting depth added 31). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
AbstractFutureState.blockingGet (cognitive 51) android/guava/src/com/google/common/util/concurrent/AbstractFutureState.java:119— AbstractFutureState.blockingGet has cognitive complexity 51 (threshold 15). Drivers by points: if/else 15 (40 pts), loops 3 (9 pts), boolean chains 1, ternaries 1 (nesting depth added 31). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
LongMath.roundToDouble (cognitive 44) guava/src/com/google/common/math/LongMath.java:1247— LongMath.roundToDouble has cognitive complexity 44 (threshold 15). Drivers by points: ternaries 9 (25 pts), if/else 11 (16 pts), match/switch 2 (3 pts) (nesting depth added 22). 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.
LongMath.roundToDouble (cognitive 44) android/guava/src/com/google/common/math/LongMath.java:1247— LongMath.roundToDouble has cognitive complexity 44 (threshold 15). Drivers by points: ternaries 9 (25 pts), if/else 11 (16 pts), match/switch 2 (3 pts) (nesting depth added 22). 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.
InetAddresses.textToNumericFormatV6 (cognitive 34) guava/src/com/google/common/net/InetAddresses.java:272— InetAddresses.textToNumericFormatV6 has cognitive complexity 34 (threshold 15). Drivers by points: if/else 13 (22 pts), boolean chains 6, loops 3 (5 pts), error handling 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.
InetAddresses.textToNumericFormatV6 (cognitive 34) android/guava/src/com/google/common/net/InetAddresses.java:272— InetAddresses.textToNumericFormatV6 has cognitive complexity 34 (threshold 15). Drivers by points: if/else 13 (22 pts), boolean chains 6, loops 3 (5 pts), error handling 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.
Utf8.isWellFormedSlowPath (cognitive 33) guava/src/com/google/common/base/Utf8.java:135— Utf8.isWellFormedSlowPath has cognitive complexity 33 (threshold 15). Drivers by points: if/else 10 (25 pts), boolean chains 5, loops 2 (3 pts) (nesting depth added 16). 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.
Utf8.isWellFormedSlowPath (cognitive 33) android/guava/src/com/google/common/base/Utf8.java:135— Utf8.isWellFormedSlowPath has cognitive complexity 33 (threshold 15). Drivers by points: if/else 10 (25 pts), boolean chains 5, loops 2 (3 pts) (nesting depth added 16). 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.
AvlNode.setCount (cognitive 33) guava/src/com/google/common/collect/TreeMultiset.java:833— AvlNode.setCount has cognitive complexity 33 (threshold 15). Drivers by points: if/else 14 (27 pts), boolean chains 6 (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.
AvlNode.setCount (cognitive 33) android/guava/src/com/google/common/collect/TreeMultiset.java:821— AvlNode.setCount has cognitive complexity 33 (threshold 15). Drivers by points: if/else 14 (27 pts), boolean chains 6 (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.
ConcurrentHashMultiset.setCount (cognitive 32) guava/src/com/google/common/collect/ConcurrentHashMultiset.java:373— ConcurrentHashMultiset.setCount has cognitive complexity 32 (threshold 15). Drivers by points: if/else 10 (28 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 19). 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.
ConcurrentHashMultiset.setCount (cognitive 32) android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java:373— ConcurrentHashMultiset.setCount has cognitive complexity 32 (threshold 15). Drivers by points: if/else 10 (28 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 19). 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.
LongMath.saturatedPow (cognitive 31) guava/src/com/google/common/math/LongMath.java:719— LongMath.saturatedPow has cognitive complexity 31 (threshold 15). Drivers by points: if/else 6 (17 pts), ternaries 3 (9 pts), match/switch 2 (4 pts), loops 1 (nesting depth added 19). 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.
LongMath.saturatedPow (cognitive 31) android/guava/src/com/google/common/math/LongMath.java:719— LongMath.saturatedPow has cognitive complexity 31 (threshold 15). Drivers by points: if/else 6 (17 pts), ternaries 3 (9 pts), match/switch 2 (4 pts), loops 1 (nesting depth added 19). 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.
ReaderInputStream.read (cognitive 30) guava/src/com/google/common/io/ReaderInputStream.java:130— ReaderInputStream.read has cognitive complexity 30 (threshold 15). Drivers by points: if/else 12 (22 pts), ternaries 1 (4 pts), loops 2 (3 pts), 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.
ReaderInputStream.read (cognitive 30) android/guava/src/com/google/common/io/ReaderInputStream.java:130— ReaderInputStream.read has cognitive complexity 30 (threshold 15). Drivers by points: if/else 12 (22 pts), ternaries 1 (4 pts), loops 2 (3 pts), 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.
AbstractFuture.cancel (cognitive 30) guava/src/com/google/common/util/concurrent/AbstractFuture.java:361— AbstractFuture.cancel has cognitive complexity 30 (threshold 15). Drivers by points: if/else 7 (23 pts), ternaries 2 (5 pts), loops 1 (2 pts) (nesting depth added 20). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
AbstractFuture.cancel (cognitive 30) android/guava/src/com/google/common/util/concurrent/AbstractFuture.java:361— AbstractFuture.cancel has cognitive complexity 30 (threshold 15). Drivers by points: if/else 7 (23 pts), ternaries 2 (5 pts), loops 1 (2 pts) (nesting depth added 20). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
Murmur3_32HashFunction.hashString (cognitive 29) guava/src/com/google/common/hash/Murmur3_32HashFunction.java:155— Murmur3_32HashFunction.hashString has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (23 pts), loops 2 (4 pts), boolean chains 2 (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.
Murmur3_32HashFunction.hashString (cognitive 29) android/guava/src/com/google/common/hash/Murmur3_32HashFunction.java:155— Murmur3_32HashFunction.hashString has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (23 pts), loops 2 (4 pts), boolean chains 2 (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.
LongMath.pow (cognitive 27) guava/src/com/google/common/math/LongMath.java:268— LongMath.pow has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 5 (16 pts), if/else 3 (5 pts), match/switch 2 (4 pts), boolean chains 1, loops 1 (nesting depth added 15). 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.
LongMath.pow (cognitive 27) android/guava/src/com/google/common/math/LongMath.java:268— LongMath.pow has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 5 (16 pts), if/else 3 (5 pts), match/switch 2 (4 pts), boolean chains 1, loops 1 (nesting depth added 15). 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.
MoreExecutors.invokeAnyImpl (cognitive 27) guava/src/com/google/common/util/concurrent/MoreExecutors.java:712— MoreExecutors.invokeAnyImpl has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (15 pts), error handling 3 (9 pts), loops 2, ternaries 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.
MoreExecutors.invokeAnyImpl (cognitive 27) android/guava/src/com/google/common/util/concurrent/MoreExecutors.java:716— MoreExecutors.invokeAnyImpl has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (15 pts), error handling 3 (9 pts), loops 2, ternaries 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.
ConcurrentHashMultiset.add (cognitive 26) guava/src/com/google/common/collect/ConcurrentHashMultiset.java:229— ConcurrentHashMultiset.add has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (18 pts), error handling 1 (4 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 15). 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.
ConcurrentHashMultiset.add (cognitive 26) android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java:229— ConcurrentHashMultiset.add has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (18 pts), error handling 1 (4 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 15). 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.
SplittingIterator.computeNext (cognitive 25) guava/src/com/google/common/base/Splitter.java:557— SplittingIterator.computeNext has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 4 (8 pts), boolean chains 4 (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.
SplittingIterator.computeNext (cognitive 25) android/guava/src/com/google/common/base/Splitter.java:559— SplittingIterator.computeNext has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 4 (8 pts), boolean chains 4 (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.
IntMath.saturatedPow (cognitive 24) guava/src/com/google/common/math/IntMath.java:574— IntMath.saturatedPow has cognitive complexity 24 (threshold 15). Drivers by points: if/else 5 (14 pts), ternaries 3 (6 pts), match/switch 2 (3 pts), 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.
IntMath.saturatedPow (cognitive 24) android/guava/src/com/google/common/math/IntMath.java:574— IntMath.saturatedPow has cognitive complexity 24 (threshold 15). Drivers by points: if/else 5 (14 pts), ternaries 3 (6 pts), match/switch 2 (3 pts), 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.
Monitor.enterWhenUninterruptibly (cognitive 24) guava/src/com/google/common/util/concurrent/Monitor.java:610— Monitor.enterWhenUninterruptibly has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (15 pts), error handling 2 (5 pts), loops 2 (3 pts), 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.
Monitor.enterWhenUninterruptibly (cognitive 24) android/guava/src/com/google/common/util/concurrent/Monitor.java:616— Monitor.enterWhenUninterruptibly has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (15 pts), error handling 2 (5 pts), loops 2 (3 pts), 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.
AvlNode.setCount (cognitive 23) guava/src/com/google/common/collect/TreeMultiset.java:784— AvlNode.setCount has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (13 pts), ternaries 2 (6 pts), boolean chains 4 (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.
AvlNode.setCount (cognitive 23) android/guava/src/com/google/common/collect/TreeMultiset.java:772— AvlNode.setCount has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (13 pts), ternaries 2 (6 pts), boolean chains 4 (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.
InetAddresses.ipStringToBytes (cognitive 23) guava/src/com/google/common/net/InetAddresses.java:200— InetAddresses.ipStringToBytes has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (22 pts), loops 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.
InetAddresses.ipStringToBytes (cognitive 23) android/guava/src/com/google/common/net/InetAddresses.java:200— InetAddresses.ipStringToBytes has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (22 pts), loops 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.
AvlNode.remove (cognitive 22) guava/src/com/google/common/collect/TreeMultiset.java:732— AvlNode.remove has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (20 pts), ternaries 1 (2 pts) (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.
AvlNode.remove (cognitive 22) android/guava/src/com/google/common/collect/TreeMultiset.java:720— AvlNode.remove has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (20 pts), ternaries 1 (2 pts) (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.
Murmur3_32Hasher.putString (cognitive 22) guava/src/com/google/common/hash/Murmur3_32HashFunction.java:358— Murmur3_32Hasher.putString has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (16 pts), loops 2 (4 pts), boolean chains 2 (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.
Murmur3_32Hasher.putString (cognitive 22) android/guava/src/com/google/common/hash/Murmur3_32HashFunction.java:358— Murmur3_32Hasher.putString has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (16 pts), loops 2 (4 pts), boolean chains 2 (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.
DoubleMath.roundIntermediate (cognitive 22) guava/src/com/google/common/math/DoubleMath.java:54— DoubleMath.roundIntermediate has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (16 pts), ternaries 1 (3 pts), boolean chains 2, match/switch 1 (nesting depth added 7). 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.
DoubleMath.roundIntermediate (cognitive 22) android/guava/src/com/google/common/math/DoubleMath.java:54— DoubleMath.roundIntermediate has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (16 pts), ternaries 1 (3 pts), boolean chains 2, match/switch 1 (nesting depth added 7). 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.
LongMath.checkedPow (cognitive 22) guava/src/com/google/common/math/LongMath.java:601— LongMath.checkedPow has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 3 (9 pts), if/else 3 (7 pts), match/switch 2 (4 pts), boolean chains 1, loops 1 (nesting depth added 12). 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.
LongMath.checkedPow (cognitive 22) android/guava/src/com/google/common/math/LongMath.java:601— LongMath.checkedPow has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 3 (9 pts), if/else 3 (7 pts), match/switch 2 (4 pts), boolean chains 1, loops 1 (nesting depth added 12). 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.
AbstractFuture.getFutureValue (cognitive 22) guava/src/com/google/common/util/concurrent/AbstractFuture.java:647— AbstractFuture.getFutureValue has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (15 pts), ternaries 1 (4 pts), error handling 3 (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.
AbstractFuture.getFutureValue (cognitive 22) android/guava/src/com/google/common/util/concurrent/AbstractFuture.java:647— AbstractFuture.getFutureValue has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (15 pts), ternaries 1 (4 pts), error handling 3 (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.
AbstractFutureState.blockingGet (cognitive 22) guava/src/com/google/common/util/concurrent/AbstractFutureState.java:226— AbstractFutureState.blockingGet has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (16 pts), loops 2 (6 pts) (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.
AbstractFutureState.blockingGet (cognitive 22) android/guava/src/com/google/common/util/concurrent/AbstractFutureState.java:223— AbstractFutureState.blockingGet has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (16 pts), loops 2 (6 pts) (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.
RelationshipTester.test (cognitive 22) guava-testlib/src/com/google/common/testing/RelationshipTester.java:75— RelationshipTester.test has cognitive complexity 22 (threshold 15). Drivers by points: loops 5 (14 pts), if/else 2 (8 pts) (nesting depth added 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
RelationshipTester.test (cognitive 22) android/guava-testlib/src/com/google/common/testing/RelationshipTester.java:75— RelationshipTester.test has cognitive complexity 22 (threshold 15). Drivers by points: loops 5 (14 pts), if/else 2 (8 pts) (nesting depth added 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
Segment.lockedGetOrLoad (cognitive 20) guava/src/com/google/common/cache/LocalCache.java:2113— Segment.lockedGetOrLoad has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (18 pts), boolean chains 1, loops 1 (nesting depth added 7). 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.
Segment.lockedGetOrLoad (cognitive 20) android/guava/src/com/google/common/cache/LocalCache.java:2109— Segment.lockedGetOrLoad has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (18 pts), boolean chains 1, loops 1 (nesting depth added 7). 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.
Streams.findLast (cognitive 20) guava/src/com/google/common/collect/Streams.java:864— Streams.findLast has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 2 (4 pts), boolean chains 2 (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.
Streams.findLast (cognitive 20) android/guava/src/com/google/common/collect/Streams.java:876— Streams.findLast has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 2 (4 pts), boolean chains 2 (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.
2.read (cognitive 20) guava/src/com/google/common/io/BaseEncoding.java:830— 2.read has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 4, loops 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.
2.read (cognitive 20) android/guava/src/com/google/common/io/BaseEncoding.java:830— 2.read has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 4, loops 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.
LongMath.binomial (cognitive 20) guava/src/com/google/common/math/LongMath.java:811— LongMath.binomial has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 2 (6 pts), boolean chains 2, match/switch 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.
LongMath.binomial (cognitive 20) android/guava/src/com/google/common/math/LongMath.java:811— LongMath.binomial has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 2 (6 pts), boolean chains 2, match/switch 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.
LocalCache.containsValue (cognitive 19) guava/src/com/google/common/cache/LocalCache.java:4157— LocalCache.containsValue has cognitive complexity 19 (threshold 15). Drivers by points: loops 4 (10 pts), if/else 3 (8 pts), boolean chains 1 (nesting depth added 11). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
LocalCache.containsValue (cognitive 19) android/guava/src/com/google/common/cache/LocalCache.java:4047— LocalCache.containsValue has cognitive complexity 19 (threshold 15). Drivers by points: loops 4 (10 pts), if/else 3 (8 pts), boolean chains 1 (nesting depth added 11). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
Segment.storeLoadedValue (cognitive 19) guava/src/com/google/common/cache/LocalCache.java:3144— Segment.storeLoadedValue has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (10 pts), ternaries 1 (5 pts), boolean chains 3, loops 1 (nesting depth added 10). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
Segment.storeLoadedValue (cognitive 19) android/guava/src/com/google/common/cache/LocalCache.java:3054— Segment.storeLoadedValue has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (10 pts), ternaries 1 (5 pts), boolean chains 3, loops 1 (nesting depth added 10). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
MapMakerInternalMap.containsValue (cognitive 19) guava/src/com/google/common/collect/MapMakerInternalMap.java:2382— MapMakerInternalMap.containsValue has cognitive complexity 19 (threshold 15). Drivers by points: loops 4 (10 pts), if/else 3 (8 pts), boolean chains 1 (nesting depth added 11). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
MapMakerInternalMap.containsValue (cognitive 19) android/guava/src/com/google/common/collect/MapMakerInternalMap.java:2382— MapMakerInternalMap.containsValue has cognitive complexity 19 (threshold 15). Drivers by points: loops 4 (10 pts), if/else 3 (8 pts), boolean chains 1 (nesting depth added 11). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
IntMath.pow (cognitive 19) guava/src/com/google/common/math/IntMath.java:222— IntMath.pow has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 5 (12 pts), if/else 2 (3 pts), match/switch 2 (3 pts), loops 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.
IntMath.pow (cognitive 19) android/guava/src/com/google/common/math/IntMath.java:222— IntMath.pow has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 5 (12 pts), if/else 2 (3 pts), match/switch 2 (3 pts), loops 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.
LocalCache.getAll (cognitive 18) guava/src/com/google/common/cache/LocalCache.java:4023— LocalCache.getAll has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 3 (6 pts), error handling 1 (2 pts) (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.
LocalCache.getAll (cognitive 18) android/guava/src/com/google/common/cache/LocalCache.java:3913— LocalCache.getAll has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 3 (6 pts), error handling 1 (2 pts) (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.
Segment.clear (cognitive 18) guava/src/com/google/common/cache/LocalCache.java:3204— Segment.clear has cognitive complexity 18 (threshold 15). Drivers by points: loops 3 (7 pts), if/else 2 (5 pts), ternaries 1 (5 pts), 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.
Segment.clear (cognitive 18) android/guava/src/com/google/common/cache/LocalCache.java:3114— Segment.clear has cognitive complexity 18 (threshold 15). Drivers by points: loops 3 (7 pts), if/else 2 (5 pts), ternaries 1 (5 pts), 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.
CompactHashMap.put (cognitive 18) guava/src/com/google/common/collect/CompactHashMap.java:333— CompactHashMap.put has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (15 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 6). 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.
CompactHashMap.put (cognitive 18) android/guava/src/com/google/common/collect/CompactHashMap.java:329— CompactHashMap.put has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (15 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 6). 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.
CompactHashSet.add (cognitive 18) guava/src/com/google/common/collect/CompactHashSet.java:296— CompactHashSet.add has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (15 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 6). 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.
CompactHashSet.add (cognitive 18) android/guava/src/com/google/common/collect/CompactHashSet.java:292— CompactHashSet.add has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (15 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 6). 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.
GeneralRange.intersect (cognitive 18) guava/src/com/google/common/collect/GeneralRange.java:194— GeneralRange.intersect has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 7 (nesting depth added 3). 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.
GeneralRange.intersect (cognitive 18) android/guava/src/com/google/common/collect/GeneralRange.java:194— GeneralRange.intersect has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 7 (nesting depth added 3). 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.
AbstractFuture.complete (cognitive 18) guava/src/com/google/common/util/concurrent/AbstractFuture.java:746— AbstractFuture.complete has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (15 pts), loops 2 (3 pts) (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.
AbstractFuture.complete (cognitive 18) android/guava/src/com/google/common/util/concurrent/AbstractFuture.java:746— AbstractFuture.complete has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (15 pts), loops 2 (3 pts) (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.
LocalCache.<init> (cognitive 17) guava/src/com/google/common/cache/LocalCache.java:248— LocalCache.<init> has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (7 pts), loops 4 (6 pts), boolean chains 3, ternaries 1 (nesting depth added 4). 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.
LocalCache.<init> (cognitive 17) android/guava/src/com/google/common/cache/LocalCache.java:244— LocalCache.<init> has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (7 pts), loops 4 (6 pts), boolean chains 3, ternaries 1 (nesting depth added 4). 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.
ConcurrentHashMultiset.setCount (cognitive 17) guava/src/com/google/common/collect/ConcurrentHashMultiset.java:429— ConcurrentHashMultiset.setCount has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 1 (nesting depth added 6). 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.
ConcurrentHashMultiset.setCount (cognitive 17) android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java:429— ConcurrentHashMultiset.setCount has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 1 (nesting depth added 6). 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.
SetView.equals (cognitive 17) guava/src/com/google/common/collect/Sets.java:750— SetView.equals has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (12 pts), loops 2 (3 pts), error handling 1 (2 pts) (nesting depth added 5). 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.
SetView.equals (cognitive 17) android/guava/src/com/google/common/collect/Sets.java:731— SetView.equals has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (12 pts), loops 2 (3 pts), error handling 1 (2 pts) (nesting depth added 5). 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.
UnicodeEscaper.escapeSlow (cognitive 17) guava/src/com/google/common/escape/UnicodeEscaper.java:163— UnicodeEscaper.escapeSlow has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 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.
UnicodeEscaper.escapeSlow (cognitive 17) android/guava/src/com/google/common/escape/UnicodeEscaper.java:163— UnicodeEscaper.escapeSlow has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 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.
UnsignedLongs.toString (cognitive 17) guava/src/com/google/common/primitives/UnsignedLongs.java:460— UnsignedLongs.toString has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (10 pts), loops 2 (6 pts), boolean chains 1 (nesting depth added 7). 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.
UnsignedLongs.toString (cognitive 17) android/guava/src/com/google/common/primitives/UnsignedLongs.java:460— UnsignedLongs.toString has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (10 pts), loops 2 (6 pts), boolean chains 1 (nesting depth added 7). 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.
AggregateFuture.init (cognitive 17) guava/src/com/google/common/util/concurrent/AggregateFuture.java:112— AggregateFuture.init has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 2 (4 pts), ternaries 1 (2 pts) (nesting depth added 7). 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.
AggregateFuture.init (cognitive 17) android/guava/src/com/google/common/util/concurrent/AggregateFuture.java:112— AggregateFuture.init has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 2 (4 pts), ternaries 1 (2 pts) (nesting depth added 7). 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.
ClassSanityTester.doTestEquals (cognitive 17) guava-testlib/src/com/google/common/testing/ClassSanityTester.java:302— ClassSanityTester.doTestEquals has cognitive complexity 17 (threshold 15). Drivers by points: error handling 4 (12 pts), if/else 3 (4 pts), loops 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.
ClassSanityTester.doTestEquals (cognitive 17) android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java:302— ClassSanityTester.doTestEquals has cognitive complexity 17 (threshold 15). Drivers by points: error handling 4 (12 pts), if/else 3 (4 pts), loops 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.
ToStringHelper.toString (cognitive 16) guava/src/com/google/common/base/MoreObjects.java:386— ToStringHelper.toString has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (9 pts), boolean chains 3, ternaries 1 (3 pts), loops 1 (nesting depth added 7). 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.
ToStringHelper.toString (cognitive 16) android/guava/src/com/google/common/base/MoreObjects.java:375— ToStringHelper.toString has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (9 pts), boolean chains 3, ternaries 1 (3 pts), loops 1 (nesting depth added 7). 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.
RegularImmutableSortedSet.containsAll (cognitive 16) guava/src/com/google/common/collect/RegularImmutableSortedSet.java:105— RegularImmutableSortedSet.containsAll has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 1, error handling 1, loops 1 (nesting depth added 5). 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.
RegularImmutableSortedSet.containsAll (cognitive 16) android/guava/src/com/google/common/collect/RegularImmutableSortedSet.java:94— RegularImmutableSortedSet.containsAll has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 1, error handling 1, loops 1 (nesting depth added 5). 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.
Graphs.subgraphHasCycle (cognitive 16) guava/src/com/google/common/graph/Graphs.java:101— Graphs.subgraphHasCycle has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (13 pts), ternaries 1 (2 pts), loops 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.
Graphs.subgraphHasCycle (cognitive 16) android/guava/src/com/google/common/graph/Graphs.java:100— Graphs.subgraphHasCycle has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (13 pts), ternaries 1 (2 pts), loops 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.
IntMath.checkedPow (cognitive 16) guava/src/com/google/common/math/IntMath.java:498— IntMath.checkedPow has cognitive complexity 16 (threshold 15). Drivers by points: if/else 2 (6 pts), ternaries 3 (6 pts), match/switch 2 (3 pts), loops 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.
IntMath.checkedPow (cognitive 16) android/guava/src/com/google/common/math/IntMath.java:498— IntMath.checkedPow has cognitive complexity 16 (threshold 15). Drivers by points: if/else 2 (6 pts), ternaries 3 (6 pts), match/switch 2 (3 pts), loops 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.
LongMath.isPrime (cognitive 16) guava/src/com/google/common/math/LongMath.java:1005— LongMath.isPrime has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 6). 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.
LongMath.isPrime (cognitive 16) android/guava/src/com/google/common/math/LongMath.java:1005— LongMath.isPrime has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 6). 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.
Longs.tryParse (cognitive 16) guava/src/com/google/common/primitives/Longs.java:402— Longs.tryParse has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 3, loops 1, ternaries 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
Longs.tryParse (cognitive 16) android/guava/src/com/google/common/primitives/Longs.java:402— Longs.tryParse has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 3, loops 1, ternaries 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
AbstractFuture.setFuture (cognitive 16) guava/src/com/google/common/util/concurrent/AbstractFuture.java:584— AbstractFuture.setFuture has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), error handling 2 (7 pts) (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.
AbstractFuture.setFuture (cognitive 16) android/guava/src/com/google/common/util/concurrent/AbstractFuture.java:584— AbstractFuture.setFuture has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), error handling 2 (7 pts) (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.
SpliteratorTester.expect (cognitive 16) guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java:299— SpliteratorTester.expect has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (13 pts), loops 2 (3 pts) (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.
SpliteratorTester.expect (cognitive 16) android/guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java:304— SpliteratorTester.expect has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (13 pts), loops 2 (3 pts) (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.
ArbitraryInstances.arbitraryConstantInstanceOrNull (cognitive 16) guava-testlib/src/com/google/common/testing/ArbitraryInstances.java:404— ArbitraryInstances.arbitraryConstantInstanceOrNull has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (9 pts), error handling 1 (4 pts), boolean chains 2, loops 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.
ArbitraryInstances.arbitraryConstantInstanceOrNull (cognitive 16) android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java:392— ArbitraryInstances.arbitraryConstantInstanceOrNull has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (9 pts), error handling 1 (4 pts), boolean chains 2, loops 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.
FreshValueGenerator.generate (cognitive 16) guava-testlib/src/com/google/common/testing/FreshValueGenerator.java:211— FreshValueGenerator.generate has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (14 pts), loops 1 (2 pts) (nesting depth added 6). 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.
FreshValueGenerator.generate (cognitive 16) android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java:207— FreshValueGenerator.generate has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (14 pts), loops 1 (2 pts) (nesting depth added 6). 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.
D22 · Internal API Consistency· Duplicate operation · ×2
Duplicate operation: `apply` and `convert` perform the exact same transformation logic on the input. — Deprecate `apply` in favor of `convert` (or vice versa) to align with standard functional interface naming conventions and reduce API surface area. (signatures: Converter.apply(a: A): B | Converter.convert(a: A): B)
Duplicate operation: `apply` and `test` perform the exact same boolean evaluation on the input. — Deprecate `apply` in favor of `test` to align with `java.util.function.Predicate` and reduce redundancy. (signatures: Predicate.apply(input: T): boolean | Predicate.test(input: T): boolean)
D4 · Code Duplication· Members sharing a duplicated core (14 members, 50+ identical tokens) · ×2
Members sharing a duplicated core (14 members, 50+ identical tokens) android/guava/src/com/google/common/primitives/Booleans.java:287— android/guava/src/com/google/common/primitives/Booleans.java:287-300 | android/guava/src/com/google/common/primitives/Doubles.java:377-390 | android/guava/src/com/google/common/primitives/Floats.java:374-387 | android/guava/src/com/google/common/primitives/Ints.java:428-441 | android/guava/src/com/google/common/primitives/Longs.java:511-524 | android/guava/src/com/google/common/primitives/Shorts.java:421-434 | android/guava/src/com/google/common/primitives/SignedBytes.java:142-155 | guava/src/com/google/common/primitives/Booleans.java:287-300 | guava/src/com/google/common/primitives/Doubles.java:377-390 | guava/src/com/google/common/primitives/Floats.java:374-387 | guava/src/com/google/common/primitives/Ints.java:428-441 | guava/src/com/google/common/primitives/Longs.java:511-524 | guava/src/com/google/common/primitives/Shorts.java:421-434 | guava/src/com/google/common/primitives/SignedBytes.java:142-155 — These 14 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 14 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 14 times.
Members sharing a duplicated core (14 members, 50+ identical tokens) android/guava/src/com/google/common/primitives/Bytes.java:369— android/guava/src/com/google/common/primitives/Bytes.java:369-376 | android/guava/src/com/google/common/primitives/Chars.java:691-698 | android/guava/src/com/google/common/primitives/Doubles.java:718-725 | android/guava/src/com/google/common/primitives/Floats.java:701-708 | android/guava/src/com/google/common/primitives/Ints.java:784-791 | android/guava/src/com/google/common/primitives/Longs.java:842-849 | android/guava/src/com/google/common/primitives/Shorts.java:739-746 | guava/src/com/google/common/primitives/Bytes.java:369-376 | guava/src/com/google/common/primitives/Chars.java:691-698 | guava/src/com/google/common/primitives/Doubles.java:713-720 | guava/src/com/google/common/primitives/Floats.java:701-708 | guava/src/com/google/common/primitives/Ints.java:779-786 | guava/src/com/google/common/primitives/Longs.java:837-844 | guava/src/com/google/common/primitives/Shorts.java:739-746 — These 14 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 14 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 14 times.
Duplicated block (130 lines × 2) android/guava/src/com/google/common/graph/AbstractBaseGraph.java:181— android/guava/src/com/google/common/graph/AbstractBaseGraph.java:181-310 | guava/src/com/google/common/graph/AbstractBaseGraph.java:181-310 — before extracting anything, compare `android/guava/src/com/google/common/graph/AbstractBaseGraph.java` and `guava/src/com/google/common/graph/AbstractBaseGraph.java` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 239 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (130 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionAddTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionAddTester.java:1-130 | guava-testlib/src/com/google/common/collect/testing/testers/CollectionAddTester.java:1-130 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionAddTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/CollectionAddTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionAddTester.java:1` 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 (122 lines × 2) android/guava/src/com/google/common/hash/AbstractCompositeHashFunction.java:75— android/guava/src/com/google/common/hash/AbstractCompositeHashFunction.java:75-196 | guava/src/com/google/common/hash/AbstractCompositeHashFunction.java:75-196 — before extracting anything, compare `android/guava/src/com/google/common/hash/AbstractCompositeHashFunction.java` and `guava/src/com/google/common/hash/AbstractCompositeHashFunction.java` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 136 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (122 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/MapGetOrDefaultTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/testers/MapGetOrDefaultTester.java:1-123 | guava-testlib/src/com/google/common/collect/testing/testers/MapGetOrDefaultTester.java:1-122 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/MapGetOrDefaultTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/MapGetOrDefaultTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/testers/MapGetOrDefaultTester.java:1` 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 (100 lines × 2) android/guava/src/com/google/common/math/ToDoubleRounder.java:48— android/guava/src/com/google/common/math/ToDoubleRounder.java:48-147 | guava/src/com/google/common/math/ToDoubleRounder.java:48-147 — before extracting anything, compare `android/guava/src/com/google/common/math/ToDoubleRounder.java` and `guava/src/com/google/common/math/ToDoubleRounder.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (100 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapReplaceTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapReplaceTester.java:1-100 | guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapReplaceTester.java:1-100 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapReplaceTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapReplaceTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapReplaceTester.java:1` 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 (97 lines × 2) android/guava/src/com/google/common/util/concurrent/AbstractFutureState.java:123— android/guava/src/com/google/common/util/concurrent/AbstractFutureState.java:123-219 | guava/src/com/google/common/util/concurrent/AbstractFutureState.java:126-222 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/AbstractFutureState.java` and `guava/src/com/google/common/util/concurrent/AbstractFutureState.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 166 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (97 lines × 2) android/guava/src/com/google/common/reflect/Parameter.java:52— android/guava/src/com/google/common/reflect/Parameter.java:52-148 | guava/src/com/google/common/reflect/Parameter.java:54-159 — before extracting anything, compare `android/guava/src/com/google/common/reflect/Parameter.java` and `guava/src/com/google/common/reflect/Parameter.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava/src/com/google/common/reflect/Parameter.java:52` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. 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 (83 lines × 2) android/guava/src/com/google/common/reflect/TypeResolver.java:130— android/guava/src/com/google/common/reflect/TypeResolver.java:130-212 | guava/src/com/google/common/reflect/TypeResolver.java:130-212 — before extracting anything, compare `android/guava/src/com/google/common/reflect/TypeResolver.java` and `guava/src/com/google/common/reflect/TypeResolver.java` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 277 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (83 lines × 2) android/guava/src/com/google/common/io/AppendableWriter.java:46— android/guava/src/com/google/common/io/AppendableWriter.java:46-128 | guava/src/com/google/common/io/AppendableWriter.java:46-128 — before extracting anything, compare `android/guava/src/com/google/common/io/AppendableWriter.java` and `guava/src/com/google/common/io/AppendableWriter.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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.
Duplicated block (81 lines × 2) android/guava/src/com/google/common/graph/AbstractNetwork.java:60— android/guava/src/com/google/common/graph/AbstractNetwork.java:60-140 | guava/src/com/google/common/graph/AbstractNetwork.java:61-141 — before extracting anything, compare `android/guava/src/com/google/common/graph/AbstractNetwork.java` and `guava/src/com/google/common/graph/AbstractNetwork.java` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 180 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (81 lines × 2) android/guava/src/com/google/common/math/MathPreconditions.java:30— android/guava/src/com/google/common/math/MathPreconditions.java:30-110 | guava/src/com/google/common/math/MathPreconditions.java:30-110 — before extracting anything, compare `android/guava/src/com/google/common/math/MathPreconditions.java` and `guava/src/com/google/common/math/MathPreconditions.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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.
Duplicated block (65 lines × 2) android/guava/src/com/google/common/cache/LocalCache.java:2127— android/guava/src/com/google/common/cache/LocalCache.java:2127-2191 | guava/src/com/google/common/cache/LocalCache.java:2131-2195 — before extracting anything, compare `android/guava/src/com/google/common/cache/LocalCache.java` and `guava/src/com/google/common/cache/LocalCache.java` as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1881 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 `android/guava/src/com/google/common/cache/LocalCache.java:2127` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (65 lines × 2) android/guava/src/com/google/common/collect/MapMakerInternalMap.java:1556— android/guava/src/com/google/common/collect/MapMakerInternalMap.java:1556-1620 | guava/src/com/google/common/collect/MapMakerInternalMap.java:1556-1620 — before extracting anything, compare `android/guava/src/com/google/common/collect/MapMakerInternalMap.java` and `guava/src/com/google/common/collect/MapMakerInternalMap.java` as WHOLE FILES: this scan already matched 73 separate duplicated blocks between them, totalling at least 916 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (21 lines × 4) android/guava/src/com/google/common/cache/LocalCache.java:4224— android/guava/src/com/google/common/cache/LocalCache.java:4224-4244 | android/guava/src/com/google/common/collect/MapMakerInternalMap.java:2544-2564 | guava/src/com/google/common/cache/LocalCache.java:4368-4388 | guava/src/com/google/common/collect/MapMakerInternalMap.java:2544-2564 — 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (21 lines × 4) android/guava/src/com/google/common/collect/ImmutableRangeMap.java:347— android/guava/src/com/google/common/collect/ImmutableRangeMap.java:347-367 | android/guava/src/com/google/common/collect/ImmutableRangeSet.java:508-528 | guava/src/com/google/common/collect/ImmutableRangeMap.java:364-384 | guava/src/com/google/common/collect/ImmutableRangeSet.java:507-527 — before extracting anything, compare `android/guava/src/com/google/common/collect/ImmutableRangeMap.java` and `guava/src/com/google/common/collect/ImmutableRangeMap.java` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 194 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 `android/guava/src/com/google/common/collect/ImmutableRangeMap.java:347` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 × 4) android/guava/src/com/google/common/cache/LocalCache.java:285— android/guava/src/com/google/common/cache/LocalCache.java:285-301 | android/guava/src/com/google/common/collect/MapMakerInternalMap.java:180-196 | guava/src/com/google/common/cache/LocalCache.java:289-305 | guava/src/com/google/common/collect/MapMakerInternalMap.java:180-196 — 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 `android/guava/src/com/google/common/cache/LocalCache.java:285` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
Duplicated block (17 lines × 4) android/guava/src/com/google/common/math/PairedStats.java:182— android/guava/src/com/google/common/math/PairedStats.java:182-198 | android/guava/src/com/google/common/math/PairedStatsAccumulator.java:215-231 | guava/src/com/google/common/math/PairedStats.java:182-198 | guava/src/com/google/common/math/PairedStatsAccumulator.java:215-231 — before extracting anything, compare `android/guava/src/com/google/common/math/PairedStats.java` and `guava/src/com/google/common/math/PairedStats.java` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 83 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (10 lines × 6) android/guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java:120— android/guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java:120-129 | android/guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java:141-150 | android/guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java:171-180 | guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java:120-129 | guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java:141-150 | guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java:171-180 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 87 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 `android/guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java:120` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 × 6) android/guava/src/com/google/common/primitives/UnsignedBytes.java:537— android/guava/src/com/google/common/primitives/UnsignedBytes.java:537-546 | android/guava/src/com/google/common/primitives/UnsignedInts.java:235-244 | android/guava/src/com/google/common/primitives/UnsignedLongs.java:201-210 | guava/src/com/google/common/primitives/UnsignedBytes.java:584-593 | guava/src/com/google/common/primitives/UnsignedInts.java:235-244 | guava/src/com/google/common/primitives/UnsignedLongs.java:201-210 — before extracting anything, compare `android/guava/src/com/google/common/primitives/UnsignedBytes.java` and `guava/src/com/google/common/primitives/UnsignedBytes.java` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 219 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: the declarations holding them bind `array` to `byte[]` in one and `int[]` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (9–10 lines × 4) android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapPutTester.java:43— android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapPutTester.java:43-52 | android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapPutTester.java:66-74 | guava-testlib/src/com/google/common/collect/testing/google/ListMultimapPutTester.java:43-52 | guava-testlib/src/com/google/common/collect/testing/google/ListMultimapPutTester.java:66-74 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapPutTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/ListMultimapPutTester.java` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 39 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 `android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapPutTester.java:43` 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–10 lines × 4) android/guava/src/com/google/common/collect/Multisets.java:493— android/guava/src/com/google/common/collect/Multisets.java:493-502 | android/guava/src/com/google/common/collect/Multisets.java:642-650 | guava/src/com/google/common/collect/Multisets.java:499-508 | guava/src/com/google/common/collect/Multisets.java:648-656 — before extracting anything, compare `android/guava/src/com/google/common/collect/Multisets.java` and `guava/src/com/google/common/collect/Multisets.java` as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 470 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 `android/guava/src/com/google/common/collect/Multisets.java:493` 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 × 8) android/guava/src/com/google/common/collect/ImmutableSortedMap.java:334— android/guava/src/com/google/common/collect/ImmutableSortedMap.java:334-342 | android/guava/src/com/google/common/collect/ImmutableSortedMap.java:375-383 | guava/src/com/google/common/collect/ImmutableBiMap.java:222-230 | guava/src/com/google/common/collect/ImmutableBiMap.java:262-270 | guava/src/com/google/common/collect/ImmutableMap.java:277-285 | guava/src/com/google/common/collect/ImmutableMap.java:317-325 | guava/src/com/google/common/collect/ImmutableSortedMap.java:332-340 | guava/src/com/google/common/collect/ImmutableSortedMap.java:373-381 — before extracting anything, compare `android/guava/src/com/google/common/collect/ImmutableSortedMap.java` and `guava/src/com/google/common/collect/ImmutableSortedMap.java` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 178 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 `android/guava/src/com/google/common/collect/ImmutableSortedMap.java:334` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `android/guava/src/com/google/common/collect/ImmutableSortedMap.java:373` calls `entryOf` and `android/guava/src/com/google/common/collect/ImmutableSortedMap.java:332` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (9 lines × 8) android/guava/src/com/google/common/collect/Streams.java:459— android/guava/src/com/google/common/collect/Streams.java:459-467 | android/guava/src/com/google/common/collect/Streams.java:543-551 | android/guava/src/com/google/common/collect/Streams.java:622-630 | android/guava/src/com/google/common/collect/Streams.java:701-709 | guava/src/com/google/common/collect/Streams.java:453-461 | guava/src/com/google/common/collect/Streams.java:537-545 | guava/src/com/google/common/collect/Streams.java:616-624 | guava/src/com/google/common/collect/Streams.java:695-703 — before extracting anything, compare `android/guava/src/com/google/common/collect/Streams.java` and `guava/src/com/google/common/collect/Streams.java` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 481 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 `android/guava/src/com/google/common/collect/Streams.java:459` 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 first that the copies are not typed on the same thing: the declarations holding them bind `stream` to `Stream<T>` in one and `IntStream` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (7–8 lines × 4) android/guava-testlib/src/com/google/common/collect/testing/google/AbstractListMultimapTester.java:47— android/guava-testlib/src/com/google/common/collect/testing/google/AbstractListMultimapTester.java:47-53 | android/guava-testlib/src/com/google/common/collect/testing/google/AbstractMultimapTester.java:159-166 | guava-testlib/src/com/google/common/collect/testing/google/AbstractListMultimapTester.java:47-53 | guava-testlib/src/com/google/common/collect/testing/google/AbstractMultimapTester.java:159-166 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/AbstractListMultimapTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/AbstractListMultimapTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/google/AbstractListMultimapTester.java:47` 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–8 lines × 4) android/guava/src/com/google/common/collect/Multisets.java:434— android/guava/src/com/google/common/collect/Multisets.java:434-441 | android/guava/src/com/google/common/collect/Multisets.java:570-576 | guava/src/com/google/common/collect/Multisets.java:440-447 | guava/src/com/google/common/collect/Multisets.java:576-582 — before extracting anything, compare `android/guava/src/com/google/common/collect/Multisets.java` and `guava/src/com/google/common/collect/Multisets.java` as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 470 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 `android/guava/src/com/google/common/collect/Multisets.java:434` 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 × 3) guava/src/com/google/common/collect/ImmutableBiMap.java:184— guava/src/com/google/common/collect/ImmutableBiMap.java:184-191 | guava/src/com/google/common/collect/ImmutableBiMap.java:220-227 | guava/src/com/google/common/collect/ImmutableBiMap.java:259-266 — 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 `guava/src/com/google/common/collect/ImmutableBiMap.java:184` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `guava/src/com/google/common/collect/ImmutableBiMap.java:228` calls `entryOf` and `guava/src/com/google/common/collect/ImmutableBiMap.java:192` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (8 lines × 3) guava/src/com/google/common/collect/ImmutableMap.java:239— guava/src/com/google/common/collect/ImmutableMap.java:239-246 | guava/src/com/google/common/collect/ImmutableMap.java:275-282 | guava/src/com/google/common/collect/ImmutableMap.java:314-321 — 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 `guava/src/com/google/common/collect/ImmutableMap.java:239` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `guava/src/com/google/common/collect/ImmutableMap.java:283` calls `entryOf` and `guava/src/com/google/common/collect/ImmutableMap.java:247` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (7 lines × 5) android/guava/src/com/google/common/collect/ImmutableBiMap.java:147— android/guava/src/com/google/common/collect/ImmutableBiMap.java:147-153 | android/guava/src/com/google/common/collect/ImmutableBiMap.java:166-172 | android/guava/src/com/google/common/collect/ImmutableBiMap.java:201-207 | android/guava/src/com/google/common/collect/ImmutableBiMap.java:239-245 | android/guava/src/com/google/common/collect/ImmutableBiMap.java:280-287 — 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 `android/guava/src/com/google/common/collect/ImmutableBiMap.java:147` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `android/guava/src/com/google/common/collect/ImmutableBiMap.java:236` calls `checkEntryNotNull` and `android/guava/src/com/google/common/collect/ImmutableBiMap.java:198` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (7 lines × 5) android/guava/src/com/google/common/collect/ImmutableMap.java:200— android/guava/src/com/google/common/collect/ImmutableMap.java:200-206 | android/guava/src/com/google/common/collect/ImmutableMap.java:219-225 | android/guava/src/com/google/common/collect/ImmutableMap.java:254-260 | android/guava/src/com/google/common/collect/ImmutableMap.java:292-298 | android/guava/src/com/google/common/collect/ImmutableMap.java:333-341 — 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 `android/guava/src/com/google/common/collect/ImmutableMap.java:200` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `android/guava/src/com/google/common/collect/ImmutableMap.java:289` calls `checkEntryNotNull` and `android/guava/src/com/google/common/collect/ImmutableMap.java:251` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (5 lines × 10) android/guava/src/com/google/common/collect/MapMakerInternalMap.java:1717— android/guava/src/com/google/common/collect/MapMakerInternalMap.java:1717-1721 | android/guava/src/com/google/common/collect/MapMakerInternalMap.java:1757-1761 | android/guava/src/com/google/common/collect/MapMakerInternalMap.java:1845-1849 | android/guava/src/com/google/common/collect/MapMakerInternalMap.java:1872-1876 | android/guava/src/com/google/common/collect/MapMakerInternalMap.java:1937-1941 | guava/src/com/google/common/collect/MapMakerInternalMap.java:1717-1721 | guava/src/com/google/common/collect/MapMakerInternalMap.java:1757-1761 | guava/src/com/google/common/collect/MapMakerInternalMap.java:1845-1849 | guava/src/com/google/common/collect/MapMakerInternalMap.java:1872-1876 | guava/src/com/google/common/collect/MapMakerInternalMap.java:1937-1941 — before extracting anything, compare `android/guava/src/com/google/common/collect/MapMakerInternalMap.java` and `guava/src/com/google/common/collect/MapMakerInternalMap.java` as WHOLE FILES: this scan already matched 73 separate duplicated blocks between them, totalling at least 916 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 `android/guava/src/com/google/common/collect/MapMakerInternalMap.java:1717` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `android/guava/src/com/google/common/collect/MapMakerInternalMap.java:1714` calls `preWriteCleanup` and `android/guava/src/com/google/common/collect/MapMakerInternalMap.java:1870` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (5 lines × 10) android/guava/src/com/google/common/cache/AbstractCache.java:95— android/guava/src/com/google/common/cache/AbstractCache.java:95-99 | android/guava/src/com/google/common/cache/LocalCache.java:4104-4108 | android/guava/src/com/google/common/collect/AbstractBiMap.java:190-194 | android/guava/src/com/google/common/collect/CompactHashMap.java:496-500 | android/guava/src/com/google/common/collect/MapMakerInternalMap.java:2438-2442 | guava/src/com/google/common/cache/AbstractCache.java:96-100 | guava/src/com/google/common/cache/LocalCache.java:4248-4252 | guava/src/com/google/common/collect/AbstractBiMap.java:193-197 | guava/src/com/google/common/collect/CompactHashMap.java:500-504 | guava/src/com/google/common/collect/MapMakerInternalMap.java:2438-2442 — before extracting anything, compare `android/guava/src/com/google/common/cache/AbstractCache.java` and `guava/src/com/google/common/cache/AbstractCache.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 34 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.
Duplicated block (104 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/AbstractTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/AbstractTester.java:1-104 | guava-testlib/src/com/google/common/collect/testing/AbstractTester.java:1-104 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/AbstractTester.java` and `guava-testlib/src/com/google/common/collect/testing/AbstractTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/AbstractTester.java:1` 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 (104 lines × 2) android/guava/src/com/google/common/collect/AbstractSortedSetMultimap.java:47— android/guava/src/com/google/common/collect/AbstractSortedSetMultimap.java:47-150 | guava/src/com/google/common/collect/AbstractSortedSetMultimap.java:47-150 — before extracting anything, compare `android/guava/src/com/google/common/collect/AbstractSortedSetMultimap.java` and `guava/src/com/google/common/collect/AbstractSortedSetMultimap.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. 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 (94 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/MinimalCollection.java:43— android/guava-testlib/src/com/google/common/collect/testing/MinimalCollection.java:43-136 | guava-testlib/src/com/google/common/collect/testing/MinimalCollection.java:43-136 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/MinimalCollection.java` and `guava-testlib/src/com/google/common/collect/testing/MinimalCollection.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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.
Duplicated block (94 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveIfTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveIfTester.java:1-95 | guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveIfTester.java:1-94 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveIfTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveIfTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveIfTester.java:1` 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 (115 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/SampleElements.java:44— android/guava-testlib/src/com/google/common/collect/testing/SampleElements.java:44-158 | guava-testlib/src/com/google/common/collect/testing/SampleElements.java:44-158 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/SampleElements.java` and `guava-testlib/src/com/google/common/collect/testing/SampleElements.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/SampleElements.java:44` 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 (115 lines × 2) android/guava/src/com/google/common/graph/ForwardingValueGraph.java:1— android/guava/src/com/google/common/graph/ForwardingValueGraph.java:1-115 | guava/src/com/google/common/graph/ForwardingValueGraph.java:1-126 — before extracting anything, compare `android/guava/src/com/google/common/graph/ForwardingValueGraph.java` and `guava/src/com/google/common/graph/ForwardingValueGraph.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava/src/com/google/common/graph/ForwardingValueGraph.java:1` 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 (109 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/MultisetAddTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/google/MultisetAddTester.java:1-109 | guava-testlib/src/com/google/common/collect/testing/google/MultisetAddTester.java:1-109 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultisetAddTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultisetAddTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/google/MultisetAddTester.java:1` 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 (109 lines × 2) android/guava-testlib/src/com/google/common/testing/FakeTicker.java:1— android/guava-testlib/src/com/google/common/testing/FakeTicker.java:1-116 | guava-testlib/src/com/google/common/testing/FakeTicker.java:1-109 — before extracting anything, compare `android/guava-testlib/src/com/google/common/testing/FakeTicker.java` and `guava-testlib/src/com/google/common/testing/FakeTicker.java` as WHOLE FILES: 97% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/testing/FakeTicker.java:1` 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 (106 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapRemoveTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapRemoveTester.java:1-106 | guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapRemoveTester.java:1-106 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapRemoveTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapRemoveTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapRemoveTester.java:1` 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 (106 lines × 2) android/guava/src/com/google/common/cache/ForwardingCache.java:41— android/guava/src/com/google/common/cache/ForwardingCache.java:41-146 | guava/src/com/google/common/cache/ForwardingCache.java:41-146 — before extracting anything, compare `android/guava/src/com/google/common/cache/ForwardingCache.java` and `guava/src/com/google/common/cache/ForwardingCache.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava/src/com/google/common/cache/ForwardingCache.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. 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 (144 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapReplaceEntryTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapReplaceEntryTester.java:1-144 | guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapReplaceEntryTester.java:1-144 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapReplaceEntryTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapReplaceEntryTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapReplaceEntryTester.java:1` 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 (144 lines × 2) android/guava/src/com/google/common/graph/DirectedMultiNetworkConnections.java:1— android/guava/src/com/google/common/graph/DirectedMultiNetworkConnections.java:1-144 | guava/src/com/google/common/graph/DirectedMultiNetworkConnections.java:1-144 — before extracting anything, compare `android/guava/src/com/google/common/graph/DirectedMultiNetworkConnections.java` and `guava/src/com/google/common/graph/DirectedMultiNetworkConnections.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava/src/com/google/common/graph/DirectedMultiNetworkConnections.java:1` 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 (69 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/ListRetainAllTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/testers/ListRetainAllTester.java:1-69 | guava-testlib/src/com/google/common/collect/testing/testers/ListRetainAllTester.java:1-69 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/ListRetainAllTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/ListRetainAllTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/testers/ListRetainAllTester.java:1` 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 (69 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/TestIntegerSetGenerator.java:1— android/guava-testlib/src/com/google/common/collect/testing/TestIntegerSetGenerator.java:1-69 | guava-testlib/src/com/google/common/collect/testing/TestIntegerSetGenerator.java:1-69 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/TestIntegerSetGenerator.java` and `guava-testlib/src/com/google/common/collect/testing/TestIntegerSetGenerator.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/TestIntegerSetGenerator.java:1` 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 (141 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceEntryTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceEntryTester.java:1-142 | guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceEntryTester.java:1-141 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceEntryTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceEntryTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceEntryTester.java:1` 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 (141 lines × 2) android/guava/src/com/google/common/reflect/ImmutableTypeToInstanceMap.java:35— android/guava/src/com/google/common/reflect/ImmutableTypeToInstanceMap.java:35-175 | guava/src/com/google/common/reflect/ImmutableTypeToInstanceMap.java:35-175 — before extracting anything, compare `android/guava/src/com/google/common/reflect/ImmutableTypeToInstanceMap.java` and `guava/src/com/google/common/reflect/ImmutableTypeToInstanceMap.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. 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 (186 lines × 2) android/guava-testlib/src/com/google/common/util/concurrent/testing/SameThreadScheduledExecutorService.java:1— android/guava-testlib/src/com/google/common/util/concurrent/testing/SameThreadScheduledExecutorService.java:1-186 | guava-testlib/src/com/google/common/util/concurrent/testing/SameThreadScheduledExecutorService.java:1-186 — before extracting anything, compare `android/guava-testlib/src/com/google/common/util/concurrent/testing/SameThreadScheduledExecutorService.java` and `guava-testlib/src/com/google/common/util/concurrent/testing/SameThreadScheduledExecutorService.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/util/concurrent/testing/SameThreadScheduledExecutorService.java:1` 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 (186 lines × 2) android/guava/src/com/google/common/collect/ForwardingNavigableSet.java:59— android/guava/src/com/google/common/collect/ForwardingNavigableSet.java:59-244 | guava/src/com/google/common/collect/ForwardingNavigableSet.java:59-244 — before extracting anything, compare `android/guava/src/com/google/common/collect/ForwardingNavigableSet.java` and `guava/src/com/google/common/collect/ForwardingNavigableSet.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. 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 (203 lines × 2) android/guava/src/com/google/common/collect/AbstractMultiset.java:1— android/guava/src/com/google/common/collect/AbstractMultiset.java:1-203 | guava/src/com/google/common/collect/AbstractMultiset.java:1-203 — before extracting anything, compare `android/guava/src/com/google/common/collect/AbstractMultiset.java` and `guava/src/com/google/common/collect/AbstractMultiset.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava/src/com/google/common/collect/AbstractMultiset.java:1` 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 (203 lines × 2) android/guava/src/com/google/common/primitives/UnsignedInteger.java:55— android/guava/src/com/google/common/primitives/UnsignedInteger.java:55-257 | guava/src/com/google/common/primitives/UnsignedInteger.java:55-257 — before extracting anything, compare `android/guava/src/com/google/common/primitives/UnsignedInteger.java` and `guava/src/com/google/common/primitives/UnsignedInteger.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. 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 (112 lines × 2) android/guava/src/com/google/common/collect/ForwardingMultimap.java:44— android/guava/src/com/google/common/collect/ForwardingMultimap.java:44-155 | guava/src/com/google/common/collect/ForwardingMultimap.java:44-155 — before extracting anything, compare `android/guava/src/com/google/common/collect/ForwardingMultimap.java` and `guava/src/com/google/common/collect/ForwardingMultimap.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. 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 (112 lines × 2) android/guava/src/com/google/common/collect/ForwardingTable.java:39— android/guava/src/com/google/common/collect/ForwardingTable.java:39-150 | guava/src/com/google/common/collect/ForwardingTable.java:39-150 — before extracting anything, compare `android/guava/src/com/google/common/collect/ForwardingTable.java` and `guava/src/com/google/common/collect/ForwardingTable.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. 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 × 3) android/guava/src/com/google/common/cache/LocalCache.java:4168— android/guava/src/com/google/common/cache/LocalCache.java:4168-4175 | android/guava/src/com/google/common/collect/HashBiMap.java:759-765 | guava/src/com/google/common/cache/LocalCache.java:4312-4319 — before extracting anything, compare `android/guava/src/com/google/common/cache/LocalCache.java` and `guava/src/com/google/common/cache/LocalCache.java` as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1881 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. 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 × 3) android/guava/src/com/google/common/cache/LocalCache.java:4193— android/guava/src/com/google/common/cache/LocalCache.java:4193-4200 | android/guava/src/com/google/common/collect/HashBiMap.java:841-847 | guava/src/com/google/common/cache/LocalCache.java:4337-4344 — before extracting anything, compare `android/guava/src/com/google/common/cache/LocalCache.java` and `guava/src/com/google/common/cache/LocalCache.java` as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1881 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. 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 × 16) android/guava/src/com/google/common/primitives/Booleans.java:167— android/guava/src/com/google/common/primitives/Booleans.java:167-174 | android/guava/src/com/google/common/primitives/Bytes.java:98-105 | android/guava/src/com/google/common/primitives/Chars.java:157-164 | android/guava/src/com/google/common/primitives/Doubles.java:150-157 | android/guava/src/com/google/common/primitives/Floats.java:147-154 | android/guava/src/com/google/common/primitives/Ints.java:165-172 | android/guava/src/com/google/common/primitives/Longs.java:126-133 | android/guava/src/com/google/common/primitives/Shorts.java:159-166 | guava/src/com/google/common/primitives/Booleans.java:167-174 | guava/src/com/google/common/primitives/Bytes.java:98-105 | guava/src/com/google/common/primitives/Chars.java:157-164 | guava/src/com/google/common/primitives/Doubles.java:150-157 | guava/src/com/google/common/primitives/Floats.java:147-154 | guava/src/com/google/common/primitives/Ints.java:165-172 | guava/src/com/google/common/primitives/Longs.java:126-133 | guava/src/com/google/common/primitives/Shorts.java:159-166 — before extracting anything, compare `android/guava/src/com/google/common/primitives/Booleans.java` and `android/guava/src/com/google/common/primitives/Bytes.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 72 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. 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 first that the copies are not typed on the same thing: the declarations holding them bind `array` to `boolean[]` in one and `byte[]` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (8 lines × 16) android/guava/src/com/google/common/primitives/Booleans.java:218— android/guava/src/com/google/common/primitives/Booleans.java:218-225 | android/guava/src/com/google/common/primitives/Bytes.java:149-156 | android/guava/src/com/google/common/primitives/Chars.java:208-215 | android/guava/src/com/google/common/primitives/Doubles.java:204-211 | android/guava/src/com/google/common/primitives/Floats.java:201-208 | android/guava/src/com/google/common/primitives/Ints.java:216-223 | android/guava/src/com/google/common/primitives/Longs.java:177-184 | android/guava/src/com/google/common/primitives/Shorts.java:210-217 | guava/src/com/google/common/primitives/Booleans.java:218-225 | guava/src/com/google/common/primitives/Bytes.java:149-156 | guava/src/com/google/common/primitives/Chars.java:208-215 | guava/src/com/google/common/primitives/Doubles.java:204-211 | guava/src/com/google/common/primitives/Floats.java:201-208 | guava/src/com/google/common/primitives/Ints.java:216-223 | guava/src/com/google/common/primitives/Longs.java:177-184 | guava/src/com/google/common/primitives/Shorts.java:210-217 — before extracting anything, compare `android/guava/src/com/google/common/primitives/Booleans.java` and `android/guava/src/com/google/common/primitives/Bytes.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 72 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. 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 first that the copies are not typed on the same thing: the declarations holding them bind `array` to `boolean[]` in one and `byte[]` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `android/guava/src/com/google/common/primitives/Doubles.java:222` calls `GwtIncompatible` and `android/guava/src/com/google/common/primitives/Chars.java:225` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Swallowed exception (caught, then discarded) android/guava/src/com/google/common/primitives/UnsignedBytes.java:399— `catch (Exception)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) guava/src/com/google/common/primitives/UnsignedBytes.java:400— `catch (Exception)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
RegularImmutableMap.createHashTable (cyclomatic 22) android/guava/src/com/google/common/collect/RegularImmutableMap.java:150— RegularImmutableMap.createHashTable 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.
RegularImmutableMap.get (cyclomatic 16) android/guava/src/com/google/common/collect/RegularImmutableMap.java:320— RegularImmutableMap.get 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.
TodoComment repeated across 19 files android/guava-testlib/test/com/google/common/testing/GcFinalizationTest.java:129— The identical TodoComment appears in 19 files (25 occurrences) — almost certainly one boilerplate line from a single migration or decision, not 25 independent debts. Fix the systemic cause once rather than file-by-file. Text: "// TODO(b/175898629): Consider onSpinWait.". Source code is not a task system: track the cleanup where tasks live. (Every occurrence still counts toward the score and metrics.)
TodoComment repeated across 18 files android/guava-tests/test/com/google/common/math/LongMathTest.java:116— The identical TodoComment appears in 18 files (194 occurrences) — almost certainly one boilerplate line from a single migration or decision, not 194 independent debts. Fix the systemic cause once rather than file-by-file. Text: "// TODO". Source code is not a task system: track the cleanup where tasks live. (Every occurrence still counts toward the score and metrics.)
TodoComment repeated across 13 files android/guava/src/com/google/common/collect/Iterators.java:657— The identical TodoComment appears in 13 files (13 occurrences) — almost certainly one boilerplate line from a single migration or decision, not 13 independent debts. Fix the systemic cause once rather than file-by-file. Text: "// TODO(b/192579700): Use a ternary once it no longer confuses our nullness checker.". Source code is not a task system: track the cleanup where tasks live. (Every occurrence still counts toward the score and metrics.)
TodoComment repeated across 12 files android/guava/src/com/google/common/collect/ForwardingSortedMap.java:60— The identical TodoComment appears in 12 files (12 occurrences) — almost certainly one boilerplate line from a single migration or decision, not 12 independent debts. Fix the systemic cause once rather than file-by-file. Text: "// TODO(lowasser): identify places where thread safety is actually lost". Source code is not a task system: track the cleanup where tasks live. (Every occurrence still counts toward the score and metrics.)
TodoComment repeated across 16 files android/guava/src/com/google/common/primitives/Shorts.java:158— The identical TodoComment appears in 16 files (32 occurrences) — almost certainly one boilerplate line from a single migration or decision, not 32 independent debts. Fix the systemic cause once rather than file-by-file. Text: "// TODO(kevinb): consider making this public". Source code is not a task system: track the cleanup where tasks live. (Every occurrence still counts toward the score and metrics.)
RegularImmutableMap.createHashTable (cognitive 49) android/guava/src/com/google/common/collect/RegularImmutableMap.java:150— RegularImmutableMap.createHashTable has cognitive complexity 49 (threshold 15). Drivers by points: if/else 13 (28 pts), loops 6 (15 pts), ternaries 3 (6 pts) (nesting depth added 27). 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.
RegularImmutableMap.get (cognitive 26) android/guava/src/com/google/common/collect/RegularImmutableMap.java:320— RegularImmutableMap.get has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (18 pts), loops 3 (6 pts), ternaries 1 (2 pts) (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.
JdkBackedImmutableMap.create (cognitive 19) guava/src/com/google/common/collect/JdkBackedImmutableMap.java:43— JdkBackedImmutableMap.create has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (16 pts), loops 2 (3 pts) (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.
Segment.compute (cognitive 18) guava/src/com/google/common/cache/LocalCache.java:2219— Segment.compute has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 3, error handling 1 (2 pts), loops 1 (nesting depth added 5). 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.
HashBiMap.delete (cognitive 18) guava/src/com/google/common/collect/HashBiMap.java:162— HashBiMap.delete has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (16 pts), loops 2 (nesting depth added 6). 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.
AtomicLongMap.addAndGet (cognitive 18) android/guava/src/com/google/common/util/concurrent/AtomicLongMap.java:110— AtomicLongMap.addAndGet has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (15 pts), loops 2 (3 pts) (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. This shape REPEATS in the file: 2 other methods here (AtomicLongMap.getAndAdd, AtomicLongMap.put) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
AtomicLongMap.getAndAdd (cognitive 18) android/guava/src/com/google/common/util/concurrent/AtomicLongMap.java:163— AtomicLongMap.getAndAdd has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (15 pts), loops 2 (3 pts) (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. This shape REPEATS in the file: 2 other methods here (AtomicLongMap.addAndGet, AtomicLongMap.put) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
AtomicLongMap.put (cognitive 18) android/guava/src/com/google/common/util/concurrent/AtomicLongMap.java:200— AtomicLongMap.put has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (15 pts), loops 2 (3 pts) (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. This shape REPEATS in the file: 2 other methods here (AtomicLongMap.addAndGet, AtomicLongMap.getAndAdd) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
RegularImmutableMap.fromEntryArrayCheckingBucketOverflow (cognitive 17) guava/src/com/google/common/collect/RegularImmutableMap.java:105— RegularImmutableMap.fromEntryArrayCheckingBucketOverflow has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (12 pts), ternaries 2 (4 pts), loops 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.
RegularSetBuilderImpl.hashFloodingDetected (cognitive 16) guava/src/com/google/common/collect/ImmutableSet.java:835— RegularSetBuilderImpl.hashFloodingDetected has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 2 (4 pts), 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.
D22 · Internal API Consistency· Confusing overlap · ×1
Confusing overlap: `equals` checks equality with a specific object (inherited from Object), while `equivalent` and `test` check semantic equivalence. `equivalent` and `test` are effectively synonyms for each other. — Deprecate `test` in favor of `equivalent` to maintain a single, clear method for semantic equivalence checking. (signatures: Equivalence.equals(object: Object): boolean | Equivalence.equivalent(a: T, b: T): boolean | Equivalence.test(t: T, u: T): boolean)
D4 · Code Duplication· Near-duplicate member family (4 members, 31 shared lines) · ×1
Near-duplicate member family (4 members, 31 shared lines) android/guava/src/com/google/common/collect/CompactHashMap.java:329— android/guava/src/com/google/common/collect/CompactHashMap.java:329-391 | android/guava/src/com/google/common/collect/CompactHashSet.java:292-348 | guava/src/com/google/common/collect/CompactHashMap.java:333-395 | guava/src/com/google/common/collect/CompactHashSet.java:296-352 — These 4 members are variants of one another: a block of 31 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
D4 · Code Duplication· Near-duplicate member family (4 members, 28 shared lines) · ×1
Near-duplicate member family (4 members, 28 shared lines) android/guava/src/com/google/common/collect/Multisets.java:401— android/guava/src/com/google/common/collect/Multisets.java:401-457 | android/guava/src/com/google/common/collect/Multisets.java:531-592 | guava/src/com/google/common/collect/Multisets.java:407-463 | guava/src/com/google/common/collect/Multisets.java:537-598 — These 4 members are variants of one another: a block of 28 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
D4 · Code Duplication· Near-duplicate member family (4 members, 16 shared lines) · ×1
Near-duplicate member family (4 members, 16 shared lines) android/guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java:112— android/guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java:112-129 | android/guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java:133-150 | guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java:112-129 | guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java:133-150 — These 4 members are variants of one another: a block of 16 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
D4 · Code Duplication· Near-duplicate member family (4 members, 11 shared lines) · ×1
Near-duplicate member family (4 members, 11 shared lines) android/guava-testlib/src/com/google/common/collect/testing/google/MultimapAsMapGetTester.java:103— android/guava-testlib/src/com/google/common/collect/testing/google/MultimapAsMapGetTester.java:103-122 | android/guava-testlib/src/com/google/common/collect/testing/google/MultimapGetTester.java:106-125 | guava-testlib/src/com/google/common/collect/testing/google/MultimapAsMapGetTester.java:103-122 | guava-testlib/src/com/google/common/collect/testing/google/MultimapGetTester.java:106-125 — These 4 members are variants of one another: a block of 11 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Near-duplicate member pair (38 shared lines) android/guava/src/com/google/common/hash/Murmur3_128HashFunction.java:127— android/guava/src/com/google/common/hash/Murmur3_128HashFunction.java:127-169 | guava/src/com/google/common/hash/Murmur3_128HashFunction.java:127-169 — These two members are variants of one another: 38 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
Near-duplicate member pair (34 shared lines) android/guava/src/com/google/common/hash/FarmHashFingerprint64.java:171— android/guava/src/com/google/common/hash/FarmHashFingerprint64.java:171-215 | guava/src/com/google/common/hash/FarmHashFingerprint64.java:171-215 — These two members are variants of one another: 34 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication· Edited copy of a member (75 corresponding lines) · ×1
Edited copy of a member (75 corresponding lines) android/guava/src/com/google/common/net/PercentEscaper.java:158— android/guava/src/com/google/common/net/PercentEscaper.java:158-232 | guava/src/com/google/common/net/PercentEscaper.java:158-232 — These two members are one piece of code written twice and then edited apart: 75 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (52 corresponding lines) · ×1
Edited copy of a member (52 corresponding lines) android/guava/src/com/google/common/math/LongMath.java:1005— android/guava/src/com/google/common/math/LongMath.java:1005-1056 | guava/src/com/google/common/math/LongMath.java:1005-1056 — These two members are one piece of code written twice and then edited apart: 52 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (32 corresponding lines) · ×1
Edited copy of a member (32 corresponding lines) android/guava/src/com/google/common/hash/Fingerprint2011.java:117— android/guava/src/com/google/common/hash/Fingerprint2011.java:117-148 | guava/src/com/google/common/hash/Fingerprint2011.java:117-148 — These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (22 corresponding lines) · ×1
Edited copy of a member (22 corresponding lines) android/guava/src/com/google/common/hash/Fingerprint2011.java:150— android/guava/src/com/google/common/hash/Fingerprint2011.java:150-171 | guava/src/com/google/common/hash/Fingerprint2011.java:150-171 — These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (44 corresponding lines) · ×1
Edited copy of a member (44 corresponding lines) android/guava/src/com/google/common/collect/TreeMultiset.java:675— android/guava/src/com/google/common/collect/TreeMultiset.java:675-718 | guava/src/com/google/common/collect/TreeMultiset.java:687-730 — These two members are one piece of code written twice and then edited apart: 44 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (23 corresponding lines) · ×1
Edited copy of a member (23 corresponding lines) android/guava/src/com/google/common/collect/Multisets.java:568— android/guava/src/com/google/common/collect/Multisets.java:568-590 | guava/src/com/google/common/collect/Multisets.java:574-596 — These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (24 corresponding lines) · ×1
Edited copy of a member (24 corresponding lines) android/guava/src/com/google/common/collect/Multisets.java:432— android/guava/src/com/google/common/collect/Multisets.java:432-455 | guava/src/com/google/common/collect/Multisets.java:438-461 — These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (48 corresponding lines) · ×1
Edited copy of a member (48 corresponding lines) android/guava/src/com/google/common/io/TempFileCreator.java:243— android/guava/src/com/google/common/io/TempFileCreator.java:243-290 | guava/src/com/google/common/io/TempFileCreator.java:243-290 — These two members are one piece of code written twice and then edited apart: 48 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (26 corresponding lines) · ×1
Edited copy of a member (26 corresponding lines) android/guava-testlib/src/com/google/common/testing/RelationshipTester.java:75— android/guava-testlib/src/com/google/common/testing/RelationshipTester.java:75-100 | guava-testlib/src/com/google/common/testing/RelationshipTester.java:75-100 — These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (19 corresponding lines) · ×1
Edited copy of a member (19 corresponding lines) android/guava/src/com/google/common/util/concurrent/Futures.java:914— android/guava/src/com/google/common/util/concurrent/Futures.java:914-932 | guava/src/com/google/common/util/concurrent/Futures.java:912-930 — These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (43 corresponding lines) · ×1
Edited copy of a member (43 corresponding lines) android/guava/src/com/google/common/base/internal/Finalizer.java:64— android/guava/src/com/google/common/base/internal/Finalizer.java:64-106 | guava/src/com/google/common/base/internal/Finalizer.java:64-106 — These two members are one piece of code written twice and then edited apart: 43 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (20 corresponding lines) · ×1
Edited copy of a member (20 corresponding lines) android/guava/src/com/google/common/collect/RegularImmutableTable.java:153— android/guava/src/com/google/common/collect/RegularImmutableTable.java:153-172 | guava/src/com/google/common/collect/RegularImmutableTable.java:153-172 — These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (29 corresponding lines) · ×1
Edited copy of a member (29 corresponding lines) android/guava/src/com/google/common/collect/CollectSpliterators.java:119— android/guava/src/com/google/common/collect/CollectSpliterators.java:119-152 | guava/src/com/google/common/collect/CollectSpliterators.java:113-153 — These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (14 corresponding lines) · ×1
Edited copy of a member (14 corresponding lines) android/guava/src/com/google/common/collect/TreeRangeMap.java:74— android/guava/src/com/google/common/collect/TreeRangeMap.java:74-87 | guava/src/com/google/common/collect/TreeRangeMap.java:75-88 — These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (28 corresponding lines) · ×1
Edited copy of a member (28 corresponding lines) android/guava/src/com/google/common/collect/MapMakerInternalMap.java:2312— android/guava/src/com/google/common/collect/MapMakerInternalMap.java:2312-2339 | guava/src/com/google/common/collect/MapMakerInternalMap.java:2312-2339 — These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (12 corresponding lines) · ×1
Edited copy of a member (12 corresponding lines) android/guava/src/com/google/common/net/InetAddresses.java:342— android/guava/src/com/google/common/net/InetAddresses.java:342-353 | guava/src/com/google/common/net/InetAddresses.java:342-353 — These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (13 corresponding lines) · ×1
Edited copy of a member (13 corresponding lines) android/guava/src/com/google/common/collect/TreeRangeSet.java:131— android/guava/src/com/google/common/collect/TreeRangeSet.java:131-143 | guava/src/com/google/common/collect/TreeRangeSet.java:131-143 — These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Members sharing a duplicated core (21 members, 50+ identical tokens) · ×1
Members sharing a duplicated core (21 members, 50+ identical tokens) android/guava/src/com/google/common/cache/LocalCache.java:2109— android/guava/src/com/google/common/cache/LocalCache.java:2109-2191 | android/guava/src/com/google/common/cache/LocalCache.java:2321-2368 | android/guava/src/com/google/common/cache/LocalCache.java:2712-2782 | android/guava/src/com/google/common/cache/LocalCache.java:2854-2911 | android/guava/src/com/google/common/cache/LocalCache.java:2913-2963 | android/guava/src/com/google/common/cache/LocalCache.java:2965-3007 | android/guava/src/com/google/common/cache/LocalCache.java:3009-3051 | android/guava/src/com/google/common/cache/LocalCache.java:3055-3112 | android/guava/src/com/google/common/cache/LocalCache.java:3239-3278 | android/guava/src/com/google/common/cache/LocalCache.java:3281-3312 | guava/src/com/google/common/cache/LocalCache.java:2113-2195 | guava/src/com/google/common/cache/LocalCache.java:2222-2303 | guava/src/com/google/common/cache/LocalCache.java:2411-2458 | guava/src/com/google/common/cache/LocalCache.java:2802-2872 | guava/src/com/google/common/cache/LocalCache.java:2944-3001 | guava/src/com/google/common/cache/LocalCache.java:3003-3053 | guava/src/com/google/common/cache/LocalCache.java:3055-3097 | guava/src/com/google/common/cache/LocalCache.java:3099-3141 | guava/src/com/google/common/cache/LocalCache.java:3145-3202 | guava/src/com/google/common/cache/LocalCache.java:3329-3368 | guava/src/com/google/common/cache/LocalCache.java:3371-3402 — These 21 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 21 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 21 times.
D4 · Code Duplication· Members sharing a duplicated core (18 members, 50+ identical tokens) · ×1
Members sharing a duplicated core (18 members, 50+ identical tokens) android/guava/src/com/google/common/collect/MapMakerInternalMap.java:1496— android/guava/src/com/google/common/collect/MapMakerInternalMap.java:1496-1551 | android/guava/src/com/google/common/collect/MapMakerInternalMap.java:1622-1667 | android/guava/src/com/google/common/collect/MapMakerInternalMap.java:1669-1708 | android/guava/src/com/google/common/collect/MapMakerInternalMap.java:1711-1749 | android/guava/src/com/google/common/collect/MapMakerInternalMap.java:1751-1790 | android/guava/src/com/google/common/collect/MapMakerInternalMap.java:1841-1864 | android/guava/src/com/google/common/collect/MapMakerInternalMap.java:1868-1898 | android/guava/src/com/google/common/collect/MapMakerInternalMap.java:1905-1931 | android/guava/src/com/google/common/collect/MapMakerInternalMap.java:1934-1953 | guava/src/com/google/common/collect/MapMakerInternalMap.java:1496-1551 | guava/src/com/google/common/collect/MapMakerInternalMap.java:1622-1667 | guava/src/com/google/common/collect/MapMakerInternalMap.java:1669-1708 | guava/src/com/google/common/collect/MapMakerInternalMap.java:1711-1749 | guava/src/com/google/common/collect/MapMakerInternalMap.java:1751-1790 | guava/src/com/google/common/collect/MapMakerInternalMap.java:1841-1864 | guava/src/com/google/common/collect/MapMakerInternalMap.java:1868-1898 | guava/src/com/google/common/collect/MapMakerInternalMap.java:1905-1931 | guava/src/com/google/common/collect/MapMakerInternalMap.java:1934-1953 — These 18 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 18 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 18 times.
D4 · Code Duplication· Members sharing a duplicated core (12 members, 50+ identical tokens) · ×1
Members sharing a duplicated core (12 members, 50+ identical tokens) android/guava/src/com/google/common/collect/ImmutableSortedMap.java:294— android/guava/src/com/google/common/collect/ImmutableSortedMap.java:294-304 | android/guava/src/com/google/common/collect/ImmutableSortedMap.java:331-342 | android/guava/src/com/google/common/collect/ImmutableSortedMap.java:371-383 | guava/src/com/google/common/collect/ImmutableBiMap.java:183-193 | guava/src/com/google/common/collect/ImmutableBiMap.java:219-230 | guava/src/com/google/common/collect/ImmutableBiMap.java:258-270 | guava/src/com/google/common/collect/ImmutableMap.java:238-248 | guava/src/com/google/common/collect/ImmutableMap.java:274-285 | guava/src/com/google/common/collect/ImmutableMap.java:313-325 | guava/src/com/google/common/collect/ImmutableSortedMap.java:292-302 | guava/src/com/google/common/collect/ImmutableSortedMap.java:329-340 | guava/src/com/google/common/collect/ImmutableSortedMap.java:369-381 — These 12 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 12 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 12 times.
D4 · Code Duplication· Members sharing a duplicated core (5 members, 50+ identical tokens) · ×1
Members sharing a duplicated core (5 members, 50+ identical tokens) android/guava/src/com/google/common/collect/ImmutableMap.java:199— android/guava/src/com/google/common/collect/ImmutableMap.java:199-208 | android/guava/src/com/google/common/collect/ImmutableMap.java:217-227 | android/guava/src/com/google/common/collect/ImmutableMap.java:251-262 | android/guava/src/com/google/common/collect/ImmutableMap.java:288-300 | android/guava/src/com/google/common/collect/ImmutableMap.java:328-344 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
Duplicated block (74 lines × 2) android/guava/src/com/google/common/collect/ImmutableRangeMap.java:314— android/guava/src/com/google/common/collect/ImmutableRangeMap.java:314-387 | guava/src/com/google/common/collect/ImmutableRangeMap.java:331-404 — before extracting anything, compare `android/guava/src/com/google/common/collect/ImmutableRangeMap.java` and `guava/src/com/google/common/collect/ImmutableRangeMap.java` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 194 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (34–44 lines × 4) android/guava/src/com/google/common/collect/CompactHashMap.java:427— android/guava/src/com/google/common/collect/CompactHashMap.java:427-470 | android/guava/src/com/google/common/collect/CompactHashSet.java:381-414 | guava/src/com/google/common/collect/CompactHashMap.java:431-474 | guava/src/com/google/common/collect/CompactHashSet.java:385-418 — before extracting anything, compare `android/guava/src/com/google/common/collect/CompactHashMap.java` and `android/guava/src/com/google/common/collect/CompactHashSet.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 135 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (41–42 lines × 2) android/guava/src/com/google/common/util/concurrent/InterruptibleTask.java:107— android/guava/src/com/google/common/util/concurrent/InterruptibleTask.java:107-147 | guava/src/com/google/common/util/concurrent/InterruptibleTask.java:104-145 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/InterruptibleTask.java` and `guava/src/com/google/common/util/concurrent/InterruptibleTask.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 106 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 `android/guava/src/com/google/common/util/concurrent/InterruptibleTask.java:107` 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 (3–36 lines × 4) android/guava/src/com/google/common/reflect/TypeResolver.java:485— android/guava/src/com/google/common/reflect/TypeResolver.java:485-520 | android/guava/src/com/google/common/reflect/TypeToken.java:1058-1060 | guava/src/com/google/common/reflect/TypeResolver.java:485-520 | guava/src/com/google/common/reflect/TypeToken.java:1058-1060 — before extracting anything, compare `android/guava/src/com/google/common/reflect/TypeResolver.java` and `guava/src/com/google/common/reflect/TypeResolver.java` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 277 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. 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. Note first that the copies are not typed on the same thing: the declarations holding them bind `type` to `Type` in one and `ParameterizedType` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (27 lines × 4) android/guava/src/com/google/common/collect/CompactHashMap.java:576— android/guava/src/com/google/common/collect/CompactHashMap.java:576-602 | android/guava/src/com/google/common/collect/CompactHashSet.java:487-513 | guava/src/com/google/common/collect/CompactHashMap.java:580-606 | guava/src/com/google/common/collect/CompactHashSet.java:491-517 — before extracting anything, compare `android/guava/src/com/google/common/collect/CompactHashMap.java` and `android/guava/src/com/google/common/collect/CompactHashSet.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 135 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `android/guava/src/com/google/common/collect/CompactHashMap.java:576` 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 (23 lines × 4) android/guava/src/com/google/common/collect/CompactHashMap.java:341— android/guava/src/com/google/common/collect/CompactHashMap.java:341-363 | android/guava/src/com/google/common/collect/CompactHashSet.java:303-325 | guava/src/com/google/common/collect/CompactHashMap.java:345-367 | guava/src/com/google/common/collect/CompactHashSet.java:307-329 — before extracting anything, compare `android/guava/src/com/google/common/collect/CompactHashMap.java` and `android/guava/src/com/google/common/collect/CompactHashSet.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 135 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `android/guava/src/com/google/common/collect/CompactHashMap.java:341` 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 (22 lines × 4) android/guava/src/com/google/common/reflect/TypeToken.java:608— android/guava/src/com/google/common/reflect/TypeToken.java:608-629 | android/guava/src/com/google/common/reflect/TypeToken.java:647-668 | guava/src/com/google/common/reflect/TypeToken.java:608-629 | guava/src/com/google/common/reflect/TypeToken.java:647-668 — before extracting anything, compare `android/guava/src/com/google/common/reflect/TypeToken.java` and `guava/src/com/google/common/reflect/TypeToken.java` as WHOLE FILES: this scan already matched 52 separate duplicated blocks between them, totalling at least 744 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 `android/guava/src/com/google/common/reflect/TypeToken.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 (21 lines × 16) android/guava/src/com/google/common/primitives/Booleans.java:594— android/guava/src/com/google/common/primitives/Booleans.java:594-614 | android/guava/src/com/google/common/primitives/Bytes.java:444-464 | android/guava/src/com/google/common/primitives/Chars.java:535-555 | android/guava/src/com/google/common/primitives/Doubles.java:518-538 | android/guava/src/com/google/common/primitives/Floats.java:515-535 | android/guava/src/com/google/common/primitives/Ints.java:588-608 | android/guava/src/com/google/common/primitives/Longs.java:646-666 | android/guava/src/com/google/common/primitives/Shorts.java:556-576 | guava/src/com/google/common/primitives/Booleans.java:594-614 | guava/src/com/google/common/primitives/Bytes.java:444-464 | guava/src/com/google/common/primitives/Chars.java:535-555 | guava/src/com/google/common/primitives/Doubles.java:518-538 | guava/src/com/google/common/primitives/Floats.java:515-535 | guava/src/com/google/common/primitives/Ints.java:588-608 | guava/src/com/google/common/primitives/Longs.java:646-666 | guava/src/com/google/common/primitives/Shorts.java:556-576 — before extracting anything, compare `android/guava/src/com/google/common/primitives/Booleans.java` and `android/guava/src/com/google/common/primitives/Bytes.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 72 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: the declarations holding them bind `array` to `boolean[]` in one and `byte[]` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (4–21 lines × 4) android/guava/src/com/google/common/collect/FilteredEntryMultimap.java:159— android/guava/src/com/google/common/collect/FilteredEntryMultimap.java:159-162 | android/guava/src/com/google/common/collect/FilteredEntryMultimap.java:300-320 | guava/src/com/google/common/collect/FilteredEntryMultimap.java:159-162 | guava/src/com/google/common/collect/FilteredEntryMultimap.java:300-320 — before extracting anything, compare `android/guava/src/com/google/common/collect/FilteredEntryMultimap.java` and `guava/src/com/google/common/collect/FilteredEntryMultimap.java` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 221 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 `android/guava/src/com/google/common/collect/FilteredEntryMultimap.java:159` 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 (19 lines × 4) android/guava/src/com/google/common/collect/Maps.java:1116— android/guava/src/com/google/common/collect/Maps.java:1116-1134 | android/guava/src/com/google/common/collect/Maps.java:1153-1171 | guava/src/com/google/common/collect/Maps.java:1153-1171 | guava/src/com/google/common/collect/Maps.java:1190-1208 — before extracting anything, compare `android/guava/src/com/google/common/collect/Maps.java` and `guava/src/com/google/common/collect/Maps.java` as WHOLE FILES: this scan already matched 72 separate duplicated blocks between them, totalling at least 830 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 `android/guava/src/com/google/common/collect/Maps.java:1116` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
Duplicated block (18 lines × 4) android/guava/src/com/google/common/math/IntMath.java:159— android/guava/src/com/google/common/math/IntMath.java:159-176 | android/guava/src/com/google/common/math/LongMath.java:167-184 | guava/src/com/google/common/math/IntMath.java:159-176 | guava/src/com/google/common/math/LongMath.java:167-184 — before extracting anything, compare `android/guava/src/com/google/common/math/IntMath.java` and `android/guava/src/com/google/common/math/LongMath.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 63 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `android/guava/src/com/google/common/math/IntMath.java:159` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 first that the copies are not typed on the same thing: the declarations holding them bind `x` to `int` in one and `long` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (17 lines × 16) android/guava/src/com/google/common/primitives/Booleans.java:187— android/guava/src/com/google/common/primitives/Booleans.java:187-203 | android/guava/src/com/google/common/primitives/Bytes.java:118-134 | android/guava/src/com/google/common/primitives/Chars.java:177-193 | android/guava/src/com/google/common/primitives/Doubles.java:172-188 | android/guava/src/com/google/common/primitives/Floats.java:169-185 | android/guava/src/com/google/common/primitives/Ints.java:185-201 | android/guava/src/com/google/common/primitives/Longs.java:146-162 | android/guava/src/com/google/common/primitives/Shorts.java:179-195 | guava/src/com/google/common/primitives/Booleans.java:187-203 | guava/src/com/google/common/primitives/Bytes.java:118-134 | guava/src/com/google/common/primitives/Chars.java:177-193 | guava/src/com/google/common/primitives/Doubles.java:172-188 | guava/src/com/google/common/primitives/Floats.java:169-185 | guava/src/com/google/common/primitives/Ints.java:185-201 | guava/src/com/google/common/primitives/Longs.java:146-162 | guava/src/com/google/common/primitives/Shorts.java:179-195 — before extracting anything, compare `android/guava/src/com/google/common/primitives/Booleans.java` and `android/guava/src/com/google/common/primitives/Bytes.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 72 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: the declarations holding them bind `array` to `boolean[]` in one and `byte[]` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (16–17 lines × 4) android/guava/src/com/google/common/collect/MapMakerInternalMap.java:1845— android/guava/src/com/google/common/collect/MapMakerInternalMap.java:1845-1860 | android/guava/src/com/google/common/collect/MapMakerInternalMap.java:1937-1953 | guava/src/com/google/common/collect/MapMakerInternalMap.java:1845-1860 | guava/src/com/google/common/collect/MapMakerInternalMap.java:1937-1953 — before extracting anything, compare `android/guava/src/com/google/common/collect/MapMakerInternalMap.java` and `guava/src/com/google/common/collect/MapMakerInternalMap.java` as WHOLE FILES: this scan already matched 73 separate duplicated blocks between them, totalling at least 916 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 `android/guava/src/com/google/common/collect/MapMakerInternalMap.java:1937` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (16–17 lines × 3) android/guava/src/com/google/common/collect/RegularImmutableMap.java:186— android/guava/src/com/google/common/collect/RegularImmutableMap.java:186-201 | android/guava/src/com/google/common/collect/RegularImmutableMap.java:226-241 | android/guava/src/com/google/common/collect/RegularImmutableMap.java:263-279 — 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 `android/guava/src/com/google/common/collect/RegularImmutableMap.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. 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 (15–16 lines × 4) android/guava/src/com/google/common/collect/Multisets.java:402— android/guava/src/com/google/common/collect/Multisets.java:402-416 | android/guava/src/com/google/common/collect/Multisets.java:532-547 | guava/src/com/google/common/collect/Multisets.java:408-422 | guava/src/com/google/common/collect/Multisets.java:538-553 — before extracting anything, compare `android/guava/src/com/google/common/collect/Multisets.java` and `guava/src/com/google/common/collect/Multisets.java` as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 470 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 `android/guava/src/com/google/common/collect/Multisets.java:402` 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 (15 lines × 6) android/guava/src/com/google/common/primitives/ImmutableDoubleArray.java:546— android/guava/src/com/google/common/primitives/ImmutableDoubleArray.java:546-560 | android/guava/src/com/google/common/primitives/ImmutableIntArray.java:541-555 | android/guava/src/com/google/common/primitives/ImmutableLongArray.java:543-557 | guava/src/com/google/common/primitives/ImmutableDoubleArray.java:541-555 | guava/src/com/google/common/primitives/ImmutableIntArray.java:536-550 | guava/src/com/google/common/primitives/ImmutableLongArray.java:538-552 — before extracting anything, compare `android/guava/src/com/google/common/primitives/ImmutableDoubleArray.java` and `android/guava/src/com/google/common/primitives/ImmutableIntArray.java` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 64 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `android/guava/src/com/google/common/primitives/ImmutableDoubleArray.java:546` 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 × 16) android/guava/src/com/google/common/primitives/Booleans.java:480— android/guava/src/com/google/common/primitives/Booleans.java:480-492 | android/guava/src/com/google/common/primitives/Bytes.java:345-357 | android/guava/src/com/google/common/primitives/Chars.java:667-679 | android/guava/src/com/google/common/primitives/Doubles.java:694-706 | android/guava/src/com/google/common/primitives/Floats.java:677-689 | android/guava/src/com/google/common/primitives/Ints.java:760-772 | android/guava/src/com/google/common/primitives/Longs.java:818-830 | android/guava/src/com/google/common/primitives/Shorts.java:715-727 | guava/src/com/google/common/primitives/Booleans.java:480-492 | guava/src/com/google/common/primitives/Bytes.java:345-357 | guava/src/com/google/common/primitives/Chars.java:667-679 | guava/src/com/google/common/primitives/Doubles.java:689-701 | guava/src/com/google/common/primitives/Floats.java:677-689 | guava/src/com/google/common/primitives/Ints.java:755-767 | guava/src/com/google/common/primitives/Longs.java:813-825 | guava/src/com/google/common/primitives/Shorts.java:715-727 — before extracting anything, compare `android/guava/src/com/google/common/primitives/Booleans.java` and `android/guava/src/com/google/common/primitives/Bytes.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 72 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `android/guava/src/com/google/common/primitives/Booleans.java:480` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 × 14) android/guava/src/com/google/common/primitives/Booleans.java:288— android/guava/src/com/google/common/primitives/Booleans.java:288-300 | android/guava/src/com/google/common/primitives/Doubles.java:378-390 | android/guava/src/com/google/common/primitives/Floats.java:375-387 | android/guava/src/com/google/common/primitives/Ints.java:429-441 | android/guava/src/com/google/common/primitives/Longs.java:512-524 | android/guava/src/com/google/common/primitives/Shorts.java:422-434 | android/guava/src/com/google/common/primitives/SignedBytes.java:143-155 | guava/src/com/google/common/primitives/Booleans.java:288-300 | guava/src/com/google/common/primitives/Doubles.java:378-390 | guava/src/com/google/common/primitives/Floats.java:375-387 | guava/src/com/google/common/primitives/Ints.java:429-441 | guava/src/com/google/common/primitives/Longs.java:512-524 | guava/src/com/google/common/primitives/Shorts.java:422-434 | guava/src/com/google/common/primitives/SignedBytes.java:143-155 — before extracting anything, compare `android/guava/src/com/google/common/primitives/Booleans.java` and `android/guava/src/com/google/common/primitives/Doubles.java` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 85 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: the declarations holding them bind `array` to `boolean...` in one and `double...` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (12–13 lines × 4) android/guava/src/com/google/common/math/IntMath.java:517— android/guava/src/com/google/common/math/IntMath.java:517-528 | android/guava/src/com/google/common/math/LongMath.java:622-634 | guava/src/com/google/common/math/IntMath.java:517-528 | guava/src/com/google/common/math/LongMath.java:622-634 — before extracting anything, compare `android/guava/src/com/google/common/math/IntMath.java` and `android/guava/src/com/google/common/math/LongMath.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 63 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `android/guava/src/com/google/common/math/IntMath.java:517` 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. Note first that the copies are not typed on the same thing: the declarations holding them bind `b` to `int` in one and `long` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (13 lines × 3) android/guava/src/com/google/common/collect/RegularImmutableMap.java:170— android/guava/src/com/google/common/collect/RegularImmutableMap.java:170-182 | android/guava/src/com/google/common/collect/RegularImmutableMap.java:210-222 | android/guava/src/com/google/common/collect/RegularImmutableMap.java:247-259 — 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 `android/guava/src/com/google/common/collect/RegularImmutableMap.java:170` 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 × 6) android/guava/src/com/google/common/primitives/ImmutableDoubleArray.java:628— android/guava/src/com/google/common/primitives/ImmutableDoubleArray.java:628-639 | android/guava/src/com/google/common/primitives/ImmutableIntArray.java:618-629 | android/guava/src/com/google/common/primitives/ImmutableLongArray.java:620-631 | guava/src/com/google/common/primitives/ImmutableDoubleArray.java:623-634 | guava/src/com/google/common/primitives/ImmutableIntArray.java:613-624 | guava/src/com/google/common/primitives/ImmutableLongArray.java:615-626 — before extracting anything, compare `android/guava/src/com/google/common/primitives/ImmutableDoubleArray.java` and `android/guava/src/com/google/common/primitives/ImmutableIntArray.java` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 64 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (11–12 lines × 2) guava/src/com/google/common/collect/ImmutableBiMap.java:502— guava/src/com/google/common/collect/ImmutableBiMap.java:502-513 | guava/src/com/google/common/collect/ImmutableMap.java:636-646 — before extracting anything, compare `guava/src/com/google/common/collect/ImmutableBiMap.java` and `guava/src/com/google/common/collect/ImmutableMap.java` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `guava/src/com/google/common/collect/ImmutableBiMap.java:502` 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 (6–11 lines × 4) android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java:644— android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java:644-654 | android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java:684-689 | guava/src/com/google/common/collect/MinMaxPriorityQueue.java:644-654 | guava/src/com/google/common/collect/MinMaxPriorityQueue.java:684-689 — before extracting anything, compare `android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java` and `guava/src/com/google/common/collect/MinMaxPriorityQueue.java` as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 374 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 `android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java:644` 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–10 lines × 14) android/guava/src/com/google/common/collect/MapMakerInternalMap.java:1507— android/guava/src/com/google/common/collect/MapMakerInternalMap.java:1507-1516 | android/guava/src/com/google/common/collect/MapMakerInternalMap.java:1627-1635 | android/guava/src/com/google/common/collect/MapMakerInternalMap.java:1674-1682 | android/guava/src/com/google/common/collect/MapMakerInternalMap.java:1717-1725 | android/guava/src/com/google/common/collect/MapMakerInternalMap.java:1757-1765 | android/guava/src/com/google/common/collect/MapMakerInternalMap.java:1872-1880 | android/guava/src/com/google/common/collect/MapMakerInternalMap.java:1908-1916 | guava/src/com/google/common/collect/MapMakerInternalMap.java:1507-1516 | guava/src/com/google/common/collect/MapMakerInternalMap.java:1627-1635 | guava/src/com/google/common/collect/MapMakerInternalMap.java:1674-1682 | guava/src/com/google/common/collect/MapMakerInternalMap.java:1717-1725 | guava/src/com/google/common/collect/MapMakerInternalMap.java:1757-1765 | guava/src/com/google/common/collect/MapMakerInternalMap.java:1872-1880 | guava/src/com/google/common/collect/MapMakerInternalMap.java:1908-1916 — before extracting anything, compare `android/guava/src/com/google/common/collect/MapMakerInternalMap.java` and `guava/src/com/google/common/collect/MapMakerInternalMap.java` as WHOLE FILES: this scan already matched 73 separate duplicated blocks between them, totalling at least 916 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 `android/guava/src/com/google/common/collect/MapMakerInternalMap.java:1507` 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 first that the copies are not typed on the same thing: the declarations holding them bind `key` to `K` in one and `Object` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `android/guava/src/com/google/common/collect/MapMakerInternalMap.java:1625` calls `preWriteCleanup` and `android/guava/src/com/google/common/collect/MapMakerInternalMap.java:1907` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (8–10 lines × 4) android/guava/src/com/google/common/collect/ImmutableMap.java:218— android/guava/src/com/google/common/collect/ImmutableMap.java:218-225 | android/guava/src/com/google/common/collect/ImmutableMap.java:253-260 | android/guava/src/com/google/common/collect/ImmutableMap.java:291-298 | android/guava/src/com/google/common/collect/ImmutableMap.java:332-341 — 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. Read the line range as the matched WINDOW rather than a finished unit: at `android/guava/src/com/google/common/collect/ImmutableMap.java:218` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `android/guava/src/com/google/common/collect/ImmutableMap.java:289` calls `checkEntryNotNull` and `android/guava/src/com/google/common/collect/ImmutableMap.java:251` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (8–9 lines × 11) android/guava/src/com/google/common/cache/LocalCache.java:2323— android/guava/src/com/google/common/cache/LocalCache.java:2323-2330 | android/guava/src/com/google/common/cache/LocalCache.java:2855-2862 | android/guava/src/com/google/common/cache/LocalCache.java:2914-2921 | android/guava/src/com/google/common/cache/LocalCache.java:2966-2973 | android/guava/src/com/google/common/cache/LocalCache.java:3010-3017 | guava/src/com/google/common/cache/LocalCache.java:2229-2237 | guava/src/com/google/common/cache/LocalCache.java:2413-2420 | guava/src/com/google/common/cache/LocalCache.java:2945-2952 | guava/src/com/google/common/cache/LocalCache.java:3004-3011 | guava/src/com/google/common/cache/LocalCache.java:3056-3063 | guava/src/com/google/common/cache/LocalCache.java:3100-3107 — before extracting anything, compare `android/guava/src/com/google/common/cache/LocalCache.java` and `guava/src/com/google/common/cache/LocalCache.java` as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1881 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 `android/guava/src/com/google/common/cache/LocalCache.java:2323` 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 (6–9 lines × 6) android/guava/src/com/google/common/cache/LocalCache.java:2729— android/guava/src/com/google/common/cache/LocalCache.java:2729-2737 | android/guava/src/com/google/common/cache/LocalCache.java:2866-2871 | android/guava/src/com/google/common/cache/LocalCache.java:2925-2930 | guava/src/com/google/common/cache/LocalCache.java:2819-2827 | guava/src/com/google/common/cache/LocalCache.java:2956-2961 | guava/src/com/google/common/cache/LocalCache.java:3015-3020 — before extracting anything, compare `android/guava/src/com/google/common/cache/LocalCache.java` and `guava/src/com/google/common/cache/LocalCache.java` as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1881 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 `android/guava/src/com/google/common/cache/LocalCache.java:2729` 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–9 lines × 5) android/guava/src/com/google/common/cache/LocalCache.java:2123— android/guava/src/com/google/common/cache/LocalCache.java:2123-2130 | android/guava/src/com/google/common/cache/LocalCache.java:2329-2337 | guava/src/com/google/common/cache/LocalCache.java:2127-2134 | guava/src/com/google/common/cache/LocalCache.java:2236-2243 | guava/src/com/google/common/cache/LocalCache.java:2419-2427 — before extracting anything, compare `android/guava/src/com/google/common/cache/LocalCache.java` and `guava/src/com/google/common/cache/LocalCache.java` as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1881 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 `android/guava/src/com/google/common/cache/LocalCache.java:2123` 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–9 lines × 4) android/guava/src/com/google/common/collect/ImmutableBiMap.java:165— android/guava/src/com/google/common/collect/ImmutableBiMap.java:165-172 | android/guava/src/com/google/common/collect/ImmutableBiMap.java:200-207 | android/guava/src/com/google/common/collect/ImmutableBiMap.java:238-245 | android/guava/src/com/google/common/collect/ImmutableBiMap.java:279-287 — 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. Read the line range as the matched WINDOW rather than a finished unit: at `android/guava/src/com/google/common/collect/ImmutableBiMap.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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `android/guava/src/com/google/common/collect/ImmutableBiMap.java:236` calls `checkEntryNotNull` and `android/guava/src/com/google/common/collect/ImmutableBiMap.java:198` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (6–8 lines × 12) android/guava/src/com/google/common/cache/LocalCache.java:2728— android/guava/src/com/google/common/cache/LocalCache.java:2728-2735 | android/guava/src/com/google/common/cache/LocalCache.java:2865-2870 | android/guava/src/com/google/common/cache/LocalCache.java:2924-2929 | android/guava/src/com/google/common/cache/LocalCache.java:2976-2981 | android/guava/src/com/google/common/cache/LocalCache.java:3020-3025 | android/guava/src/com/google/common/cache/LocalCache.java:3072-3077 | guava/src/com/google/common/cache/LocalCache.java:2818-2825 | guava/src/com/google/common/cache/LocalCache.java:2955-2960 | guava/src/com/google/common/cache/LocalCache.java:3014-3019 | guava/src/com/google/common/cache/LocalCache.java:3066-3071 | guava/src/com/google/common/cache/LocalCache.java:3110-3115 | guava/src/com/google/common/cache/LocalCache.java:3162-3167 — before extracting anything, compare `android/guava/src/com/google/common/cache/LocalCache.java` and `guava/src/com/google/common/cache/LocalCache.java` as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1881 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 `android/guava/src/com/google/common/cache/LocalCache.java:2728` 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 first that the copies are not typed on the same thing: the declarations holding them bind `key` to `K` in one and `Object` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (3–8 lines × 4) android/guava/src/com/google/common/hash/FarmHashFingerprint64.java:186— android/guava/src/com/google/common/hash/FarmHashFingerprint64.java:186-188 | android/guava/src/com/google/common/hash/Fingerprint2011.java:127-134 | guava/src/com/google/common/hash/FarmHashFingerprint64.java:186-188 | guava/src/com/google/common/hash/Fingerprint2011.java:127-134 — before extracting anything, compare `android/guava/src/com/google/common/hash/FarmHashFingerprint64.java` and `guava/src/com/google/common/hash/FarmHashFingerprint64.java` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 114 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 `android/guava/src/com/google/common/hash/Fingerprint2011.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. 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 × 8) android/guava/src/com/google/common/collect/TreeRangeSet.java:386— android/guava/src/com/google/common/collect/TreeRangeSet.java:386-392 | android/guava/src/com/google/common/collect/TreeRangeSet.java:419-425 | android/guava/src/com/google/common/collect/TreeRangeSet.java:798-804 | android/guava/src/com/google/common/collect/TreeRangeSet.java:831-837 | guava/src/com/google/common/collect/TreeRangeSet.java:386-392 | guava/src/com/google/common/collect/TreeRangeSet.java:419-425 | guava/src/com/google/common/collect/TreeRangeSet.java:798-804 | guava/src/com/google/common/collect/TreeRangeSet.java:831-837 — before extracting anything, compare `android/guava/src/com/google/common/collect/TreeRangeSet.java` and `guava/src/com/google/common/collect/TreeRangeSet.java` as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 494 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 `android/guava/src/com/google/common/collect/TreeRangeSet.java:386` 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 (6 lines × 8) android/guava/src/com/google/common/collect/TreeMultiset.java:784— android/guava/src/com/google/common/collect/TreeMultiset.java:784-790 | android/guava/src/com/google/common/collect/TreeMultiset.java:801-807 | android/guava/src/com/google/common/collect/TreeMultiset.java:841-846 | android/guava/src/com/google/common/collect/TreeMultiset.java:862-867 | guava/src/com/google/common/collect/TreeMultiset.java:796-802 | guava/src/com/google/common/collect/TreeMultiset.java:813-819 | guava/src/com/google/common/collect/TreeMultiset.java:853-858 | guava/src/com/google/common/collect/TreeMultiset.java:874-879 — before extracting anything, compare `android/guava/src/com/google/common/collect/TreeMultiset.java` and `guava/src/com/google/common/collect/TreeMultiset.java` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 678 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.
Duplicated block (5 lines × 18) android/guava/src/com/google/common/cache/LocalCache.java:2334— android/guava/src/com/google/common/cache/LocalCache.java:2334-2340 | android/guava/src/com/google/common/cache/LocalCache.java:2728-2734 | android/guava/src/com/google/common/cache/LocalCache.java:2865-2869 | android/guava/src/com/google/common/cache/LocalCache.java:2924-2928 | android/guava/src/com/google/common/cache/LocalCache.java:2976-2980 | android/guava/src/com/google/common/cache/LocalCache.java:3020-3024 | android/guava/src/com/google/common/cache/LocalCache.java:3072-3076 | android/guava/src/com/google/common/cache/LocalCache.java:3247-3251 | android/guava/src/com/google/common/cache/LocalCache.java:3289-3293 | guava/src/com/google/common/cache/LocalCache.java:2424-2430 | guava/src/com/google/common/cache/LocalCache.java:2818-2824 | guava/src/com/google/common/cache/LocalCache.java:2955-2959 | guava/src/com/google/common/cache/LocalCache.java:3014-3018 | guava/src/com/google/common/cache/LocalCache.java:3066-3070 | guava/src/com/google/common/cache/LocalCache.java:3110-3114 | guava/src/com/google/common/cache/LocalCache.java:3162-3166 | guava/src/com/google/common/cache/LocalCache.java:3337-3341 | guava/src/com/google/common/cache/LocalCache.java:3379-3383 — before extracting anything, compare `android/guava/src/com/google/common/cache/LocalCache.java` and `guava/src/com/google/common/cache/LocalCache.java` as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1881 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 `android/guava/src/com/google/common/cache/LocalCache.java:2334` 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 first that the copies are not typed on the same thing: the declarations holding them bind `key` to `K` in one and `Object` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (5 lines × 14) android/guava/src/com/google/common/primitives/Bytes.java:372— android/guava/src/com/google/common/primitives/Bytes.java:372-376 | android/guava/src/com/google/common/primitives/Chars.java:694-698 | android/guava/src/com/google/common/primitives/Doubles.java:721-725 | android/guava/src/com/google/common/primitives/Floats.java:704-708 | android/guava/src/com/google/common/primitives/Ints.java:787-791 | android/guava/src/com/google/common/primitives/Longs.java:845-849 | android/guava/src/com/google/common/primitives/Shorts.java:742-746 | guava/src/com/google/common/primitives/Bytes.java:372-376 | guava/src/com/google/common/primitives/Chars.java:694-698 | guava/src/com/google/common/primitives/Doubles.java:716-720 | guava/src/com/google/common/primitives/Floats.java:704-708 | guava/src/com/google/common/primitives/Ints.java:782-786 | guava/src/com/google/common/primitives/Longs.java:840-844 | guava/src/com/google/common/primitives/Shorts.java:742-746 — before extracting anything, compare `android/guava/src/com/google/common/primitives/Bytes.java` and `android/guava/src/com/google/common/primitives/Chars.java` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 77 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `android/guava/src/com/google/common/primitives/Bytes.java:372` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (5 lines × 6) android/guava/src/com/google/common/cache/LocalCache.java:3206— android/guava/src/com/google/common/cache/LocalCache.java:3206-3210 | android/guava/src/com/google/common/cache/LocalCache.java:3240-3244 | android/guava/src/com/google/common/cache/LocalCache.java:3282-3286 | guava/src/com/google/common/cache/LocalCache.java:3296-3300 | guava/src/com/google/common/cache/LocalCache.java:3330-3334 | guava/src/com/google/common/cache/LocalCache.java:3372-3376 — before extracting anything, compare `android/guava/src/com/google/common/cache/LocalCache.java` and `guava/src/com/google/common/cache/LocalCache.java` as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1881 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 `android/guava/src/com/google/common/cache/LocalCache.java:3206` 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 (4–5 lines × 4) android/guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java:139— android/guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java:139-143 | android/guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java:231-234 | guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java:139-143 | guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java:231-234 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 110 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 `android/guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java:139` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `android/guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java:137` calls `getOnlyElement`, `getMultiset`, `entrySet` and `android/guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java:231` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (85 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/AbstractCollectionTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/AbstractCollectionTester.java:1-85 | guava-testlib/src/com/google/common/collect/testing/AbstractCollectionTester.java:1-85 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/AbstractCollectionTester.java` and `guava-testlib/src/com/google/common/collect/testing/AbstractCollectionTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/AbstractCollectionTester.java:1` 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 (262 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/AbstractContainerTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/AbstractContainerTester.java:1-262 | guava-testlib/src/com/google/common/collect/testing/AbstractContainerTester.java:1-262 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/AbstractContainerTester.java` and `guava-testlib/src/com/google/common/collect/testing/AbstractContainerTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/AbstractContainerTester.java:1` 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 (206 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/SafeTreeSet.java:44— android/guava-testlib/src/com/google/common/collect/testing/SafeTreeSet.java:44-249 | guava-testlib/src/com/google/common/collect/testing/SafeTreeSet.java:44-249 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/SafeTreeSet.java` and `guava-testlib/src/com/google/common/collect/testing/SafeTreeSet.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. 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 (84 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/MultimapContainsKeyTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/google/MultimapContainsKeyTester.java:1-84 | guava-testlib/src/com/google/common/collect/testing/google/MultimapContainsKeyTester.java:1-84 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultimapContainsKeyTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultimapContainsKeyTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/google/MultimapContainsKeyTester.java:1` 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 (111 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/MultisetReadsTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/google/MultisetReadsTester.java:1-111 | guava-testlib/src/com/google/common/collect/testing/google/MultisetReadsTester.java:1-111 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultisetReadsTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultisetReadsTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/google/MultisetReadsTester.java:1` 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 (180 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/MultisetRemoveTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/google/MultisetRemoveTester.java:1-180 | guava-testlib/src/com/google/common/collect/testing/google/MultisetRemoveTester.java:1-180 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultisetRemoveTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultisetRemoveTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/google/MultisetRemoveTester.java:1` 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 (99 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/google/MultisetSetCountConditionallyTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/google/MultisetSetCountConditionallyTester.java:1-99 | guava-testlib/src/com/google/common/collect/testing/google/MultisetSetCountConditionallyTester.java:1-99 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/google/MultisetSetCountConditionallyTester.java` and `guava-testlib/src/com/google/common/collect/testing/google/MultisetSetCountConditionallyTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/google/MultisetSetCountConditionallyTester.java:1` 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 (87 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/AbstractListIndexOfTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/testers/AbstractListIndexOfTester.java:1-87 | guava-testlib/src/com/google/common/collect/testing/testers/AbstractListIndexOfTester.java:1-87 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/AbstractListIndexOfTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/AbstractListIndexOfTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/testers/AbstractListIndexOfTester.java:1` 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 (77 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionContainsTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionContainsTester.java:1-77 | guava-testlib/src/com/google/common/collect/testing/testers/CollectionContainsTester.java:1-77 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionContainsTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/CollectionContainsTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionContainsTester.java:1` 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 (192 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveAllTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveAllTester.java:1-192 | guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveAllTester.java:1-192 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveAllTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveAllTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveAllTester.java:1` 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 (127 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapPutIfAbsentTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapPutIfAbsentTester.java:1-127 | guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapPutIfAbsentTester.java:1-127 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapPutIfAbsentTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapPutIfAbsentTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapPutIfAbsentTester.java:1` 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 (162 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/ListAddAllAtIndexTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/testers/ListAddAllAtIndexTester.java:1-162 | guava-testlib/src/com/google/common/collect/testing/testers/ListAddAllAtIndexTester.java:1-162 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/ListAddAllAtIndexTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/ListAddAllAtIndexTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/testers/ListAddAllAtIndexTester.java:1` 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 (96 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/ListRemoveAtIndexTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/testers/ListRemoveAtIndexTester.java:1-96 | guava-testlib/src/com/google/common/collect/testing/testers/ListRemoveAtIndexTester.java:1-96 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/ListRemoveAtIndexTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/ListRemoveAtIndexTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/testers/ListRemoveAtIndexTester.java:1` 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 (88 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/MapContainsKeyTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/testers/MapContainsKeyTester.java:1-88 | guava-testlib/src/com/google/common/collect/testing/testers/MapContainsKeyTester.java:1-88 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/MapContainsKeyTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/MapContainsKeyTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/testers/MapContainsKeyTester.java:1` 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 (178 lines × 2) android/guava-testlib/src/com/google/common/collect/testing/testers/MapPutAllTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/testers/MapPutAllTester.java:1-178 | guava-testlib/src/com/google/common/collect/testing/testers/MapPutAllTester.java:1-178 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/MapPutAllTester.java` and `guava-testlib/src/com/google/common/collect/testing/testers/MapPutAllTester.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/testers/MapPutAllTester.java:1` 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 (99 lines × 4) android/guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapRemoveTester.java:1— android/guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapRemoveTester.java:1-106 | android/guava-testlib/src/com/google/common/collect/testing/testers/MapRemoveEntryTester.java:1-100 | guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapRemoveTester.java:1-106 | guava-testlib/src/com/google/common/collect/testing/testers/MapRemoveEntryTester.java:1-99 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapRemoveTester.java` and `android/guava-testlib/src/com/google/common/collect/testing/testers/MapRemoveEntryTester.java` as WHOLE FILES: 92% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `android/guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapRemoveTester.java:1` 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 (169 lines × 2) android/guava-testlib/src/com/google/common/util/concurrent/testing/TestingExecutors.java:1— android/guava-testlib/src/com/google/common/util/concurrent/testing/TestingExecutors.java:1-169 | guava-testlib/src/com/google/common/util/concurrent/testing/TestingExecutors.java:1-169 — before extracting anything, compare `android/guava-testlib/src/com/google/common/util/concurrent/testing/TestingExecutors.java` and `guava-testlib/src/com/google/common/util/concurrent/testing/TestingExecutors.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/util/concurrent/testing/TestingExecutors.java:1` 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 (92 lines × 2) android/guava/src/com/google/common/base/AbstractIterator.java:1— android/guava/src/com/google/common/base/AbstractIterator.java:1-92 | guava/src/com/google/common/base/AbstractIterator.java:1-92 — before extracting anything, compare `android/guava/src/com/google/common/base/AbstractIterator.java` and `guava/src/com/google/common/base/AbstractIterator.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava/src/com/google/common/base/AbstractIterator.java:1` 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 (446 lines × 2) android/guava/src/com/google/common/base/Functions.java:1— android/guava/src/com/google/common/base/Functions.java:1-446 | guava/src/com/google/common/base/Functions.java:1-446 — before extracting anything, compare `android/guava/src/com/google/common/base/Functions.java` and `guava/src/com/google/common/base/Functions.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava/src/com/google/common/base/Functions.java:1` 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 (11 lines × 6) android/guava/src/com/google/common/base/Internal.java:36— android/guava/src/com/google/common/base/Internal.java:36-46 | android/guava/src/com/google/common/collect/Internal.java:34-44 | android/guava/src/com/google/common/util/concurrent/Internal.java:34-44 | guava/src/com/google/common/base/Internal.java:36-46 | guava/src/com/google/common/collect/Internal.java:33-43 | guava/src/com/google/common/util/concurrent/Internal.java:33-43 — `android/guava/src/com/google/common/base/Internal.java` and `android/guava/src/com/google/common/collect/Internal.java` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 1 separate duplicated blocks between them, totalling at least 11 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `android/guava/src/com/google/common/base/Internal.java:34` calls `SuppressWarnings` and `android/guava/src/com/google/common/collect/Internal.java:25` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (17 lines × 6) android/guava/src/com/google/common/base/Java8Compatibility.java:28— android/guava/src/com/google/common/base/Java8Compatibility.java:28-44 | android/guava/src/com/google/common/hash/Java8Compatibility.java:26-42 | android/guava/src/com/google/common/io/Java8Compatibility.java:28-52 | guava/src/com/google/common/base/Java8Compatibility.java:28-44 | guava/src/com/google/common/hash/Java8Compatibility.java:26-42 | guava/src/com/google/common/io/Java8Compatibility.java:28-52 — `android/guava/src/com/google/common/base/Java8Compatibility.java` and `android/guava/src/com/google/common/hash/Java8Compatibility.java` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 1 separate duplicated blocks between them, totalling at least 25 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (113 lines × 2) android/guava/src/com/google/common/base/Platform.java:1— android/guava/src/com/google/common/base/Platform.java:1-117 | guava/src/com/google/common/base/Platform.java:1-113 — before extracting anything, compare `android/guava/src/com/google/common/base/Platform.java` and `guava/src/com/google/common/base/Platform.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava/src/com/google/common/base/Platform.java:1` 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 (1422 lines × 2) android/guava/src/com/google/common/base/Preconditions.java:118— android/guava/src/com/google/common/base/Preconditions.java:118-1539 | guava/src/com/google/common/base/Preconditions.java:118-1539 — before extracting anything, compare `android/guava/src/com/google/common/base/Preconditions.java` and `guava/src/com/google/common/base/Preconditions.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. 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 (442 lines × 2) android/guava/src/com/google/common/base/Verify.java:98— android/guava/src/com/google/common/base/Verify.java:98-539 | guava/src/com/google/common/base/Verify.java:98-539 — before extracting anything, compare `android/guava/src/com/google/common/base/Verify.java` and `guava/src/com/google/common/base/Verify.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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.
Duplicated block (177 lines × 2) android/guava/src/com/google/common/collect/AbstractIterator.java:1— android/guava/src/com/google/common/collect/AbstractIterator.java:1-177 | guava/src/com/google/common/collect/AbstractIterator.java:1-177 — before extracting anything, compare `android/guava/src/com/google/common/collect/AbstractIterator.java` and `guava/src/com/google/common/collect/AbstractIterator.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava/src/com/google/common/collect/AbstractIterator.java:1` 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 (98 lines × 2) android/guava/src/com/google/common/collect/AbstractListMultimap.java:47— android/guava/src/com/google/common/collect/AbstractListMultimap.java:47-144 | guava/src/com/google/common/collect/AbstractListMultimap.java:47-144 — before extracting anything, compare `android/guava/src/com/google/common/collect/AbstractListMultimap.java` and `guava/src/com/google/common/collect/AbstractListMultimap.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. 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 (184 lines × 2) android/guava/src/com/google/common/collect/AbstractNavigableMap.java:1— android/guava/src/com/google/common/collect/AbstractNavigableMap.java:1-184 | guava/src/com/google/common/collect/AbstractNavigableMap.java:1-184 — before extracting anything, compare `android/guava/src/com/google/common/collect/AbstractNavigableMap.java` and `guava/src/com/google/common/collect/AbstractNavigableMap.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava/src/com/google/common/collect/AbstractNavigableMap.java:1` 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 (269 lines × 2) android/guava/src/com/google/common/collect/ComparisonChain.java:1— android/guava/src/com/google/common/collect/ComparisonChain.java:1-269 | guava/src/com/google/common/collect/ComparisonChain.java:1-273 — before extracting anything, compare `android/guava/src/com/google/common/collect/ComparisonChain.java` and `guava/src/com/google/common/collect/ComparisonChain.java` as WHOLE FILES: 99% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava/src/com/google/common/collect/ComparisonChain.java:1` 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 (146 lines × 2) android/guava/src/com/google/common/collect/EmptyContiguousSet.java:36— android/guava/src/com/google/common/collect/EmptyContiguousSet.java:36-181 | guava/src/com/google/common/collect/EmptyContiguousSet.java:36-181 — before extracting anything, compare `android/guava/src/com/google/common/collect/EmptyContiguousSet.java` and `guava/src/com/google/common/collect/EmptyContiguousSet.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. 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 (79 lines × 4) android/guava/src/com/google/common/collect/ForwardingBlockingDeque.java:56— android/guava/src/com/google/common/collect/ForwardingBlockingDeque.java:56-134 | android/guava/src/com/google/common/util/concurrent/ForwardingBlockingDeque.java:54-132 | guava/src/com/google/common/collect/ForwardingBlockingDeque.java:56-134 | guava/src/com/google/common/util/concurrent/ForwardingBlockingDeque.java:54-132 — before extracting anything, compare `android/guava/src/com/google/common/collect/ForwardingBlockingDeque.java` and `android/guava/src/com/google/common/util/concurrent/ForwardingBlockingDeque.java` as WHOLE FILES: 93% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. 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 (204 lines × 2) android/guava/src/com/google/common/collect/ForwardingCollection.java:57— android/guava/src/com/google/common/collect/ForwardingCollection.java:57-260 | guava/src/com/google/common/collect/ForwardingCollection.java:57-260 — before extracting anything, compare `android/guava/src/com/google/common/collect/ForwardingCollection.java` and `guava/src/com/google/common/collect/ForwardingCollection.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. 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 (181 lines × 2) android/guava/src/com/google/common/collect/ForwardingList.java:66— android/guava/src/com/google/common/collect/ForwardingList.java:66-246 | guava/src/com/google/common/collect/ForwardingList.java:66-246 — before extracting anything, compare `android/guava/src/com/google/common/collect/ForwardingList.java` and `guava/src/com/google/common/collect/ForwardingList.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. 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 × 6) android/guava/src/com/google/common/collect/ForwardingListMultimap.java:41— android/guava/src/com/google/common/collect/ForwardingListMultimap.java:41-61 | android/guava/src/com/google/common/collect/ForwardingSetMultimap.java:41-66 | android/guava/src/com/google/common/collect/ForwardingSortedSetMultimap.java:42-65 | guava/src/com/google/common/collect/ForwardingListMultimap.java:41-61 | guava/src/com/google/common/collect/ForwardingSetMultimap.java:41-66 | guava/src/com/google/common/collect/ForwardingSortedSetMultimap.java:42-65 — before extracting anything, compare `android/guava/src/com/google/common/collect/ForwardingListMultimap.java` and `guava/src/com/google/common/collect/ForwardingListMultimap.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. 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 (257 lines × 2) android/guava/src/com/google/common/collect/ForwardingMultiset.java:54— android/guava/src/com/google/common/collect/ForwardingMultiset.java:54-310 | guava/src/com/google/common/collect/ForwardingMultiset.java:54-310 — before extracting anything, compare `android/guava/src/com/google/common/collect/ForwardingMultiset.java` and `guava/src/com/google/common/collect/ForwardingMultiset.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. 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 (140 lines × 2) android/guava/src/com/google/common/collect/SortedMultisets.java:39— android/guava/src/com/google/common/collect/SortedMultisets.java:39-178 | guava/src/com/google/common/collect/SortedMultisets.java:39-178 — before extracting anything, compare `android/guava/src/com/google/common/collect/SortedMultisets.java` and `guava/src/com/google/common/collect/SortedMultisets.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. 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 (190 lines × 2) android/guava/src/com/google/common/escape/Escapers.java:1— android/guava/src/com/google/common/escape/Escapers.java:1-190 | guava/src/com/google/common/escape/Escapers.java:1-190 — before extracting anything, compare `android/guava/src/com/google/common/escape/Escapers.java` and `guava/src/com/google/common/escape/Escapers.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava/src/com/google/common/escape/Escapers.java:1` 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 (298 lines × 2) android/guava/src/com/google/common/eventbus/EventBus.java:1— android/guava/src/com/google/common/eventbus/EventBus.java:1-298 | guava/src/com/google/common/eventbus/EventBus.java:1-301 — before extracting anything, compare `android/guava/src/com/google/common/eventbus/EventBus.java` and `guava/src/com/google/common/eventbus/EventBus.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava/src/com/google/common/eventbus/EventBus.java:1` 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 (151 lines × 2) android/guava/src/com/google/common/graph/ForwardingNetwork.java:1— android/guava/src/com/google/common/graph/ForwardingNetwork.java:1-151 | guava/src/com/google/common/graph/ForwardingNetwork.java:1-162 — before extracting anything, compare `android/guava/src/com/google/common/graph/ForwardingNetwork.java` and `guava/src/com/google/common/graph/ForwardingNetwork.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava/src/com/google/common/graph/ForwardingNetwork.java:1` 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 (120 lines × 2) android/guava/src/com/google/common/graph/NetworkBuilder.java:80— android/guava/src/com/google/common/graph/NetworkBuilder.java:80-199 | guava/src/com/google/common/graph/NetworkBuilder.java:80-199 — before extracting anything, compare `android/guava/src/com/google/common/graph/NetworkBuilder.java` and `guava/src/com/google/common/graph/NetworkBuilder.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. 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 (124 lines × 2) android/guava/src/com/google/common/graph/UndirectedMultiNetworkConnections.java:1— android/guava/src/com/google/common/graph/UndirectedMultiNetworkConnections.java:1-124 | guava/src/com/google/common/graph/UndirectedMultiNetworkConnections.java:1-124 — before extracting anything, compare `android/guava/src/com/google/common/graph/UndirectedMultiNetworkConnections.java` and `guava/src/com/google/common/graph/UndirectedMultiNetworkConnections.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava/src/com/google/common/graph/UndirectedMultiNetworkConnections.java:1` 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 (279 lines × 2) android/guava/src/com/google/common/hash/Funnels.java:1— android/guava/src/com/google/common/hash/Funnels.java:1-279 | guava/src/com/google/common/hash/Funnels.java:1-279 — before extracting anything, compare `android/guava/src/com/google/common/hash/Funnels.java` and `guava/src/com/google/common/hash/Funnels.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava/src/com/google/common/hash/Funnels.java:1` 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 (95 lines × 2) android/guava/src/com/google/common/hash/MacHashFunction.java:47— android/guava/src/com/google/common/hash/MacHashFunction.java:47-141 | guava/src/com/google/common/hash/MacHashFunction.java:47-141 — before extracting anything, compare `android/guava/src/com/google/common/hash/MacHashFunction.java` and `guava/src/com/google/common/hash/MacHashFunction.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava/src/com/google/common/hash/MacHashFunction.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. 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 (101 lines × 2) android/guava/src/com/google/common/io/Closeables.java:39— android/guava/src/com/google/common/io/Closeables.java:39-139 | guava/src/com/google/common/io/Closeables.java:39-139 — before extracting anything, compare `android/guava/src/com/google/common/io/Closeables.java` and `guava/src/com/google/common/io/Closeables.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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.
Duplicated block (125 lines × 2) android/guava/src/com/google/common/io/LittleEndianDataOutputStream.java:46— android/guava/src/com/google/common/io/LittleEndianDataOutputStream.java:46-170 | guava/src/com/google/common/io/LittleEndianDataOutputStream.java:46-170 — before extracting anything, compare `android/guava/src/com/google/common/io/LittleEndianDataOutputStream.java` and `guava/src/com/google/common/io/LittleEndianDataOutputStream.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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.
Duplicated block (316 lines × 2) android/guava/src/com/google/common/math/LinearTransformation.java:1— android/guava/src/com/google/common/math/LinearTransformation.java:1-316 | guava/src/com/google/common/math/LinearTransformation.java:1-316 — before extracting anything, compare `android/guava/src/com/google/common/math/LinearTransformation.java` and `guava/src/com/google/common/math/LinearTransformation.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava/src/com/google/common/math/LinearTransformation.java:1` 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 (215 lines × 2) android/guava/src/com/google/common/primitives/UnsignedLong.java:57— android/guava/src/com/google/common/primitives/UnsignedLong.java:57-271 | guava/src/com/google/common/primitives/UnsignedLong.java:57-271 — before extracting anything, compare `android/guava/src/com/google/common/primitives/UnsignedLong.java` and `guava/src/com/google/common/primitives/UnsignedLong.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. 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 (205 lines × 2) android/guava/src/com/google/common/util/concurrent/AbstractIdleService.java:1— android/guava/src/com/google/common/util/concurrent/AbstractIdleService.java:1-205 | guava/src/com/google/common/util/concurrent/AbstractIdleService.java:1-222 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/AbstractIdleService.java` and `guava/src/com/google/common/util/concurrent/AbstractIdleService.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava/src/com/google/common/util/concurrent/AbstractIdleService.java:1` 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 (426 lines × 2) android/guava/src/com/google/common/util/concurrent/FluentFuture.java:1— android/guava/src/com/google/common/util/concurrent/FluentFuture.java:1-427 | guava/src/com/google/common/util/concurrent/FluentFuture.java:1-426 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/FluentFuture.java` and `guava/src/com/google/common/util/concurrent/FluentFuture.java` as WHOLE FILES: 99% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava/src/com/google/common/util/concurrent/FluentFuture.java:1` 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 (147 lines × 2) android/guava/src/com/google/common/util/concurrent/TrustedListenableFutureTask.java:37— android/guava/src/com/google/common/util/concurrent/TrustedListenableFutureTask.java:37-183 | guava/src/com/google/common/util/concurrent/TrustedListenableFutureTask.java:37-183 — before extracting anything, compare `android/guava/src/com/google/common/util/concurrent/TrustedListenableFutureTask.java` and `guava/src/com/google/common/util/concurrent/TrustedListenableFutureTask.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava/src/com/google/common/util/concurrent/TrustedListenableFutureTask.java:37` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. 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 × 5) android/guava/src/com/google/common/collect/CompactLinkedHashMap.java:162— android/guava/src/com/google/common/collect/CompactLinkedHashMap.java:162-174 | android/guava/src/com/google/common/collect/CompactLinkedHashSet.java:178-190 | android/guava/src/com/google/common/collect/ObjectCountLinkedHashMap.java:139-150 | guava/src/com/google/common/collect/CompactLinkedHashMap.java:166-178 | guava/src/com/google/common/collect/CompactLinkedHashSet.java:180-192 — before extracting anything, compare `android/guava/src/com/google/common/collect/CompactLinkedHashMap.java` and `guava/src/com/google/common/collect/CompactLinkedHashMap.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 57 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.
Duplicated block (7 lines × 6) android/guava/src/com/google/common/collect/ImmutableRangeMap.java:395— android/guava/src/com/google/common/collect/ImmutableRangeMap.java:395-401 | android/guava/src/com/google/common/collect/TreeRangeMap.java:531-537 | android/guava/src/com/google/common/collect/TreeRangeMap.java:710-716 | guava/src/com/google/common/collect/ImmutableRangeMap.java:412-418 | guava/src/com/google/common/collect/TreeRangeMap.java:634-640 | guava/src/com/google/common/collect/TreeRangeMap.java:813-819 — before extracting anything, compare `android/guava/src/com/google/common/collect/ImmutableRangeMap.java` and `guava/src/com/google/common/collect/ImmutableRangeMap.java` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 194 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. 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 × 10) android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java:233— android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java:233-239 | android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java:251-257 | android/guava/src/com/google/common/collect/ImmutableSortedSet.java:210-216 | android/guava/src/com/google/common/collect/ImmutableSortedSet.java:242-248 | android/guava/src/com/google/common/collect/ImmutableSortedSet.java:261-267 | guava/src/com/google/common/collect/ImmutableSortedMultiset.java:213-219 | guava/src/com/google/common/collect/ImmutableSortedMultiset.java:231-237 | guava/src/com/google/common/collect/ImmutableSortedSet.java:215-221 | guava/src/com/google/common/collect/ImmutableSortedSet.java:247-253 | guava/src/com/google/common/collect/ImmutableSortedSet.java:266-272 — before extracting anything, compare `android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java` and `guava/src/com/google/common/collect/ImmutableSortedMultiset.java` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 91 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. 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 first that the copies are not typed on the same thing: the declarations holding them bind `elements` to `Iterable<? extends E>` in one and `Iterator<? extends E>` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java:267` calls `checkNotNull` and `android/guava/src/com/google/common/collect/ImmutableSortedSet.java:278` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (8 lines × 10) android/guava/src/com/google/common/collect/Synchronized.java:247— android/guava/src/com/google/common/collect/Synchronized.java:247-254 | android/guava/src/com/google/common/collect/Synchronized.java:411-418 | android/guava/src/com/google/common/collect/Synchronized.java:517-524 | android/guava/src/com/google/common/collect/Synchronized.java:706-713 | android/guava/src/com/google/common/collect/Synchronized.java:1116-1123 | guava/src/com/google/common/collect/Synchronized.java:291-298 | guava/src/com/google/common/collect/Synchronized.java:469-476 | guava/src/com/google/common/collect/Synchronized.java:575-582 | guava/src/com/google/common/collect/Synchronized.java:771-778 | guava/src/com/google/common/collect/Synchronized.java:1267-1274 — before extracting anything, compare `android/guava/src/com/google/common/collect/Synchronized.java` and `guava/src/com/google/common/collect/Synchronized.java` as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 249 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `android/guava/src/com/google/common/collect/Synchronized.java:705` calls `SuppressWarnings` and `android/guava/src/com/google/common/collect/Synchronized.java:410` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (5 lines × 16) android/guava/src/com/google/common/primitives/Booleans.java:272— android/guava/src/com/google/common/primitives/Booleans.java:272-276 | android/guava/src/com/google/common/primitives/Bytes.java:202-206 | android/guava/src/com/google/common/primitives/Chars.java:358-362 | android/guava/src/com/google/common/primitives/Doubles.java:359-363 | android/guava/src/com/google/common/primitives/Floats.java:356-360 | android/guava/src/com/google/common/primitives/Ints.java:414-418 | android/guava/src/com/google/common/primitives/Longs.java:497-501 | android/guava/src/com/google/common/primitives/Shorts.java:406-410 | guava/src/com/google/common/primitives/Booleans.java:272-276 | guava/src/com/google/common/primitives/Bytes.java:202-206 | guava/src/com/google/common/primitives/Chars.java:358-362 | guava/src/com/google/common/primitives/Doubles.java:359-363 | guava/src/com/google/common/primitives/Floats.java:356-360 | guava/src/com/google/common/primitives/Ints.java:414-418 | guava/src/com/google/common/primitives/Longs.java:497-501 | guava/src/com/google/common/primitives/Shorts.java:406-410 — before extracting anything, compare `android/guava/src/com/google/common/primitives/Booleans.java` and `android/guava/src/com/google/common/primitives/Bytes.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 72 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. 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 first that the copies are not typed on the same thing: the declarations holding them bind `array` to `boolean[]` in one and `byte[]` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (6 lines × 14) android/guava/src/com/google/common/primitives/Chars.java:469— android/guava/src/com/google/common/primitives/Chars.java:469-474 | android/guava/src/com/google/common/primitives/Doubles.java:452-457 | android/guava/src/com/google/common/primitives/Floats.java:449-454 | android/guava/src/com/google/common/primitives/Ints.java:496-501 | android/guava/src/com/google/common/primitives/Longs.java:580-585 | android/guava/src/com/google/common/primitives/Shorts.java:490-495 | android/guava/src/com/google/common/primitives/SignedBytes.java:212-217 | guava/src/com/google/common/primitives/Chars.java:469-474 | guava/src/com/google/common/primitives/Doubles.java:452-457 | guava/src/com/google/common/primitives/Floats.java:449-454 | guava/src/com/google/common/primitives/Ints.java:496-501 | guava/src/com/google/common/primitives/Longs.java:580-585 | guava/src/com/google/common/primitives/Shorts.java:490-495 | guava/src/com/google/common/primitives/SignedBytes.java:212-217 — before extracting anything, compare `android/guava/src/com/google/common/primitives/Chars.java` and `android/guava/src/com/google/common/primitives/Doubles.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 83 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: the declarations holding them bind `array` to `char[]` in one and `double[]` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
D4 · Code Duplication· Edited copy of a member (49 corresponding lines) · ×1
Edited copy of a member (49 corresponding lines) android/guava-testlib/src/com/google/common/collect/testing/MapTestSuiteBuilder.java:91— android/guava-testlib/src/com/google/common/collect/testing/MapTestSuiteBuilder.java:91-139 | guava-testlib/src/com/google/common/collect/testing/MapTestSuiteBuilder.java:113-161 — These two members are one piece of code written twice and then edited apart: 49 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (35 corresponding lines) · ×1
Edited copy of a member (35 corresponding lines) android/guava-testlib/src/com/google/common/collect/testing/google/MultimapTestSuiteBuilder.java:106— android/guava-testlib/src/com/google/common/collect/testing/google/MultimapTestSuiteBuilder.java:106-140 | guava-testlib/src/com/google/common/collect/testing/google/MultimapTestSuiteBuilder.java:107-141 — These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Duplicated block (12 lines × 3) android/guava-testlib/src/com/google/common/collect/testing/TestsForMapsInJavaUtil.java:175— android/guava-testlib/src/com/google/common/collect/testing/TestsForMapsInJavaUtil.java:175-186 | guava-testlib/src/com/google/common/collect/testing/TestsForMapsInJavaUtil.java:201-212 | guava-testlib/src/com/google/common/collect/testing/TestsForMapsInJavaUtil.java:225-236 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/TestsForMapsInJavaUtil.java` and `guava-testlib/src/com/google/common/collect/testing/TestsForMapsInJavaUtil.java` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 310 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 `android/guava-testlib/src/com/google/common/collect/testing/TestsForMapsInJavaUtil.java:175` 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 × 8) android/guava-testlib/src/com/google/common/collect/testing/TestStringMapGenerator.java:50— android/guava-testlib/src/com/google/common/collect/testing/TestStringMapGenerator.java:50-59 | android/guava-testlib/src/com/google/common/collect/testing/google/TestStringBiMapGenerator.java:52-61 | android/guava-testlib/src/com/google/common/collect/testing/google/TestStringListMultimapGenerator.java:67-76 | android/guava-testlib/src/com/google/common/collect/testing/google/TestStringSetMultimapGenerator.java:66-75 | guava-testlib/src/com/google/common/collect/testing/TestStringMapGenerator.java:50-59 | guava-testlib/src/com/google/common/collect/testing/google/TestStringBiMapGenerator.java:52-61 | guava-testlib/src/com/google/common/collect/testing/google/TestStringListMultimapGenerator.java:67-76 | guava-testlib/src/com/google/common/collect/testing/google/TestStringSetMultimapGenerator.java:66-75 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/TestStringMapGenerator.java` and `android/guava-testlib/src/com/google/common/collect/testing/google/TestStringBiMapGenerator.java` as WHOLE FILES: 83% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (9 lines × 6) android/guava-testlib/src/com/google/common/collect/testing/CollectionTestSuiteBuilder.java:56— android/guava-testlib/src/com/google/common/collect/testing/CollectionTestSuiteBuilder.java:56-64 | android/guava-testlib/src/com/google/common/collect/testing/ListTestSuiteBuilder.java:113-121 | android/guava-testlib/src/com/google/common/collect/testing/SetTestSuiteBuilder.java:79-87 | guava-testlib/src/com/google/common/collect/testing/CollectionTestSuiteBuilder.java:56-64 | guava-testlib/src/com/google/common/collect/testing/ListTestSuiteBuilder.java:115-123 | guava-testlib/src/com/google/common/collect/testing/SetTestSuiteBuilder.java:79-87 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/CollectionTestSuiteBuilder.java` and `guava-testlib/src/com/google/common/collect/testing/CollectionTestSuiteBuilder.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 3 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/CollectionTestSuiteBuilder.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. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (68 lines × 4) android/guava-testlib/src/com/google/common/collect/testing/TestEnumSetGenerator.java:1— android/guava-testlib/src/com/google/common/collect/testing/TestEnumSetGenerator.java:1-68 | android/guava-testlib/src/com/google/common/collect/testing/google/TestEnumMultisetGenerator.java:1-70 | guava-testlib/src/com/google/common/collect/testing/TestEnumSetGenerator.java:1-68 | guava-testlib/src/com/google/common/collect/testing/google/TestEnumMultisetGenerator.java:1-70 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/TestEnumSetGenerator.java` and `guava-testlib/src/com/google/common/collect/testing/TestEnumSetGenerator.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `android/guava-testlib/src/com/google/common/collect/testing/TestEnumSetGenerator.java:1` 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 (59 lines × 10) android/guava-testlib/src/com/google/common/collect/testing/TestStringCollectionGenerator.java:1— android/guava-testlib/src/com/google/common/collect/testing/TestStringCollectionGenerator.java:1-59 | android/guava-testlib/src/com/google/common/collect/testing/TestStringListGenerator.java:1-62 | android/guava-testlib/src/com/google/common/collect/testing/TestStringQueueGenerator.java:1-59 | android/guava-testlib/src/com/google/common/collect/testing/TestStringSetGenerator.java:1-69 | android/guava-testlib/src/com/google/common/collect/testing/google/TestStringMultisetGenerator.java:1-60 | guava-testlib/src/com/google/common/collect/testing/TestStringCollectionGenerator.java:1-59 | guava-testlib/src/com/google/common/collect/testing/TestStringListGenerator.java:1-62 | guava-testlib/src/com/google/common/collect/testing/TestStringQueueGenerator.java:1-59 | guava-testlib/src/com/google/common/collect/testing/TestStringSetGenerator.java:1-69 | guava-testlib/src/com/google/common/collect/testing/google/TestStringMultisetGenerator.java:1-60 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/TestStringCollectionGenerator.java` and `android/guava-testlib/src/com/google/common/collect/testing/TestStringQueueGenerator.java` as WHOLE FILES: 82% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `android/guava-testlib/src/com/google/common/collect/testing/TestStringCollectionGenerator.java:1` 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 × 8) android/guava-testlib/src/com/google/common/collect/testing/TestStringMapGenerator.java:39— android/guava-testlib/src/com/google/common/collect/testing/TestStringMapGenerator.java:39-46 | android/guava-testlib/src/com/google/common/collect/testing/google/TestStringBiMapGenerator.java:41-48 | android/guava-testlib/src/com/google/common/collect/testing/google/TestStringListMultimapGenerator.java:41-48 | android/guava-testlib/src/com/google/common/collect/testing/google/TestStringSetMultimapGenerator.java:40-47 | guava-testlib/src/com/google/common/collect/testing/TestStringMapGenerator.java:39-46 | guava-testlib/src/com/google/common/collect/testing/google/TestStringBiMapGenerator.java:41-48 | guava-testlib/src/com/google/common/collect/testing/google/TestStringListMultimapGenerator.java:41-48 | guava-testlib/src/com/google/common/collect/testing/google/TestStringSetMultimapGenerator.java:40-47 — before extracting anything, compare `android/guava-testlib/src/com/google/common/collect/testing/TestStringMapGenerator.java` and `android/guava-testlib/src/com/google/common/collect/testing/google/TestStringBiMapGenerator.java` as WHOLE FILES: 83% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. 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.
IC1 · Incompleteness & stubs· Empty method body · ×1
Empty method body — does nothing with its inputs guava-gwt/src-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/Platform.java:36— `restoreInterruptIfIsInterruptedException` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it.
P3 · Security & performance tooling· SAST runs, but gates no merge · ×1
SAST runs, but gates no merge — `scorecard.yml` run(s) a static-analysis scan, but no workflow that runs one is triggered by a pull request (or a merge queue, or an unfiltered push) — the scan fires on a schedule or a manual dispatch only. A vulnerable change therefore merges clean and is reported on the next scheduled run, by which time it is on the default branch and the only remedy is a follow-up fix. Add the pull-request trigger to the workflow that runs the scan so the finding arrives before the merge rather than after it.
Orphaned file android/guava/src/com/google/common/graph/DirectedGraphConnections.java:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file guava/src/com/google/common/graph/DirectedGraphConnections.java:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file android/guava/src/com/google/common/primitives/UnsignedLongs.java:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file android/guava-testlib/src/com/google/common/collect/testing/TestsForMapsInJavaUtil.java:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file android/guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file android/guava/src/com/google/common/primitives/Bytes.java:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file guava/src/com/google/common/math/StatsAccumulator.java:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file android/guava-testlib/src/com/google/common/collect/testing/TestsForSetsInJavaUtil.java:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file android/guava-testlib/src/com/google/common/collect/testing/testers/ListSubListTester.java:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file android/guava/src/com/google/common/collect/MapMaker.java:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file guava/src/com/google/common/collect/MapMaker.java:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file android/guava/src/com/google/common/eventbus/EventBus.java:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file android/guava/src/com/google/common/hash/HashCode.java:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file android/guava/src/com/google/common/math/PairedStats.java:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file guava/src/com/google/common/math/PairedStats.java:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file android/guava/src/com/google/common/collect/Cut.java:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file guava/src/com/google/common/collect/Cut.java:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file android/guava/src/com/google/common/hash/Murmur3_32HashFunction.java:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file guava/src/com/google/common/hash/Murmur3_32HashFunction.java:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file android/guava-testlib/src/com/google/common/collect/testing/google/SortedMultisetTestSuiteBuilder.java:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file guava/src/com/google/common/collect/TopKSelector.java:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file android/guava-testlib/src/com/google/common/collect/testing/MapTestSuiteBuilder.java:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file android/guava/src/com/google/common/collect/SortedLists.java:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file android/guava/src/com/google/common/util/concurrent/Service.java:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file android/guava/src/com/google/common/util/concurrent/SequentialExecutor.java:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Duplicated predicate android/guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java:243— `!(a instanceof NullMarked) && a.annotationType().isAnnotationPresent(TesterAnnotation.class)` appears character-identically in 2 files — android/guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java, guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate android/guava/src/com/google/common/util/concurrent/SequentialExecutor.java:147— `!(t instanceof RejectedExecutionException) || removed` appears character-identically in 2 files — android/guava/src/com/google/common/util/concurrent/SequentialExecutor.java, guava/src/com/google/common/util/concurrent/SequentialExecutor.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate android/guava/src/com/google/common/collect/RegularImmutableSortedSet.java:102— `!SortedIterables.hasSameComparator(comparator(), targets) || (targets.size() <= 1)` appears character-identically in 2 files — android/guava/src/com/google/common/collect/RegularImmutableSortedSet.java, guava/src/com/google/common/collect/RegularImmutableSortedSet.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate android/guava/src/com/google/common/collect/FilteredEntryMultimap.java:321— `!collection.isEmpty() && c.equals(collection)` appears character-identically in 2 files — android/guava/src/com/google/common/collect/FilteredEntryMultimap.java, guava/src/com/google/common/collect/FilteredEntryMultimap.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate android/guava/src/com/google/common/collect/TreeRangeSet.java:590— `!complementLowerBoundWindow.contains(Cut.belowAll()) || positiveRangesByLowerBound.containsKey(Cut.belowAll())` appears character-identically in 2 files — android/guava/src/com/google/common/collect/TreeRangeSet.java, guava/src/com/google/common/collect/TreeRangeSet.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate android/guava/src/com/google/common/base/Suppliers.java:273— `!duration.isNegative() && !duration.isZero()` appears character-identically in 2 files — android/guava/src/com/google/common/base/Suppliers.java, guava/src/com/google/common/base/Suppliers.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate android/guava/src/com/google/common/collect/AbstractBiMap.java:371— `!esDelegate.contains(object) || !(object instanceof Entry)` appears character-identically in 2 files — android/guava/src/com/google/common/collect/AbstractBiMap.java, guava/src/com/google/common/collect/AbstractBiMap.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate android/guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java:89— `!features.contains(implied) && impliedSet.add(implied)` appears character-identically in 2 files — android/guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java, guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate android/guava/src/com/google/common/io/Files.java:449— `!file.createNewFile() && !file.setLastModified(System.currentTimeMillis())` appears character-identically in 2 files — android/guava/src/com/google/common/io/Files.java, guava/src/com/google/common/io/Files.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate android/guava/src/com/google/common/collect/ImmutableRangeSet.java:667— `!fromInclusive && !toInclusive && Range.compareOrThrow(fromElement, toElement) == 0` appears character-identically in 2 files — android/guava/src/com/google/common/collect/ImmutableRangeSet.java, guava/src/com/google/common/collect/ImmutableRangeSet.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate android/guava/src/com/google/common/graph/Graphs.java:64— `!graph.isDirected() && numEdges >= graph.nodes().size()` appears character-identically in 2 files — android/guava/src/com/google/common/graph/Graphs.java, guava/src/com/google/common/graph/Graphs.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate android/guava/src/com/google/common/net/InetAddresses.java:307— `!hasSkip && delimiterCount + 1 != IPV6_PART_COUNT` appears character-identically in 2 files — android/guava/src/com/google/common/net/InetAddresses.java, guava/src/com/google/common/net/InetAddresses.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate android/guava/src/com/google/common/io/BaseEncoding.java:834— `!hitPadding && !alphabet.isValidPaddingStartPosition(readChars)` appears character-identically in 2 files — android/guava/src/com/google/common/io/BaseEncoding.java, guava/src/com/google/common/io/BaseEncoding.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate android/guava/src/com/google/common/io/BaseEncoding.java:842— `!hitPadding && (readChars == 1 || !alphabet.isValidPaddingStartPosition(readChars - 1))` appears character-identically in 2 files — android/guava/src/com/google/common/io/BaseEncoding.java, guava/src/com/google/common/io/BaseEncoding.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java:715— `!invokable.isPrivate() && !invokable.isSynthetic()` appears character-identically in 2 files — android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java, guava-testlib/src/com/google/common/testing/ClassSanityTester.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java:703— `!invokable.isPrivate() && !invokable.isSynthetic() && invokable.isStatic() && type.isSupertypeOf(invokable.getReturnType())` appears character-identically in 2 files — android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java, guava-testlib/src/com/google/common/testing/ClassSanityTester.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate android/guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java:226— `!isPossibleChainingCall || wrapper != actualReturnValue` appears character-identically in 2 files — android/guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java, guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate android/guava/src/com/google/common/reflect/Invokable.java:163— `!isPrivate() && !isPublic() && !isProtected()` appears character-identically in 2 files — android/guava/src/com/google/common/reflect/Invokable.java, guava/src/com/google/common/reflect/Invokable.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate android/guava/src/com/google/common/base/PairwiseEquivalence.java:44— `!iteratorA.hasNext() && !iteratorB.hasNext()` appears character-identically in 2 files — android/guava/src/com/google/common/base/PairwiseEquivalence.java, guava/src/com/google/common/base/PairwiseEquivalence.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate android/guava/src/com/google/common/collect/TreeRangeSet.java:750— `!lowerBoundWindow.contains(cut) || cut.compareTo(restriction.lowerBound) < 0 || cut.compareTo(restriction.upperBound) >= 0` appears character-identically in 2 files — android/guava/src/com/google/common/collect/TreeRangeSet.java, guava/src/com/google/common/collect/TreeRangeSet.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate android/guava/src/com/google/common/cache/LocalCache.java:1996— `!map.customWeigher() && this.threshold == maxSegmentWeight` appears character-identically in 2 files — android/guava/src/com/google/common/cache/LocalCache.java, guava/src/com/google/common/cache/LocalCache.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate android/guava-testlib/src/com/google/common/testing/NullPointerTester.java:339— `!method.isSynthetic() && isVisible(method)` appears character-identically in 2 files — android/guava-testlib/src/com/google/common/testing/NullPointerTester.java, guava-testlib/src/com/google/common/testing/NullPointerTester.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate android/guava/src/com/google/common/graph/Graphs.java:87— `!network.isDirected() && network.allowsParallelEdges() && network.edges().size() > network.asGraph().edges().size()` appears character-identically in 2 files — android/guava/src/com/google/common/graph/Graphs.java, guava/src/com/google/common/graph/Graphs.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate android/guava/src/com/google/common/net/MediaType.java:1174— `!normalizedType.equals(WILDCARD) || normalizedSubtype.equals(WILDCARD)` appears character-identically in 2 files — android/guava/src/com/google/common/net/MediaType.java, guava/src/com/google/common/net/MediaType.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate android/guava/src/com/google/common/base/MoreObjects.java:388— `!omitEmptyValuesSnapshot || !isEmpty(value)` appears character-identically in 2 files — android/guava/src/com/google/common/base/MoreObjects.java, guava/src/com/google/common/base/MoreObjects.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Fat interface: Multimap<K, V> (20 abstract methods) guava/src/com/google/common/collect/Multimap.java:166— `Multimap<K, V>` declares 20 abstract methods: `asMap`, `clear`, `containsEntry`, `containsKey`, `containsValue`, `entries`, `equals`, `get`, `hashCode`, `isEmpty`, `keySet`, `keys`, `put`, `putAll`, `putAll`, `remove`, `removeAll`, `replaceValues`, `size`, `values`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. Those 20 declarations carry 19 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 19 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
Fat interface: Multiset<E> (18 abstract methods) guava/src/com/google/common/collect/Multiset.java:95— `Multiset<E>` declares 18 abstract methods under just 15 distinct name(s): `add`, `add`, `contains`, `containsAll`, `count`, `elementSet`, `entrySet`, `equals`, `hashCode`, `iterator`, `remove`, `remove`, `removeAll`, `retainAll`, `setCount`, `setCount`, `size`, `toString`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. That is an OVERLOAD SET, not 18 separate responsibilities: a caller binds to 15 operation(s) and uses the overload it selected, so the Interface-Segregation harm does NOT apply on the caller's side and splitting this into role-interfaces would scatter one operation without relieving anything. The burden that does remain is the IMPLEMENTER's — all 18 signatures must be written and kept in step. Reduce it by collapsing overloads (optional or default parameters, or an options object) rather than by segregating the interface.
Fat interface: RangeSet<C> (19 abstract methods) guava/src/com/google/common/collect/RangeSet.java:54— `RangeSet<C>` declares 19 abstract methods: `add`, `addAll`, `asDescendingSetOfRanges`, `asRanges`, `clear`, `complement`, `contains`, `encloses`, `enclosesAll`, `equals`, `hashCode`, `intersects`, `isEmpty`, `rangeContaining`, `remove`, `removeAll`, `span`, `subRangeSet`, `toString`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
Fat interface: Table<R, C, V> (21 abstract methods) guava/src/com/google/common/collect/Table.java:68— `Table<R, C, V>` declares 21 abstract methods: `cellSet`, `clear`, `column`, `columnKeySet`, `columnMap`, `contains`, `containsColumn`, `containsRow`, `containsValue`, `equals`, `get`, `hashCode`, `isEmpty`, `put`, `putAll`, `remove`, `row`, `rowKeySet`, `rowMap`, `size`, `values`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
Fat interface: Graph<N> (17 abstract methods) guava/src/com/google/common/graph/Graph.java:104— `Graph<N>` declares 17 abstract methods: `adjacentNodes`, `allowsSelfLoops`, `degree`, `edges`, `equals`, `hasEdgeConnecting`, `hasEdgeConnecting`, `hashCode`, `inDegree`, `incidentEdgeOrder`, `incidentEdges`, `isDirected`, `nodeOrder`, `nodes`, `outDegree`, `predecessors`, `successors`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. Those 17 declarations carry 16 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 16 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
Fat interface: Network<N, E> (22 abstract methods) guava/src/com/google/common/graph/Network.java:107— `Network<N, E>` declares 22 abstract methods: `adjacentEdges`, `allowsParallelEdges`, `asGraph`, `degree`, `edgeConnecting`, `edgeConnecting`, `edgeConnectingOrNull`, `edgeConnectingOrNull`, `edgeOrder`, `edges`, `edgesConnecting`, `edgesConnecting`, `equals`, `hasEdgeConnecting`, `hasEdgeConnecting`, `hashCode`, `inDegree`, `inEdges`, `incidentEdges`, `incidentNodes`, `outDegree`, `outEdges`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. Those 22 declarations carry 18 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 18 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
Fat interface: ValueGraph<N, V> (22 abstract methods) guava/src/com/google/common/graph/ValueGraph.java:109— `ValueGraph<N, V>` declares 22 abstract methods: `adjacentNodes`, `allowsSelfLoops`, `asGraph`, `degree`, `edgeValue`, `edgeValue`, `edgeValueOrDefault`, `edgeValueOrDefault`, `edges`, `equals`, `hasEdgeConnecting`, `hasEdgeConnecting`, `hashCode`, `inDegree`, `incidentEdgeOrder`, `incidentEdges`, `isDirected`, `nodeOrder`, `nodes`, `outDegree`, `predecessors`, `successors`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. Those 22 declarations carry 19 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 19 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
Fat interface: Hasher (16 abstract methods) guava/src/com/google/common/hash/Hasher.java:57— `Hasher` declares 16 abstract methods under just 14 distinct name(s): `hash`, `hashCode`, `putBoolean`, `putByte`, `putBytes`, `putBytes`, `putBytes`, `putChar`, `putDouble`, `putFloat`, `putInt`, `putLong`, `putObject`, `putShort`, `putString`, `putUnencodedChars`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. That is an OVERLOAD SET, not 16 separate responsibilities: a caller binds to 14 operation(s) and uses the overload it selected, so the Interface-Segregation harm does NOT apply on the caller's side and splitting this into role-interfaces would scatter one operation without relieving anything. The burden that does remain is the IMPLEMENTER's — all 16 signatures must be written and kept in step. Reduce it by collapsing overloads (optional or default parameters, or an options object) rather than by segregating the interface.
Fat interface: Multimap<K, V> (20 abstract methods) android/guava/src/com/google/common/collect/Multimap.java:163— `Multimap<K, V>` declares 20 abstract methods: `asMap`, `clear`, `containsEntry`, `containsKey`, `containsValue`, `entries`, `equals`, `get`, `hashCode`, `isEmpty`, `keySet`, `keys`, `put`, `putAll`, `putAll`, `remove`, `removeAll`, `replaceValues`, `size`, `values`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. Those 20 declarations carry 19 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 19 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
Fat interface: Multiset<E> (18 abstract methods) android/guava/src/com/google/common/collect/Multiset.java:90— `Multiset<E>` declares 18 abstract methods under just 15 distinct name(s): `add`, `add`, `contains`, `containsAll`, `count`, `elementSet`, `entrySet`, `equals`, `hashCode`, `iterator`, `remove`, `remove`, `removeAll`, `retainAll`, `setCount`, `setCount`, `size`, `toString`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. That is an OVERLOAD SET, not 18 separate responsibilities: a caller binds to 15 operation(s) and uses the overload it selected, so the Interface-Segregation harm does NOT apply on the caller's side and splitting this into role-interfaces would scatter one operation without relieving anything. The burden that does remain is the IMPLEMENTER's — all 18 signatures must be written and kept in step. Reduce it by collapsing overloads (optional or default parameters, or an options object) rather than by segregating the interface.
Fat interface: RangeSet<C> (22 abstract methods) android/guava/src/com/google/common/collect/RangeSet.java:54— `RangeSet<C>` declares 22 abstract methods: `add`, `addAll`, `addAll`, `asDescendingSetOfRanges`, `asRanges`, `clear`, `complement`, `contains`, `encloses`, `enclosesAll`, `enclosesAll`, `equals`, `hashCode`, `intersects`, `isEmpty`, `rangeContaining`, `remove`, `removeAll`, `removeAll`, `span`, `subRangeSet`, `toString`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. Those 22 declarations carry 19 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 19 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
Fat interface: Table<R, C, V> (21 abstract methods) android/guava/src/com/google/common/collect/Table.java:68— `Table<R, C, V>` declares 21 abstract methods: `cellSet`, `clear`, `column`, `columnKeySet`, `columnMap`, `contains`, `containsColumn`, `containsRow`, `containsValue`, `equals`, `get`, `hashCode`, `isEmpty`, `put`, `putAll`, `remove`, `row`, `rowKeySet`, `rowMap`, `size`, `values`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
Fat interface: Graph<N> (17 abstract methods) android/guava/src/com/google/common/graph/Graph.java:104— `Graph<N>` declares 17 abstract methods: `adjacentNodes`, `allowsSelfLoops`, `degree`, `edges`, `equals`, `hasEdgeConnecting`, `hasEdgeConnecting`, `hashCode`, `inDegree`, `incidentEdgeOrder`, `incidentEdges`, `isDirected`, `nodeOrder`, `nodes`, `outDegree`, `predecessors`, `successors`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. Those 17 declarations carry 16 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 16 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
Fat interface: Network<N, E> (20 abstract methods) android/guava/src/com/google/common/graph/Network.java:106— `Network<N, E>` declares 20 abstract methods: `adjacentEdges`, `allowsParallelEdges`, `asGraph`, `degree`, `edgeConnectingOrNull`, `edgeConnectingOrNull`, `edgeOrder`, `edges`, `edgesConnecting`, `edgesConnecting`, `equals`, `hasEdgeConnecting`, `hasEdgeConnecting`, `hashCode`, `inDegree`, `inEdges`, `incidentEdges`, `incidentNodes`, `outDegree`, `outEdges`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. Those 20 declarations carry 17 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 17 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
Fat interface: ValueGraph<N, V> (20 abstract methods) android/guava/src/com/google/common/graph/ValueGraph.java:108— `ValueGraph<N, V>` declares 20 abstract methods: `adjacentNodes`, `allowsSelfLoops`, `asGraph`, `degree`, `edgeValueOrDefault`, `edgeValueOrDefault`, `edges`, `equals`, `hasEdgeConnecting`, `hasEdgeConnecting`, `hashCode`, `inDegree`, `incidentEdgeOrder`, `incidentEdges`, `isDirected`, `nodeOrder`, `nodes`, `outDegree`, `predecessors`, `successors`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. Those 20 declarations carry 18 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 18 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
Fat interface: Hasher (16 abstract methods) android/guava/src/com/google/common/hash/Hasher.java:57— `Hasher` declares 16 abstract methods under just 14 distinct name(s): `hash`, `hashCode`, `putBoolean`, `putByte`, `putBytes`, `putBytes`, `putBytes`, `putChar`, `putDouble`, `putFloat`, `putInt`, `putLong`, `putObject`, `putShort`, `putString`, `putUnencodedChars`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. That is an OVERLOAD SET, not 16 separate responsibilities: a caller binds to 14 operation(s) and uses the overload it selected, so the Interface-Segregation harm does NOT apply on the caller's side and splitting this into role-interfaces would scatter one operation without relieving anything. The burden that does remain is the IMPLEMENTER's — all 16 signatures must be written and kept in step. Reduce it by collapsing overloads (optional or default parameters, or an options object) rather than by segregating the interface.
Documentation: no installation or build instructions README.md— The 'Adding Guava to your build' section shows Maven/Gradle dependency syntax but does not explain how to add a flavor for Android or what happens when you do so. Add an install note on the Android flavor and what changes occur (e.g. new Android directory, different version) when it is selected.
Documentation: no usage examples README.md— The body does not show how to run a Guava example or invoke a method. Add a short usage section with an invocation example (e.g. `Multiset.newCopy()`).
Disabled test android/guava-testlib/test/com/google/common/collect/testing/MyTester.java:31— A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
Disabled test guava-testlib/test/com/google/common/collect/testing/MyTester.java:31— A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
IC1 · Incompleteness & stubs· Member throws NotSupportedException · ×2
Member throws NotSupportedException guava-gwt/src-super/com/google/common/base/super/com/google/common/base/Platform.java:57— `compilePattern`'s body only throws NotSupportedException — sometimes a deliberate contract, often an unfinished stub. Confirm it's intentional.
Member throws NotSupportedException guava-gwt/src-super/com/google/common/base/super/com/google/common/base/Platform.java:61— `patternCompilerIsPcreLike`'s body only throws NotSupportedException — sometimes a deliberate contract, often an unfinished stub. Confirm it's intentional.
Off-boarding risk: anonymized user #1 — If anonymized user #1 becomes unavailable, 254 significant file(s) lose their only recent owner: android/guava/src/com/google/common/cache/LocalCache.java, guava/src/com/google/common/util/concurrent/ClosingFuture.java, android/guava/src/com/google/common/util/concurrent/ClosingFuture.java, android/guava/src/com/google/common/collect/MapMakerInternalMap.java, guava/src/com/google/common/collect/MapMakerInternalMap.java, guava/src/com/google/common/collect/Synchronized.java, android/guava/src/com/google/common/collect/ImmutableSortedMap.java, android/guava/src/com/google/common/collect/Synchronized.java (+246 more). Pair on, review, or document these before any departure.
D16 · Bus Factor· Further sole-owners (lower concentration) · ×1
Further sole-owners (lower concentration) — 4 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold — folded into the bus-factor score and metrics (260 single-owned of 1382 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated and example/demo trees and test files identified by path convention, largest first; 1382 of the 1983 production source files in this repository met that bar). They are anonymized user #2 (2 file(s)), anonymized user #3 (2 file(s)), anonymized user #4 (1 file(s)), anonymized user #5 (1 file(s)) — spread or document their files in the same way, at lower priority than the named off-boarding risks above. The files folded here: android/guava/src/com/google/common/net/HostSpecifier.java, guava/src/com/google/common/net/HostSpecifier.java, android/guava/src/com/google/common/util/concurrent/Atomics.java, guava/src/com/google/common/util/concurrent/Atomics.java, android/guava/src/com/google/common/cache/AbstractCache.java, android/guava/src/com/google/common/reflect/Parameter.java.
No ADRs found — No ADRs found. No recognised ADR directory (`docs/adr/`, `docs/decisions/`, `adr/`, `docs/rfcs/`, an `ADR0001/` folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (`docs/adr/use-postgres.md`, `docs/adr/2024/0001-x.md`); or a file anywhere whose name is ADR-shaped (`0001-use-postgres.md`, `adr-012-caching.md`); or, when neither turned anything up, a document carrying the decision-record signature (an "Architecture Decision Record" heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these — unnumbered files outside any recognised directory, without those headings — is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in `docs/adr/`.
D26 · Project Cohesion· Projects may be oversized for their cohesion · ×1
Projects may be oversized for their cohesion — 4 of 7 project(s) overshoot their size bounds, lowering Project Cohesion to 0.0/10. The most over is `guava` (162110 LoC, 431 module-visible types across 18 directories). Review these for cohesion — draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers.
D34 · Knowledge Freshness· Further orphaned files (smaller) · ×1
Further orphaned files (smaller) — 362 smaller file(s) also have no living knowledge — folded into the freshness score and metrics rather than raised one row each — most significant first: android/guava/src/com/google/common/graph/DirectedGraphConnections.java, guava/src/com/google/common/graph/DirectedGraphConnections.java, android/guava/src/com/google/common/primitives/UnsignedLongs.java, android/guava-testlib/src/com/google/common/collect/testing/TestsForMapsInJavaUtil.java, android/guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java, android/guava/src/com/google/common/primitives/Bytes.java, guava/src/com/google/common/math/StatsAccumulator.java, android/guava-testlib/src/com/google/common/collect/testing/TestsForSetsInJavaUtil.java (and 354 more) (378 orphaned of 1382 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated and example/demo trees and test files identified by path convention, largest first; 1382 of the 1983 production source files in this repository met that bar). Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway.
IC1 · Incompleteness & stubs· Empty method body · ×1
Empty method body guava-gwt/src-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/Platform.java:38— `interruptCurrentThread` has an empty body — confirm it's an intentional no-op and not an unfinished method.
No ADRs — No Architecture Decision Records found — no conventional ADR directory, no numbered `NNNN-title` documents in any markup this check reads, 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.
M2 · Architecture documentation· No architecture diagram/doc · ×1
No architecture diagram/doc — No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named `architecture` or `design` in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape — no `## Architecture` heading, no "architecture overview"/"high-level design" phrasing, no "the architecture is …" introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document — not evidence that nobody wrote the shape down.
No changelog — 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.)
X5 · Nullable reference types· Java packages are not null-marked everywhere · ×1
Java packages are not null-marked everywhere — 33/57 of this repository's Java package directories are under a non-null default: a `package-info.java` declaring `@NullMarked` (JSpecify) or `@NonNullApi`, `@ParametersAreNonnullByDefault`, `@NonNullByDefault`, `@DefaultQualifier(NonNull.class)`; a `module-info.java` declaring `@NullMarked`; every type in it `@NullMarked`; or a build that runs NullAway with the package in `AnnotatedPackages`, or the Checker Framework's `NullnessChecker`. Elsewhere every reference admits null and no checker warns on the dereference that throws a `NullPointerException`.
Appendix B — Reproduction & audit trail
Every external tool invocation behind a deep-scan dimension — the tool, its captured version, the exact command, how many findings it yielded, and a link to the retained raw output. To reproduce any finding: check out the same commit and run the command shown (repo-relative — never an absolute scratch path). The complete raw scanner output is retained verbatim under artifacts/raw/ (indexed in artifacts/raw/index.json); per-invocation exit codes and wall-clock durations are in sidecar.json — kept out of this table so the rendered report stays byte-identical across runs of the same commit.
trivy: not applicable — No Infrastructure-as-Code or container manifests found (Dockerfile, Docker Compose, Terraform, Kubernetes/Helm, CloudFormation, ARM, Bicep, Ansible); nothing to scan.
semgrep: not applicable — No personal data was found crossing a boundary the PII/GDPR ruleset checks — nothing written to a log or console sink, placed in a URL or query string, or persisted to browser storage. That is a clean result for the LEAK surface only: this ruleset detects personal data escaping, it does not inventory the personal data a repository holds, so it is not evidence that this repository has no personal-data surface. The personal-data map (Appendix C) and the C1-C5 compliance cards are what speak to that. semgrep could not parse 11 file(s) — `android/guava/src/com/google/common/base/Objects.java`, `android/guava/src/com/google/common/base/Platform.java`, `android/guava/src/com/google/common/base/Preconditions.java`, `android/guava/src/com/google/common/base/Strings.java`, `android/guava/src/com/google/common/base/Verify.java`, … (+6 more) — so the PII/GDPR sweep did not cover the unparsed regions of them; rows reported elsewhere in those files are real.
disclosure: not applicable — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.
runtime-hardening: not applicable — 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.
runtime-hardening: not applicable — 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.
runtime-hardening: not applicable — 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.
Run 01a16c06-a1df-7251-a7f2-64dd84f51e7b · every finding is also locatable in findings.md, and the complete scoring record (with exit codes + durations) in sidecar.json.
Issues: 20 · Warnings: 5269 · Recommendations: 421 — Appendix A · all findings · full markdown report.
Generated by Watchdog — deterministic code-health analysis. 24-10-2026 @ 03:48 UTC.
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.