{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"D11","name":"Test Reliability","shortDescription":{"text":"Test Reliability"},"helpUri":"https://codehealth.canine.dev/dimensions/D11"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX6","name":"Interface segregation","shortDescription":{"text":"Interface segregation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX6"},{"id":"AXB1","name":"Runtime evidence locked \u2014 no reproducible boot","shortDescription":{"text":"Runtime evidence locked \u2014 no reproducible boot"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB1"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"IC1","name":"Incompleteness \u0026 stubs","shortDescription":{"text":"Incompleteness \u0026 stubs"},"helpUri":"https://codehealth.canine.dev/dimensions/IC1"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X16","name":"Unfloored truncation loop","shortDescription":{"text":"Unfloored truncation loop"},"helpUri":"https://codehealth.canine.dev/dimensions/X16"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"id":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"JsonReader.doPeek (cyclomatic 41): JsonReader.doPeek has cyclomatic complexity 41 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: gson/src/main/java/com/google/gson/stream/JsonReader.java holds 6 of the 12 methods over the threshold \u2014 including the worst \u2014 and 71 of the 110 points over it (65%), 5.1\u00D7 the next-largest file (gson/src/main/java/com/google/gson/internal/bind/util/ISO8601Utils.java at 14). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/stream/JsonReader.java"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"128518137b0c74f3d08854b434e8a7d81eb3bd5df6ecb70341646b715138e2c9"}},{"ruleId":"D1","level":"warning","message":{"text":"JsonReader.peekNumber (cyclomatic 36): JsonReader.peekNumber has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: gson/src/main/java/com/google/gson/stream/JsonReader.java holds 6 of the 12 methods over the threshold \u2014 including the worst \u2014 and 71 of the 110 points over it (65%), 5.1\u00D7 the next-largest file (gson/src/main/java/com/google/gson/internal/bind/util/ISO8601Utils.java at 14). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/stream/JsonReader.java"},"region":{"startLine":815}}}],"partialFingerprints":{"codehealthFindingId/v1":"23e67c83376919b7fae2da7e68c10523c08c68945ed76a7bbd0a02609143f46d"}},{"ruleId":"D1","level":"warning","message":{"text":"ISO8601Utils.parse (cyclomatic 29): ISO8601Utils.parse has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/internal/bind/util/ISO8601Utils.java"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffaa6ff57c7e6c4031dc3a7893ad5897c255e683f022e7817d1760d6144d3739"}},{"ruleId":"D1","level":"warning","message":{"text":"JsonReader.readEscapeCharacter (cyclomatic 25): JsonReader.readEscapeCharacter has cyclomatic complexity 25 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: gson/src/main/java/com/google/gson/stream/JsonReader.java holds 6 of the 12 methods over the threshold \u2014 including the worst \u2014 and 71 of the 110 points over it (65%), 5.1\u00D7 the next-largest file (gson/src/main/java/com/google/gson/internal/bind/util/ISO8601Utils.java at 14). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/stream/JsonReader.java"},"region":{"startLine":1873}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e692ceadcb92c15ed216bb135d09f0989d7d9a5c46a9642bdf0b4ce01bd893a"}},{"ruleId":"D1","level":"warning","message":{"text":"GsonTypes.resolve (cyclomatic 24): GsonTypes.resolve has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/internal/GsonTypes.java"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"54c382ce018c5eec9771280dc9143981435abb3d12d3dcc25cedae75ec2b7d90"}},{"ruleId":"D1","level":"warning","message":{"text":"JsonReader.nextUnquotedValue (cyclomatic 24): JsonReader.nextUnquotedValue has cyclomatic complexity 24 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: gson/src/main/java/com/google/gson/stream/JsonReader.java holds 6 of the 12 methods over the threshold \u2014 including the worst \u2014 and 71 of the 110 points over it (65%), 5.1\u00D7 the next-largest file (gson/src/main/java/com/google/gson/internal/bind/util/ISO8601Utils.java at 14). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/stream/JsonReader.java"},"region":{"startLine":1287}}}],"partialFingerprints":{"codehealthFindingId/v1":"92620de0d658b1f4bafe43a9f513c43ee63eeccdc6244bbdf545affc68ff0f6c"}},{"ruleId":"D1","level":"warning","message":{"text":"LinkedTreeMap.rebalance (cyclomatic 22): LinkedTreeMap.rebalance 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/internal/LinkedTreeMap.java"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8495b3f74c814b7d2aed622a2063a98b0e0628cea757f17bc66a961049bee9d"}},{"ruleId":"D1","level":"warning","message":{"text":"ReflectiveTypeAdapterFactory.getBoundFields (cyclomatic 21): ReflectiveTypeAdapterFactory.getBoundFields 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/internal/bind/ReflectiveTypeAdapterFactory.java"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"c863212e355777b473af038eee81427e527e2c3d1fc506f9b46ae072869b22de"}},{"ruleId":"D1","level":"warning","message":{"text":"JsonReader.skipValue (cyclomatic 19): JsonReader.skipValue has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: gson/src/main/java/com/google/gson/stream/JsonReader.java holds 6 of the 12 methods over the threshold \u2014 including the worst \u2014 and 71 of the 110 points over it (65%), 5.1\u00D7 the next-largest file (gson/src/main/java/com/google/gson/internal/bind/util/ISO8601Utils.java at 14). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/stream/JsonReader.java"},"region":{"startLine":1506}}}],"partialFingerprints":{"codehealthFindingId/v1":"b86078673621c217aaed2e9433d75c847f0bb5dc0eeb1ffbd386f1c6b2d64d66"}},{"ruleId":"D1","level":"warning","message":{"text":"UtcDateTypeAdapter.parse (cyclomatic 17): UtcDateTypeAdapter.parse 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"extras/src/main/java/com/google/gson/typeadapters/UtcDateTypeAdapter.java"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"2422854e345344c39f093836a4063acaa9b8b6dc2ff2ea82f85d2e4f53a1dd58"}},{"ruleId":"D1","level":"warning","message":{"text":"10.create (cyclomatic 16): 10.create has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/internal/bind/JavaTimeTypeAdapters.java"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b8cc60b345fa34927c5e134294c0326a81ba8b72296afbe43f2ecbfb1cf3642"}},{"ruleId":"D1","level":"warning","message":{"text":"JsonReader.peekKeyword (cyclomatic 16): JsonReader.peekKeyword has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions. This is NOT this file\u0027s highest cyclomatic complexity: JsonReader.peek (cyclomatic 19) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: gson/src/main/java/com/google/gson/stream/JsonReader.java holds 6 of the 12 methods over the threshold \u2014 including the worst \u2014 and 71 of the 110 points over it (65%), 5.1\u00D7 the next-largest file (gson/src/main/java/com/google/gson/internal/bind/util/ISO8601Utils.java at 14). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/stream/JsonReader.java"},"region":{"startLine":758}}}],"partialFingerprints":{"codehealthFindingId/v1":"e43e3ea66f62bae156a5eb15e0fec5d0a0c3291b23b3b6e8742060135a314fd2"}},{"ruleId":"D2","level":"warning","message":{"text":"GsonTypes.resolve (cognitive 57): GsonTypes.resolve has cognitive complexity 57 (threshold 15). Drivers by points: if/else 16 (38 pts), ternaries 4 (13 pts), loops 2 (4 pts), boolean chains 2 (nesting depth added 33). 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/internal/GsonTypes.java"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"51ef8462d71cf8ec5f71123bec7f49c40642668a72608ddca227f4f0da545bac"}},{"ruleId":"D2","level":"warning","message":{"text":"JsonReader.peekNumber (cognitive 57): JsonReader.peekNumber has cognitive complexity 57 (threshold 15). Drivers by points: if/else 18 (41 pts), boolean chains 11, match/switch 1 (2 pts), ternaries 1 (2 pts), loops 1 (nesting depth added 25). 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 file is where this pass\u0027s cognitive complexity CONCENTRATES: gson/src/main/java/com/google/gson/stream/JsonReader.java holds 8 of the 25 methods over the threshold \u2014 including the worst \u2014 and 103 of the 337 points over it (31%), 2.3\u00D7 the next-largest file (gson/src/main/java/com/google/gson/internal/GsonTypes.java at 45). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/stream/JsonReader.java"},"region":{"startLine":815}}}],"partialFingerprints":{"codehealthFindingId/v1":"cec34de01d8dcd9eca376804164f21cc9a50f278e2d8419b33f924f98aa493bb"}},{"ruleId":"D2","level":"warning","message":{"text":"ReflectiveTypeAdapterFactory.getBoundFields (cognitive 56): ReflectiveTypeAdapterFactory.getBoundFields has cognitive complexity 56 (threshold 15). Drivers by points: if/else 14 (45 pts), loops 3 (7 pts), boolean chains 4 (nesting depth added 35). 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/internal/bind/ReflectiveTypeAdapterFactory.java"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"393bc494276b6b3f3c2e17ccde2a66646c1fa664d82c5da8049566d071062f9a"}},{"ruleId":"D2","level":"warning","message":{"text":"ISO8601Utils.parse (cognitive 51): ISO8601Utils.parse has cognitive complexity 51 (threshold 15). Drivers by points: if/else 19 (36 pts), boolean chains 6, match/switch 1 (5 pts), ternaries 2 (3 pts), error handling 1 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/internal/bind/util/ISO8601Utils.java"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"76a811262edb566751ac3fea494a14b9ddeb2330f175d2b115bc2aedfaddb293"}},{"ruleId":"D2","level":"warning","message":{"text":"LinkedTreeMap.rebalance (cognitive 47): LinkedTreeMap.rebalance has cognitive complexity 47 (threshold 15). Drivers by points: if/else 12 (25 pts), ternaries 6 (16 pts), boolean chains 5, loops 1 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/internal/LinkedTreeMap.java"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3286a277d22cf6b20a1928680adc0e466c00f87fbe3dbe23165b2b501148573"}},{"ruleId":"D2","level":"warning","message":{"text":"JsonReader.doPeek (cognitive 40): JsonReader.doPeek has cognitive complexity 40 (threshold 15). Drivers by points: if/else 15 (26 pts), match/switch 6 (11 pts), boolean chains 3 (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. This file is where this pass\u0027s cognitive complexity CONCENTRATES: gson/src/main/java/com/google/gson/stream/JsonReader.java holds 8 of the 25 methods over the threshold \u2014 including the worst \u2014 and 103 of the 337 points over it (31%), 2.3\u00D7 the next-largest file (gson/src/main/java/com/google/gson/internal/GsonTypes.java at 45). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/stream/JsonReader.java"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"77a0dff311d1c16ecdd1717d85d84c5f50c1408343876192154a4d83fcc9b410"}},{"ruleId":"D2","level":"warning","message":{"text":"JsonReader.nextNonWhitespace (cognitive 30): JsonReader.nextNonWhitespace has cognitive complexity 30 (threshold 15). Drivers by points: if/else 12 (25 pts), match/switch 1 (3 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. This file is where this pass\u0027s cognitive complexity CONCENTRATES: gson/src/main/java/com/google/gson/stream/JsonReader.java holds 8 of the 25 methods over the threshold \u2014 including the worst \u2014 and 103 of the 337 points over it (31%), 2.3\u00D7 the next-largest file (gson/src/main/java/com/google/gson/internal/GsonTypes.java at 45). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/stream/JsonReader.java"},"region":{"startLine":1639}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ce46369d218547542ae67e901e98f265a866fba7c154942f66cc42cf87c82a2"}},{"ruleId":"D2","level":"warning","message":{"text":"LinkedTreeMap.find (cognitive 26): LinkedTreeMap.find has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (15 pts), ternaries 3 (8 pts), loops 1 (2 pts), boolean chains 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/internal/LinkedTreeMap.java"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"da16897eb8352b63e3a0a71291f27b4ceb126772ff27bac0bb8715e2683d8eac"}},{"ruleId":"D2","level":"warning","message":{"text":"UtcDateTypeAdapter.parse (cognitive 25): UtcDateTypeAdapter.parse has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13 (21 pts), boolean chains 2, error handling 1, ternaries 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"extras/src/main/java/com/google/gson/typeadapters/UtcDateTypeAdapter.java"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"60c9787df76271b48611c658e58fc77493d9f3ac54669e340ebfcc9290f00064"}},{"ruleId":"D2","level":"warning","message":{"text":"CollectionsDeserializationBenchmark.timeCollectionsReflectionStreaming (cognitive 25): CollectionsDeserializationBenchmark.timeCollectionsReflectionStreaming has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 4 (10 pts) (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"metrics/src/main/java/com/google/gson/metrics/CollectionsDeserializationBenchmark.java"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8ad543e304b8df3d21507041e144612cb341e52771dd9ca7b7dc6eb2f27c481"}},{"ruleId":"D2","level":"warning","message":{"text":"JsonElementTypeAdapter.read (cognitive 24): JsonElementTypeAdapter.read has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (21 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/internal/bind/JsonElementTypeAdapter.java"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4821d598b954eb0aa7fe86f59333efc7422ef2a49a651da398049ed4f64a166"}},{"ruleId":"D2","level":"warning","message":{"text":"JsonTreeReader.peek (cognitive 23): JsonTreeReader.peek has cognitive complexity 23 (threshold 15). Drivers by points: if/else 16 (20 pts), ternaries 1 (3 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/internal/bind/JsonTreeReader.java"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"df166f8200801056582f540ca0fea2f4105de9739f328e04b647bc093634d5fc"}},{"ruleId":"D2","level":"warning","message":{"text":"ObjectTypeAdapter.read (cognitive 23): ObjectTypeAdapter.read has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (20 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/internal/bind/ObjectTypeAdapter.java"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"9960e6f10d402ab623d60016a623c8c8ebd18be758849d85752aee38a6b5b3d7"}},{"ruleId":"D2","level":"warning","message":{"text":"JsonReader.nextQuotedValue (cognitive 23): JsonReader.nextQuotedValue has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (19 pts), loops 2 (3 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. This file is where this pass\u0027s cognitive complexity CONCENTRATES: gson/src/main/java/com/google/gson/stream/JsonReader.java holds 8 of the 25 methods over the threshold \u2014 including the worst \u2014 and 103 of the 337 points over it (31%), 2.3\u00D7 the next-largest file (gson/src/main/java/com/google/gson/internal/GsonTypes.java at 45). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/stream/JsonReader.java"},"region":{"startLine":1209}}}],"partialFingerprints":{"codehealthFindingId/v1":"5083272812f846730301a2c94c3ff9f9b83a6a6b3ac5c5d83895d7a07af84336"}},{"ruleId":"D2","level":"warning","message":{"text":"JsonTreeReader.getPath (cognitive 22): JsonTreeReader.getPath has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (17 pts), boolean chains 4, loops 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/internal/bind/JsonTreeReader.java"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"23717643046590edfc47f1fe98afea5c94d836431afb7b8b1e1604e2f6453b2a"}},{"ruleId":"D2","level":"warning","message":{"text":"JsonReader.readEscapeCharacter (cognitive 21): JsonReader.readEscapeCharacter has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 5, loops 1 (2 pts), match/switch 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. This file is where this pass\u0027s cognitive complexity CONCENTRATES: gson/src/main/java/com/google/gson/stream/JsonReader.java holds 8 of the 25 methods over the threshold \u2014 including the worst \u2014 and 103 of the 337 points over it (31%), 2.3\u00D7 the next-largest file (gson/src/main/java/com/google/gson/internal/GsonTypes.java at 45). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/stream/JsonReader.java"},"region":{"startLine":1873}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd60fb2831736b9bd62d4629bcb7a9f726d020a2a616d5f3cd413f702cc3d109"}},{"ruleId":"D2","level":"warning","message":{"text":"ProtoTypeAdapter.deserialize (cognitive 21): ProtoTypeAdapter.deserialize has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 2 (6 pts), boolean chains 1, error handling 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"proto/src/main/java/com/google/gson/protobuf/ProtoTypeAdapter.java"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3086ad1dc9b901cd907ea46a66969c2872ad6dd4d09269fbea7eefb1b921535"}},{"ruleId":"D2","level":"warning","message":{"text":"Adapter.read (cognitive 20): Adapter.read has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 3, loops 2 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"proto/src/main/java/com/google/gson/protobuf/LegacyProtoTypeAdapterFactory.java"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"0977de38f89d2b23475180f40133a3206b4e5b7e758c9e23345d3dcc545491bb"}},{"ruleId":"D2","level":"warning","message":{"text":"BagOfPrimitivesDeserializationBenchmark.timeBagOfPrimitivesReflectionStreaming (cognitive 19): BagOfPrimitivesDeserializationBenchmark.timeBagOfPrimitivesReflectionStreaming has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 3 (6 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"metrics/src/main/java/com/google/gson/metrics/BagOfPrimitivesDeserializationBenchmark.java"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c738d1ec41ce71c2ec052fe0668fee30882ab85634d62cc7a405bb7ef466328"}},{"ruleId":"D2","level":"warning","message":{"text":"GsonTypes.equals (cognitive 18): GsonTypes.equals has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 3 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/internal/GsonTypes.java"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"3897a32774dc24cbec44b0766144bfb00f1bdd144ca10536143408343c7ca071"}},{"ruleId":"D2","level":"warning","message":{"text":"JsonReader.nextInt (cognitive 18): JsonReader.nextInt has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (11 pts), error handling 2 (3 pts), ternaries 1 (3 pts), boolean chains 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. This file is where this pass\u0027s cognitive complexity CONCENTRATES: gson/src/main/java/com/google/gson/stream/JsonReader.java holds 8 of the 25 methods over the threshold \u2014 including the worst \u2014 and 103 of the 337 points over it (31%), 2.3\u00D7 the next-largest file (gson/src/main/java/com/google/gson/internal/GsonTypes.java at 45). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/stream/JsonReader.java"},"region":{"startLine":1414}}}],"partialFingerprints":{"codehealthFindingId/v1":"06110d3d572da5961008a423ff7e05947e26fe0b5ca49a6f1b3d44ec264e3ff8"}},{"ruleId":"D2","level":"warning","message":{"text":"JsonReader.nextUnquotedValue (cognitive 17): JsonReader.nextUnquotedValue has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 2 (3 pts), match/switch 1 (3 pts), ternaries 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. This file is where this pass\u0027s cognitive complexity CONCENTRATES: gson/src/main/java/com/google/gson/stream/JsonReader.java holds 8 of the 25 methods over the threshold \u2014 including the worst \u2014 and 103 of the 337 points over it (31%), 2.3\u00D7 the next-largest file (gson/src/main/java/com/google/gson/internal/GsonTypes.java at 45). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/stream/JsonReader.java"},"region":{"startLine":1287}}}],"partialFingerprints":{"codehealthFindingId/v1":"925585af84a2b96f5f51694ad57aa5f311da3013db57efc30561a7564e171224"}},{"ruleId":"D2","level":"warning","message":{"text":"JsonReader.skipValue (cognitive 17): JsonReader.skipValue has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (14 pts), match/switch 1 (2 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. This file is where this pass\u0027s cognitive complexity CONCENTRATES: gson/src/main/java/com/google/gson/stream/JsonReader.java holds 8 of the 25 methods over the threshold \u2014 including the worst \u2014 and 103 of the 337 points over it (31%), 2.3\u00D7 the next-largest file (gson/src/main/java/com/google/gson/internal/GsonTypes.java at 45). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/stream/JsonReader.java"},"region":{"startLine":1506}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ad2c5a0f55cf47c61f4d92692f185957261e00f5d8a4756b3e1fa3dd116ac96"}},{"ruleId":"D2","level":"warning","message":{"text":"JsonAdapterAnnotationTypeAdapterFactory.getTypeAdapter (cognitive 16): JsonAdapterAnnotationTypeAdapterFactory.getTypeAdapter has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (10 pts), ternaries 2 (4 pts), boolean chains 2 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/internal/bind/JsonAdapterAnnotationTypeAdapterFactory.java"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"83282bdd8d65a3cb2fbf29b73c3c471b5b1c74fa1ae99ecb90461bc129066e42"}},{"ruleId":"D2","level":"warning","message":{"text":"JsonPrimitive.equals (cognitive 16): JsonPrimitive.equals has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 7, if/else 6 (7 pts), ternaries 1 (2 pts) (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/JsonPrimitive.java"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"087888b76ba1bed8a457616f6cc56b7498f2ad836a61e2b8e686deb5369890f6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: stream/JsonReader.java: FileTooLong \u2014 1118 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 618 over it, 2.24\u00D7 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/stream/JsonReader.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"863cb0fe1aecf9eaebc24c84c019c95ac53c22ad0315559c6c9f9c684e0c9fa6"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TypeAdapters: ClassTooLong \u2014 723 significant lines (blank, comment-only and punctuation-only lines excluded), 10 methods. The bar is 400 significant lines; this is 323 over it, 1.81\u00D7 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/internal/bind/TypeAdapters.java"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"721dddca385c714af4ae2ef8f20c2c939fafc3b6c9ab4c8596eb67bfec63cf1a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: JsonReader: TooManyMethods \u2014 49 methods. The bar is 30 methods; this is 19 over it, 1.63\u00D7 the bar. This type is on a published API surface \u2014 a japicmp binary-compatibility gate (pom.xml) declares its compatibility contractual \u2014 so moving members onto a smaller type is a breaking change for every consumer, not a local refactor. To reduce it, treat the split as an API migration: move each cohesive group onto its own published type and keep the old members as deprecated forwards for a deprecation period, removing them at the next compatibility break. Where the surface has to stay as it is, that is a decision to record rather than a change to make."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/stream/JsonReader.java"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9c5eec9921a2789a935b18559e8a5098f92a62ce9e1c06a63f8b5190c2f5cfa"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: bind/TypeAdapters.java: FileTooLong \u2014 762 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: TypeAdapters (63-1114). The bar is 500 significant lines; this is 262 over it, 1.52\u00D7 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 \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/internal/bind/TypeAdapters.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ae39b1e0e698793360b8b4813073036a2857ff48de9c8157ce77310b19694de"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: GsonBuilder: TooManyMethods \u2014 40 methods. The bar is 30 methods; this is 10 over it, 1.33\u00D7 the bar. This type is on a published API surface \u2014 a japicmp binary-compatibility gate (pom.xml) declares its compatibility contractual \u2014 so moving members onto a smaller type is a breaking change for every consumer, not a local refactor. To reduce it, treat the split as an API migration: move each cohesive group onto its own published type and keep the old members as deprecated forwards for a deprecation period, removing them at the next compatibility break. Where the surface has to stay as it is, that is a decision to record rather than a change to make."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/GsonBuilder.java"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"6965582926cdd2b602d0e5f8db8a72ff6fdb91f63246bae30880209f75f0a6ab"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: JsonWriter: TooManyMethods \u2014 39 methods. The bar is 30 methods; this is 9 over it, 1.30\u00D7 the bar. This type is on a published API surface \u2014 a japicmp binary-compatibility gate (pom.xml) declares its compatibility contractual \u2014 so moving members onto a smaller type is a breaking change for every consumer, not a local refactor. To reduce it, treat the split as an API migration: move each cohesive group onto its own published type and keep the old members as deprecated forwards for a deprecation period, removing them at the next compatibility break. Where the surface has to stay as it is, that is a decision to record rather than a change to make."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/stream/JsonWriter.java"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dffb2b4297f7b5c6aaaeb8e5df6b16e1fbe67bf431d90c2cffc24d4dfde481d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Gson: TooManyMethods \u2014 35 methods. The bar is 30 methods; this is 5 over it, 1.17\u00D7 the bar. This type is on a published API surface \u2014 a japicmp binary-compatibility gate (pom.xml) declares its compatibility contractual \u2014 so moving members onto a smaller type is a breaking change for every consumer, not a local refactor. To reduce it, treat the split as an API migration: move each cohesive group onto its own published type and keep the old members as deprecated forwards for a deprecation period, removing them at the next compatibility break. Where the surface has to stay as it is, that is a decision to record rather than a change to make."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/Gson.java"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"b499ad44134124a2a70d247e8d6d2b37d4ad6468d6bccb702d36e96768e79f17"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: JsonArray: TooManyMethods \u2014 33 methods. The bar is 30 methods; this is 3 over it, 1.10\u00D7 the bar. This type is on a published API surface \u2014 a japicmp binary-compatibility gate (pom.xml) declares its compatibility contractual \u2014 so moving members onto a smaller type is a breaking change for every consumer, not a local refactor. To reduce it, treat the split as an API migration: move each cohesive group onto its own published type and keep the old members as deprecated forwards for a deprecation period, removing them at the next compatibility break. Where the surface has to stay as it is, that is a decision to record rather than a change to make."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/JsonArray.java"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"d36c127d353dde5b9f8dd78ecb15eec5b70c62e66708276d2061635f402343d9"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: LegacyProtoTypeAdapterFactory: ClassTooLong \u2014 432 significant lines (blank, comment-only and punctuation-only lines excluded), 2 methods. The bar is 400 significant lines; this is 32 over it, 1.08\u00D7 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"proto/src/main/java/com/google/gson/protobuf/LegacyProtoTypeAdapterFactory.java"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7d60d60364a54f5ec585d18478bf544158d605582250197558179cc4a3190d2"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: JsonTreeReader: TooManyMethods \u2014 32 methods. The bar is 30 methods; this is 2 over it, 1.07\u00D7 the bar. This type is on a published API surface \u2014 a japicmp binary-compatibility gate (pom.xml) declares its compatibility contractual \u2014 so moving members onto a smaller type is a breaking change for every consumer, not a local refactor. To reduce it, treat the split as an API migration: move each cohesive group onto its own published type and keep the old members as deprecated forwards for a deprecation period, removing them at the next compatibility break. Where the surface has to stay as it is, that is a decision to record rather than a change to make."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/internal/bind/JsonTreeReader.java"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"e11e0beb62377084dec94d0e53bf16007ab09b57fd96b2bed42cabcf19ccaf43"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (55 shared lines): extras/src/main/java/com/google/gson/typeadapters/UtcDateTypeAdapter.java:140-232 | gson/src/main/java/com/google/gson/internal/bind/util/ISO8601Utils.java:147-309 \u2014 These two members are variants of one another: 55 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\u0027 grain \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"extras/src/main/java/com/google/gson/typeadapters/UtcDateTypeAdapter.java"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa234e02433ee6ac2dbe7bebae3fc0ce35e1f535e59432a076e664fe1081ee44"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (59 corresponding lines): gson/src/main/java/com/google/gson/stream/JsonReader.java:1142-1200 | gson/src/main/java/com/google/gson/stream/JsonReader.java:1414-1474 \u2014 These two members are one piece of code written twice and then edited apart: 59 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 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\u0027 grain \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/stream/JsonReader.java"},"region":{"startLine":1142}}}],"partialFingerprints":{"codehealthFindingId/v1":"780fcf979f7787b4fa37b2c89849360dab815254e4fbc22b45d8a430112e9c8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): metrics/src/main/java/com/google/gson/metrics/BagOfPrimitivesDeserializationBenchmark.java:94-121 | metrics/src/main/java/com/google/gson/metrics/CollectionsDeserializationBenchmark.java:109-142 \u2014 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 \u2014 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\u0027 grain \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"metrics/src/main/java/com/google/gson/metrics/BagOfPrimitivesDeserializationBenchmark.java"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c5d577afaf70264bc13e0c948d0aa6b09d313a681350cc3b06293b93f88a8d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (59 corresponding lines): gson/src/main/java/com/google/gson/internal/bind/JsonElementTypeAdapter.java:77-136 | gson/src/main/java/com/google/gson/internal/bind/ObjectTypeAdapter.java:109-167 \u2014 These two members are one piece of code written twice and then edited apart: 59 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 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\u0027 grain \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/internal/bind/JsonElementTypeAdapter.java"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"929fe03180a35700f928de2ae2a2067a9e42a504f9810e9cc54fdc1b8ba359c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 39\u002B corresponding lines): gson/src/main/java/com/google/gson/internal/bind/JavaTimeTypeAdapters.java:113-151 | gson/src/main/java/com/google/gson/internal/bind/JavaTimeTypeAdapters.java:166-205 | gson/src/main/java/com/google/gson/internal/bind/JavaTimeTypeAdapters.java:207-246 | gson/src/main/java/com/google/gson/internal/bind/JavaTimeTypeAdapters.java:340-391 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 39 lines, 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\u0027 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. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/internal/bind/JavaTimeTypeAdapters.java"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"83f62435c564b85eaddfbb1535eca5342baff6bbdb2655e1f23be77a541b5306"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): metrics/src/main/java/com/google/gson/metrics/BagOfPrimitivesDeserializationBenchmark.java:56-87 | metrics/src/main/java/com/google/gson/metrics/CollectionsDeserializationBenchmark.java:65-101 \u2014 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 \u2014 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\u0027 grain \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"metrics/src/main/java/com/google/gson/metrics/BagOfPrimitivesDeserializationBenchmark.java"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7160fa1cff153e267fc26b1bdc45291bbb1ecce31e2ec6aa6d13711efe972da"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): extras/src/main/java/com/google/gson/typeadapters/UtcDateTypeAdapter.java:256-280 | gson/src/main/java/com/google/gson/internal/bind/util/ISO8601Utils.java:333-357 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 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\u0027 grain \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"extras/src/main/java/com/google/gson/typeadapters/UtcDateTypeAdapter.java"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"672155f4b7dd01c5a1623f35fffa8abecaf975d41a54175f721cde9bf9ad0764"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): gson/src/main/java/com/google/gson/internal/LinkedTreeMap.java:389-411 | gson/src/main/java/com/google/gson/internal/LinkedTreeMap.java:414-436 \u2014 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 \u2014 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\u0027 grain \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/internal/LinkedTreeMap.java"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f2c37e18864c8e428675b5b4f77b0501658d3e72e84acc7148501281fd050b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): gson/src/main/java/com/google/gson/Gson.java:670-699 | gson/src/main/java/com/google/gson/Gson.java:751-778 \u2014 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 \u2014 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\u0027 grain \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/Gson.java"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"6182e5fe7c43a8c4c48765fd73dc661f77bc92585a8f3108fd9d58904b857200"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): gson/src/main/java/com/google/gson/internal/bind/CollectionTypeAdapterFactory.java:42-62 | gson/src/main/java/com/google/gson/internal/bind/MapTypeAdapterFactory.java:126-152 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 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\u0027 grain \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/internal/bind/CollectionTypeAdapterFactory.java"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"79d08c2b770a7ac5275b3a97a089e571fb39b7450b3e32b0767be26945145132"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 22\u002B corresponding lines): gson/src/main/java/com/google/gson/internal/bind/JsonTreeReader.java:240-261 | gson/src/main/java/com/google/gson/internal/bind/JsonTreeReader.java:264-285 | gson/src/main/java/com/google/gson/internal/bind/JsonTreeReader.java:288-309 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 22 lines, 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\u0027 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/internal/bind/JsonTreeReader.java"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"afea6f6680a04d0f7fc9c603cbe78f6721a5f003e12e923f3ce72c944549909f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): gson/src/main/java/com/google/gson/internal/sql/SqlDateTypeAdapter.java:57-75 | gson/src/main/java/com/google/gson/internal/sql/SqlTimeTypeAdapter.java:58-76 \u2014 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 \u2014 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\u0027 grain \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/internal/sql/SqlDateTypeAdapter.java"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"e974539b5266a76056fd8f484fa91ecc7c81973a4abf5b5641dd5b28625abd67"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): proto/src/main/java/com/google/gson/protobuf/LegacyProtoTypeAdapterFactory.java:413-439 | proto/src/main/java/com/google/gson/protobuf/LegacyProtoTypeAdapterFactory.java:643-665 \u2014 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 \u2014 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\u0027 grain \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"proto/src/main/java/com/google/gson/protobuf/LegacyProtoTypeAdapterFactory.java"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"137dadcf690a19819755b27f99c7240639e8a1ce16e3b4b903e31aea47e09623"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 22\u002B corresponding lines): gson/src/main/java/com/google/gson/internal/bind/JavaTimeTypeAdapters.java:118-139 | gson/src/main/java/com/google/gson/internal/bind/JavaTimeTypeAdapters.java:171-193 | gson/src/main/java/com/google/gson/internal/bind/JavaTimeTypeAdapters.java:212-234 | gson/src/main/java/com/google/gson/internal/bind/JavaTimeTypeAdapters.java:346-373 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 22 lines, 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\u0027 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. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/internal/bind/JavaTimeTypeAdapters.java"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae525d07df0a1ed2c62f7a46b6e2308c9080c3a5ebfd4629476251c7dc2c14c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): gson/src/main/java/com/google/gson/internal/bind/TypeAdapters.java:343-361 | gson/src/main/java/com/google/gson/internal/bind/TypeAdapters.java:380-398 \u2014 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 \u2014 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\u0027 grain \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/internal/bind/TypeAdapters.java"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bac8e2b1f02f61c0d59d32d66b3f9f8765492c3d6e65f3a3bac7c9b94d2ed15"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 20\u002B corresponding lines): gson/src/main/java/com/google/gson/internal/bind/JdkOptionalTypeAdapters.java:113-132 | gson/src/main/java/com/google/gson/internal/bind/JdkOptionalTypeAdapters.java:148-167 | gson/src/main/java/com/google/gson/internal/bind/JdkOptionalTypeAdapters.java:183-202 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 20 lines, 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\u0027 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/internal/bind/JdkOptionalTypeAdapters.java"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"09c8a57471b915610a7e769fd011b60731aaac3ddfa28a1b5c03d10fbac76392"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): gson/src/main/java/com/google/gson/internal/bind/TypeAdapters.java:195-213 | gson/src/main/java/com/google/gson/internal/bind/TypeAdapters.java:230-248 \u2014 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 \u2014 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\u0027 grain \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/internal/bind/TypeAdapters.java"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9253f754eddc989a3ce45975f59fdaf4405ebf4d8e004e620812ef7aa33d632"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): gson/src/main/java/com/google/gson/internal/reflect/ReflectionHelper.java:257-268 | gson/src/main/java/com/google/gson/internal/reflect/ReflectionHelper.java:271-284 \u2014 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 \u2014 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\u0027 grain \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/internal/reflect/ReflectionHelper.java"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"04c674cab4e0f8b6f65e76c48b7170c60511f35fd845a2a21921ffccd1c5410e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): gson/src/main/java/com/google/gson/internal/bind/JsonTreeReader.java:191-199 | gson/src/main/java/com/google/gson/internal/bind/JsonTreeReader.java:361-370 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 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\u0027 grain \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/internal/bind/JsonTreeReader.java"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4ba8b012f82472302d8b7151e5866d272c9a835801371a1e2730513c5f3a772"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 13\u002B corresponding lines): gson/src/main/java/com/google/gson/internal/bind/TypeAdapters.java:591-603 | gson/src/main/java/com/google/gson/internal/bind/TypeAdapters.java:617-629 | gson/src/main/java/com/google/gson/internal/bind/TypeAdapters.java:708-723 | gson/src/main/java/com/google/gson/internal/bind/TypeAdapters.java:736-751 | gson/src/main/java/com/google/gson/internal/bind/TypeAdapters.java:804-816 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 13 lines, 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\u0027 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. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/internal/bind/TypeAdapters.java"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"c125dfd2926259d17d510cf6e7be474930f06e9fd6584673145b1a907d3e324c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): gson/src/main/java/com/google/gson/internal/bind/JsonTreeReader.java:372-380 | gson/src/main/java/com/google/gson/stream/JsonReader.java:1584-1598 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 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\u0027 grain \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/internal/bind/JsonTreeReader.java"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bdc90d1229cdd43a2b8b28a72940efb20f55e6969396f10501367ab9fdf8076"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): gson/src/main/java/com/google/gson/internal/bind/JsonTreeWriter.java:110-120 | gson/src/main/java/com/google/gson/internal/bind/JsonTreeWriter.java:133-143 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 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\u0027 grain \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/internal/bind/JsonTreeWriter.java"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bb225ddefa1ea2149a048434db9e6894a978896af57d6767cc4f7cd8c936c93"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): gson/src/main/java/com/google/gson/stream/JsonWriter.java:578-586 | gson/src/main/java/com/google/gson/stream/JsonWriter.java:598-606 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 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\u0027 grain \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/stream/JsonWriter.java"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ae53521ecdb102fbdcd7d913377001e2c889fc246bb0bbf433c1b21b853d6ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): gson/src/main/java/com/google/gson/internal/bind/TypeAdapters.java:151-161 | gson/src/main/java/com/google/gson/internal/bind/TypeAdapters.java:569-580 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 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\u0027 grain \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/internal/bind/TypeAdapters.java"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aa37a32b7728dfd8d8baf192a362e05e2c0abfa68d2ed9b817a8b1715285e18"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): gson/src/main/java/com/google/gson/internal/bind/NumberTypeAdapter.java:43-52 | gson/src/main/java/com/google/gson/internal/bind/ObjectTypeAdapter.java:52-63 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 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\u0027 grain \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/internal/bind/NumberTypeAdapter.java"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c0391e640bd18c6fe093b64c103b9572c6bffabf09d7685807dd0fc686fe821"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): gson/src/main/java/com/google/gson/stream/JsonReader.java:467-479 | gson/src/main/java/com/google/gson/stream/JsonReader.java:526-539 \u2014 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 \u2014 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\u0027 grain \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/stream/JsonReader.java"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"c45636b3c237d2f9ba4178e05cdc0506060ce3e60dafaa7892952ff3cdae2b62"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): gson/src/main/java/com/google/gson/internal/Excluder.java:146-154 | gson/src/main/java/com/google/gson/internal/bind/TreeTypeAdapter.java:112-120 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 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\u0027 grain \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/internal/Excluder.java"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c3dc8dbadc711cb27c1293a8f8a30578d8221daea6c87e016f8e695274905eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): gson/src/main/java/com/google/gson/TypeAdapter.java:310-316 | gson/src/main/java/com/google/gson/internal/bind/TypeAdapters.java:439-445 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 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\u0027 grain \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/TypeAdapter.java"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"580a5aa3ee640429682101ee8ebcc26efe13f50ed4c2778e1bfa092839b99210"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201326 lines \u00D7 2): extras/src/main/java/com/google/gson/typeadapters/UtcDateTypeAdapter.java:141-164 | gson/src/main/java/com/google/gson/internal/bind/util/ISO8601Utils.java:148-173 \u2014 before extracting anything, compare \u0060extras/src/main/java/com/google/gson/typeadapters/UtcDateTypeAdapter.java\u0060 and \u0060gson/src/main/java/com/google/gson/internal/bind/util/ISO8601Utils.java\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 113 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060extras/src/main/java/com/google/gson/typeadapters/UtcDateTypeAdapter.java:141\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"extras/src/main/java/com/google/gson/typeadapters/UtcDateTypeAdapter.java"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"88945e0c98d90aff96bf4efa3e7ed614ec3eeb5362f30076ef5936e9653d14b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): metrics/src/main/java/com/google/gson/metrics/BagOfPrimitivesDeserializationBenchmark.java:60-84 | metrics/src/main/java/com/google/gson/metrics/CollectionsDeserializationBenchmark.java:72-96 \u2014 before extracting anything, compare \u0060metrics/src/main/java/com/google/gson/metrics/BagOfPrimitivesDeserializationBenchmark.java\u0060 and \u0060metrics/src/main/java/com/google/gson/metrics/CollectionsDeserializationBenchmark.java\u0060 as WHOLE FILES: 82% of the shorter file\u0027s lines also appear in 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 \u2014 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 \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060metrics/src/main/java/com/google/gson/metrics/CollectionsDeserializationBenchmark.java:69\u0060 calls \u0060beginArray\u0060, \u0060hasNext\u0060 and \u0060metrics/src/main/java/com/google/gson/metrics/BagOfPrimitivesDeserializationBenchmark.java:59\u0060 does not \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"metrics/src/main/java/com/google/gson/metrics/BagOfPrimitivesDeserializationBenchmark.java"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b63225eeb7f5cd65b8601d716aaef38ba154a698bc9578cc4fe10effc02e924"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): gson/src/main/java/com/google/gson/internal/bind/TypeAdapters.java:1025-1044 | gson/src/main/java/com/google/gson/internal/bind/TypeAdapters.java:1049-1068 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/internal/bind/TypeAdapters.java"},"region":{"startLine":1025}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c87dcea5bd6e3f9f79515588f6c81886de47bea072f86401918b692d23e2011"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): gson/src/main/java/com/google/gson/stream/JsonReader.java:1293-1311 | gson/src/main/java/com/google/gson/stream/JsonReader.java:1376-1394 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060gson/src/main/java/com/google/gson/stream/JsonReader.java:1293\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/stream/JsonReader.java"},"region":{"startLine":1293}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecbcae1e20b3ddb63a4ce94e9b27b6eceb4d21c6003aede7ceadc8132feedadd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): extras/src/main/java/com/google/gson/typeadapters/UtcDateTypeAdapter.java:212-229 | gson/src/main/java/com/google/gson/internal/bind/util/ISO8601Utils.java:283-300 \u2014 before extracting anything, compare \u0060extras/src/main/java/com/google/gson/typeadapters/UtcDateTypeAdapter.java\u0060 and \u0060gson/src/main/java/com/google/gson/internal/bind/util/ISO8601Utils.java\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 113 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060extras/src/main/java/com/google/gson/typeadapters/UtcDateTypeAdapter.java:212\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"extras/src/main/java/com/google/gson/typeadapters/UtcDateTypeAdapter.java"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"827681e5ebf4377a668b58b8fb6196a410379b187bd450e0caa21298beef5f53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): gson/src/main/java/com/google/gson/internal/bind/JavaTimeTypeAdapters.java:122-136 | gson/src/main/java/com/google/gson/internal/bind/JavaTimeTypeAdapters.java:175-189 | gson/src/main/java/com/google/gson/internal/bind/JavaTimeTypeAdapters.java:216-230 \u2014 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 \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060gson/src/main/java/com/google/gson/internal/bind/JavaTimeTypeAdapters.java:121\u0060 calls \u0060beginObject\u0060 and \u0060gson/src/main/java/com/google/gson/internal/bind/JavaTimeTypeAdapters.java:174\u0060 does not \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/internal/bind/JavaTimeTypeAdapters.java"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"b59d4283d76a9c0c953738b7325ae08b4cc29d3ed97381d9e8d68801ad0442c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): gson/src/main/java/com/google/gson/stream/JsonReader.java:1107-1121 | gson/src/main/java/com/google/gson/stream/JsonReader.java:1175-1189 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060gson/src/main/java/com/google/gson/stream/JsonReader.java:1107\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/stream/JsonReader.java"},"region":{"startLine":1107}}}],"partialFingerprints":{"codehealthFindingId/v1":"71325feba5610a6c85e793556cc7a9a76fe473e173c79f0409b0fb806db98eb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): extras/src/main/java/com/google/gson/typeadapters/UtcDateTypeAdapter.java:168-180 | gson/src/main/java/com/google/gson/internal/bind/util/ISO8601Utils.java:189-201 \u2014 before extracting anything, compare \u0060extras/src/main/java/com/google/gson/typeadapters/UtcDateTypeAdapter.java\u0060 and \u0060gson/src/main/java/com/google/gson/internal/bind/util/ISO8601Utils.java\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 113 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060extras/src/main/java/com/google/gson/typeadapters/UtcDateTypeAdapter.java:168\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"extras/src/main/java/com/google/gson/typeadapters/UtcDateTypeAdapter.java"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a16a35abd2abdef6f30e7f1ae3a0bc4d395193149d773aaac925049ca5cfb1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 2): extras/src/main/java/com/google/gson/typeadapters/UtcDateTypeAdapter.java:76-114 | gson/src/main/java/com/google/gson/internal/bind/util/ISO8601Utils.java:92-130 \u2014 before extracting anything, compare \u0060extras/src/main/java/com/google/gson/typeadapters/UtcDateTypeAdapter.java\u0060 and \u0060gson/src/main/java/com/google/gson/internal/bind/util/ISO8601Utils.java\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 113 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"extras/src/main/java/com/google/gson/typeadapters/UtcDateTypeAdapter.java"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"9857efd5401bcc0549aeee70ce4e07daff54554a5c480e4e8d06d1ea9650969e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): gson/src/main/java/com/google/gson/Gson.java:689-699 | gson/src/main/java/com/google/gson/Gson.java:768-778 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060gson/src/main/java/com/google/gson/Gson.java:689\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/Gson.java"},"region":{"startLine":689}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfc5c97dcd4cd457e01da0df8c69a9f09ef59bf6ec9eb4fe1bfcb95bef4011e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): gson/src/main/java/com/google/gson/internal/bind/TypeAdapters.java:196-206 | gson/src/main/java/com/google/gson/internal/bind/TypeAdapters.java:231-241 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/internal/bind/TypeAdapters.java"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a7afe8f3f288d8655540d36e07556f052882ead97161538618cc0c5069e6416"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): metrics/src/main/java/com/google/gson/metrics/BagOfPrimitivesDeserializationBenchmark.java:98-119 | metrics/src/main/java/com/google/gson/metrics/CollectionsDeserializationBenchmark.java:116-137 \u2014 before extracting anything, compare \u0060metrics/src/main/java/com/google/gson/metrics/BagOfPrimitivesDeserializationBenchmark.java\u0060 and \u0060metrics/src/main/java/com/google/gson/metrics/CollectionsDeserializationBenchmark.java\u0060 as WHOLE FILES: 82% of the shorter file\u0027s lines also appear in 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 \u2014 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 \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"metrics/src/main/java/com/google/gson/metrics/BagOfPrimitivesDeserializationBenchmark.java"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"691e0007e70865ed9a01538d1afd58dc0d7fc866252cb0b7e22fe1dc8d0d3f53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): extras/src/main/java/com/google/gson/typeadapters/UtcDateTypeAdapter.java:257-266 | gson/src/main/java/com/google/gson/internal/bind/util/ISO8601Utils.java:334-343 \u2014 before extracting anything, compare \u0060extras/src/main/java/com/google/gson/typeadapters/UtcDateTypeAdapter.java\u0060 and \u0060gson/src/main/java/com/google/gson/internal/bind/util/ISO8601Utils.java\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 113 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060extras/src/main/java/com/google/gson/typeadapters/UtcDateTypeAdapter.java:257\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"extras/src/main/java/com/google/gson/typeadapters/UtcDateTypeAdapter.java"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1ba1c575a568c321d5584d088ef71d25b3456fc4fe8f65520cc52735d589f09"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): gson/src/main/java/com/google/gson/internal/bind/JavaTimeTypeAdapters.java:175-183 | gson/src/main/java/com/google/gson/internal/bind/JavaTimeTypeAdapters.java:216-224 | gson/src/main/java/com/google/gson/internal/bind/JavaTimeTypeAdapters.java:351-359 \u2014 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 \u2014 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 \u0060gson/src/main/java/com/google/gson/internal/bind/JavaTimeTypeAdapters.java:175\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/internal/bind/JavaTimeTypeAdapters.java"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"b82b34b6d912fb853fc8f5145c5239c6a9e6e89a05a73266e459cdab54df6fd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): gson/src/main/java/com/google/gson/internal/bind/CollectionTypeAdapterFactory.java:51-59 | gson/src/main/java/com/google/gson/internal/bind/MapTypeAdapterFactory.java:140-148 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/internal/bind/CollectionTypeAdapterFactory.java"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b11cc9bd20a3c2a22e982a5cf2587044efa3e2750401095f4dc560493347123"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): gson/src/main/java/com/google/gson/internal/bind/JsonTreeReader.java:265-273 | gson/src/main/java/com/google/gson/internal/bind/JsonTreeReader.java:289-297 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/internal/bind/JsonTreeReader.java"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a1020bbb17f9e0932d7a04620c8e168c9a45c95d6cb0a580b14d515ff5e9421"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): gson/src/main/java/com/google/gson/internal/sql/SqlDateTypeAdapter.java:58-66 | gson/src/main/java/com/google/gson/internal/sql/SqlTimeTypeAdapter.java:59-67 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060gson/src/main/java/com/google/gson/internal/sql/SqlDateTypeAdapter.java:58\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/internal/sql/SqlDateTypeAdapter.java"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"678e8f8a52cbc69c5fb95f7160e2dfbbda525561b01a544a585da14be6c8ba3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): gson/src/main/java/com/google/gson/internal/bind/JsonTreeReader.java:373-380 | gson/src/main/java/com/google/gson/stream/JsonReader.java:1591-1598 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060gson/src/main/java/com/google/gson/stream/JsonReader.java:1591\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 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 \u0060newTop\u0060 to \u0060Object\u0060 in one and \u0060int\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/internal/bind/JsonTreeReader.java"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"377181852ad781596b1e27e8b34fe510c3cc5b39776f5d11ea0348178a73c4b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): metrics/src/main/java/com/google/gson/metrics/CollectionsDeserializationBenchmark.java:66-72 | metrics/src/main/java/com/google/gson/metrics/CollectionsDeserializationBenchmark.java:110-116 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060metrics/src/main/java/com/google/gson/metrics/CollectionsDeserializationBenchmark.java:66\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"metrics/src/main/java/com/google/gson/metrics/CollectionsDeserializationBenchmark.java"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"c19e97b011e142dbaedd223f66a3b5703edad278a4760f1077cdd2bbdf30b4fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): gson/src/main/java/com/google/gson/internal/LinkedTreeMap.java:330-335 | gson/src/main/java/com/google/gson/internal/LinkedTreeMap.java:337-342 | gson/src/main/java/com/google/gson/internal/LinkedTreeMap.java:355-360 \u2014 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 \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/internal/LinkedTreeMap.java"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef83d7e98ecb4762f4ca16f2ae05b3ed584dfcd4481f3b787e2d0ba58b78b08f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): gson/src/main/java/com/google/gson/internal/LinkedTreeMap.java:405-409 | gson/src/main/java/com/google/gson/internal/LinkedTreeMap.java:430-434 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/internal/LinkedTreeMap.java"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"312e3946e638c71d599b85b94d8d04c147a701d304375284b04ddb22b26b3dd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): extras/src/main/java/com/google/gson/typeadapters/UtcDateTypeAdapter.java:123-129 | gson/src/main/java/com/google/gson/internal/bind/util/ISO8601Utils.java:366-372 \u2014 before extracting anything, compare \u0060extras/src/main/java/com/google/gson/typeadapters/UtcDateTypeAdapter.java\u0060 and \u0060gson/src/main/java/com/google/gson/internal/bind/util/ISO8601Utils.java\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 113 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"extras/src/main/java/com/google/gson/typeadapters/UtcDateTypeAdapter.java"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"6884da7983f365394adcc0efc71a2cf5ece329d0f84baf487afa7e356d21ac2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): gson/src/main/java/com/google/gson/internal/sql/SqlDateTypeAdapter.java:78-88 | gson/src/main/java/com/google/gson/internal/sql/SqlTimeTypeAdapter.java:79-89 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060value\u0060 to \u0060java.sql.Date\u0060 in one and \u0060Time\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/internal/sql/SqlDateTypeAdapter.java"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5fed84372d027f2df5b2e8e560096de1ad7870105cd4b8acdf2e2a1d90779fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 19\u002B corresponding lines): test-shrinker/src/main/java/com/example/Main.java:126-148 | test-shrinker/src/main/java/com/example/Main.java:168-189 | test-shrinker/src/main/java/com/example/Main.java:208-226 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 19 lines, 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\u0027 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"test-shrinker/src/main/java/com/example/Main.java"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"d28abc4f50d915bc4a4bf717977f7431d797078aba0e73cd541d9ebe1d1c449a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 8\u002B corresponding lines): test-shrinker/src/main/java/com/example/Main.java:96-108 | test-shrinker/src/main/java/com/example/Main.java:110-124 | test-shrinker/src/main/java/com/example/Main.java:150-166 | test-shrinker/src/main/java/com/example/Main.java:228-235 | test-shrinker/src/main/java/com/example/Main.java:237-247 | test-shrinker/src/main/java/com/example/Main.java:263-275 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 8 lines, 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\u0027 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. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"test-shrinker/src/main/java/com/example/Main.java"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"9587b21ca9a2e3376e1bd892b8ceeb01f29999c818fa7f4902a871ead39ac43f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): test-shrinker/src/main/java/com/example/Main.java:132-148 | test-shrinker/src/main/java/com/example/Main.java:210-226 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060test-shrinker/src/main/java/com/example/Main.java:132\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"test-shrinker/src/main/java/com/example/Main.java"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1fe2247a705ecd870a7a39499daa236ec54e88812d937e18932cfb0dec77bff"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: gson: gson: abstractness 0.15, instability 0.00, distance 0.85 \u2014 zone of pain \u2014 concrete and depended on by 6 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"306b5ec76358f027868ffcb0b3ce7f7e3d4df9b8ed7f1db8846159385fa56ee0"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: GsonBuilder (LCOM4 7): GsonBuilder\u0027s methods fall into 7 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 7 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/GsonBuilder.java"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba9e76d17580ec9b522bfb0228214270c36a372f6b02d33f2d24f003494fa3cc"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testRegisterSubTypeFirstAllowed: This method\u0027s body runs code, and no assertion was recognised in it. Recognised: JUnit\u0027s assertion methods (assertEquals, assertTrue, assertInstanceOf, assertThrows, assertThrowsExactly, assertTimeoutPreemptively, assertAll and the rest of JUnit 5\u0027s list), assertThat (AssertJ, Hamcrest, Truth), fail, Mockito\u0027s verify and the \u0060assert\u0060 statement, in the test body and in helper methods of the test\u0027s own class or an in-repository base class, followed three calls deep. Verification through a helper on another object or in another class, through a custom matcher library, or through a harness that fails by throwing under some other name is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/test/java/com/google/gson/functional/TypeHierarchyAdapterTest.java"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"08ef66c3fc90de5b205d31b6c6fee0c672ab5d30f6e27e7ccd91a1229af0dcc9"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testEmptyArray: This method\u0027s body runs code, and no assertion was recognised in it. Recognised: JUnit\u0027s assertion methods (assertEquals, assertTrue, assertInstanceOf, assertThrows, assertThrowsExactly, assertTimeoutPreemptively, assertAll and the rest of JUnit 5\u0027s list), assertThat (AssertJ, Hamcrest, Truth), fail, Mockito\u0027s verify and the \u0060assert\u0060 statement, in the test body and in helper methods of the test\u0027s own class or an in-repository base class, followed three calls deep. Verification through a helper on another object or in another class, through a custom matcher library, or through a harness that fails by throwing under some other name is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/test/java/com/google/gson/internal/bind/JsonElementReaderTest.java"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"254eec00ecb278773fb786e7f0a905fc62ee52d80d74d4eea98d749c091d53fa"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testEmptyObject: This method\u0027s body runs code, and no assertion was recognised in it. Recognised: JUnit\u0027s assertion methods (assertEquals, assertTrue, assertInstanceOf, assertThrows, assertThrowsExactly, assertTimeoutPreemptively, assertAll and the rest of JUnit 5\u0027s list), assertThat (AssertJ, Hamcrest, Truth), fail, Mockito\u0027s verify and the \u0060assert\u0060 statement, in the test body and in helper methods of the test\u0027s own class or an in-repository base class, followed three calls deep. Verification through a helper on another object or in another class, through a custom matcher library, or through a harness that fails by throwing under some other name is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/test/java/com/google/gson/internal/bind/JsonElementReaderTest.java"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"c508dff6ab2d9e6a851d828771c986df57357a82a961a929e91a26b85f64d76d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testNestedArrays: This method\u0027s body runs code, and no assertion was recognised in it. Recognised: JUnit\u0027s assertion methods (assertEquals, assertTrue, assertInstanceOf, assertThrows, assertThrowsExactly, assertTimeoutPreemptively, assertAll and the rest of JUnit 5\u0027s list), assertThat (AssertJ, Hamcrest, Truth), fail, Mockito\u0027s verify and the \u0060assert\u0060 statement, in the test body and in helper methods of the test\u0027s own class or an in-repository base class, followed three calls deep. Verification through a helper on another object or in another class, through a custom matcher library, or through a harness that fails by throwing under some other name is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/test/java/com/google/gson/internal/bind/JsonElementReaderTest.java"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"e419dae2ca3dae59fbe145133b1f1a5eeb2af2c554d14c06e646b5d39aa0aec4"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testNulls: This method\u0027s body runs code, and no assertion was recognised in it. Recognised: JUnit\u0027s assertion methods (assertEquals, assertTrue, assertInstanceOf, assertThrows, assertThrowsExactly, assertTimeoutPreemptively, assertAll and the rest of JUnit 5\u0027s list), assertThat (AssertJ, Hamcrest, Truth), fail, Mockito\u0027s verify and the \u0060assert\u0060 statement, in the test body and in helper methods of the test\u0027s own class or an in-repository base class, followed three calls deep. Verification through a helper on another object or in another class, through a custom matcher library, or through a harness that fails by throwing under some other name is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/test/java/com/google/gson/internal/bind/JsonElementReaderTest.java"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cf65bc5bab346d155ca44bd6d71c571f1a3eef64b46034c09cbc6edaa5f61c2"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testNullSerializationAndDeserialization: This method\u0027s body runs code, and no assertion was recognised in it. Recognised: JUnit\u0027s assertion methods (assertEquals, assertTrue, assertInstanceOf, assertThrows, assertThrowsExactly, assertTimeoutPreemptively, assertAll and the rest of JUnit 5\u0027s list), assertThat (AssertJ, Hamcrest, Truth), fail, Mockito\u0027s verify and the \u0060assert\u0060 statement, in the test body and in helper methods of the test\u0027s own class or an in-repository base class, followed three calls deep. Verification through a helper on another object or in another class, through a custom matcher library, or through a harness that fails by throwing under some other name is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/test/java/com/google/gson/internal/sql/SqlTypesGsonTest.java"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"3961249b646f9246ed9382dfaf87fc0560d711e3bdd4baae57450d945e8546ab"}},{"ruleId":"D10","level":"error","message":{"text":"No assertions (empty test): testDummy: Test method has an empty body \u2014 it asserts nothing and exercises no code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/test/java/com/google/gson/metrics/PerformanceTest.java"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1b32ba5868e519f39970c7f4ce0662a6c36edac6a6b36d95ac15e36f76fa001"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testBomIgnoredAsFirstCharacterOfDocument: This method\u0027s body runs code, and no assertion was recognised in it. Recognised: JUnit\u0027s assertion methods (assertEquals, assertTrue, assertInstanceOf, assertThrows, assertThrowsExactly, assertTimeoutPreemptively, assertAll and the rest of JUnit 5\u0027s list), assertThat (AssertJ, Hamcrest, Truth), fail, Mockito\u0027s verify and the \u0060assert\u0060 statement, in the test body and in helper methods of the test\u0027s own class or an in-repository base class, followed three calls deep. Verification through a helper on another object or in another class, through a custom matcher library, or through a harness that fails by throwing under some other name is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/test/java/com/google/gson/stream/JsonReaderTest.java"},"region":{"startLine":1675}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6dde375c7a2ccd81d7c0221cb3dcc190c1bd9863c0570afe4a783b12807f577"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testSkipVeryLongQuotedString: This method\u0027s body runs code, and no assertion was recognised in it. Recognised: JUnit\u0027s assertion methods (assertEquals, assertTrue, assertInstanceOf, assertThrows, assertThrowsExactly, assertTimeoutPreemptively, assertAll and the rest of JUnit 5\u0027s list), assertThat (AssertJ, Hamcrest, Truth), fail, Mockito\u0027s verify and the \u0060assert\u0060 statement, in the test body and in helper methods of the test\u0027s own class or an in-repository base class, followed three calls deep. Verification through a helper on another object or in another class, through a custom matcher library, or through a harness that fails by throwing under some other name is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/test/java/com/google/gson/stream/JsonReaderTest.java"},"region":{"startLine":2058}}}],"partialFingerprints":{"codehealthFindingId/v1":"37ddc7c7dc9da9f99f158d2d2f4036c4c815150331645b55d77e2e6cec7954bb"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testSkipVeryLongUnquotedString: This method\u0027s body runs code, and no assertion was recognised in it. Recognised: JUnit\u0027s assertion methods (assertEquals, assertTrue, assertInstanceOf, assertThrows, assertThrowsExactly, assertTimeoutPreemptively, assertAll and the rest of JUnit 5\u0027s list), assertThat (AssertJ, Hamcrest, Truth), fail, Mockito\u0027s verify and the \u0060assert\u0060 statement, in the test body and in helper methods of the test\u0027s own class or an in-repository base class, followed three calls deep. Verification through a helper on another object or in another class, through a custom matcher library, or through a harness that fails by throwing under some other name is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/test/java/com/google/gson/stream/JsonReaderTest.java"},"region":{"startLine":2041}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e857849a5ee8448e0a95ec1d5d35475685d0e8e22c6ecc6d6049a5e1843539f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: allValueKindsConvertCorrectly: This method\u0027s body runs code, and no assertion was recognised in it. Recognised: JUnit\u0027s assertion methods (assertEquals, assertTrue, assertInstanceOf, assertThrows, assertThrowsExactly, assertTimeoutPreemptively, assertAll and the rest of JUnit 5\u0027s list), assertThat (AssertJ, Hamcrest, Truth), fail, Mockito\u0027s verify and the \u0060assert\u0060 statement, in the test body and in helper methods of the test\u0027s own class or an in-repository base class, followed three calls deep. Verification through a helper on another object or in another class, through a custom matcher library, or through a harness that fails by throwing under some other name is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"proto/src/test/java/com/google/gson/protobuf/functional/StructTypeAdapterTest.java"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"730a6d3717ede0f2b8c0206cf184ec2ddbba3727c5abbad73f75c8e2e42cd5ce"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: matchesExistingJsonFormatRoundTripForVariousStructs: This method\u0027s body runs code, and no assertion was recognised in it. Recognised: JUnit\u0027s assertion methods (assertEquals, assertTrue, assertInstanceOf, assertThrows, assertThrowsExactly, assertTimeoutPreemptively, assertAll and the rest of JUnit 5\u0027s list), assertThat (AssertJ, Hamcrest, Truth), fail, Mockito\u0027s verify and the \u0060assert\u0060 statement, in the test body and in helper methods of the test\u0027s own class or an in-repository base class, followed three calls deep. Verification through a helper on another object or in another class, through a custom matcher library, or through a harness that fails by throwing under some other name is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"proto/src/test/java/com/google/gson/protobuf/functional/StructTypeAdapterTest.java"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fc67c1a786a9fa2b57467611432eb6b2da4a6d96b52d8d87888cc1a0c0dc7a1"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: nestedStructAndListRecurseCorrectly: This method\u0027s body runs code, and no assertion was recognised in it. Recognised: JUnit\u0027s assertion methods (assertEquals, assertTrue, assertInstanceOf, assertThrows, assertThrowsExactly, assertTimeoutPreemptively, assertAll and the rest of JUnit 5\u0027s list), assertThat (AssertJ, Hamcrest, Truth), fail, Mockito\u0027s verify and the \u0060assert\u0060 statement, in the test body and in helper methods of the test\u0027s own class or an in-repository base class, followed three calls deep. Verification through a helper on another object or in another class, through a custom matcher library, or through a harness that fails by throwing under some other name is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"proto/src/test/java/com/google/gson/protobuf/functional/StructTypeAdapterTest.java"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f0aff1efa5c25ccb6a079c1317e3ea3de292b80d731dd4578972ca720579fd3"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testRegisterTypeAdapterForCoreType: This method\u0027s body runs code, and no assertion was recognised in it. Recognised: JUnit\u0027s assertion methods (assertEquals, assertTrue, assertInstanceOf, assertThrows, assertThrowsExactly, assertTimeoutPreemptively, assertAll and the rest of JUnit 5\u0027s list), assertThat (AssertJ, Hamcrest, Truth), fail, Mockito\u0027s verify and the \u0060assert\u0060 statement, in the test body and in helper methods of the test\u0027s own class or an in-repository base class, followed three calls deep. Verification through a helper on another object or in another class, through a custom matcher library, or through a harness that fails by throwing under some other name is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/test/java/com/google/gson/GsonBuilderTest.java"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ee3155bb050e2e08bb46f3392a7dbd04b41e1548a53bdbcf919324be0d9af8d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testSetDateFormatValidStyle: This method\u0027s body runs code, and no assertion was recognised in it. Recognised: JUnit\u0027s assertion methods (assertEquals, assertTrue, assertInstanceOf, assertThrows, assertThrowsExactly, assertTimeoutPreemptively, assertAll and the rest of JUnit 5\u0027s list), assertThat (AssertJ, Hamcrest, Truth), fail, Mockito\u0027s verify and the \u0060assert\u0060 statement, in the test body and in helper methods of the test\u0027s own class or an in-repository base class, followed three calls deep. Verification through a helper on another object or in another class, through a custom matcher library, or through a harness that fails by throwing under some other name is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/test/java/com/google/gson/GsonBuilderTest.java"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"919b085eabc71be093d8e92f2efce34644cf55bb135f1d76685de8928d0e2a17"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testSetDateFormatWithValidPattern: This method\u0027s body runs code, and no assertion was recognised in it. Recognised: JUnit\u0027s assertion methods (assertEquals, assertTrue, assertInstanceOf, assertThrows, assertThrowsExactly, assertTimeoutPreemptively, assertAll and the rest of JUnit 5\u0027s list), assertThat (AssertJ, Hamcrest, Truth), fail, Mockito\u0027s verify and the \u0060assert\u0060 statement, in the test body and in helper methods of the test\u0027s own class or an in-repository base class, followed three calls deep. Verification through a helper on another object or in another class, through a custom matcher library, or through a harness that fails by throwing under some other name is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/test/java/com/google/gson/GsonBuilderTest.java"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"a78ebb1896bfaccfa95dfb5c0d7efb326bd2560ec37b61008833ad301f12b8c3"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 2 significant file(s) lose their only recent owner: extras/src/main/java/com/google/gson/typeadapters/RuntimeTypeAdapterFactory.java, gson/src/main/java/com/google/gson/JsonObject.java. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"e4fbb6cf04c29f5dde8b436e12b4249f6c2b0e906394d22e5cca460fb09204ec"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 3 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold \u2014 folded into the bus-factor score and metrics (6 single-owned of 73 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 73 of the 122 production source files in this repository met that bar). They are anonymized user #2 (2 file(s)), anonymized user #3 (1 file(s)), anonymized user #4 (1 file(s)) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above. The files folded here: gson/src/main/java/com/google/gson/internal/bind/ObjectTypeAdapter.java, gson/src/main/java/com/google/gson/internal/LazilyParsedNumber.java, gson/src/main/java/com/google/gson/JsonArray.java, proto/src/main/java/com/google/gson/protobuf/StructTypeAdapter.java."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Currently only works for ProGuard but not R8 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"test-shrinker/src/test/java/com/google/gson/it/ShrinkingIT.java"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c85b692a4fd59b0b4421e350cb1c76f6de7347c73db0bcabf03c8116bdbce98"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: R8 causes exception, see https://github.com/google/gson/issues/2658"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"test-shrinker/src/main/java/com/example/Main.java"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9d0c8d3017d4796acd8003b261f7a986354a1e374b53b26b9d6572104276e7d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Registering adapter for JsonElement is allowed (for now) for backward compatibility, \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/test/java/com/google/gson/GsonBuilderTest.java"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"e73fe3b8a1902ae8250e4c34b8ef3f7581130f3594c8ab6934ad2d76cc7b9726"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This seems to differ from how Java reflection behaves; when using \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/test/java/com/google/gson/reflect/TypeTokenTest.java"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ea61da2734c3e2fc3b2cfd65ff385afd95f526e5bb8e545f05622b1059e475a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: b/287969247 - remove when EP bug fixed \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/test/java/com/google/gson/functional/DefaultTypeAdaptersTest.java"},"region":{"startLine":838}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b423749631714bea889bf14312be09884e19b00553ebef6c31feefa17b72423"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Adjust this once Gson throws more specific exception type \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/test/java/com/google/gson/functional/Java17RecordTest.java"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"5680136840624c4a68d36a107cf4e61dcbeb3f769b80317486b38cabfa08a0b4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Adjust this once Gson throws more specific exception type \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/test/java/com/google/gson/functional/ObjectTest.java"},"region":{"startLine":730}}}],"partialFingerprints":{"codehealthFindingId/v1":"84c62aa0bf287c8dd48c9d4c46e84b33d7f8bf5683b21933be6ea353f12d54b5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(inder): Figure out whether it is indeed right to rethrow this as JsonSyntaxException \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/Gson.java"},"region":{"startLine":1128}}}],"partialFingerprints":{"codehealthFindingId/v1":"159203d39f2e5cffd03eadb79acf6194474e511abed4d267f99c7034f351c09c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: don\u0027t wrap if cause is unchecked? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/internal/ConstructorConstructor.java"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"53c363026e51e3868443f66a65b0f247bb10d9b3cead6e5b585cd82200f59f92"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: JsonParseException ? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/internal/ConstructorConstructor.java"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bf9742eba1f45119096757d4c510daf1ce7f1559b08286c871f704b89f2e492"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: JsonParseException ? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/internal/bind/ReflectiveTypeAdapterFactory.java"},"region":{"startLine":684}}}],"partialFingerprints":{"codehealthFindingId/v1":"e46227549d1c1139f4f70380418fcc189893d9e5e2e25c2503aeb339f18365e8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: save a .clone() call \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/internal/GsonTypes.java"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"601f43d1326bf58985dd79287b1497a9b114d50112da42658dd3413eb47a81d8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: strip wildcards? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/internal/GsonTypes.java"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"5491072585c0614e1530aa5a63f548801764f700640a133b11306e1ce1571ded"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Ideally should use Multi-Release JAR for this version specific code \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/internal/ReflectionAccessFilterHelper.java"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"60cfa356093951296d436cfe004ab9fcd8303b0793b19e1078d6764cd38f6605"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: The exception messages created by ConstructorConstructor are currently written in the \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/internal/bind/JsonAdapterAnnotationTypeAdapterFactory.java"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"00de86762918fcea3fa1fcf0a403535a6ac1d130158a9dce009dcbdf3a2f434d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Should probably not allow usage of Unsafe; instances might be in broken state and \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/internal/bind/JsonAdapterAnnotationTypeAdapterFactory.java"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fd0082c76b90ca1f0df77cbc66e7c84ca06b134f2c74757d6e12ffca2db047f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Suppression is likely redundant once https://github.com/google/error-prone/pull/5895"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/internal/bind/JsonTreeReader.java"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1b074d400e28af7b117586c519e6c2156a36987046577c48fb11bbcbe2ce665"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: is this really what we want?; \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/internal/bind/JsonTreeWriter.java"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"3323f14b79832caa0264e0164a0dc30a2912a0ffe5a0ed5d903f2943834d5eea"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 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 (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 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 \u0060docs/adr/\u0060. ADRs are expected here because \u0060test-shrinker/pom.xml\u0060 makes this repository a deployable product (line 170)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"test-shrinker/pom.xml"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c02e54d8f91c10e0ee736875f471da7ec3a8bb327911cb55160ed86fec1760b"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2359f98cfcadac15c58bfed499bf7d3aa8e7cb50d272a0b28252d929992c323b"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0e596e2c40adb2533fa161175c0dededbb15c78b61ee4cc806c3f3418b2c395a"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"},"taxa":[{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4f1e7684f8281bd255ddef97105c7055c2ebae06964c8745716b83e174debe83"}},{"ruleId":"IC1","level":"note","message":{"text":"Disabled test: A test is skipped/ignored \u2014 coverage that looks present but never runs. Re-enable it or delete it so the green run means something."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/test/java/com/google/gson/GsonBuilderTest.java"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bd23ee5e9079877d324bc1b692f5bef7631d5150520d6803930ace86f09a3e8"}},{"ruleId":"IC1","level":"note","message":{"text":"Disabled test: A test is skipped/ignored \u2014 coverage that looks present but never runs. Re-enable it or delete it so the green run means something."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/test/java/com/google/gson/functional/CustomTypeAdaptersTest.java"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7de1616ea8e20fbaa6e3b9e4491e0c43ad17687b63cc2d5a273adaa8199daad"}},{"ruleId":"IC1","level":"note","message":{"text":"Disabled test: A test is skipped/ignored \u2014 coverage that looks present but never runs. Re-enable it or delete it so the green run means something."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/test/java/com/google/gson/functional/CustomTypeAdaptersTest.java"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b3d558de9067ef16d0ccc0a0c22f57ce2c734ee4f1f9f5ade6fcb2f38d60730"}},{"ruleId":"IC1","level":"note","message":{"text":"Disabled test: A test is skipped/ignored \u2014 coverage that looks present but never runs. Re-enable it or delete it so the green run means something."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/test/java/com/google/gson/functional/MapAsArrayTypeAdapterTest.java"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ac1b69b8ab774e4d3205e2d84c5b2eea3f50ea3c558bcb85fcb7ddc1196b939"}},{"ruleId":"IC1","level":"note","message":{"text":"Disabled test: A test is skipped/ignored \u2014 coverage that looks present but never runs. Re-enable it or delete it so the green run means something."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/test/java/com/google/gson/metrics/PerformanceTest.java"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c4c00ee0c17e763fcd3662d03c5f582c0d80ceb74a8bde2d190affece72a513"}},{"ruleId":"IC1","level":"note","message":{"text":"Disabled test: A test is skipped/ignored \u2014 coverage that looks present but never runs. Re-enable it or delete it so the green run means something."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/test/java/com/google/gson/metrics/PerformanceTest.java"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"cab6bd6be490f922ef264fd9a95d7d290654b8bcc5a729f0d44777192b6b30e3"}},{"ruleId":"IC1","level":"note","message":{"text":"Disabled test: A test is skipped/ignored \u2014 coverage that looks present but never runs. Re-enable it or delete it so the green run means something."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/test/java/com/google/gson/metrics/PerformanceTest.java"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcd55b9d742802e5d77e76ab0d5ebef0955c72d71edab56eea3a4d4f8380f907"}},{"ruleId":"IC1","level":"note","message":{"text":"Disabled test: A test is skipped/ignored \u2014 coverage that looks present but never runs. Re-enable it or delete it so the green run means something."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/test/java/com/google/gson/metrics/PerformanceTest.java"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"870a1faee08d62ca455d434b2f10f1133cce2b5ccf8ccd240222c39dacda6c51"}},{"ruleId":"IC1","level":"note","message":{"text":"Disabled test: A test is skipped/ignored \u2014 coverage that looks present but never runs. Re-enable it or delete it so the green run means something."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/test/java/com/google/gson/metrics/PerformanceTest.java"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"e25ac3da374a393db86d6f009a47f40282f44fc1a6fb05ead192bb0447003bc5"}},{"ruleId":"IC1","level":"note","message":{"text":"Disabled test: A test is skipped/ignored \u2014 coverage that looks present but never runs. Re-enable it or delete it so the green run means something."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/test/java/com/google/gson/metrics/PerformanceTest.java"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d0869e00834f4a9ba95e9dd41f7919a3e355b3a6c8e21d0a2d9e143ddf0f26f"}},{"ruleId":"IC1","level":"note","message":{"text":"Disabled test: A test is skipped/ignored \u2014 coverage that looks present but never runs. Re-enable it or delete it so the green run means something."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/test/java/com/google/gson/metrics/PerformanceTest.java"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f9292684e47dbeab3f4f5a0c253437f842eebebcc64aa5ce7d172e0eb0b2e2a"}},{"ruleId":"IC1","level":"note","message":{"text":"Disabled test: A test is skipped/ignored \u2014 coverage that looks present but never runs. Re-enable it or delete it so the green run means something."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/test/java/com/google/gson/metrics/PerformanceTest.java"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"02a538d7a3689775a944e69257369f651a78e7fdca54d72cb778493b8b59d012"}},{"ruleId":"IC1","level":"note","message":{"text":"Disabled test: A test is skipped/ignored \u2014 coverage that looks present but never runs. Re-enable it or delete it so the green run means something."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/test/java/com/google/gson/metrics/PerformanceTest.java"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"66d9744105951b371e7b802dcec557b5941b91c4a3a144285e3dc89e9dc83ee3"}},{"ruleId":"IC1","level":"note","message":{"text":"Disabled test: A test is skipped/ignored \u2014 coverage that looks present but never runs. Re-enable it or delete it so the green run means something."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/test/java/com/google/gson/metrics/PerformanceTest.java"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bfb80d0412bd104637aa2eefbe11d01439626e95ef68a5622ee8c0577213c61"}},{"ruleId":"IC1","level":"note","message":{"text":"Disabled test: A test is skipped/ignored \u2014 coverage that looks present but never runs. Re-enable it or delete it so the green run means something."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/test/java/com/google/gson/metrics/PerformanceTest.java"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ac53fcd398191f2d33291e5d3d3e14667925617c2d7a411059f7ea6c340080f"}},{"ruleId":"IC1","level":"note","message":{"text":"Disabled test: A test is skipped/ignored \u2014 coverage that looks present but never runs. Re-enable it or delete it so the green run means something."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/test/java/com/google/gson/stream/JsonReaderTest.java"},"region":{"startLine":1019}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0485b5419526e11eebe4fdc17115fec73db23f089eb718867f57f63ecd0dde2"}},{"ruleId":"IC1","level":"note","message":{"text":"Disabled test: A test is skipped/ignored \u2014 coverage that looks present but never runs. Re-enable it or delete it so the green run means something."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/test/java/com/google/gson/stream/JsonReaderTest.java"},"region":{"startLine":1033}}}],"partialFingerprints":{"codehealthFindingId/v1":"732100dbb417c02de37a139d89408be8b5260cfc8589e0ef8ae36ffb7268d34f"}},{"ruleId":"IC1","level":"note","message":{"text":"Disabled test: A test is skipped/ignored \u2014 coverage that looks present but never runs. Re-enable it or delete it so the green run means something."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/test/java/com/google/gson/stream/JsonReaderTest.java"},"region":{"startLine":1050}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcbf125d267100a0f3acc2b726369d9b3d71bc17733ae2032754e9be93471497"}},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 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."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"M2","level":"note","message":{"text":"No architecture diagram/doc: No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named \u0060architecture\u0060 or \u0060design\u0060 in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape \u2014 no \u0060## Architecture\u0060 heading, no \u0022architecture overview\u0022/\u0022high-level design\u0022 phrasing, no \u0022the architecture is \u2026\u0022 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 \u2014 not evidence that nobody wrote the shape down."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0c190e7c159d1850ee706c3ac4486e151e8a4fe169de4bf61436b9f399654f06"}},{"ruleId":"P2","level":"warning","message":{"text":"No structured logging: No logging or diagnostics emission found. This repository ships a binary its users launch rather than a service you operate, so there is no operator to page \u2014 but when a run fails on a user\u0027s machine, neither they nor you have anything to read."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"9f10d71351c6778ebe84e761f82a90d4f9ed6c64f5e01975ede8fda7e4e2ebc5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(offset \u003C value.length()) \u0026\u0026 (value.charAt(offset) == expected)\u0060 appears character-identically in 2 files \u2014 extras/src/main/java/com/google/gson/typeadapters/UtcDateTypeAdapter.java, gson/src/main/java/com/google/gson/internal/bind/util/ISO8601Utils.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"extras/src/main/java/com/google/gson/typeadapters/UtcDateTypeAdapter.java"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"da8c56673658b66ae822ca84acbb460e94ed8ff6c173d5b07ddb15aa102eb71a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060beginIndex \u003C 0 || endIndex \u003E value.length() || beginIndex \u003E endIndex\u0060 appears character-identically in 2 files \u2014 extras/src/main/java/com/google/gson/typeadapters/UtcDateTypeAdapter.java, gson/src/main/java/com/google/gson/internal/bind/util/ISO8601Utils.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"extras/src/main/java/com/google/gson/typeadapters/UtcDateTypeAdapter.java"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a9a4da1425021debc89f0011cc27d2fdf253c33a2a271db2c0745aa889409d8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060timezoneIndicator == \u0027\u002B\u0027 || timezoneIndicator == \u0027-\u0027\u0060 appears character-identically in 2 files \u2014 extras/src/main/java/com/google/gson/typeadapters/UtcDateTypeAdapter.java, gson/src/main/java/com/google/gson/internal/bind/util/ISO8601Utils.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"extras/src/main/java/com/google/gson/typeadapters/UtcDateTypeAdapter.java"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"060f79ca45d8d877a5c336f97e09683a50b8604649162b67b48a32ed9cd79bca"}},{"ruleId":"X5","level":"note","message":{"text":"Java packages are not null-marked everywhere: 0/15 of this repository\u0027s Java package directories are under a non-null default: a \u0060package-info.java\u0060 declaring \u0060@NullMarked\u0060 (JSpecify) or \u0060@NonNullApi\u0060, \u0060@ParametersAreNonnullByDefault\u0060, \u0060@NonNullByDefault\u0060, \u0060@DefaultQualifier(NonNull.class)\u0060; a \u0060module-info.java\u0060 declaring \u0060@NullMarked\u0060; every type in it \u0060@NullMarked\u0060; or a build that runs NullAway with the package in \u0060AnnotatedPackages\u0060, or the Checker Framework\u0027s \u0060NullnessChecker\u0060. Elsewhere every reference admits null and no checker warns on the dereference that throws a \u0060NullPointerException\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"419201f6fc7ba243aef2cfb154378641588a8190e6269cea04a7b48c3d343bd5"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060extractBeginningInt\u0060 returns \u0060-1\u0060 when \u0060NumberFormatException\u0060 is thrown, with no log or throw \u2014 a malformed value silently becomes that default. Log the input or fail validation. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the Javadoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/internal/JavaVersion.java"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ad09b895a7c868bc65ab9328f5ca8c6d8d5379392d5ddd091af8949f7d6df10"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060parseDotted\u0060 returns \u0060-1\u0060 when \u0060NumberFormatException\u0060 is thrown, with no log or throw \u2014 a malformed value silently becomes that default. Log the input or fail validation. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the Javadoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gson/src/main/java/com/google/gson/internal/JavaVersion.java"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"6167d82a57278e700280e2f089350cdb2b03584374b7c87a676e05b0e38a762e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060testDeserializingInterfaceImpl\u0060 returns \u0060\u0022ClassCastException\u0022\u0060 when \u0060ClassCastException\u0060 is thrown, with no log or throw \u2014 a malformed value silently becomes that default. Log the input or fail validation. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the Javadoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"test-shrinker/src/main/java/com/example/Main.java"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3f4271077d7e293051ea2bd9d0a17dfc0f7c69010162e796040ca27c6928714"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-8","guid":"b6b2dacf-a168-4957-876e-a8c73ee00eb0","name":"Ungoverned Usage of 3rd Party Services","shortDescription":{"text":"Ungoverned Usage of 3rd Party Services"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-08-Ungoverned-Usage-of-3rd-Party-Services"},{"id":"CICD-SEC-9","guid":"b3d36727-0395-5b51-94c4-5e173d62eab3","name":"Improper Artifact Integrity Validation","shortDescription":{"text":"Improper Artifact Integrity Validation"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-09-Improper-Artifact-Integrity-Validation"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":6,"secretScannerRunsExcluded":0}},"redactionTokens":["A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."]}]}