{"$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":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"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":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","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-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D31","name":"IaC \u0026 Container Security","shortDescription":{"text":"IaC \u0026 Container Security"},"helpUri":"https://codehealth.canine.dev/dimensions/D31","relationships":[{"target":{"id":"CWE-1032","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-16","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"],"owasp":"A02: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":"D37","name":"Vulnerability-disclosure Policy","shortDescription":{"text":"Vulnerability-disclosure Policy"},"helpUri":"https://codehealth.canine.dev/dimensions/D37","relationships":[{"target":{"id":"CWE-1059","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1059"],"owasp":"A02:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AC1","name":"Text alternatives","shortDescription":{"text":"Text alternatives"},"helpUri":"https://codehealth.canine.dev/dimensions/AC1"},{"id":"AC2","name":"Forms \u0026 labels","shortDescription":{"text":"Forms \u0026 labels"},"helpUri":"https://codehealth.canine.dev/dimensions/AC2"},{"id":"AC3","name":"Page structure","shortDescription":{"text":"Page structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AC3"},{"id":"AC4","name":"Keyboard semantics","shortDescription":{"text":"Keyboard semantics"},"helpUri":"https://codehealth.canine.dev/dimensions/AC4"},{"id":"AC5","name":"ARIA correctness","shortDescription":{"text":"ARIA correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/AC5"},{"id":"AC6","name":"Visual \u0026 motion safety","shortDescription":{"text":"Visual \u0026 motion safety"},"helpUri":"https://codehealth.canine.dev/dimensions/AC6"},{"id":"AX1","name":"Captive dependencies","shortDescription":{"text":"Captive dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/AX1"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX2","name":"Stateful singletons","shortDescription":{"text":"Stateful singletons"},"helpUri":"https://codehealth.canine.dev/dimensions/AX2"},{"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":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"AXS1","name":"Runtime exposed surface","shortDescription":{"text":"Runtime exposed surface"},"helpUri":"https://codehealth.canine.dev/dimensions/AXS1"},{"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":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"P7","name":"Outbound HTTP resilience","shortDescription":{"text":"Outbound HTTP resilience"},"helpUri":"https://codehealth.canine.dev/dimensions/P7"},{"id":"PF1","name":"Benchmark discipline","shortDescription":{"text":"Benchmark discipline"},"helpUri":"https://codehealth.canine.dev/dimensions/PF1"},{"id":"R1","name":"Type Safety","shortDescription":{"text":"Type Safety"},"helpUri":"https://codehealth.canine.dev/dimensions/R1"},{"id":"R10","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/R10"},{"id":"R2","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/R2"},{"id":"R3","name":"Large Files","shortDescription":{"text":"Large Files"},"helpUri":"https://codehealth.canine.dev/dimensions/R3"},{"id":"R7","name":"Dead Code","shortDescription":{"text":"Dead Code"},"helpUri":"https://codehealth.canine.dev/dimensions/R7"},{"id":"R9","name":"Circular Imports","shortDescription":{"text":"Circular Imports"},"helpUri":"https://codehealth.canine.dev/dimensions/R9"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"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":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"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":"MySqlStatementParser.parseShow (cyclomatic 275): MySqlStatementParser.parseShow has cyclomatic complexity 275 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":2497}}}],"partialFingerprints":{"codehealthFindingId/v1":"a782ebbd4852dd9262de652e756acf3b2e203a56c1b36854e035692518507b4a"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLExprParser.primary (cyclomatic 202): SQLExprParser.primary has cyclomatic complexity 202 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"9145b94825ab769f5ce4c75ac846214ebba8eb252340eb3e332a7e16f312d351"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLSelectParser.parseTableSourceRest (cyclomatic 161): SQLSelectParser.parseTableSourceRest has cyclomatic complexity 161 (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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java"},"region":{"startLine":1601}}}],"partialFingerprints":{"codehealthFindingId/v1":"4adc1e55fad606f5b488c17daaa9cb0f6e538c2884f1a570c2778f1570e508b2"}},{"ruleId":"D1","level":"warning","message":{"text":"OdpsCreateTableParser.parseCreateTable (cyclomatic 152): OdpsCreateTableParser.parseCreateTable has cyclomatic complexity 152 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsCreateTableParser.java"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"db6ce83e308603cd9bd5b82b400603fcfae68aac829f0468df6fdd36c5d50f9d"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlStatementParser.parseStatementListDialect (cyclomatic 149): MySqlStatementParser.parseStatementListDialect has cyclomatic complexity 149 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":1046}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe961636ba6777aa7388a614ce372d4dc82760b35301ac9fd452d0b1e9752399"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLParser.alias (cyclomatic 142): SQLParser.alias has cyclomatic complexity 142 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLParser.java"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1641e1b762a3acd1955bb6cef7cc33ab80d89fd46939343a6b6865ae7baaba1"}},{"ruleId":"D1","level":"warning","message":{"text":"Lexer.scanSQLType (cyclomatic 138): Lexer.scanSQLType has cyclomatic complexity 138 (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":"core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java"},"region":{"startLine":696}}}],"partialFingerprints":{"codehealthFindingId/v1":"5716938549b5e4c7a24b3b7653bc02de8012a03b2a42ed82f9b543160ad8cf35"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLExprParser.name (cyclomatic 138): SQLExprParser.name has cyclomatic complexity 138 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":2308}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e6e0d6cca5775ab9a6865716c2829aa4c98fe4b3475033e27259ec5d1fd4136"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlCreateTableParser.parseCreateTable (cyclomatic 114): MySqlCreateTableParser.parseCreateTable has cyclomatic complexity 114 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8a1326d9ceffc61d661633bf1bc9cb9d3f2fd4ea0a4477d855f1f1ec7d9879b"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlStatementParser.parseAlterSpecification (cyclomatic 114): MySqlStatementParser.parseAlterSpecification has cyclomatic complexity 114 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":5783}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef688f4a34e78f5febf01e31d5f9e976796f111310c75dcc6711d1ce6427c9c1"}},{"ruleId":"D1","level":"warning","message":{"text":"OracleStatementParser.parseStatementList (cyclomatic 113): OracleStatementParser.parseStatementList has cyclomatic complexity 113 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"b26834651c1581b1dfc8bb8f8ab57a203e33edfef73c695441f9fe0676e27bf0"}},{"ruleId":"D1","level":"warning","message":{"text":"OdpsStatementParser.parseStatementListDialect (cyclomatic 104): OdpsStatementParser.parseStatementListDialect has cyclomatic complexity 104 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsStatementParser.java"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"3af98eb0d1c760efb83552a8472b0f556e8f97f6fc123750a4554ecbf61672f4"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLTimestampExpr.check (cyclomatic 100): SQLTimestampExpr.check has cyclomatic complexity 100 (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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTimestampExpr.java"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"09d1a1066afe4693ac51b40aaa88bf985824060a38b89d0df577a738980e38c3"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlUtils.parseDateTime (cyclomatic 98): MySqlUtils.parseDateTime has cyclomatic complexity 98 (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":"core/src/main/java/com/alibaba/druid/util/MySqlUtils.java"},"region":{"startLine":1436}}}],"partialFingerprints":{"codehealthFindingId/v1":"108e549758246059c57c0c161b508aef873037fecf5a98323a6b993410e79b58"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLParser.as (cyclomatic 97): SQLParser.as has cyclomatic complexity 97 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLParser.java"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"234898547b1f463fc9814e6ab5dbec02d1961b492bb244d55453536aa4431e45"}},{"ruleId":"D1","level":"warning","message":{"text":"Lexer.nextToken (cyclomatic 94): Lexer.nextToken has cyclomatic complexity 94 (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":"core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java"},"region":{"startLine":1252}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ca02bdac0715b96711b988094b3cc63442060c8b56e527ef316ae6889690fde"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlUtils.parseDate (cyclomatic 93): MySqlUtils.parseDate has cyclomatic complexity 93 (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":"core/src/main/java/com/alibaba/druid/util/MySqlUtils.java"},"region":{"startLine":978}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ac868d902c11936cd1fcce51960a20f822ab1ed19c042cd16221f191d9618c6"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLEvalVisitorUtils.visit (cyclomatic 92): SQLEvalVisitorUtils.visit has cyclomatic complexity 92 (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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"b64cbeed6cffabb656e2894012e03eec72ab8e546cfcdf976bd4aee675550711"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLExprParser.parseSelectItem (cyclomatic 90): SQLExprParser.parseSelectItem has cyclomatic complexity 90 (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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":5859}}}],"partialFingerprints":{"codehealthFindingId/v1":"25ebdedf039edb1cd778cae0c37f4e8a6fa3f96dd0d98fb4263994c0b690b607"}},{"ruleId":"D1","level":"warning","message":{"text":"WebAppStat.computeUserAgent (cyclomatic 90): WebAppStat.computeUserAgent has cyclomatic complexity 90 (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":"core/src/main/java/com/alibaba/druid/support/http/stat/WebAppStat.java"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6307cfb5729c74188e899abc7dca2732b8bd2995778f583866f27a314b7ee81"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlExprParser.primary (cyclomatic 89): MySqlExprParser.primary has cyclomatic complexity 89 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java"},"region":{"startLine":915}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d20114b0c673bb4192660fcebef533a1d60c895c7841fa9d05ea14fbab4078f"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLExprParser.relationalRest (cyclomatic 86): SQLExprParser.relationalRest has cyclomatic complexity 86 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":3742}}}],"partialFingerprints":{"codehealthFindingId/v1":"0075a6d1b662b10acceaa5222dc294d2a824352b462a276520aa163b8d9fe736"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLParser.tableAliasFromOptionalKeyword (cyclomatic 83): SQLParser.tableAliasFromOptionalKeyword has cyclomatic complexity 83 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLParser.java"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"2757665d67a1d37f88b0e9ba03a07065273fad88ecb8969554ffe2f7bf9d23b0"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLStatementParser.parsePrivilege (cyclomatic 79): SQLStatementParser.parsePrivilege has cyclomatic complexity 79 (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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":1709}}}],"partialFingerprints":{"codehealthFindingId/v1":"52758c5d42e10e5cf47dc7f31ca891a279e20b5d194483079c153e23730abeda"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLStatementParser.parseStatementList (cyclomatic 79): SQLStatementParser.parseStatementList has cyclomatic complexity 79 (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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8e9b3b4993fbfe4df4da43be668723dec45a204d3220e3a7f5c4c3f2dc7c7ad"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLStatementParser.parseValueClauseNative (cyclomatic 79): SQLStatementParser.parseValueClauseNative has cyclomatic complexity 79 (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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":6057}}}],"partialFingerprints":{"codehealthFindingId/v1":"4be9f99a20f961d9c229755053b056895b27ad5cac90eb690f6b8e4dc4c51aa2"}},{"ruleId":"D1","level":"warning","message":{"text":"JdbcUtils.getDbTypeRaw (cyclomatic 78): JdbcUtils.getDbTypeRaw has cyclomatic complexity 78 (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":"core/src/main/java/com/alibaba/druid/util/JdbcUtils.java"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1d87d50bd6e0a4698326dd4f9fd63f109aea001bfa733d216faaad3c30af91c"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlStatementParser.parseInsert (cyclomatic 73): MySqlStatementParser.parseInsert has cyclomatic complexity 73 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":4535}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae7bb1ca0e8cd79652d67d5e1b6602e85bb915aed3dd0d0ed59c91b7828e96de"}},{"ruleId":"D1","level":"warning","message":{"text":"JdbcUtils.getDriverClassName (cyclomatic 73): JdbcUtils.getDriverClassName has cyclomatic complexity 73 (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":"core/src/main/java/com/alibaba/druid/util/JdbcUtils.java"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"b89c45f53e94a7accc2e6b270807697d45213b398cf4e349f7f3dfb1eb563be7"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlCreateTableParser.parseOptions (cyclomatic 71): MySqlCreateTableParser.parseOptions has cyclomatic complexity 71 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java"},"region":{"startLine":628}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d4b6d21f4a24aeae5e281282dcd3640363b7806d95e5eddcaccc3f2de2aa46a"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLEvalVisitorUtils.visit (cyclomatic 70): SQLEvalVisitorUtils.visit has cyclomatic complexity 70 (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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java"},"region":{"startLine":958}}}],"partialFingerprints":{"codehealthFindingId/v1":"f04e11623918359eda11b87e4c80098695ac6acca27294d133a75d171d578c22"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLDataTypeImpl.jdbcType (cyclomatic 69): SQLDataTypeImpl.jdbcType has cyclomatic complexity 69 (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":"core/src/main/java/com/alibaba/druid/sql/ast/SQLDataTypeImpl.java"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8b6d3daf469da7e42351b0a1e599a4b9bb5009aa887b199c9a0c8374a254694"}},{"ruleId":"D1","level":"warning","message":{"text":"OracleCreateTableParser.parseCreateTable (cyclomatic 67): OracleCreateTableParser.parseCreateTable has cyclomatic complexity 67 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleCreateTableParser.java"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"48843f12478542cd7c9e8b4f3b08e2e28e4b45a76c3312896a39f9afd456a989"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLStatementParser.parseValueClause (cyclomatic 67): SQLStatementParser.parseValueClause has cyclomatic complexity 67 (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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":6662}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e91c5a0c79b5b666cac358cb16740974a023d6f0a5f8bf7d79b5fb9d303c158"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlExprParser.parseSelectItemRest (cyclomatic 66): MySqlExprParser.parseSelectItemRest has cyclomatic complexity 66 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7f95ea94124f355419d8a3371c117182b33e05b93f11bd0c5aebcb263743647"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cyclomatic 66): SQLASTOutputVisitor.visit has cyclomatic complexity 66 (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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":10478}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd797d209bc586d12a82a223e374aa6e570e9906592938333a2957a86037ff4b"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlOutputVisitor.visit (cyclomatic 65): MySqlOutputVisitor.visit has cyclomatic complexity 65 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"3410f55c17f813aa3c9381efe1fc0f9e6ea7365d55dd2678d2fd054d6b526962"}},{"ruleId":"D1","level":"warning","message":{"text":"SchemaResolveVisitorFactory.resolveIdent (cyclomatic 65): SchemaResolveVisitorFactory.resolveIdent has cyclomatic complexity 65 (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":"core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java"},"region":{"startLine":1029}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b21df370ec8ca1ea130b21c16324cbbba066f1f04a7954c64b84be251f0a1cb"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLStatementParser.parseValueClause (cyclomatic 64): SQLStatementParser.parseValueClause has cyclomatic complexity 64 (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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":6388}}}],"partialFingerprints":{"codehealthFindingId/v1":"d98f4775b15f4a03dbcfdb7f8dd1dfec1fae5736e3df64e67a723ec9938d5b2f"}},{"ruleId":"D1","level":"warning","message":{"text":"OracleExprParser.primary (cyclomatic 63): OracleExprParser.primary has cyclomatic complexity 63 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a1ad611e8ff1939a8cef932ddccf16c14a3d57a952645d66f20df29b5afb9e5"}},{"ruleId":"D1","level":"warning","message":{"text":"OceanBaseOracleExceptionSorter.isExceptionFatal (cyclomatic 61): OceanBaseOracleExceptionSorter.isExceptionFatal has cyclomatic complexity 61 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/pool/vendor/OceanBaseOracleExceptionSorter.java"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fbb2113be299b5b2b53ae39f0c49806b9c3fa0b1b9e047a1edace9bdf164942"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlLexer.scanComment (cyclomatic 61): MySqlLexer.scanComment has cyclomatic complexity 61 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java"},"region":{"startLine":726}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6601448f0b8b1125b7fe14c08a19998b4c86c953d9b3744e55cd01d26f4c2ea"}},{"ruleId":"D1","level":"warning","message":{"text":"OdpsExprParser.primaryRest (cyclomatic 61): OdpsExprParser.primaryRest has cyclomatic complexity 61 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsExprParser.java"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"0894485d303a69ab9e6c285c183827e5930992dcfd13770c21c5433fe1ff0a96"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLExprParser.methodRest (cyclomatic 60): SQLExprParser.methodRest has cyclomatic complexity 60 (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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":1771}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e7fe020182f98b4569f9b2448f192bec88bddf3f51a2130dbc7cd8786173999"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cyclomatic 59): SQLASTOutputVisitor.visit has cyclomatic complexity 59 (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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":1522}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae10c0dec82a6976804152387045ee333d21987d6ee8518aca18476c960b3689"}},{"ruleId":"D1","level":"warning","message":{"text":"OracleExceptionSorter.isExceptionFatal (cyclomatic 57): OracleExceptionSorter.isExceptionFatal has cyclomatic complexity 57 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/pool/vendor/OracleExceptionSorter.java"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"73affb0ebff97cc83968930dc2dbdd98ad37f4519e1d9212020f870a0259317c"}},{"ruleId":"D1","level":"warning","message":{"text":"HiveStatementParser.parseStatementListDialect (cyclomatic 56): HiveStatementParser.parseStatementListDialect has cyclomatic complexity 56 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveStatementParser.java"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"1400ed04e08795521fc0bb10b7e9af6ed9c0d473afd1d39e44c4ba9b7f0d9435"}},{"ruleId":"D1","level":"warning","message":{"text":"CalciteMySqlNodeVisitor.visit (cyclomatic 56): CalciteMySqlNodeVisitor.visit has cyclomatic complexity 56 (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":"core/src/main/java/com/alibaba/druid/support/calcite/CalciteMySqlNodeVisitor.java"},"region":{"startLine":1008}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4f3c6e24cba4c9eb786f41d1f81b7cdacd8c7dd8740372f4d3fa042c7a85726"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlOutputVisitor.visit (cyclomatic 54): MySqlOutputVisitor.visit has cyclomatic complexity 54 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"b14800179009f98fe2900ad1029dcd2eb2d6826434bfee3c5fb18d2348ba2fa9"}},{"ruleId":"D1","level":"warning","message":{"text":"Lexer.scanOperator (cyclomatic 54): Lexer.scanOperator has cyclomatic complexity 54 (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":"core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java"},"region":{"startLine":1527}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fe21904fe5feb85425fbe3eabc4657a6c92c41fab3706ad54168c21544f89c5"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLSelectParser.queryRest (cyclomatic 54): SQLSelectParser.queryRest has cyclomatic complexity 54 (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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a44b548084da67ec59d80350f48fa8833839b6c0cda31616d8bbca088484423"}},{"ruleId":"D1","level":"warning","message":{"text":"Lexer.scanNumber (cyclomatic 52): Lexer.scanNumber has cyclomatic complexity 52 (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":"core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java"},"region":{"startLine":2852}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e6e6b7ae83c86ff49d6222d45dd087a266b28bf9e14b67d6231d5455d52649f"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLParserUtils.splitAndRemoveComment (cyclomatic 52): SQLParserUtils.splitAndRemoveComment has cyclomatic complexity 52 (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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLParserUtils.java"},"region":{"startLine":802}}}],"partialFingerprints":{"codehealthFindingId/v1":"c33ff09999ed46da9289a3b8335c7050a3470a67b7231d41853b137130705d07"}},{"ruleId":"D1","level":"warning","message":{"text":"OdpsStatementParser.parseShow (cyclomatic 51): OdpsStatementParser.parseShow has cyclomatic complexity 51 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsStatementParser.java"},"region":{"startLine":961}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dd9b38c2d7e3c6022680b0c4b6d7c362faf4159c59eb045c16ad02fe0d00f97"}},{"ruleId":"D1","level":"warning","message":{"text":"DruidDataSourceFactory.config (cyclomatic 50): DruidDataSourceFactory.config has cyclomatic complexity 50 (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":"core/src/main/java/com/alibaba/druid/pool/DruidDataSourceFactory.java"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a52e0c06983a5f143957ab9e216d4930e0907a834d24ebb4ca316ecb99effa3"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlOutputVisitor.visit (cyclomatic 50): MySqlOutputVisitor.visit has cyclomatic complexity 50 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":1103}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d828bd30eb9d390cb2e124e7a546800fe685e270d4b902cb9be0d543546479c"}},{"ruleId":"D1","level":"warning","message":{"text":"SchemaResolveVisitorFactory.resolve (cyclomatic 50): SchemaResolveVisitorFactory.resolve has cyclomatic complexity 50 (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":"core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java"},"region":{"startLine":1401}}}],"partialFingerprints":{"codehealthFindingId/v1":"713b09e39cb5ea855c10f93446179bbe224154d8fdbbef9ecd043ce3bdaa1134"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cyclomatic 50): SQLASTOutputVisitor.visit has cyclomatic complexity 50 (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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":9386}}}],"partialFingerprints":{"codehealthFindingId/v1":"73de4543321fd7e9979b900437d4f477e455ee909a279b8eb8b811fb2d1d902a"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlOutputVisitor.visit (cyclomatic 49): MySqlOutputVisitor.visit has cyclomatic complexity 49 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ffe9e4685ec201371e134b55a1067b866814cf21f2d4739aebf4a05b9768966"}},{"ruleId":"D1","level":"warning","message":{"text":"OracleStatementParser.parserParameters (cyclomatic 49): OracleStatementParser.parserParameters has cyclomatic complexity 49 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java"},"region":{"startLine":2005}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c3c88775477edcdf81057f3c51698ee6fb4c2511fa691e2a9e4bf9e739fdd21"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cyclomatic 49): SQLASTOutputVisitor.visit has cyclomatic complexity 49 (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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":8737}}}],"partialFingerprints":{"codehealthFindingId/v1":"f99043386a753489335361bebff1018c42ce78f4a69019a56e7e7966d9264d12"}},{"ruleId":"D1","level":"warning","message":{"text":"DruidDataSource.init (cyclomatic 48): DruidDataSource.init has cyclomatic complexity 48 (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":"core/src/main/java/com/alibaba/druid/pool/DruidDataSource.java"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"4970b1a028c9f927522202582aa0e318ac14ce3a1894366c527ab8b5fab59157"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlStatementParser.parseCreateDatabase (cyclomatic 48): MySqlStatementParser.parseCreateDatabase has cyclomatic complexity 48 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":7813}}}],"partialFingerprints":{"codehealthFindingId/v1":"e82319f73bd96f29cf130b27d7dea0e66ad9d29417c0fbc26cd17f3b173a6b2b"}},{"ruleId":"D1","level":"warning","message":{"text":"OdpsSelectParser.query (cyclomatic 48): OdpsSelectParser.query has cyclomatic complexity 48 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsSelectParser.java"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"27aee4ddb57cc5af0d73f1f4e032e20edc45ca322cb95b8c2504b823dfe7805a"}},{"ruleId":"D1","level":"warning","message":{"text":"OracleExprParser.primaryRest (cyclomatic 48): OracleExprParser.primaryRest has cyclomatic complexity 48 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1bd3e092bed48325a25a58280f681b10c3978f087cf92b0a35f5452d03445d2"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLExprParser.parseDataType (cyclomatic 48): SQLExprParser.parseDataType has cyclomatic complexity 48 (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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":4296}}}],"partialFingerprints":{"codehealthFindingId/v1":"e563dbaae30380c49af8297537d5f56da27a551eb1b5989ad0d4d5d86e2a1ec3"}},{"ruleId":"D1","level":"warning","message":{"text":"TDDLHint.\u003Cinit\u003E (cyclomatic 47): TDDLHint.\u003Cinit\u003E has cyclomatic complexity 47 (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":"core/src/main/java/com/alibaba/druid/sql/ast/TDDLHint.java"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7247af471a888c3fb63954242f3a24615938499949e00732a707f293529dde1"}},{"ruleId":"D1","level":"warning","message":{"text":"HiveCreateTableParser.parseCreateTableRest (cyclomatic 47): HiveCreateTableParser.parseCreateTableRest has cyclomatic complexity 47 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveCreateTableParser.java"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"d55af47b8cddee991492ffac649d2c6b4c7cfab44f68ef5b7a90aab966ee8edf"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlSelectParser.query (cyclomatic 47): MySqlSelectParser.query has cyclomatic complexity 47 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectParser.java"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"51c5ad81d80b78eeaa5daeedb2db06e8a192eee85184a2f4e10b0b144223bb14"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLASTOutputVisitor.visitInternal (cyclomatic 47): SQLASTOutputVisitor.visitInternal has cyclomatic complexity 47 (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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":703}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd50ab32dd4c39e9cc03f84aef129d15983a651511b14284d2dd71f0bc3184de"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLExprParser.parseColumnRest (cyclomatic 46): SQLExprParser.parseColumnRest has cyclomatic complexity 46 (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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":4855}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdf8d7f138431987f0c322c8968c5f6ccd75d595dbaa48a70f880d3f542d6038"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cyclomatic 46): SQLASTOutputVisitor.visit has cyclomatic complexity 46 (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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":8848}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3761f5c594a1688f7e95da8eb02de40ba098af61c10c58b94e7312e8f9b98e6"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlOutputVisitor.visit (cyclomatic 45): MySqlOutputVisitor.visit has cyclomatic complexity 45 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":4794}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8cc50de465942139af16c9616045292db6ef47482f8985cb9da6efd5d2bdcb0"}},{"ruleId":"D1","level":"warning","message":{"text":"OracleOutputVisitor.visit (cyclomatic 45): OracleOutputVisitor.visit has cyclomatic complexity 45 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":2627}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cfff63d7908f14187b0877a04c24847320d8f0f65b653a6e306eb0eeb51bb3c"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLUtils.createFormatOutputVisitor (cyclomatic 45): SQLUtils.createFormatOutputVisitor has cyclomatic complexity 45 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/SQLUtils.java"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"630fc6041245bd4299413029a63c5af9c2c1c6923ffcd74006184d3cfcdc7004"}},{"ruleId":"D1","level":"warning","message":{"text":"WallProvider.checkInternal (cyclomatic 45): WallProvider.checkInternal has cyclomatic complexity 45 (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":"core/src/main/java/com/alibaba/druid/wall/WallProvider.java"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab22a87ef6b36f224df433793b15abea43356174dbc831879999f1ae0a163679"}},{"ruleId":"D1","level":"warning","message":{"text":"SchemaStatVisitor.visit (cyclomatic 44): SchemaStatVisitor.visit has cyclomatic complexity 44 (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":"core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java"},"region":{"startLine":1529}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae42c43f2ca0cf2fcedea789c6b99ccb55d5881fff31ea35a80d75d924cf14e4"}},{"ruleId":"D1","level":"warning","message":{"text":"DruidDataSource.shrink (cyclomatic 43): DruidDataSource.shrink has cyclomatic complexity 43 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/pool/DruidDataSource.java"},"region":{"startLine":3076}}}],"partialFingerprints":{"codehealthFindingId/v1":"010aa12003ee426646c604789cbfa46be940efe19767247dda1ab166191016f4"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLSelectQueryBlock.equals (cyclomatic 43): SQLSelectQueryBlock.equals has cyclomatic complexity 43 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java"},"region":{"startLine":813}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9320bc8d89c9b46c0e8fca27aad3d59da8e749f3c02af70245860f96a509e96"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlStatementParser.parseProcedureStatementList (cyclomatic 43): MySqlStatementParser.parseProcedureStatementList has cyclomatic complexity 43 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":8392}}}],"partialFingerprints":{"codehealthFindingId/v1":"2659ad75596402d0ffa5c79c508e5f157d202a55d1d180e02b9f660e7c991c10"}},{"ruleId":"D1","level":"warning","message":{"text":"OracleRowNumToLimit.visit (cyclomatic 43): OracleRowNumToLimit.visit has cyclomatic complexity 43 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleRowNumToLimit.java"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"0580831a0f08be0348c0b0a8e504f33a5a3e734447b7f4f2d18a0c8ba46fd609"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLStatementParser.parseCreate (cyclomatic 43): SQLStatementParser.parseCreate has cyclomatic complexity 43 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":4096}}}],"partialFingerprints":{"codehealthFindingId/v1":"f821e11862c061a83f14d0017e761549a1307fb8374c95c1193e2b6a759959b1"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLStatementParser.parseDrop (cyclomatic 43): SQLStatementParser.parseDrop has cyclomatic complexity 43 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":841}}}],"partialFingerprints":{"codehealthFindingId/v1":"e567ae43ed931951a8d7b607268f212d16662f7abc711954b397a6418c74a0e4"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cyclomatic 43): SQLASTOutputVisitor.visit has cyclomatic complexity 43 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":2431}}}],"partialFingerprints":{"codehealthFindingId/v1":"f429975f6a2d21f7a66c528a143e4d47cda2169a4526f9ed12dc10cf39a84e62"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cyclomatic 43): SQLASTOutputVisitor.visit has cyclomatic complexity 43 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":4187}}}],"partialFingerprints":{"codehealthFindingId/v1":"42416afb9e9fb312f1ac7315f08118b78a008df31631129e24c6884dce3be447"}},{"ruleId":"D1","level":"warning","message":{"text":"Lexer.scanSQLTypeV2 (cyclomatic 42): Lexer.scanSQLTypeV2 has cyclomatic complexity 42 (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":"core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java"},"region":{"startLine":1022}}}],"partialFingerprints":{"codehealthFindingId/v1":"e719c1ba0a0f29926ca299e5075b4eb28781765d096ee716d6a3bdfc53d81743"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLParser.tableAlias (cyclomatic 42): SQLParser.tableAlias has cyclomatic complexity 42 (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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLParser.java"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"528d12d22deab3d4d02777242d170d545c907236d83ff3e5a4aabe16e8decc05"}},{"ruleId":"D1","level":"warning","message":{"text":"StringUtils.isNumber (cyclomatic 42): StringUtils.isNumber has cyclomatic complexity 42 (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":"core/src/main/java/com/alibaba/druid/util/StringUtils.java"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"35dc5d9bb5c067ce5809d38f4b2780d429584778fa5f71723418ec6820cdddf3"}},{"ruleId":"D1","level":"warning","message":{"text":"DruidAbstractDataSource.createPhysicalConnection (cyclomatic 41): DruidAbstractDataSource.createPhysicalConnection has cyclomatic complexity 41 (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":"core/src/main/java/com/alibaba/druid/pool/DruidAbstractDataSource.java"},"region":{"startLine":1704}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d5bccaaff7e1866253c9392636180453b4cf718613c255910dbcd4531bef146"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlExprParser.parseTableOptions (cyclomatic 41): MySqlExprParser.parseTableOptions has cyclomatic complexity 41 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java"},"region":{"startLine":2512}}}],"partialFingerprints":{"codehealthFindingId/v1":"678092bf8429b17e7f3ba6de206455dbe3fc586f1ffc6c6e9aeee60e8b27294f"}},{"ruleId":"D1","level":"warning","message":{"text":"OscarSelectParser.query (cyclomatic 41): OscarSelectParser.query has cyclomatic complexity 41 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarSelectParser.java"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"615db08dca26d0f83d3a1bf7b9c0ee8f852a94a0d6fdfe238f75646fa9c1558e"}},{"ruleId":"D1","level":"warning","message":{"text":"PGSelectParser.query (cyclomatic 41): PGSelectParser.query has cyclomatic complexity 41 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSelectParser.java"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"c462fafdf5762aea8e94512d87d54375401ed48613c3f0b077115d10237b1136"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLStatementParser.parseStatementListNonStandard (cyclomatic 41): SQLStatementParser.parseStatementListNonStandard has cyclomatic complexity 41 (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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"578b77d620cfe026aacc3f531c9ccb0e202cbcd11508eb808b1b1e2434883c64"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cyclomatic 41): SQLASTOutputVisitor.visit has cyclomatic complexity 41 (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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":7870}}}],"partialFingerprints":{"codehealthFindingId/v1":"18ae60fcee2462fe7a7dfa3ce284963cdcec9ecf72f078139f479980c9d50e8a"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cyclomatic 41): SQLASTOutputVisitor.visit has cyclomatic complexity 41 (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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":5335}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae93bb7658ad01f04b501605410a7f5805f46fd5432afd8a6ca2824cef0fbfcd"}},{"ruleId":"D1","level":"warning","message":{"text":"SchemaStatVisitor.visit (cyclomatic 41): SchemaStatVisitor.visit has cyclomatic complexity 41 (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":"core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java"},"region":{"startLine":1378}}}],"partialFingerprints":{"codehealthFindingId/v1":"d28c75766177bd36c62e9ff2867175205d72ecceb2625dbaaacdb94eb825a8aa"}},{"ruleId":"D1","level":"warning","message":{"text":"StringUtils.isNumber (cyclomatic 41): StringUtils.isNumber has cyclomatic complexity 41 (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":"core/src/main/java/com/alibaba/druid/util/StringUtils.java"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"df9fd9b107586dfc0c5304ab86488fbb043ae1d00c982f83b54b206496ae6992"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLSelectQueryBlock.equalsForMergeJoin (cyclomatic 40): SQLSelectQueryBlock.equalsForMergeJoin has cyclomatic complexity 40 (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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java"},"region":{"startLine":924}}}],"partialFingerprints":{"codehealthFindingId/v1":"f32ac800e96d89803895e27a29227632fb9efa78dd540aaa881c67c6367e603e"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlSelectParser.parseTableSource (cyclomatic 40): MySqlSelectParser.parseTableSource has cyclomatic complexity 40 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectParser.java"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"72e02b15fbf0632319c61e486ec210d19f58ad0e8ba72d56882835633b6a6d50"}},{"ruleId":"D1","level":"warning","message":{"text":"OracleStatementParser.parserAlter (cyclomatic 40): OracleStatementParser.parserAlter has cyclomatic complexity 40 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java"},"region":{"startLine":1299}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9eb7a19df69b668fa53425899072e70ac19c192c99988de117c69f8cdded6ed"}},{"ruleId":"D1","level":"warning","message":{"text":"PGOutputVisitor.visit (cyclomatic 40): PGOutputVisitor.visit has cyclomatic complexity 40 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java"},"region":{"startLine":2270}}}],"partialFingerprints":{"codehealthFindingId/v1":"089868d676830d749533ddc236e803e9b8586216091b9b9c11c6e390cf363b1d"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLExprParser.over (cyclomatic 40): SQLExprParser.over has cyclomatic complexity 40 (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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":2665}}}],"partialFingerprints":{"codehealthFindingId/v1":"5726f1ba30c7b066ad1176bc7ddff4c0989fbd7381fc3d1ae42a2463284ca16b"}},{"ruleId":"D1","level":"warning","message":{"text":"DruidDataSource.getConnectionInternal (cyclomatic 39): DruidDataSource.getConnectionInternal has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/pool/DruidDataSource.java"},"region":{"startLine":1550}}}],"partialFingerprints":{"codehealthFindingId/v1":"ada5cdb3583f15e543dd8a582989ce5fefc3be5193b0295972b0ea388c358493"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLDateExpr.check (cyclomatic 39): SQLDateExpr.check has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLDateExpr.java"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ed6cc6128c32f4ada20b41ce4e5725e59abaa01783e20592ad3eba03f9a7a91"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLTimestampNTZExpr.check (cyclomatic 39): SQLTimestampNTZExpr.check has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTimestampNTZExpr.java"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"605c2b8fa55ce13c1b576292321c8f52346887a1231fa14458ea9656e8868f6f"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlCreateTableParser.partitionClauseRest (cyclomatic 39): MySqlCreateTableParser.partitionClauseRest has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java"},"region":{"startLine":1248}}}],"partialFingerprints":{"codehealthFindingId/v1":"71798c85e50d3874d7a16230f20afb3c2eff7389c93eaf298c001c28f34eb921"}},{"ruleId":"D1","level":"warning","message":{"text":"PGExprParser.primaryRest (cyclomatic 39): PGExprParser.primaryRest has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGExprParser.java"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"af9ff0b6b7c52a556ca13852b3799f3651b2cba9eb83ab9b7c5a775b615acacd"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLExprParser.inRest (cyclomatic 39): SQLExprParser.inRest has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":3208}}}],"partialFingerprints":{"codehealthFindingId/v1":"2269c20c273ea8ce78264f7a91616ef28c8f21aabf4c28763472cc18a0f81460"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLExprParser.primaryIdentifier (cyclomatic 39): SQLExprParser.primaryIdentifier has cyclomatic complexity 39 (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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":939}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7da4bca50e5a209ce1b67bbafc190455260509030b233ae2658fd7aa3a6bbe9"}},{"ruleId":"D1","level":"warning","message":{"text":"WallVisitorUtils.checkUpdate (cyclomatic 39): WallVisitorUtils.checkUpdate has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java"},"region":{"startLine":841}}}],"partialFingerprints":{"codehealthFindingId/v1":"847f356016b1bccf2850eb726bf3cdf100a0a740b484c8cf7b00c324a91ed703"}},{"ruleId":"D1","level":"warning","message":{"text":"WallVisitorUtils.getValue (cyclomatic 39): WallVisitorUtils.getValue has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java"},"region":{"startLine":989}}}],"partialFingerprints":{"codehealthFindingId/v1":"02ffb146798ca4d9f44e405ab246d7a488d3d7f662bf1f210b726caf12fb7321"}},{"ruleId":"D1","level":"warning","message":{"text":"DruidDataSource.configFromPropertiesAfterInit (cyclomatic 38): DruidDataSource.configFromPropertiesAfterInit has cyclomatic complexity 38 (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":"core/src/main/java/com/alibaba/druid/pool/DruidDataSource.java"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"be9765495c1c43d3b710f9ce00d31bfadaa2534ee94d44483e91a19f5ec796f5"}},{"ruleId":"D1","level":"warning","message":{"text":"HiveLexer.scanString (cyclomatic 38): HiveLexer.scanString has cyclomatic complexity 38 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveLexer.java"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"edffd333a460d2bd253ddebf5bcee2d4b9874a79918ee32750507ff2c9eb60af"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlOutputVisitor.visit (cyclomatic 38): MySqlOutputVisitor.visit has cyclomatic complexity 38 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":1367}}}],"partialFingerprints":{"codehealthFindingId/v1":"88b8654526b489d72ff695e9627e079ec39c431f99c37155f1e1e9132e27783e"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlExceptionSorter.isExceptionFatal (cyclomatic 37): MySqlExceptionSorter.isExceptionFatal has cyclomatic complexity 37 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/pool/vendor/MySqlExceptionSorter.java"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"6123dedfbfd11c29f29e202ab8825f6762cd9a247d0ed5bf146c6968e8348c2b"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlStatementParser.parseCreateMaterializedViewRest (cyclomatic 37): MySqlStatementParser.parseCreateMaterializedViewRest has cyclomatic complexity 37 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":9231}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a865cfc90b8646228010508382f5331de406f809fd2b2e8631ed92ebfa685d8"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLSelectParser.parseWhere (cyclomatic 37): SQLSelectParser.parseWhere has cyclomatic complexity 37 (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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java"},"region":{"startLine":684}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3fcf2c4bf361eb49a51dc0fb96ba4607dade0416dc0c084f3db59e0df68e97d"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLASTOutputVisitorBinaryOpSupport.visitBinaryOpExprGroup (cyclomatic 37): SQLASTOutputVisitorBinaryOpSupport.visitBinaryOpExprGroup has cyclomatic complexity 37 (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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitorBinaryOpSupport.java"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"51c10c075be9bf6c78426e48b3e57669c52eeaf423de292260e0aaf0292fd902"}},{"ruleId":"D1","level":"warning","message":{"text":"SqlTypeUDF.evaluate (cyclomatic 37): SqlTypeUDF.evaluate has cyclomatic complexity 37 (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":"core/src/main/java/com/alibaba/druid/support/opds/udf/SqlTypeUDF.java"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"35f93596f87f00efb5d74722a415a7c0ecd6122d56eafe9f7c11bee04a917d6f"}},{"ruleId":"D1","level":"warning","message":{"text":"WallVisitorUtils.checkUnion (cyclomatic 37): WallVisitorUtils.checkUnion has cyclomatic complexity 37 (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":"core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java"},"region":{"startLine":2254}}}],"partialFingerprints":{"codehealthFindingId/v1":"760ed5d8a6ff69998835451a4480087f9b0bf7a87763789a9e865268efb59b66"}},{"ruleId":"D1","level":"warning","message":{"text":"DmSelectParser.query (cyclomatic 36): DmSelectParser.query 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmSelectParser.java"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"6998558f81c5a6d5429217bbf972cce52776bce1b85c5ddb455661b0b88b4653"}},{"ruleId":"D1","level":"warning","message":{"text":"HiveLexer.scanComment (cyclomatic 36): HiveLexer.scanComment 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveLexer.java"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"b71c5a38d3a246c2fa67e7a8fcecf0aadda5ee478a133e207c39008e501194ac"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlOutputVisitor.visit (cyclomatic 36): MySqlOutputVisitor.visit 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":2112}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2688c4e7e0ea277ab24f5e0093456f6bfa30f8c94048cd9a30b73fdc0a2625e"}},{"ruleId":"D1","level":"warning","message":{"text":"OracleOutputVisitor.visit (cyclomatic 36): OracleOutputVisitor.visit 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":1306}}}],"partialFingerprints":{"codehealthFindingId/v1":"f40432e6187dcd3389b139c8b6389dd331777c438ae9cf7b2d908c20c890396e"}},{"ruleId":"D1","level":"warning","message":{"text":"OscarExprParser.primaryRest (cyclomatic 36): OscarExprParser.primaryRest 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarExprParser.java"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"a80a0ee566932a886a5f2e75a3ad868362308243b1acfd24fcd02a22538cf1fe"}},{"ruleId":"D1","level":"warning","message":{"text":"OscarOutputVisitor.visit (cyclomatic 36): OscarOutputVisitor.visit 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":1549}}}],"partialFingerprints":{"codehealthFindingId/v1":"cabc3973777ad2456c12fc653dd00aae85b4f5e4a041ab9755e5ef2498c4f3c8"}},{"ruleId":"D1","level":"warning","message":{"text":"PGOutputVisitor.visit (cyclomatic 36): PGOutputVisitor.visit 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java"},"region":{"startLine":1926}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dd587b5ba00c1f694c415b07fa01b888ec3038eb6c1129a531f8327065938ab"}},{"ruleId":"D1","level":"warning","message":{"text":"Lexer.scanVariable (cyclomatic 36): Lexer.scanVariable 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java"},"region":{"startLine":2246}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec7e3a9a0c2f40456adc61277074abec4d1079f748274630fdb15920e18b71f9"}},{"ruleId":"D1","level":"warning","message":{"text":"WallFilter.initWallProviderInternal (cyclomatic 36): WallFilter.initWallProviderInternal has cyclomatic complexity 36 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/wall/WallFilter.java"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"e32b3f8fc2e6dacfcdaff198da4cf57d88b22b11fb0c4a11b2c445a9454f60dd"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlLexer.scanIdentifier (cyclomatic 35): MySqlLexer.scanIdentifier has cyclomatic complexity 35 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"0066348ec6e37a88c81180b4a6d6b211e344011eab1b08823bd43aabffa6659b"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLSelectParser.parseGroupBy (cyclomatic 35): SQLSelectParser.parseGroupBy has cyclomatic complexity 35 (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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java"},"region":{"startLine":893}}}],"partialFingerprints":{"codehealthFindingId/v1":"4de589c35f1151a5e04147c0a622ff9cb12eda8409ad4be0c4727df23a83dc3e"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLASTOutputVisitor.printTableSourceExpr (cyclomatic 35): SQLASTOutputVisitor.printTableSourceExpr has cyclomatic complexity 35 (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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":3006}}}],"partialFingerprints":{"codehealthFindingId/v1":"edc1366df3bac420edb8a5bb208974c3e204ba45655484918188913c67471537"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cyclomatic 35): SQLASTOutputVisitor.visit has cyclomatic complexity 35 (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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":6875}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a67816e6f109564be066b503b1f56190cad21ed9a297036701660e8dbce7fa5"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cyclomatic 35): SQLASTOutputVisitor.visit has cyclomatic complexity 35 (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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":4715}}}],"partialFingerprints":{"codehealthFindingId/v1":"b05b208aa006dbce59185154124b87d68694d0a123df5629994b433ffa9d1782"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLASTOutputVisitor.visitBinaryLeft (cyclomatic 35): SQLASTOutputVisitor.visitBinaryLeft has cyclomatic complexity 35 (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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":954}}}],"partialFingerprints":{"codehealthFindingId/v1":"41af1fdd3da24af111438b89286febd6396071b4d9235066d91615928838e55e"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLEvalVisitorUtils.div (cyclomatic 35): SQLEvalVisitorUtils.div has cyclomatic complexity 35 (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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java"},"region":{"startLine":1597}}}],"partialFingerprints":{"codehealthFindingId/v1":"763d07bd303d280065f1bba814e9fdd3c262f6bbf3960147ab8d32199bd97a61"}},{"ruleId":"D1","level":"warning","message":{"text":"DruidDataSourceStatLoggerImpl.log (cyclomatic 34): DruidDataSourceStatLoggerImpl.log has cyclomatic complexity 34 (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":"core/src/main/java/com/alibaba/druid/pool/DruidDataSourceStatLoggerImpl.java"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"20bb415a43d97159b757f1187668ce7ae05d22a7c7890b31c0671ef6e7d4469a"}},{"ruleId":"D1","level":"warning","message":{"text":"ImpalaCreateTableParser.parseCreateTableRest (cyclomatic 34): ImpalaCreateTableParser.parseCreateTableRest has cyclomatic complexity 34 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/impala/parser/ImpalaCreateTableParser.java"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"91df00b8b526b79a7a0c51b2f9b50cb9a37ee66db226a1e3a0d9414541252a26"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlExprParser.parseIndexOptions (cyclomatic 34): MySqlExprParser.parseIndexOptions has cyclomatic complexity 34 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6667cbf0a69a1af7fe6ed51651b74a9baf64cf4305e1c1610d298eb274f69ae"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlOutputVisitor.visit (cyclomatic 34): MySqlOutputVisitor.visit has cyclomatic complexity 34 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":2223}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fc03dbce5130837c1c25a93e0d09aa1b59a698dc7df85dfe9a42c49d2ffa9e3"}},{"ruleId":"D1","level":"warning","message":{"text":"OracleStatementParser.parseCreateIndex (cyclomatic 34): OracleStatementParser.parseCreateIndex has cyclomatic complexity 34 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java"},"region":{"startLine":2556}}}],"partialFingerprints":{"codehealthFindingId/v1":"461c260bd1a08cf2e82f611d19b397929fd96e4acb9ba341f1b41e400d29430a"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cyclomatic 34): SQLASTOutputVisitor.visit has cyclomatic complexity 34 (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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":5703}}}],"partialFingerprints":{"codehealthFindingId/v1":"8067dcf3dccd54d1392bf53a77768430e9fbe23d0ec30d71932591bdd0c0b208"}},{"ruleId":"D1","level":"warning","message":{"text":"SchemaStatVisitor.unwrapExpr (cyclomatic 34): SchemaStatVisitor.unwrapExpr has cyclomatic complexity 34 (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":"core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java"},"region":{"startLine":1002}}}],"partialFingerprints":{"codehealthFindingId/v1":"573fa639f30d6bfc71f2b7b98d90c563cf299506db650188f35de1e04c12fc91"}},{"ruleId":"D1","level":"warning","message":{"text":"JdbcUtils.printResultSet (cyclomatic 34): JdbcUtils.printResultSet has cyclomatic complexity 34 (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 is NOT this file\u0027s highest cyclomatic complexity: JdbcUtils.getTypeName (cyclomatic 36) 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/util/JdbcUtils.java"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdd1f18282823e794ed71dabbd2ea3120588f3ad49fcea2d39f0916ae30e6b34"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlExprParser.parseColumnRest (cyclomatic 33): MySqlExprParser.parseColumnRest has cyclomatic complexity 33 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java"},"region":{"startLine":1784}}}],"partialFingerprints":{"codehealthFindingId/v1":"be1506774d4ff264a37158f4f23bbc72d0b277cbe45c7af4105b00122d5bd128"}},{"ruleId":"D1","level":"warning","message":{"text":"OracleOutputVisitor.visit (cyclomatic 33): OracleOutputVisitor.visit has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":1613}}}],"partialFingerprints":{"codehealthFindingId/v1":"be4544f73be0895af054e87959000c807a1d8462983a60e6d77d4f4d15130d6a"}},{"ruleId":"D1","level":"warning","message":{"text":"SchemaStatVisitor.getColumn (cyclomatic 33): SchemaStatVisitor.getColumn has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java"},"region":{"startLine":864}}}],"partialFingerprints":{"codehealthFindingId/v1":"248b9b9accd29a4f30258a7b10c0487acef27d792ec60d92fcc814b8c560debd"}},{"ruleId":"D1","level":"warning","message":{"text":"WallVisitorUtils.preVisitCheck (cyclomatic 33): WallVisitorUtils.preVisitCheck has cyclomatic complexity 33 (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":"core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java"},"region":{"startLine":2534}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6b7ecfb208f58163f038f69657026e67f1215b2c504275a321e6cf1aba73076"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLBinaryOpExpr.computeDataType (cyclomatic 32): SQLBinaryOpExpr.computeDataType has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLBinaryOpExpr.java"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"9881da3025eee0a8c883f164208fd0bbea6c6692bfca9ce1dc77d187713b0d9e"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLMethodInvokeExpr.computeDataType (cyclomatic 32): SQLMethodInvokeExpr.computeDataType has cyclomatic complexity 32 (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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLMethodInvokeExpr.java"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8f6142091a50a423f261875837bb0bb3eec16559a8634ae75a1587985e1e2df"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlLexer.scanString (cyclomatic 32): MySqlLexer.scanString has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9e98afbac6e69174e93e9efa7d90a907f57cf9aaac6ee3a3fc7640eea55fe55"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlStatementParser.parseFlush (cyclomatic 32): MySqlStatementParser.parseFlush has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":2194}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb5663ee0de8a0a4e218e055bd662535f47d3124c057f4d8ed168c9486192062"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlOutputVisitor.visit (cyclomatic 32): MySqlOutputVisitor.visit has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":3948}}}],"partialFingerprints":{"codehealthFindingId/v1":"e11725bda1ef2d86fd310cf78a54292388d3eb3682e59c3782f9f60de33ed9ad"}},{"ruleId":"D1","level":"warning","message":{"text":"OracleExprParser.parseDataType (cyclomatic 32): OracleExprParser.parseDataType has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ecfa6cc6903e58944d540eeb6bbf535f87849f5ba69dc4cb832f771a70ff85a"}},{"ruleId":"D1","level":"warning","message":{"text":"OscarOutputVisitor.visit (cyclomatic 32): OscarOutputVisitor.visit has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":1186}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3e6e7398aa52d20bcf54a4153b3ed9038965adfcb5fe0007d78f33e3d96d955"}},{"ruleId":"D1","level":"warning","message":{"text":"PrestoStatementParser.parseStatementListDialect (cyclomatic 32): PrestoStatementParser.parseStatementListDialect has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/presto/parser/PrestoStatementParser.java"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"282827f447ad84d7572e03b7c45084b654f53be8b3720c62ffbd520e5df17ed2"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLSelectParser.parseTableSource (cyclomatic 32): SQLSelectParser.parseTableSource has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java"},"region":{"startLine":1219}}}],"partialFingerprints":{"codehealthFindingId/v1":"cab05a95a7b1ecac430970bf62bbf93a3e77d06c2135679a7ed662ae02b90dc2"}},{"ruleId":"D1","level":"warning","message":{"text":"SchemaStatVisitor.visitOrderBy (cyclomatic 32): SchemaStatVisitor.visitOrderBy has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca5cea1b7ffac98bc8add925437eb8e94a5ac871f04180a02495d2e66f21f945"}},{"ruleId":"D1","level":"warning","message":{"text":"WallVisitorUtils.getValue (cyclomatic 32): WallVisitorUtils.getValue has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java"},"region":{"startLine":1483}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3112f850b051e0b3cdd140a4b3b074950904bc300a5e61bbbc659c1d5486d82"}},{"ruleId":"D1","level":"warning","message":{"text":"DruidDataSource.recycle (cyclomatic 31): DruidDataSource.recycle has cyclomatic complexity 31 (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":"core/src/main/java/com/alibaba/druid/pool/DruidDataSource.java"},"region":{"startLine":1901}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f77d0ad17d3cca2aec2b9059f829edb95d8234fd9660d7795d36b4b772c8c23"}},{"ruleId":"D1","level":"warning","message":{"text":"OracleToMySqlOutputVisitor.visit (cyclomatic 31): OracleToMySqlOutputVisitor.visit has cyclomatic complexity 31 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleToMySqlOutputVisitor.java"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d6c355cc7576008185bead2d4bb797e1b4b7d6dd677ced46c176d810e7ac2f8"}},{"ruleId":"D1","level":"warning","message":{"text":"Lexer.scanAlias (cyclomatic 31): Lexer.scanAlias has cyclomatic complexity 31 (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":"core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java"},"region":{"startLine":2089}}}],"partialFingerprints":{"codehealthFindingId/v1":"a99bd7617f14354730deffd10afa7872078119be2ff0918d5bcaa8f65a12e4bb"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLStatementParser.alterTableAfterName (cyclomatic 31): SQLStatementParser.alterTableAfterName has cyclomatic complexity 31 (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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":2265}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c4ec5a69acff3bd5011fc4d253cb3cd03849b248e53d6f372c84a785d6003e1"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLEvalVisitorUtils.add (cyclomatic 31): SQLEvalVisitorUtils.add has cyclomatic complexity 31 (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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java"},"region":{"startLine":1898}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a8e6ddaec5ea4cac96d74a31b0ffc22900f027531956eee228fa00092eb625f"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlUtils.getLastPacketReceivedTimeMs (cyclomatic 31): MySqlUtils.getLastPacketReceivedTimeMs has cyclomatic complexity 31 (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":"core/src/main/java/com/alibaba/druid/util/MySqlUtils.java"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"acf95cde31ce5302c3d696ec7c7c5d2400255e1227adff1dd8e1d9e9b2da471c"}},{"ruleId":"D1","level":"warning","message":{"text":"GaussDbStatementParser.parseInsert (cyclomatic 30): GaussDbStatementParser.parseInsert has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/parser/GaussDbStatementParser.java"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a5040ce966412418c25e9aeda9974aa7298ea66e59ea35d06196e7cc61f1e0e"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlExprParser.primaryRest (cyclomatic 30): MySqlExprParser.primaryRest has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java"},"region":{"startLine":1360}}}],"partialFingerprints":{"codehealthFindingId/v1":"4205b97e78453a3a44a8616e9d968c1500469427c743521ae1f2c9ee4bf577e2"}},{"ruleId":"D1","level":"warning","message":{"text":"OracleExprParser.parseAggregateExpr (cyclomatic 30): OracleExprParser.parseAggregateExpr has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java"},"region":{"startLine":777}}}],"partialFingerprints":{"codehealthFindingId/v1":"37a21ea07584e3aed3202e287d4867b6301389e3c73c9ee0eade72cea6ce937a"}},{"ruleId":"D1","level":"warning","message":{"text":"OracleSelectParser.parseTableSourceRest (cyclomatic 30): OracleSelectParser.parseTableSourceRest has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleSelectParser.java"},"region":{"startLine":808}}}],"partialFingerprints":{"codehealthFindingId/v1":"03001e8aa946595576c7f1bf0c70879eee9ee17ecf50324f33cb4e9c940c0a88"}},{"ruleId":"D1","level":"warning","message":{"text":"OracleStatementParser.parseAlterTable (cyclomatic 30): OracleStatementParser.parseAlterTable has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java"},"region":{"startLine":1585}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3fe605a0b5a66cdca577dad4f616ec8e795a54a8148bb06439bc2b370b3c387"}},{"ruleId":"D1","level":"warning","message":{"text":"OscarOutputVisitor.visit (cyclomatic 30): OscarOutputVisitor.visit has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":2280}}}],"partialFingerprints":{"codehealthFindingId/v1":"74d69b72d525c6df5dfcce155dc5fc271377ab12f024c39436249c7a957a08fb"}},{"ruleId":"D1","level":"warning","message":{"text":"OscarOutputVisitor.visit (cyclomatic 30): OscarOutputVisitor.visit has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce50b15fb89817e683d42a78de1d51f252d99f1d9817eeb87d52980c43d4a675"}},{"ruleId":"D1","level":"warning","message":{"text":"PGOutputVisitor.visit (cyclomatic 30): PGOutputVisitor.visit has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java"},"region":{"startLine":2773}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fbd55c635a51fa5716610719a5854e45b2bb978ae6a62a24069b43c3129275d"}},{"ruleId":"D1","level":"warning","message":{"text":"PGOutputVisitor.visit (cyclomatic 30): PGOutputVisitor.visit has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java"},"region":{"startLine":1566}}}],"partialFingerprints":{"codehealthFindingId/v1":"083ad787260915a65f1409712b2144b9f13e220fdeb6b290609ec2fd5793b042"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLExprParser.expr (cyclomatic 30): SQLExprParser.expr has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: SQLExprParser.parseInterval (cyclomatic 33) 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c6faccf178ad0cf2839eefe884c53b0a0a2ced5a6098757290082a4d47916c3"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLExprParser.primarySub (cyclomatic 30): SQLExprParser.primarySub has cyclomatic complexity 30 (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 is NOT this file\u0027s highest cyclomatic complexity: SQLExprParser.parseInterval (cyclomatic 33) 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":1170}}}],"partialFingerprints":{"codehealthFindingId/v1":"aff839da9d8397af332d8144a012a8f4cbc92faea8a80e368e73dff5efbb13b9"}},{"ruleId":"D1","level":"warning","message":{"text":"SchemaResolveVisitorFactory.resolve (cyclomatic 30): SchemaResolveVisitorFactory.resolve has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java"},"region":{"startLine":1887}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e635fe392ed0e834448324c7c992909521e3e8e1ea84145021da52ffe477d53"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLEvalVisitorUtils.eq (cyclomatic 30): SQLEvalVisitorUtils.eq has cyclomatic complexity 30 (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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java"},"region":{"startLine":1826}}}],"partialFingerprints":{"codehealthFindingId/v1":"05538b1204cb4a354c2af1473f75ec2d4c3c497e133cabd0512febfb61001e63"}},{"ruleId":"D1","level":"warning","message":{"text":"SchemaStatVisitor.visit (cyclomatic 30): SchemaStatVisitor.visit has cyclomatic complexity 30 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"996017882c007baec9fe60cf13cba294107671b97cbdb71cadfc9fa122d0c746"}},{"ruleId":"D1","level":"warning","message":{"text":"SchemaStatVisitor.visit (cyclomatic 30): SchemaStatVisitor.visit has cyclomatic complexity 30 (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":"core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java"},"region":{"startLine":1213}}}],"partialFingerprints":{"codehealthFindingId/v1":"49a342ba6d95f4a88147e1d1a5a057e4188b81eaab14a799af7bef83fb9f7705"}},{"ruleId":"D1","level":"warning","message":{"text":"SqlTypeUDF.getStmtSqlType (cyclomatic 30): SqlTypeUDF.getStmtSqlType has cyclomatic complexity 30 (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":"core/src/main/java/com/alibaba/druid/support/opds/udf/SqlTypeUDF.java"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2a12989b5e720d511c66eb48f1f4e1382da46f412efba4e0413adcf19faa08e"}},{"ruleId":"D1","level":"warning","message":{"text":"DB2ExprParser.primaryRest (cyclomatic 29): DB2ExprParser.primaryRest 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":"core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2ExprParser.java"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"45f362d4ccb1d28e84f27c55b46e758e307df3beb5ee0a08eed7b9451c0c9dc0"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlOutputVisitor.visit (cyclomatic 29): MySqlOutputVisitor.visit 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":5623}}}],"partialFingerprints":{"codehealthFindingId/v1":"b15ff987742831e10a33354cc56fa5f72aace59ce09a0e63f47e7297ffe32c4d"}},{"ruleId":"D1","level":"warning","message":{"text":"Lexer.scanIdentifier (cyclomatic 29): Lexer.scanIdentifier 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. This shape REPEATS in the file: one other method here (Lexer.scanIdentifier0) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java"},"region":{"startLine":2585}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6e623010334bda9c320a28707472ef29464ce4d5447a1dcb00fab6b14747654"}},{"ruleId":"D1","level":"warning","message":{"text":"Lexer.scanIdentifier0 (cyclomatic 29): Lexer.scanIdentifier0 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. This shape REPEATS in the file: one other method here (Lexer.scanIdentifier) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java"},"region":{"startLine":2721}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce1d72baa47be569354f16e64d0c38324b31d4c92ddd56e48bc5afbfc81a2371"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLParserUtils.split (cyclomatic 29): SQLParserUtils.split 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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLParserUtils.java"},"region":{"startLine":693}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ec0229bc9c9a106f0af75b0d261de44224c21980ad20c75f56ffafaafc1f002"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLStatementParser.parseGrant (cyclomatic 29): SQLStatementParser.parseGrant 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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":1566}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ad22a295427bd33f353bb5efd8f24ff019fcfa497a77a8a069d21750457e263"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cyclomatic 29): SQLASTOutputVisitor.visit 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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":3536}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a7df73b10781e6902a5ddf4eeff7c1a5b1b51abb70ec755407701d495dffa0f"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cyclomatic 29): SQLASTOutputVisitor.visit 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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":7019}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1b1025c9fccf1991662305f16b1a93379c73095be5fd9db6605fd8906debd81"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cyclomatic 29): SQLASTOutputVisitor.visit 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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":4531}}}],"partialFingerprints":{"codehealthFindingId/v1":"51a01f5ef71c0fa3444d524370202d4ae858ccf49ff6d2513446b3fe92f35e54"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLEvalVisitorUtils.sub (cyclomatic 29): SQLEvalVisitorUtils.sub has cyclomatic complexity 29 (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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java"},"region":{"startLine":1969}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dbcf74092908f618facd79101e90e7b7d5aaac1e5aab0c4d6304bc4b9eb1284"}},{"ruleId":"D1","level":"warning","message":{"text":"DruidStatService.service (cyclomatic 29): DruidStatService.service has cyclomatic complexity 29 (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":"core/src/main/java/com/alibaba/druid/stat/DruidStatService.java"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eb55267fba82e2b0a307f2378cf9426f21a8ccda9f55f4bfcc2cb4f71a08fd0"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlUtils.toJavaFormat (cyclomatic 29): MySqlUtils.toJavaFormat has cyclomatic complexity 29 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/util/MySqlUtils.java"},"region":{"startLine":884}}}],"partialFingerprints":{"codehealthFindingId/v1":"0783eb4bcb73298e0d251003efcee803f7831ab00abb76c19186845ce2660d93"}},{"ruleId":"D1","level":"warning","message":{"text":"BigQueryLexer.scanAlias (cyclomatic 28): BigQueryLexer.scanAlias has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryLexer.java"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f95ace881680896c7754da3fdfeed08de492ef0dcccdc4be2ffd2b84aeff54f"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlOutputVisitor.printValuesList (cyclomatic 28): MySqlOutputVisitor.printValuesList has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":1267}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdda6fe5aed70e981ffb3b55ea63a54127f52709e16028c28a22f76d02f01a53"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlOutputVisitor.visit (cyclomatic 28): MySqlOutputVisitor.visit has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":1015}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d28bcf5e26b4e86a78c9044e3e30b63ea929988755d497fdf4c00ba7857307e"}},{"ruleId":"D1","level":"warning","message":{"text":"OracleOutputVisitor.visit (cyclomatic 28): OracleOutputVisitor.visit has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":1722}}}],"partialFingerprints":{"codehealthFindingId/v1":"92894657f5ed32ac2fbc952db1df20281a7bbc355cf2c4007c2cf2fe821cad54"}},{"ruleId":"D1","level":"warning","message":{"text":"OscarOutputVisitor.visit (cyclomatic 28): OscarOutputVisitor.visit has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":1668}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d6522a793f9b03368bead5ffbf1837cfc828e2dcdd77c875fa7e12f798ccaf0"}},{"ruleId":"D1","level":"warning","message":{"text":"PGOutputVisitor.visit (cyclomatic 28): PGOutputVisitor.visit has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java"},"region":{"startLine":2058}}}],"partialFingerprints":{"codehealthFindingId/v1":"afb7753b947a97ffe37772f4609c07cd3185375cefdc4d368021d8d2972c962a"}},{"ruleId":"D1","level":"warning","message":{"text":"Lexer.nextTokenValue (cyclomatic 28): Lexer.nextTokenValue has cyclomatic complexity 28 (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":"core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"7480bbc8feeae5576814d9efe7622433b0b1366317b4ab5d2d04490c6bcd5c8c"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLStatementParser.parseCreateMaterializedView (cyclomatic 28): SQLStatementParser.parseCreateMaterializedView has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":4345}}}],"partialFingerprints":{"codehealthFindingId/v1":"dae42fd5ba39fe9a02d9788fc21c4b859d0891ef1b445338e8061b9b1c896c55"}},{"ruleId":"D1","level":"warning","message":{"text":"SchemaResolveVisitorFactory.extractColumns (cyclomatic 28): SchemaResolveVisitorFactory.extractColumns has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java"},"region":{"startLine":1617}}}],"partialFingerprints":{"codehealthFindingId/v1":"333760412b4ca1f8fd6fcc44ae0af6ff4b012898268534d7ce0bef96f009c75a"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cyclomatic 28): SQLASTOutputVisitor.visit has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":9321}}}],"partialFingerprints":{"codehealthFindingId/v1":"181c527ed170e78c96115efaa8b3aa7f58700444bce8bd28b4f15eab8736484c"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cyclomatic 28): SQLASTOutputVisitor.visit has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":6565}}}],"partialFingerprints":{"codehealthFindingId/v1":"c09a11b01d94b36e47e3dfe784fea410ec3e2a44d42354b0ea78c14de4082054"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlUtils.createXAConnection (cyclomatic 28): MySqlUtils.createXAConnection has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/util/MySqlUtils.java"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"25e01d91503984ce47047b7b4f8760e657fb1774e2ffce309fdfeb83bb4ed5c2"}},{"ruleId":"D1","level":"warning","message":{"text":"CreateConnectionTask.runInternal (cyclomatic 27): CreateConnectionTask.runInternal has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/pool/DruidDataSource.java"},"region":{"startLine":2586}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc14ab6da2223423f759cf53b6e14e9ce919624344c28c46ca55043cfa5e3740"}},{"ruleId":"D1","level":"warning","message":{"text":"BigQueryLexer.scanString (cyclomatic 27): BigQueryLexer.scanString has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryLexer.java"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"d01307d3f6eacf3631856bfc94eea050453559602cc2953b19a4697682e09fe8"}},{"ruleId":"D1","level":"warning","message":{"text":"DmOutputVisitor.visit (cyclomatic 27): DmOutputVisitor.visit has cyclomatic complexity 27 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmOutputVisitor.java"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"acddd5798fb7a990c67c6e1c17aa086f61f38ab38e3cce7e147e617edd9a582a"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlExprParser.parsePartition (cyclomatic 27): MySqlExprParser.parsePartition has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java"},"region":{"startLine":2385}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fe564a4816dbe28a0f6114d690328026912cf457bd3c1642207f3c0cf220e7e"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlExprParser.primaryIdentifierRest (cyclomatic 27): MySqlExprParser.primaryIdentifierRest has cyclomatic complexity 27 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8fdfd028def0acb66af5ac5a63b4745c9f474110f42eff67cb17c4257b25ec3"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlSelectParser.parseTableSourceRest (cyclomatic 27): MySqlSelectParser.parseTableSourceRest has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectParser.java"},"region":{"startLine":683}}}],"partialFingerprints":{"codehealthFindingId/v1":"b53b22ad1c91c3000d106f9195280da95c4487e6f72021e9940961adde62530a"}},{"ruleId":"D1","level":"warning","message":{"text":"OdpsStatementParser.parsePrivilege (cyclomatic 27): OdpsStatementParser.parsePrivilege has cyclomatic complexity 27 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsStatementParser.java"},"region":{"startLine":1421}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2c47aa6289df860a8a51e111e3bb000039e963992ceab59a4b512833f4d5994"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLExprParser.notRationalRest (cyclomatic 27): SQLExprParser.notRationalRest has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: SQLExprParser.parseInterval (cyclomatic 33) 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":4119}}}],"partialFingerprints":{"codehealthFindingId/v1":"a20c035d7480598c92153486d3d200207df9f6207d02bbabc743e8ed8d8e2391"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLExprParser.primaryRest (cyclomatic 27): SQLExprParser.primaryRest has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: SQLExprParser.parseInterval (cyclomatic 33) 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":1590}}}],"partialFingerprints":{"codehealthFindingId/v1":"41e6aedb6dbd4cae809e0cfdb37385cf538f4b7261c664465addbe707a622eae"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLStatementParser.parseCreateSequence (cyclomatic 27): SQLStatementParser.parseCreateSequence has cyclomatic complexity 27 (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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":4728}}}],"partialFingerprints":{"codehealthFindingId/v1":"14e65edf32bf44ba2dfdc6b366b5279a16f92e82d7033dd4655373569d0fe79c"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLStatementParser.parseCreateView (cyclomatic 27): SQLStatementParser.parseCreateView has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":5002}}}],"partialFingerprints":{"codehealthFindingId/v1":"644a634d8511b4bacd6f084907a263debb9e8603df0dfd0b06879fc95b5a7430"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cyclomatic 27): SQLASTOutputVisitor.visit has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":9871}}}],"partialFingerprints":{"codehealthFindingId/v1":"711bcab754169769573a4a917be080dc7053f866b6f73034d06ba65ff1822c28"}},{"ruleId":"D1","level":"warning","message":{"text":"DruidStatManagerFacade.mergeWallStat (cyclomatic 27): DruidStatManagerFacade.mergeWallStat has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/stat/DruidStatManagerFacade.java"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"c68cb7a961707002bbad7043c95eccdb5991c41ed3ab54d4a5b8f3d8afd65376"}},{"ruleId":"D1","level":"warning","message":{"text":"CalciteMySqlNodeVisitor.visit (cyclomatic 27): CalciteMySqlNodeVisitor.visit has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/support/calcite/CalciteMySqlNodeVisitor.java"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e83793c7b9ba9a80523910c7489a8f1e679ee45d2425c1b19b5fe2ab79a57ed"}},{"ruleId":"D1","level":"warning","message":{"text":"FnvHash.hashCode64 (cyclomatic 27): FnvHash.hashCode64 has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/util/FnvHash.java"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1f2782c7e3c1ca90c36ffe7077b1d7fa80d787ee458e6a5cfe3edcb6142733f"}},{"ruleId":"D1","level":"warning","message":{"text":"WallVisitorUtils.check (cyclomatic 27): WallVisitorUtils.check has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java"},"region":{"startLine":2165}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d830a40fe7287f6c003552e12037a8b38bb910d00a8643eaf08da3833c087c1"}},{"ruleId":"D1","level":"warning","message":{"text":"ProxoolDataSource.populatePropertiesFromReference (cyclomatic 27): ProxoolDataSource.populatePropertiesFromReference has cyclomatic complexity 27 (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":"druid-wrapper/src/main/java/org/logicalcobwebs/proxool/ProxoolDataSource.java"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bd85c1631c62bd27fc2ca8ad8e6b7036d15adf15c81d41254f631ce8dfc20ae"}},{"ruleId":"D1","level":"warning","message":{"text":"CreateConnectionThread.run (cyclomatic 26): CreateConnectionThread.run has cyclomatic complexity 26 (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":"core/src/main/java/com/alibaba/druid/pool/DruidDataSource.java"},"region":{"startLine":2743}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a71f95c1122468463be79e3cf9607a39f2070a72b0e872c73f68ce3d7edf19d"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLSelect.equals (cyclomatic 26): SQLSelect.equals has cyclomatic complexity 26 (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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelect.java"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5d1614975f77faf7aae97dc706bffae7eb9ba0427811519d61fea913ae0c8c0"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLSelectQueryBlock.cloneTo (cyclomatic 26): SQLSelectQueryBlock.cloneTo has cyclomatic complexity 26 (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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java"},"region":{"startLine":1033}}}],"partialFingerprints":{"codehealthFindingId/v1":"513248f7790f82b2506810843632401066318a90e6eb404b4d9b03931bd3ef11"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlStatementParser.parseExplain (cyclomatic 26): MySqlStatementParser.parseExplain has cyclomatic complexity 26 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":2381}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee25e9343958aa450c8142e5d2f9758d40df93530fba475bc631cb96145e105c"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlStatementParser.parseLoadDataInFile (cyclomatic 26): MySqlStatementParser.parseLoadDataInFile has cyclomatic complexity 26 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":4330}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c6f6354b87f00c487b442ef00103822d00d67e7810c5a8209f4fb23c5bb49ef"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlStatementParser.parseSet (cyclomatic 26): MySqlStatementParser.parseSet has cyclomatic complexity 26 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":4895}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ad4672a7dbf3f5676e21254c70d6c332e63f6c6a30ea9c4905c8fcd7ed70b30"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlOutputVisitor.visit (cyclomatic 26): MySqlOutputVisitor.visit has cyclomatic complexity 26 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":3448}}}],"partialFingerprints":{"codehealthFindingId/v1":"000959fffe62ed9ce0b1614ac4ff0298e1a3053771d0a8c69e5b32e7b02a3dc7"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlOutputVisitor.visit (cyclomatic 26): MySqlOutputVisitor.visit has cyclomatic complexity 26 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":1451}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2d9faced2795f03cd5407f73c3a895fc13bbeb4b907f5bfe6c159e45cc1c293"}},{"ruleId":"D1","level":"warning","message":{"text":"OscarOutputVisitor.visit (cyclomatic 26): OscarOutputVisitor.visit has cyclomatic complexity 26 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"c093dcbc56567f67bd3fa7a129154349722c363e52436858287475e6f6be55b1"}},{"ruleId":"D1","level":"warning","message":{"text":"PGSelectParser.parseTableSourceTableSample (cyclomatic 26): PGSelectParser.parseTableSourceTableSample has cyclomatic complexity 26 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSelectParser.java"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c1177da6becce8a2087a3dc752fc7cb02e9a6b36393143e5cc10f5e2f57d3fd"}},{"ruleId":"D1","level":"warning","message":{"text":"SnowflakeStatementParser.parseShow (cyclomatic 26): SnowflakeStatementParser.parseShow has cyclomatic complexity 26 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeStatementParser.java"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a96b27a4d5a451763dc8d524a3ae357984143e70108b5cfc934408677eee209"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLStatementParser.alterSequence (cyclomatic 26): SQLStatementParser.alterSequence has cyclomatic complexity 26 (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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":7356}}}],"partialFingerprints":{"codehealthFindingId/v1":"722b27949f88358d910c19e4c5fe5b7ffd5e6d2057f7369e93728d53cd76fd07"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLStatementParser.parseTruncate (cyclomatic 26): SQLStatementParser.parseTruncate has cyclomatic complexity 26 (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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":3674}}}],"partialFingerprints":{"codehealthFindingId/v1":"23a33b1ec4876a21340fcda1e509e333f4f9c5cc05af3038ff3320a6264d0164"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLASTOutputVisitor.printParameter (cyclomatic 26): SQLASTOutputVisitor.printParameter has cyclomatic complexity 26 (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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":3298}}}],"partialFingerprints":{"codehealthFindingId/v1":"a64316ce94c3c83b3863aeba1f94f2c2383499ae4f2734f605e7b5cdf54ee77a"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cyclomatic 26): SQLASTOutputVisitor.visit has cyclomatic complexity 26 (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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":5588}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac4f38cbdba81980c27a680fe2271a11bc5ab983352db1751594e1991384dc29"}},{"ruleId":"D1","level":"warning","message":{"text":"PreparedStatementProxyImpl.setObjectParameter (cyclomatic 25): PreparedStatementProxyImpl.setObjectParameter has cyclomatic complexity 25 (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":"core/src/main/java/com/alibaba/druid/proxy/jdbc/PreparedStatementProxyImpl.java"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"de0513fc0564239c4d29bef497c2c3f35323d5acbd9bbc00a7b1d11484ecdfb9"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlStatementParser.parseDeleteStatement (cyclomatic 25): MySqlStatementParser.parseDeleteStatement has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9484def9074ed2420ca21de9757e5b339cdf42f6ae870b868c1947991d578d2"}},{"ruleId":"D1","level":"warning","message":{"text":"OracleOutputVisitor.printCreateFunctionBody (cyclomatic 25): OracleOutputVisitor.printCreateFunctionBody has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":2059}}}],"partialFingerprints":{"codehealthFindingId/v1":"367f759d314e33da6dfef4ed901afc61f4856ff2c83cfa6e4811a24ff3318a09"}},{"ruleId":"D1","level":"warning","message":{"text":"Lexer.scanString2_d (cyclomatic 25): Lexer.scanString2_d has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java"},"region":{"startLine":1902}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf7fbd9e2ee69305bc8f456a7a2cfefbc34e778328c9cfe201ae6179892f6a79"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLExprParser.parseSelectOrderByItem (cyclomatic 25): SQLExprParser.parseSelectOrderByItem has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: SQLExprParser.parseInterval (cyclomatic 33) 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":2996}}}],"partialFingerprints":{"codehealthFindingId/v1":"5038e03e9623ec8951496bfd8370c4b30d8e48b66490466a92dd8d903df1f88a"}},{"ruleId":"D1","level":"warning","message":{"text":"SchemaRepository.acceptCreateTable (cyclomatic 25): SchemaRepository.acceptCreateTable has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/repository/SchemaRepository.java"},"region":{"startLine":966}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a1353a8f291af32c8c7e586b20a749d3938f9f1bf01545967ff8c12e5b7fac6"}},{"ruleId":"D1","level":"warning","message":{"text":"ExportParameterVisitorUtils.exportParameter (cyclomatic 25): ExportParameterVisitorUtils.exportParameter has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/ExportParameterVisitorUtils.java"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"75e94c5928f23713671909b86e929c6927b02923d502e09965a3e14ad524a95c"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cyclomatic 25): SQLASTOutputVisitor.visit has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":12280}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7e3da060cc2968987feefe26604871853a0ad14f50e484fb7f2292475942cbe"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cyclomatic 25): SQLASTOutputVisitor.visit has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":5984}}}],"partialFingerprints":{"codehealthFindingId/v1":"0827950731cb2a6ba68e4fd1d79909d713f261c6c24df2910a3e7035eacb52a1"}},{"ruleId":"D1","level":"warning","message":{"text":"SchemaStatVisitor.handleCondition (cyclomatic 25): SchemaStatVisitor.handleCondition has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java"},"region":{"startLine":764}}}],"partialFingerprints":{"codehealthFindingId/v1":"757329e3f84ad74a105ac4364414938436fb2f9460bfe956bd5ba1ae44987513"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLColumnDefinition.clone (cyclomatic 24): SQLColumnDefinition.clone has cyclomatic complexity 24 (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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLColumnDefinition.java"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"50501edafa8282ba560fbe86bba33e9ad7ffcf0539af01d14e4795206672a840"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlCreateTableParser.parsePartitionBy (cyclomatic 24): MySqlCreateTableParser.parsePartitionBy 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java"},"region":{"startLine":1032}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2a154fc5a01023eb38cbd054e5cb8798b9e9636b2c835f3d10a1081cfddc83c"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlOutputVisitor.visit (cyclomatic 24): MySqlOutputVisitor.visit 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":5098}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f2d31ea4d0650a0eadecd19f7ca7d387aa36de37a70b313409bcc1def4c470b"}},{"ruleId":"D1","level":"warning","message":{"text":"OdpsLexer.scanIdentifier (cyclomatic 24): OdpsLexer.scanIdentifier 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":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsLexer.java"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ba0910ed7d972be0f53c290143e14c412ded8b337cac9037b825b2becf219d3"}},{"ruleId":"D1","level":"warning","message":{"text":"OracleSelectParser.parsePivot (cyclomatic 24): OracleSelectParser.parsePivot 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleSelectParser.java"},"region":{"startLine":966}}}],"partialFingerprints":{"codehealthFindingId/v1":"42881dbaf0db7cc00a9a3daa1d8778067510dc23594814f78e3e94e649743696"}},{"ruleId":"D1","level":"warning","message":{"text":"OracleOutputVisitor.visit (cyclomatic 24): OracleOutputVisitor.visit 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":2276}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b3af4d6da1006d205fd8fcee5b06b6f89cfeadbad415b922e72d58ebe00242f"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLServerLexer.scanComment (cyclomatic 24): SQLServerLexer.scanComment 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":"core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerLexer.java"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"8333d3497bd425c2cbf8b73c1683dbf98b071051bb2eae1bbbbfed9bb8dad966"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLExprParser.parseAssignItem (cyclomatic 24): SQLExprParser.parseAssignItem has cyclomatic complexity 24 (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. This is NOT this file\u0027s highest cyclomatic complexity: SQLExprParser.parseInterval (cyclomatic 33) 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":5417}}}],"partialFingerprints":{"codehealthFindingId/v1":"021a3a2908845900603237ba357a0496fca333c7971c3affaf75990f24b8350a"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLParserUtils.removeComment (cyclomatic 24): SQLParserUtils.removeComment 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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLParserUtils.java"},"region":{"startLine":1036}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f083d2889149a68156730bdfab57bdb09d81fc36e46cdff2f45866a6ed5106c"}},{"ruleId":"D1","level":"warning","message":{"text":"SchemaResolveVisitorFactory.resolve (cyclomatic 24): SchemaResolveVisitorFactory.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":"core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java"},"region":{"startLine":1238}}}],"partialFingerprints":{"codehealthFindingId/v1":"750287b51d93981324f2987ff6e63da8177ca0b2bca832bcb6d07f013b40f258"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cyclomatic 24): SQLASTOutputVisitor.visit 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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":5051}}}],"partialFingerprints":{"codehealthFindingId/v1":"e29b8bcc0fe079239e5d64c8d672ae488b077d81144c7e5a02ba967e7d9ade03"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLEvalVisitorUtils.gt (cyclomatic 24): SQLEvalVisitorUtils.gt has cyclomatic complexity 24 (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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java"},"region":{"startLine":1690}}}],"partialFingerprints":{"codehealthFindingId/v1":"2049ea55d4c1765c970c60491eca8a2156b85fe000af582bff10c78d9a8b54f6"}},{"ruleId":"D1","level":"warning","message":{"text":"MonitorDaoJdbcImpl.load (cyclomatic 24): MonitorDaoJdbcImpl.load has cyclomatic complexity 24 (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":"core/src/main/java/com/alibaba/druid/support/monitor/dao/MonitorDaoJdbcImpl.java"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"321f16d88b1a730fa29dd46f7147090a2d65c4231913e6ce9c019956e1ac438e"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLSelectQueryBlock.hashCode (cyclomatic 23): SQLSelectQueryBlock.hashCode has cyclomatic complexity 23 (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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java"},"region":{"startLine":896}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fb20383f909f895ad1e86cf3649bf85c6eb38ff7c394795c5b9fd8a184e930a"}},{"ruleId":"D1","level":"warning","message":{"text":"DB2OutputVisitor.visit (cyclomatic 23): DB2OutputVisitor.visit has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/db2/visitor/DB2OutputVisitor.java"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"08b8f97f3494a5e60aa568ca45ee71cd7c6284407d97d79a887af73f81a4de9b"}},{"ruleId":"D1","level":"warning","message":{"text":"HiveExprParser.parseSelectItemRest (cyclomatic 23): HiveExprParser.parseSelectItemRest has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveExprParser.java"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a6ee9da53d8ed49e3f8642f33775b53d1cf33a7b5fa9a9ef52c20e816d1e003"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlExprParser.parseInterval (cyclomatic 23): MySqlExprParser.parseInterval has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java"},"region":{"startLine":1626}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0a94e2c2113b7255873c401b33ebda580af7ab7459ccde41dc36a86d5a07aa7"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlStatementParser.parseAlterDrop (cyclomatic 23): MySqlStatementParser.parseAlterDrop has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":7640}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5e0e944fbdff9aa4384723bb5dd08eb7117fb11a0c5263648fcf599ffac085f"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlOutputVisitor.visit (cyclomatic 23): MySqlOutputVisitor.visit has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":5024}}}],"partialFingerprints":{"codehealthFindingId/v1":"f994f4b411aa10f21caeb03ef2517ed1694c0871bbaa924944f8d5a6781f46cc"}},{"ruleId":"D1","level":"warning","message":{"text":"OracleExprParser.parseInterval (cyclomatic 23): OracleExprParser.parseInterval has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java"},"region":{"startLine":994}}}],"partialFingerprints":{"codehealthFindingId/v1":"20c6e7cdfcfe83adceefe677a405257b4ae1a6edac1427636883f5d479e4f6a3"}},{"ruleId":"D1","level":"warning","message":{"text":"OracleExprParser.parseSegmentAttributes (cyclomatic 23): OracleExprParser.parseSegmentAttributes has cyclomatic complexity 23 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java"},"region":{"startLine":1927}}}],"partialFingerprints":{"codehealthFindingId/v1":"00dd7f7aa908d05980cc03b39a34318e282f20be44bcb2a78af6ea6bda8e1f4e"}},{"ruleId":"D1","level":"warning","message":{"text":"OracleLexer.scanComment (cyclomatic 23): OracleLexer.scanComment has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleLexer.java"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"5494e4a928923832ceb517a62f7451b0c17fa37b904daf6f9b3f756173516984"}},{"ruleId":"D1","level":"warning","message":{"text":"OracleSelectParser.select (cyclomatic 23): OracleSelectParser.select has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleSelectParser.java"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"d34bfa09e8df498b321f90a4e976a4c0c30e9f1a33d159f02db78a8facb41f71"}},{"ruleId":"D1","level":"warning","message":{"text":"OracleStatementParser.parseFunction (cyclomatic 23): OracleStatementParser.parseFunction has cyclomatic complexity 23 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java"},"region":{"startLine":989}}}],"partialFingerprints":{"codehealthFindingId/v1":"962d41ebefe8c34c342ba1ed67825398821390bebdfba0413dc54483ae094fef"}},{"ruleId":"D1","level":"warning","message":{"text":"PGExprParser.primary (cyclomatic 23): PGExprParser.primary has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGExprParser.java"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6481af2c97789f690128707e097fd44b8ff516b1c6adc888b74f58f7ccb68cf"}},{"ruleId":"D1","level":"warning","message":{"text":"PGSQLStatementParser.parseInsert (cyclomatic 23): PGSQLStatementParser.parseInsert has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ca829431c6ab38917a059a78b74ec34b9b571f4f371d20846933fb1acfa436a"}},{"ruleId":"D1","level":"warning","message":{"text":"PGOutputVisitor.visit (cyclomatic 23): PGOutputVisitor.visit has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"7412249f8fbc8d2826f0929dcd351ee437af69ff56acb817367f97df0e177ead"}},{"ruleId":"D1","level":"warning","message":{"text":"PGOutputVisitor.visit (cyclomatic 23): PGOutputVisitor.visit has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"6de4380437788e7bb947b7baa9b4cdba5bf933d9504181ec29b60f98d5f0dba0"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLStatementParser.parseHiveInsertStmt (cyclomatic 23): SQLStatementParser.parseHiveInsertStmt has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":6934}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fb8e10782fb43a8c4e0c5a6e2dc91c0fbb0dfe38aacdb027e1a8ebdfac87f2d"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLEvalVisitorUtils.multi (cyclomatic 23): SQLEvalVisitorUtils.multi has cyclomatic complexity 23 (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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java"},"region":{"startLine":2041}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c2b09a24659efb5d4ee58391bcc62d08c0df8230fbe5da05f206b98e720eaea"}},{"ruleId":"D1","level":"warning","message":{"text":"SchemaStatVisitor.visit (cyclomatic 23): SchemaStatVisitor.visit has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java"},"region":{"startLine":1747}}}],"partialFingerprints":{"codehealthFindingId/v1":"dead78fb9cd3c06265836552f095e71e34f7f4bdfd0ef16eaddc15591233ef4c"}},{"ruleId":"D1","level":"warning","message":{"text":"WallVisitorUtils.queryBlockFromIsNull (cyclomatic 23): WallVisitorUtils.queryBlockFromIsNull has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java"},"region":{"startLine":2381}}}],"partialFingerprints":{"codehealthFindingId/v1":"82225f2906106110d49aedc402d147963c30ca1a1a4ceb010339b66c603c3727"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLCreateTableStatement.sort (cyclomatic 22): SQLCreateTableStatement.sort 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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateTableStatement.java"},"region":{"startLine":772}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b0e9636d32367dd1fc7d81d154d06d4fead8c13855bf787f8d4d062c5991b3c"}},{"ruleId":"D1","level":"warning","message":{"text":"DB2SelectParser.query (cyclomatic 22): DB2SelectParser.query 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":"core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2SelectParser.java"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"38da8c3d5311cea592154257c2535d97098018de099061087381ba8fd8686fa2"}},{"ruleId":"D1","level":"warning","message":{"text":"HiveOutputVisitor.visit (cyclomatic 22): HiveOutputVisitor.visit 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":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/visitor/HiveOutputVisitor.java"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"f10b457cdcdd189504b93bad93df4c29e16dc36272dccd5efcc2f945e074cdcb"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlSelectQueryBlock.accept0 (cyclomatic 22): MySqlSelectQueryBlock.accept0 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlSelectQueryBlock.java"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"88cd8be00b39d829ee14e189f3de7990568799a2a47302e0f47be7d5493fd8ad"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlSelectQueryBlock.equals (cyclomatic 22): MySqlSelectQueryBlock.equals has cyclomatic complexity 22 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlSelectQueryBlock.java"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"428e03c98173b6c59533c109c6271bc4febddd58151c2a8207d44a65d5bb69b3"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlLexer.skipFirstHintsOrMultiCommentAndNextToken (cyclomatic 22): MySqlLexer.skipFirstHintsOrMultiCommentAndNextToken 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"87931d8339d38005d924336e4086e1423c757677e62e60514d98e6d3ec61beaf"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlStatementParser.alterView (cyclomatic 22): MySqlStatementParser.alterView 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":5200}}}],"partialFingerprints":{"codehealthFindingId/v1":"71d1c5e1cd4ccc998c6f2d4cca14fc5bd93f619956d992a19d5a4251f834368e"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlOutputVisitor.visit (cyclomatic 22): MySqlOutputVisitor.visit 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":661}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c3de0cc25bd7349322da21568774788918c17094f198284c5788b21a56bfd02"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlOutputVisitor.visit (cyclomatic 22): MySqlOutputVisitor.visit 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":2065}}}],"partialFingerprints":{"codehealthFindingId/v1":"f108300ecd6a7c31b56a84583944c246d2a3c5d49d4ae4988172e7b22eaf86a8"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlShowColumnOutpuVisitor.visit (cyclomatic 22): MySqlShowColumnOutpuVisitor.visit 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlShowColumnOutpuVisitor.java"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"52df3045a8307a9cb918dc86dad436f794e5f3c206f295a8adadb59d3eeb6dcc"}},{"ruleId":"D1","level":"warning","message":{"text":"OdpsStatementParser.parseInsert (cyclomatic 22): OdpsStatementParser.parseInsert 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":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsStatementParser.java"},"region":{"startLine":829}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f2e695309bee9f0243ea479550209231153939312ddd2e5a0ac7c5ae9c98399"}},{"ruleId":"D1","level":"warning","message":{"text":"OracleStatementParser.parseCreateType (cyclomatic 22): OracleStatementParser.parseCreateType has cyclomatic complexity 22 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java"},"region":{"startLine":3061}}}],"partialFingerprints":{"codehealthFindingId/v1":"716b9cd96f35bb574818753a4f13fe93545afd76ee81c4aeac48ac0b71cd689b"}},{"ruleId":"D1","level":"warning","message":{"text":"OracleOutputVisitor.visit (cyclomatic 22): OracleOutputVisitor.visit 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"98b9b985f551c8dcba4c5309ea5a6bb79f6ff029f37127400a5b9db1d15978d1"}},{"ruleId":"D1","level":"warning","message":{"text":"OscarStatementParser.parseInsert (cyclomatic 22): OscarStatementParser.parseInsert 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"73404c6f3e4a02f79c63f9a4fb41a41c31dacc136aa371a7892803720a864946"}},{"ruleId":"D1","level":"warning","message":{"text":"PGOutputVisitor.visit (cyclomatic 22): PGOutputVisitor.visit 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":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java"},"region":{"startLine":2985}}}],"partialFingerprints":{"codehealthFindingId/v1":"91f01301ce7422c44be7b488617fdc24d5d8f8cd5ea3ccb79986181330a84514"}},{"ruleId":"D1","level":"warning","message":{"text":"StarRocksOutputVisitor.visit (cyclomatic 22): StarRocksOutputVisitor.visit 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":"core/src/main/java/com/alibaba/druid/sql/dialect/starrocks/visitor/StarRocksOutputVisitor.java"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"72b51b6111164a3fdaf09c4317de4cad5057686b11696e98b9c4bbfe88ab7712"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLSelectParser.parseTableSourceSampleHive (cyclomatic 22): SQLSelectParser.parseTableSourceSampleHive 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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java"},"region":{"startLine":1522}}}],"partialFingerprints":{"codehealthFindingId/v1":"357ff8f973b1cd3601b327dd597f4039e0a1630dbe1d5a1edfc969dc7992618b"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLStatementParser.alterMaterialized (cyclomatic 22): SQLStatementParser.alterMaterialized 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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":7587}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd41d25845519d14ec887725a9b1a9e27aec5cacc68129860b9ba5637c20f3ed"}},{"ruleId":"D1","level":"warning","message":{"text":"ParameterizedOutputVisitorUtils.parameterize (cyclomatic 22): ParameterizedOutputVisitorUtils.parameterize 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. This is NOT this file\u0027s highest cyclomatic complexity: ParameterizedOutputVisitorUtils.createParameterizedOutputVisitor (cyclomatic 30) 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/ParameterizedOutputVisitorUtils.java"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5fd8acc2c8cd2b1f313c2a8eb98006b3f7125fcb42ffc5cb03a07670e22cbc1"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLASTOutputVisitor.printInteger (cyclomatic 22): SQLASTOutputVisitor.printInteger 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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":1807}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d45f8ed9a1f88dacdcb7f457ef8c486e5ddd9c4a3ee6454d053ef9a0356e24f"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLASTOutputVisitor.printMethodParameters (cyclomatic 22): SQLASTOutputVisitor.printMethodParameters 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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":1916}}}],"partialFingerprints":{"codehealthFindingId/v1":"be079ba58afc1ca6a3d74491db6217021269b60339452c7fc2eaae0dbaff5d5e"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cyclomatic 22): SQLASTOutputVisitor.visit 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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":9213}}}],"partialFingerprints":{"codehealthFindingId/v1":"d903f0e040680a5a4a168dd5ae171fad421c60cfd292ec788cb3a1caa26381e1"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cyclomatic 22): SQLASTOutputVisitor.visit 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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":6259}}}],"partialFingerprints":{"codehealthFindingId/v1":"64ea5a5aa9f43c8d77945cffcb3e8884c8bc672163b334452fc23ede8f9301fe"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cyclomatic 22): SQLASTOutputVisitor.visit 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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":3406}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba122cdca4297b7761746d56e8ee5716998afd9d498b3d0b0912dd8712cd809e"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLEvalVisitorUtils.lt (cyclomatic 22): SQLEvalVisitorUtils.lt has cyclomatic complexity 22 (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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java"},"region":{"startLine":1757}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a20c91558147f1df7b9cac836f750595f1cfa981b0f3f1a83cd49e32522ce89"}},{"ruleId":"D1","level":"warning","message":{"text":"WallVisitorUtils.check (cyclomatic 22): WallVisitorUtils.check 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":"core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java"},"region":{"startLine":2660}}}],"partialFingerprints":{"codehealthFindingId/v1":"432029e0d8f7e201a52f1061fed259b54b4cf0a71fbf9a44b7601846ed05d0ce"}},{"ruleId":"D1","level":"warning","message":{"text":"WallVisitorUtils.checkSchema (cyclomatic 22): WallVisitorUtils.checkSchema 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":"core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java"},"region":{"startLine":1864}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcfb7cf836ca7063833586d742164d4c45bcdc59b90c28de9b119c9bb17d5268"}},{"ruleId":"D1","level":"warning","message":{"text":"WallVisitorUtils.checkSelectForMultiTenant (cyclomatic 22): WallVisitorUtils.checkSelectForMultiTenant 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":"core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"49f681906d9652674f75beb45a32dfaf4907983a87d4236d0ca41be0180ecbed"}},{"ruleId":"D1","level":"warning","message":{"text":"DruidDataSource.initExceptionSorter (cyclomatic 21): DruidDataSource.initExceptionSorter 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":"core/src/main/java/com/alibaba/druid/pool/DruidDataSource.java"},"region":{"startLine":1279}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3f449b0507e94574b44fa60e43b2dca4aa0282a85234bb97c7e3860eb85266f"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLPropertyExpr.computeDataType (cyclomatic 21): SQLPropertyExpr.computeDataType 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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLPropertyExpr.java"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe55be9c8c3ccf77c8e3be81a5a228805e9d97ad4da1c24fd3568324462bf177"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLCreateTableStatement.cloneTo (cyclomatic 21): SQLCreateTableStatement.cloneTo has cyclomatic complexity 21 (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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateTableStatement.java"},"region":{"startLine":1285}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9b08a523d19f0b595e658aecd33b245451889e7cbd56b8aa801d1b34998d1f3"}},{"ruleId":"D1","level":"warning","message":{"text":"BigQueryOutputVisitor.visit (cyclomatic 21): BigQueryOutputVisitor.visit 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":"core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryOutputVisitor.java"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bdb13fed5efc309d2fc921c80a87731845438900bbf14e409616525a7b25d76"}},{"ruleId":"D1","level":"warning","message":{"text":"BlinkCreateTableParser.parseCreateTable (cyclomatic 21): BlinkCreateTableParser.parseCreateTable 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":"core/src/main/java/com/alibaba/druid/sql/dialect/blink/parser/BlinkCreateTableParser.java"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cb4237330785d2614942d99d28bb27ff7291dbb1487ce1b87f501bda3942601"}},{"ruleId":"D1","level":"warning","message":{"text":"CKOutputVisitor.visit (cyclomatic 21): CKOutputVisitor.visit 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":"core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/visitor/CKOutputVisitor.java"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea60b54df5a28d127a48c5b8e7c7ead23bc346781c4729a83c69a1559940db9a"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlCreateTableParser.parseConstraint (cyclomatic 21): MySqlCreateTableParser.parseConstraint 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java"},"region":{"startLine":1524}}}],"partialFingerprints":{"codehealthFindingId/v1":"e27b3c7e0072becea666d9a0823e37a32ff60ace0c247bd1397684497361f543"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlStatementParser.parseCreateTableSpace (cyclomatic 21): MySqlStatementParser.parseCreateTableSpace 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebde92ce7ab89b90d792e2509b20a6e3a7602a911d4b3bcdbf42bb38f14df3fb"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlStatementParser.parseReplace (cyclomatic 21): MySqlStatementParser.parseReplace 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":4135}}}],"partialFingerprints":{"codehealthFindingId/v1":"55daa08476958aaebce9eb41b7cf2527e4d26e819b83f47cb656744ee375277c"}},{"ruleId":"D1","level":"warning","message":{"text":"NameResolveVisitor.visit (cyclomatic 21): NameResolveVisitor.visit 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/transform/NameResolveVisitor.java"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"c299f59cd041c16deb49f846d1620c917df1954c45bc8b04de5683d91e714886"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlOutputVisitor.visit (cyclomatic 21): MySqlOutputVisitor.visit 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":725}}}],"partialFingerprints":{"codehealthFindingId/v1":"a95e1d85321ee47e72a6ebe593d8ef403ad6b0bae217014c493e93ef3a837da3"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlOutputVisitor.visit (cyclomatic 21): MySqlOutputVisitor.visit 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":4663}}}],"partialFingerprints":{"codehealthFindingId/v1":"74b8bce244098d8915e727289d8f968143e82fc910d0229b442886a16c903909"}},{"ruleId":"D1","level":"warning","message":{"text":"OracleCreateTableParser.parseOrganization (cyclomatic 21): OracleCreateTableParser.parseOrganization 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleCreateTableParser.java"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"527cc74c540123a1723256bc2e1d1667e6de95ddd2a37f04ffd6a0dbe6e254e7"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLServerStatementParser.parseStatementListDialect (cyclomatic 21): SQLServerStatementParser.parseStatementListDialect 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":"core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerStatementParser.java"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"a31ed632f96ddb0b47c660b01811f96ba28ec60a24b83f7d64a8bb05ddd76fc0"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLServerOutputVisitor.visit (cyclomatic 21): SQLServerOutputVisitor.visit 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":"core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/visitor/SQLServerOutputVisitor.java"},"region":{"startLine":656}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1706ab9a6b50a857caa15f600c1572b82026356b40b9e414479e2b4ab0d9cf0"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLExprParser.andRest (cyclomatic 21): SQLExprParser.andRest 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. This is NOT this file\u0027s highest cyclomatic complexity: SQLExprParser.parseInterval (cyclomatic 33) 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":3527}}}],"partialFingerprints":{"codehealthFindingId/v1":"4087dc7804c8df1479264eaa48f65990b4462df98f8d1b9fdbfcbfd65bc2d1b4"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLParserUtils.getTables (cyclomatic 21): SQLParserUtils.getTables 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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLParserUtils.java"},"region":{"startLine":1115}}}],"partialFingerprints":{"codehealthFindingId/v1":"7be0222c2d4002a81f960f164b2a42370d5a89341503905174c0ce73a3a44b22"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLStatementParser.parseDropTable (cyclomatic 21): SQLStatementParser.parseDropTable 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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":3311}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0f2c11d19b5e2b114a421abd219e25a3a8cfbdfb09666bcfc2d7e913de54309"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLStatementParser.parseHiveCreateFunction (cyclomatic 21): SQLStatementParser.parseHiveCreateFunction has cyclomatic complexity 21 (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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":7701}}}],"partialFingerprints":{"codehealthFindingId/v1":"44abb17da762bd64386399abbf1cd6b48f30bad2b2f0d22e593daf5f566e1383"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLStatementParser.parseWithQuery (cyclomatic 21): SQLStatementParser.parseWithQuery 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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":5912}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b64a28169cc2b9ea457b541b877bf7095e568310e3168fa0cbe124eb22de058"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLASTOutputVisitor.printMethodParameters (cyclomatic 21): SQLASTOutputVisitor.printMethodParameters 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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":1983}}}],"partialFingerprints":{"codehealthFindingId/v1":"411343e3bd24adbc25f9eecc83d2b05f7698e33b1eb9255a1249a1ca7fe82876"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cyclomatic 21): SQLASTOutputVisitor.visit 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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":6814}}}],"partialFingerprints":{"codehealthFindingId/v1":"44f61ca042315162beb2f0a3d74a0b8e02a572405d03293ba41b6747f5aa6e9c"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cyclomatic 21): SQLASTOutputVisitor.visit 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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":10884}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa5285eae5d81af4635b607cd42bfb991bbfa711225670c28890134815aee364"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cyclomatic 21): SQLASTOutputVisitor.visit 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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":6190}}}],"partialFingerprints":{"codehealthFindingId/v1":"89f23d0d3955474d24d156ca578620ebe5f916322e4d3467b3edb5af947ff8ee"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLEvalVisitorUtils.type (cyclomatic 21): SQLEvalVisitorUtils.type 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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java"},"region":{"startLine":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"16b0388f0439a7181b8b7bb78d49626969be1e96544352d64a09c4eba516c504"}},{"ruleId":"D1","level":"warning","message":{"text":"WebStatFilter.init (cyclomatic 21): WebStatFilter.init has cyclomatic complexity 21 (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":"core/src/main/java/com/alibaba/druid/support/http/WebStatFilter.java"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"4456e4d4572cbc3faa1f54230de33c12daeb9f58ce5b97d307e011d1354884cd"}},{"ruleId":"D1","level":"warning","message":{"text":"WebStatFilter.init (cyclomatic 21): WebStatFilter.init has cyclomatic complexity 21 (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":"core/src/main/java/com/alibaba/druid/support/jakarta/WebStatFilter.java"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ffe712dc6c41e94eb16eb445d72db63d79abb6e11d6a6544b6eecf0b5487a41"}},{"ruleId":"D1","level":"warning","message":{"text":"JSONWriter.writeObject (cyclomatic 21): JSONWriter.writeObject has cyclomatic complexity 21 (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":"core/src/main/java/com/alibaba/druid/support/json/JSONWriter.java"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7ff9ee14e8362b0a22c48f0a9323b5d4846e0ab041a3524a6f0d5b49ea5c0b3"}},{"ruleId":"D1","level":"warning","message":{"text":"SqlTypeUDF.getSqlType (cyclomatic 21): SqlTypeUDF.getSqlType has cyclomatic complexity 21 (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":"core/src/main/java/com/alibaba/druid/support/opds/udf/SqlTypeUDF.java"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"c783a71e392d4712243c08b4704c727dc171be416bf9418e35c63ec41df72752"}},{"ruleId":"D1","level":"warning","message":{"text":"WallFilter.preprocessResultSet (cyclomatic 21): WallFilter.preprocessResultSet 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":"core/src/main/java/com/alibaba/druid/wall/WallFilter.java"},"region":{"startLine":1586}}}],"partialFingerprints":{"codehealthFindingId/v1":"650c18d3ef16e781401a0500c67dd8968a274a557ca1623e37f1539b16fa39ae"}},{"ruleId":"D1","level":"warning","message":{"text":"doT.doT.template (cyclomatic 21): doT.doT.template has cyclomatic complexity 21 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 4 belong to 2 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/js/doT.js"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1879c0acfac135f3faf3cf088448cf7da6fa0f2449a084ce77e98b852b89831"}},{"ruleId":"D1","level":"warning","message":{"text":"doT.doT.template (cyclomatic 21): doT.doT.template has cyclomatic complexity 21 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 4 belong to 2 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/js/doT.js"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cd1016a5f9d102c32ce85af759408141ce961ffd990bd6e5084d0f02b4abe28"}},{"ruleId":"D1","level":"warning","message":{"text":"DruidDataSource.getConnectionDirect (cyclomatic 20): DruidDataSource.getConnectionDirect has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/pool/DruidDataSource.java"},"region":{"startLine":1373}}}],"partialFingerprints":{"codehealthFindingId/v1":"3031afd7b22fec724aa18529040ed2200f62bebd72983bfb58e0eff4656be6cf"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLSelectQueryBlock.acceptChild (cyclomatic 20): SQLSelectQueryBlock.acceptChild has cyclomatic complexity 20 (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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java"},"region":{"startLine":738}}}],"partialFingerprints":{"codehealthFindingId/v1":"43c6bf0627e3b2f9440556d752bddb098193def9a7b7042a9ba16161b7f69f6a"}},{"ruleId":"D1","level":"warning","message":{"text":"AthenaCreateTableParser.parseCreateTableRest (cyclomatic 20): AthenaCreateTableParser.parseCreateTableRest has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/athena/parser/AthenaCreateTableParser.java"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"d06acad020bf0a41956163b9ec3aafd81354efa70218c7732a0d16432e4efb03"}},{"ruleId":"D1","level":"warning","message":{"text":"CKCreateTableParser.parseCreateTableRest (cyclomatic 20): CKCreateTableParser.parseCreateTableRest has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/parser/CKCreateTableParser.java"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"f71aa47a148d36d65591ceb9038bb3a5f8b4d7ae3ae58a3c5a34f9f08e6abf6c"}},{"ruleId":"D1","level":"warning","message":{"text":"DmExprParser.parseInterval (cyclomatic 20): DmExprParser.parseInterval has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmExprParser.java"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"c49163dc77355d1e60c5aa5bcdc022e41ed546148293611dde4e492969e0af9e"}},{"ruleId":"D1","level":"warning","message":{"text":"DorisOutputVisitor.visit (cyclomatic 20): DorisOutputVisitor.visit has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/doris/visitor/DorisOutputVisitor.java"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"7262d9e7402764ecb234554b67cea936d7f0791f6df5cae1b019f3a4cd8d1150"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlExprParser.parseAssignItem (cyclomatic 20): MySqlExprParser.parseAssignItem has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java"},"region":{"startLine":2005}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0f055f642f4b9c330c03c55e0c41ed208485d25fddf303f26610aa0d9710d77"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlSelectIntoParser.query (cyclomatic 20): MySqlSelectIntoParser.query has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectIntoParser.java"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"870c5b8294bc404a6a0739cf7e52b95f37348fa0a6c2cc521dcd873d52e531ce"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlOutputVisitor.visit (cyclomatic 20): MySqlOutputVisitor.visit has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":5463}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f91d151274a3ff645c461cd8599187c7631d755c2f27fa52f4d431b67115ea7"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlOutputVisitor.visit (cyclomatic 20): MySqlOutputVisitor.visit has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":4040}}}],"partialFingerprints":{"codehealthFindingId/v1":"78b8ee10a2af5c8fa10deb5eb6cec7042fc8e491dd948cd7120942be2f5c70c5"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlOutputVisitor.visit (cyclomatic 20): MySqlOutputVisitor.visit has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":1716}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b8e84d835e2b2c70ac3b28a1c4363e941d57097b151ce5f90a67fcabcc617cb"}},{"ruleId":"D1","level":"warning","message":{"text":"OdpsExprParser.parseSelectItem (cyclomatic 20): OdpsExprParser.parseSelectItem has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsExprParser.java"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"936e4be44f0502668b76b8ddd809a1c075d343c8ff8e843a91eef9ab43842ecc"}},{"ruleId":"D1","level":"warning","message":{"text":"OdpsOutputVisitor.visit (cyclomatic 20): OdpsOutputVisitor.visit has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/visitor/OdpsOutputVisitor.java"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"ede393c9c397fc2fcb37ccbbc6cd614467fb34223a6faad32198cde01a3c128a"}},{"ruleId":"D1","level":"warning","message":{"text":"OracleLexer.scanNumber (cyclomatic 20): OracleLexer.scanNumber has cyclomatic complexity 20 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleLexer.java"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbe3098f1836cdbd63a66f7b3e30a6fd9413adeaa490d304837fe50a7298f353"}},{"ruleId":"D1","level":"warning","message":{"text":"OracleLexer.scanVariable (cyclomatic 20): OracleLexer.scanVariable has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleLexer.java"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4d3cae9e99b2c86bf52558dff9beb1a7128f8372521dbebcc5ff4e3ca2ec4b7"}},{"ruleId":"D1","level":"warning","message":{"text":"OracleStatementParser.parseCreatePackage (cyclomatic 20): OracleStatementParser.parseCreatePackage has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java"},"region":{"startLine":2891}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2cc71baed5d2cbf7509e9b98bd15c9eb6fc4f88de0181713498a93722381923"}},{"ruleId":"D1","level":"warning","message":{"text":"OracleRowNumToLimit.visit (cyclomatic 20): OracleRowNumToLimit.visit has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleRowNumToLimit.java"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"548031ef505ee5f748dc68af99bece442068e39e5ea6e86356dfcacc1e8cca97"}},{"ruleId":"D1","level":"warning","message":{"text":"OscarExprParser.parseInterval (cyclomatic 20): OscarExprParser.parseInterval has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarExprParser.java"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d938576c5b6a20239a2fd40aa519d78187d4b877c29ba887925f01acefa69c2"}},{"ruleId":"D1","level":"warning","message":{"text":"OscarLexer.scanString (cyclomatic 20): OscarLexer.scanString has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarLexer.java"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"81d4b4c5ef5a8357d9b36066b1481966557d109e092c837d185f3f6f28b4c2da"}},{"ruleId":"D1","level":"warning","message":{"text":"PGLexer.scanString (cyclomatic 20): PGLexer.scanString has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGLexer.java"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"35b2cee6b0d1ddc7d1d5678bbacd8b5f4549fce590fb507e5661758e0d6a7646"}},{"ruleId":"D1","level":"warning","message":{"text":"RedshiftOutputVisitor.visit (cyclomatic 20): RedshiftOutputVisitor.visit has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/redshift/visitor/RedshiftOutputVisitor.java"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"931231b0e598e6785e66045237a8ac0fcce1c0312c6db394c57bcc08c62ab898"}},{"ruleId":"D1","level":"warning","message":{"text":"SnowflakeCreateTableParser.parseCreateTableRest (cyclomatic 20): SnowflakeCreateTableParser.parseCreateTableRest has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeCreateTableParser.java"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe2661e9b9d962576840a8054becebc897bfa5c1a9cd2b7b31e09569d986241c"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLServerStatementParser.parseSet (cyclomatic 20): SQLServerStatementParser.parseSet has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerStatementParser.java"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c7f562aa13ce1cc356a9c95d0f6110cc8ad90102f9075ca32bfbf848c93d660"}},{"ruleId":"D1","level":"warning","message":{"text":"TDOutputVisitor.printSqlSetQuantifier (cyclomatic 20): TDOutputVisitor.printSqlSetQuantifier has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/teradata/visitor/TDOutputVisitor.java"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"2db3714534e89ecbf9459220285bfe705125a7d1a345c23be3afa78533a6aa06"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLStatementParser.parseInsert0 (cyclomatic 20): SQLStatementParser.parseInsert0 has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":3855}}}],"partialFingerprints":{"codehealthFindingId/v1":"b83720d2e2d9dd6822f4ecaf181b78da88bf6fd6bdbe124b5fbe3e63ae4dd447"}},{"ruleId":"D1","level":"warning","message":{"text":"Substring.eval (cyclomatic 20): Substring.eval has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/functions/Substring.java"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a2ef9dbcb0bad54f757020aac6d021fea885a17ba63fd292c450d8fc987bbe3"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cyclomatic 20): SQLASTOutputVisitor.visit has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":5516}}}],"partialFingerprints":{"codehealthFindingId/v1":"9570e78ac9a68f9d73c6637e6a4eecdeee011e73ebd1ea24b9e4ff22446a631a"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLUtils._normalize (cyclomatic 20): SQLUtils._normalize has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: SQLUtils.createSchemaStatVisitor (cyclomatic 25) 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/SQLUtils.java"},"region":{"startLine":1953}}}],"partialFingerprints":{"codehealthFindingId/v1":"323cdaea93cb6baead7bd916f487429b092e9550255b2879c698b30cce3c2013"}},{"ruleId":"D1","level":"warning","message":{"text":"WebStatFilter.doFilter (cyclomatic 20): WebStatFilter.doFilter has cyclomatic complexity 20 (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":"core/src/main/java/com/alibaba/druid/support/http/WebStatFilter.java"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bbebfe6eb9be3fb605dc6a50367b0f50f32ba1ff8c5af1ad82c642da66572be"}},{"ruleId":"D1","level":"warning","message":{"text":"WebStatFilter.doFilter (cyclomatic 20): WebStatFilter.doFilter has cyclomatic complexity 20 (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":"core/src/main/java/com/alibaba/druid/support/jakarta/WebStatFilter.java"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc869218306e0f1fa296c258c6f9961278bad87f6994e119ef0d36ee4585bb6e"}},{"ruleId":"D1","level":"warning","message":{"text":"WallVisitorUtils.checkInsertForMultiTenant (cyclomatic 20): WallVisitorUtils.checkInsertForMultiTenant has cyclomatic complexity 20 (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":"core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"14efa959cfc2332821cf77e5e53afba1204ba03bfcaae197f02bd6c9cd4a171c"}},{"ruleId":"D1","level":"warning","message":{"text":"MonitorStatService.service (cyclomatic 20): MonitorStatService.service has cyclomatic complexity 20 (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":"druid-admin/src/main/java/com/alibaba/druid/admin/service/MonitorStatService.java"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a573cff40952db46d38779ffa204667a7dff1b1367d2a701005468e3f82e164"}},{"ruleId":"D1","level":"warning","message":{"text":"DruidConnectionHolder.\u003Cinit\u003E (cyclomatic 19): DruidConnectionHolder.\u003Cinit\u003E 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/pool/DruidConnectionHolder.java"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"516d46458070a7820dc0035a059bc4ba6f860065b6a4248c2bcb471c192f3370"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLDateTimeExpr.check (cyclomatic 19): SQLDateTimeExpr.check has cyclomatic complexity 19 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLDateTimeExpr.java"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"364a3c1941385f0698fd78504c2b85d01b8498baff688284380866ccf4bbc815"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLTimeExpr.check (cyclomatic 19): SQLTimeExpr.check has cyclomatic complexity 19 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTimeExpr.java"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a091a87c800f0ac9f7f0aa8d227db60252192656e5b5c59840717b4bcc6a961"}},{"ruleId":"D1","level":"warning","message":{"text":"GaussDbCreateTableParser.parseCreateTableRest (cyclomatic 19): GaussDbCreateTableParser.parseCreateTableRest 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/parser/GaussDbCreateTableParser.java"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d31490b4f0ea54cfd91c584fb59bdb6b0267917fbcf4e95e22805a308c1cb13"}},{"ruleId":"D1","level":"warning","message":{"text":"GaussDbOutputVisitor.visit (cyclomatic 19): GaussDbOutputVisitor.visit 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/visitor/GaussDbOutputVisitor.java"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"55dd32cd4f2961285bba0a5f1c0e7d8fbdcd6ff50535c17a13644d7b3680ccb5"}},{"ruleId":"D1","level":"warning","message":{"text":"GaussDbOutputVisitor.visit (cyclomatic 19): GaussDbOutputVisitor.visit 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/visitor/GaussDbOutputVisitor.java"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"97e361a6fd490988d64fe60438fea9646740735ad480102f76ce1daeee08063c"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlExprParser.parseSubPartition (cyclomatic 19): MySqlExprParser.parseSubPartition 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java"},"region":{"startLine":2316}}}],"partialFingerprints":{"codehealthFindingId/v1":"87eeabc50f5bb1e91854c1f61a621ebf12049defe8684b2e475aa7aa51539d9c"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlOutputVisitor.visit (cyclomatic 19): MySqlOutputVisitor.visit 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":5414}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e2f70963c8dd5bce5a33a098f2dfce9c0b7325be13b2cc53d261d08e2e80183"}},{"ruleId":"D1","level":"warning","message":{"text":"OdpsStatementParser.parseGrant (cyclomatic 19): OdpsStatementParser.parseGrant has cyclomatic complexity 19 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsStatementParser.java"},"region":{"startLine":1340}}}],"partialFingerprints":{"codehealthFindingId/v1":"69bbf1b52374255f4a1fa53c9647237e102b42efdde68cc170e73372f0d59417"}},{"ruleId":"D1","level":"warning","message":{"text":"PGOutputVisitor.printOnConflict (cyclomatic 19): PGOutputVisitor.printOnConflict 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"67a0ff9cb87ef08f0c7f8fbe0c648c9aa8153e92a7d11c1534680b7e9b4ae2b9"}},{"ruleId":"D1","level":"warning","message":{"text":"Lexer.scanString2 (cyclomatic 19): Lexer.scanString2 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java"},"region":{"startLine":1799}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9edfa34c9d84af2ede1452edbe967b2c32e818d311a192b10f4c03c38d7ff5c"}},{"ruleId":"D1","level":"warning","message":{"text":"Lexer.scanString2PutEscapedChar (cyclomatic 19): Lexer.scanString2PutEscapedChar has cyclomatic complexity 19 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java"},"region":{"startLine":2026}}}],"partialFingerprints":{"codehealthFindingId/v1":"da5ca7df5195236ea5689e31df895771c5b403ac2543a06d0738852aba6a52fb"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLExprParser.dotRest (cyclomatic 19): SQLExprParser.dotRest 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 is NOT this file\u0027s highest cyclomatic complexity: SQLExprParser.parseInterval (cyclomatic 33) 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":2065}}}],"partialFingerprints":{"codehealthFindingId/v1":"0266dfe428aa4a44c58c838d3a2180aee730b83c3fb8c0e6abb43bcaa3da9cf5"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLStatementParser.parseAlter (cyclomatic 19): SQLStatementParser.parseAlter has cyclomatic complexity 19 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":2088}}}],"partialFingerprints":{"codehealthFindingId/v1":"645d68b014bf9c4bb2a366fb158abef4bcd991da7fdb75e865fd3e9665a5ff9b"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLStatementParser.parseCreateTrigger (cyclomatic 19): SQLStatementParser.parseCreateTrigger 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":4537}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4550c108b8d55473e04642d43e662dbcf0a6ef5840a545f00eb94984151d9b8"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLStatementParser.parseDescribe (cyclomatic 19): SQLStatementParser.parseDescribe has cyclomatic complexity 19 (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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":5835}}}],"partialFingerprints":{"codehealthFindingId/v1":"3101c84363efb6a0cfd69fe7fa98aa3b9774c755bfa07784824071e6fa08fd65"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLASTOutputVisitor.printOracleSegmentAttributes (cyclomatic 19): SQLASTOutputVisitor.printOracleSegmentAttributes 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":9083}}}],"partialFingerprints":{"codehealthFindingId/v1":"692f8e27065ac7cca7f88612b9c5cc40e1682c5096968a8a1965fd740a64de05"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cyclomatic 19): SQLASTOutputVisitor.visit 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":2058}}}],"partialFingerprints":{"codehealthFindingId/v1":"44f3b534adebdecf3bc28b1d7beef9ef44db2b6a3f4db7cd47445d44677d75a8"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cyclomatic 19): SQLASTOutputVisitor.visit 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":10018}}}],"partialFingerprints":{"codehealthFindingId/v1":"e68d419ac18711d3751fbe7c56b048095b7d70822e4bab9ab1ed3df3072d2383"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cyclomatic 19): SQLASTOutputVisitor.visit has cyclomatic complexity 19 (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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":2595}}}],"partialFingerprints":{"codehealthFindingId/v1":"f51007052425a3c4519fc7de4db4657b050db29e3d4a2f9ed8bbbb37552b6e44"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cyclomatic 19): SQLASTOutputVisitor.visit 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":11105}}}],"partialFingerprints":{"codehealthFindingId/v1":"1016fc93f0949fd3adde0c38825466415051190317c99e80311312928d7b3317"}},{"ruleId":"D1","level":"warning","message":{"text":"StatViewFilter.init (cyclomatic 19): StatViewFilter.init 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/support/http/StatViewFilter.java"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"484bce631ff1af05120cd31ccab77af9d27d018ea9ef45471da1e6f6a85dff38"}},{"ruleId":"D1","level":"warning","message":{"text":"StatViewFilter.init (cyclomatic 19): StatViewFilter.init 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/support/jakarta/StatViewFilter.java"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"19824dfc81c4e7edbb6e03e4486cc7614c7e41ee4f240e2e72d50121f57e7f70"}},{"ruleId":"D1","level":"warning","message":{"text":"CodeStatVisitor.preVisit (cyclomatic 19): CodeStatVisitor.preVisit 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/support/opds/udf/SqlCodeStat.java"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f2814a34a811bba49c2467f68f1211c8e8511125c0db3c134f8c1f856cb1dfc"}},{"ruleId":"D1","level":"warning","message":{"text":"WallVisitorUtils.checkConditionForMultiTenant (cyclomatic 19): WallVisitorUtils.checkConditionForMultiTenant 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce77852f8f11c8b2774913e79be01cc0d1772ea830ae450dbe6ab793778c40c9"}},{"ruleId":"D1","level":"warning","message":{"text":"DruidAbstractDataSource.testConnectionInternal (cyclomatic 18): DruidAbstractDataSource.testConnectionInternal has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/pool/DruidAbstractDataSource.java"},"region":{"startLine":1513}}}],"partialFingerprints":{"codehealthFindingId/v1":"1405acec3969809305d5f2b3106cfb2b69cd46261dcebd082491e92b2b132cb0"}},{"ruleId":"D1","level":"warning","message":{"text":"DruidAbstractDataSource.validateConnection (cyclomatic 18): DruidAbstractDataSource.validateConnection has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/pool/DruidAbstractDataSource.java"},"region":{"startLine":1434}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a8e65792f289d11ec804e793a54ae0468991fdfb1fb828d4d6a00738852e47a"}},{"ruleId":"D1","level":"warning","message":{"text":"DruidDataSource.handleFatalError (cyclomatic 18): DruidDataSource.handleFatalError has cyclomatic complexity 18 (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":"core/src/main/java/com/alibaba/druid/pool/DruidDataSource.java"},"region":{"startLine":1814}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b38b02068bc6aab7bd45b20a5f8a05597b7ac707b1a388524603ffc1cd6be4b"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLJoinTableSource.equals (cyclomatic 18): SQLJoinTableSource.equals has cyclomatic complexity 18 (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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLJoinTableSource.java"},"region":{"startLine":651}}}],"partialFingerprints":{"codehealthFindingId/v1":"81f749d4ba6a37a794def1b6a1c065fc082850c45d4598344a0b33c4f56d18e8"}},{"ruleId":"D1","level":"warning","message":{"text":"HiveOutputVisitor.visit (cyclomatic 18): HiveOutputVisitor.visit has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/visitor/HiveOutputVisitor.java"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"55ceb07d9ff6db616ec6c79e5d7e64c84956a42f00945071050aa283e5cb8d0a"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlStatementParser.createTableRest (cyclomatic 18): MySqlStatementParser.createTableRest has cyclomatic complexity 18 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"2621d2e3516d32682733cbd16fea8c98c4f90f693eef7bed1d04116f4af9d793"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlStatementParser.parseAnalyze (cyclomatic 18): MySqlStatementParser.parseAnalyze has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":931}}}],"partialFingerprints":{"codehealthFindingId/v1":"f303b9f0ae8690599d586fa62545f00d7cb5874083985544513055cbee6ce0b3"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlStatementParser.parseCreateUser (cyclomatic 18): MySqlStatementParser.parseCreateUser has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":776}}}],"partialFingerprints":{"codehealthFindingId/v1":"43c1a522e33c9487d2792cda7beb7a4cfcd67ee6cab3bf81cf5ba91efdfb1253"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlOutputVisitor.visit (cyclomatic 18): MySqlOutputVisitor.visit has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":5170}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2343cdd0a24b9d692d9b8ea3bf94056e187ddfa7c258abaedec71c3c7d4baec"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlOutputVisitor.visit (cyclomatic 18): MySqlOutputVisitor.visit has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":4921}}}],"partialFingerprints":{"codehealthFindingId/v1":"04309edef335c86e087be2ea432b21ffa67702e9e11c74da6ebbdba5ecda7697"}},{"ruleId":"D1","level":"warning","message":{"text":"OdpsOutputVisitor.visit (cyclomatic 18): OdpsOutputVisitor.visit has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/visitor/OdpsOutputVisitor.java"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e10e843ecea8ac1ecc112bf898c14472bd794ff5308588fc87653029572774b"}},{"ruleId":"D1","level":"warning","message":{"text":"OracleIntervalExpr.equals (cyclomatic 18): OracleIntervalExpr.equals has cyclomatic complexity 18 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/expr/OracleIntervalExpr.java"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"933d11dc96c39a61d46b452f8927b406af96a3ed7f4432baccb5e3ec33f9258e"}},{"ruleId":"D1","level":"warning","message":{"text":"OracleUpdateStatement.equals (cyclomatic 18): OracleUpdateStatement.equals has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleUpdateStatement.java"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce713e2c398d3dc1609dea259e25beac7b1948128e33881fe69cee1e9db4179a"}},{"ruleId":"D1","level":"warning","message":{"text":"OracleExprParser.parseStorage (cyclomatic 18): OracleExprParser.parseStorage has cyclomatic complexity 18 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java"},"region":{"startLine":1586}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6fa46b6b4546216a6336170f74afb236d0cf7a411a3d114461563c205e72758"}},{"ruleId":"D1","level":"warning","message":{"text":"PGOutputVisitor.visit (cyclomatic 18): PGOutputVisitor.visit has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"e38fd41d41f5daeb1ae102c318329006871577984d6e79068d0a2e3ffa432c67"}},{"ruleId":"D1","level":"warning","message":{"text":"PGOutputVisitor.visit (cyclomatic 18): PGOutputVisitor.visit has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java"},"region":{"startLine":2950}}}],"partialFingerprints":{"codehealthFindingId/v1":"86c0eb3a492917231800be63fddd1146235c002c4bc4d480f9b812aabdd497c7"}},{"ruleId":"D1","level":"warning","message":{"text":"PrestoSelectParser.query (cyclomatic 18): PrestoSelectParser.query has cyclomatic complexity 18 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/presto/parser/PrestoSelectParser.java"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"a12549d775c202230303858cbdd842ed950b834c36d2f5c15f9a2b83490f2be7"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLServerOutputVisitor.visit (cyclomatic 18): SQLServerOutputVisitor.visit has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/visitor/SQLServerOutputVisitor.java"},"region":{"startLine":712}}}],"partialFingerprints":{"codehealthFindingId/v1":"c79b727dc6bcd6f3e95a40397c17e9a4399648daae016074b2119afcf359522a"}},{"ruleId":"D1","level":"warning","message":{"text":"Lexer.scanMultiLineComment (cyclomatic 18): Lexer.scanMultiLineComment has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java"},"region":{"startLine":2476}}}],"partialFingerprints":{"codehealthFindingId/v1":"858e63c948965808456809dd4d3820b0ba3ed540575c8146f5e1ca7f4d0617a7"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLStatementParser.parseRevoke (cyclomatic 18): SQLStatementParser.parseRevoke has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":1994}}}],"partialFingerprints":{"codehealthFindingId/v1":"cab76917b8e3365217add51758db456a3fa774c249232111539b19be9cd735a5"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLASTOutputVisitor.printFetchFirst (cyclomatic 18): SQLASTOutputVisitor.printFetchFirst has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":2765}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c1c478219dc557c3c0bc88d3eac06058ec84334c5b300b90e2979dd46699a38"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLASTOutputVisitor.visitorBinaryRight (cyclomatic 18): SQLASTOutputVisitor.visitorBinaryRight has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":878}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1f7e5cfc281e75c6101639495676e92f4c36aa16fa48fb8ca0aef836e3ae1ff"}},{"ruleId":"D1","level":"warning","message":{"text":"WallVisitorUtils.isFirstSelectTableSource (cyclomatic 18): WallVisitorUtils.isFirstSelectTableSource has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java"},"region":{"startLine":2001}}}],"partialFingerprints":{"codehealthFindingId/v1":"857f73f1c3593fc51fd66fd570f7bc585b1254e0783d382b564135f34b319403"}},{"ruleId":"D1","level":"warning","message":{"text":"StatFilter.buildSlowParameters (cyclomatic 17): StatFilter.buildSlowParameters has cyclomatic complexity 17 (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":"core/src/main/java/com/alibaba/druid/filter/stat/StatFilter.java"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9618c1bc1a7d062fd066aa16f406f2adbe88b42fb6cf55d1c0542e436188052"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLAggregateExpr.equals (cyclomatic 17): SQLAggregateExpr.equals 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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLAggregateExpr.java"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae50dc549f1daa5cadf74f1a2b03c4d75c9b25cc6ac6cc3bacb4900bbdeacf8e"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLSelectQueryBlock.addWhere (cyclomatic 17): SQLSelectQueryBlock.addWhere 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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"515d44c964279b11b8f1fca450ce306d791588d1189e663479ce0382ceaa7921"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLSelectQueryBlock.replace (cyclomatic 17): SQLSelectQueryBlock.replace has cyclomatic complexity 17 (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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java"},"region":{"startLine":1180}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7d90f6c72fb1a0a93a3f4b33f2655e9f1d8cf1f97680540d1a8f3abb9b59167"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLIndexDefinition.cloneTo (cyclomatic 17): SQLIndexDefinition.cloneTo has cyclomatic complexity 17 (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":"core/src/main/java/com/alibaba/druid/sql/ast/SQLIndexDefinition.java"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"c425e25ede5b6b6a66a29e0da80365cb1c43d6f7a708a4a5851b42c0573d44b5"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLOver.equals (cyclomatic 17): SQLOver.equals has cyclomatic complexity 17 (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":"core/src/main/java/com/alibaba/druid/sql/ast/SQLOver.java"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e5db6c0644b52eb34a14c03a8f52068e1a181f52c5f0c11cbf49546467fad3f"}},{"ruleId":"D1","level":"warning","message":{"text":"CKOutputVisitor.printComment (cyclomatic 17): CKOutputVisitor.printComment has cyclomatic complexity 17 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/visitor/CKOutputVisitor.java"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"06fd099decfc476ffea24538465eec08fcab9e62f5e0d421112146a4eb188eaa"}},{"ruleId":"D1","level":"warning","message":{"text":"HologresOutputVisitor.printComment (cyclomatic 17): HologresOutputVisitor.printComment has cyclomatic complexity 17 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/hologres/visitor/HologresOutputVisitor.java"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"781829c4c38069a881cf35bd0bd0ac96a943796b335c5a070b04005ce165386c"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlCreateTableStatement.cloneTo (cyclomatic 17): MySqlCreateTableStatement.cloneTo has cyclomatic complexity 17 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlCreateTableStatement.java"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"d609e9e609e1648b7cececab6b53e418de7872422fd8033fae14da3e8ddb9a22"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlStatementParser.alterDatabase (cyclomatic 17): MySqlStatementParser.alterDatabase 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":8052}}}],"partialFingerprints":{"codehealthFindingId/v1":"bad56d215acfce2ed444236a8e00be8c4ce541fe8bfc1d6e33f6ad89cd6eaad9"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlOutputVisitor.visit (cyclomatic 17): MySqlOutputVisitor.visit 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":4146}}}],"partialFingerprints":{"codehealthFindingId/v1":"d95c9ef62dae0b59cdb7a01c623b89e59d6b529ddb36d59b2dc2a783311edca2"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlOutputVisitor.visit (cyclomatic 17): MySqlOutputVisitor.visit 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":4973}}}],"partialFingerprints":{"codehealthFindingId/v1":"838e8e8e803c310962c5c5159a4bb9fc3078f5b3c9702aeea86cfc5cf6b06fee"}},{"ruleId":"D1","level":"warning","message":{"text":"OracleExprParser.parseLobStorage (cyclomatic 17): OracleExprParser.parseLobStorage 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java"},"region":{"startLine":1482}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba0d9e9219c19e51abaae39ca339072a543929e3c23845e1cfe1288a33032785"}},{"ruleId":"D1","level":"warning","message":{"text":"OracleOutputVisitor.visit (cyclomatic 17): OracleOutputVisitor.visit 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":2132}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9d2808b2b97a80d14a7bc1e9c05bd311cd0dab068e44b81f2895af8fa16f6b9"}},{"ruleId":"D1","level":"warning","message":{"text":"OracleOutputVisitor.visit (cyclomatic 17): OracleOutputVisitor.visit 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":2382}}}],"partialFingerprints":{"codehealthFindingId/v1":"20cafa7e2e95e307749b46217f79f3f2d6a8b007d88f76b356219ed9bf0a1806"}},{"ruleId":"D1","level":"warning","message":{"text":"OscarOutputVisitor.visit (cyclomatic 17): OscarOutputVisitor.visit 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":1310}}}],"partialFingerprints":{"codehealthFindingId/v1":"283147311914fac3f8dbcd6c94fc957471b52bd985001aa90ff01dae4bb55303"}},{"ruleId":"D1","level":"warning","message":{"text":"PGSQLStatementParser.parseBlock (cyclomatic 17): PGSQLStatementParser.parseBlock 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":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java"},"region":{"startLine":729}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d468a7d1677aab6a7e4e24577b435517d699d12a1e4c7bb2bd340fc7186b3cc"}},{"ruleId":"D1","level":"warning","message":{"text":"PGSQLStatementParser.parseCreateIndex (cyclomatic 17): PGSQLStatementParser.parseCreateIndex 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":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java"},"region":{"startLine":1120}}}],"partialFingerprints":{"codehealthFindingId/v1":"d50e063d8645bc429140571119296dd1df6862c6012f7e583fd426b4097239db"}},{"ruleId":"D1","level":"warning","message":{"text":"PGSQLStatementParser.parseSet (cyclomatic 17): PGSQLStatementParser.parseSet 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":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java"},"region":{"startLine":1034}}}],"partialFingerprints":{"codehealthFindingId/v1":"a870b5d8983abe7bf8d65fd2c688c32dfb41e8fa62b55f25461b42877b74244a"}},{"ruleId":"D1","level":"warning","message":{"text":"PGOutputVisitor.visit (cyclomatic 17): PGOutputVisitor.visit 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":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java"},"region":{"startLine":1687}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6ec2e262c66a9111decd396005dbe2db9237cdb28ce1cea0638d578e2310ea6"}},{"ruleId":"D1","level":"warning","message":{"text":"RedshiftCreateTableParser.parseCreateTableRest (cyclomatic 17): RedshiftCreateTableParser.parseCreateTableRest 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":"core/src/main/java/com/alibaba/druid/sql/dialect/redshift/parser/RedshiftCreateTableParser.java"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"a22945931e034900e0beef2c6467289c5fa5d6adeff9b1e761e8ff7d9194c143"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLServerStatementParser.parseInsert0 (cyclomatic 17): SQLServerStatementParser.parseInsert0 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":"core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerStatementParser.java"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"00aa940168307f5e35e85399f8238cd05da62a9a8c2f099c41ccf27f55610928"}},{"ruleId":"D1","level":"warning","message":{"text":"Lexer.parameterize (cyclomatic 17): Lexer.parameterize has cyclomatic complexity 17 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java"},"region":{"startLine":3463}}}],"partialFingerprints":{"codehealthFindingId/v1":"6158f0395ec75efce102b550c4932047f3260af28bc56ea4d05d85af884501cb"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLParser.tableAliasFromRequiredRest (cyclomatic 17): SQLParser.tableAliasFromRequiredRest has cyclomatic complexity 17 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLParser.java"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"56f5b290e739c0dbcf382579561fb34ca7704dec175f4fc13921c2a78370895b"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLSelectParser.parseGroupByItem (cyclomatic 17): SQLSelectParser.parseGroupByItem 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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java"},"region":{"startLine":1065}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec92778cdda9ef0212854d9de6485dbc0d97e5a893607e9e8dcbde63477af05c"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLSelectParser.parsePivot (cyclomatic 17): SQLSelectParser.parsePivot 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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java"},"region":{"startLine":2431}}}],"partialFingerprints":{"codehealthFindingId/v1":"18d28922dd125ada8616b2d3baa11721ee6165f80e5a44790af886c45a28514b"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLSelectParser.parseSelectList (cyclomatic 17): SQLSelectParser.parseSelectList 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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java"},"region":{"startLine":1143}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cbf2d697280d9fa598da97cfff7d719816a77142f4880fe335e9226ace6ccce"}},{"ruleId":"D1","level":"warning","message":{"text":"SchemaResolveVisitorFactory.resolve (cyclomatic 17): SchemaResolveVisitorFactory.resolve 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":"core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java"},"region":{"startLine":2013}}}],"partialFingerprints":{"codehealthFindingId/v1":"59966c9515737351e4a06f944336e812e335228bca522fef665e788ebd8d517d"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLASTOutputVisitor.hiveVisit (cyclomatic 17): SQLASTOutputVisitor.hiveVisit 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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":9956}}}],"partialFingerprints":{"codehealthFindingId/v1":"349d3eb4d1a29f9ff02123c691eae3d5f7ae6cb78160d28b2e6947a46a2dc567"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLASTOutputVisitor.printSelectList (cyclomatic 17): SQLASTOutputVisitor.printSelectList 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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab47310f81d4af46bd4eef2717c0116ecb064e2435f1f0a7c854df63f00b1b32"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cyclomatic 17): SQLASTOutputVisitor.visit 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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":7978}}}],"partialFingerprints":{"codehealthFindingId/v1":"12916b4482223216b116858a467ded583c1c3eef67c6a3c1fde45fa9e9d37804"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cyclomatic 17): SQLASTOutputVisitor.visit 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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":2280}}}],"partialFingerprints":{"codehealthFindingId/v1":"de2ff2e31b34327f55dee2a62447ad20b4a6a87610acf6a215b8dbea1391f369"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLASTOutputVisitor.visitStatementList (cyclomatic 17): SQLASTOutputVisitor.visitStatementList 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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":11950}}}],"partialFingerprints":{"codehealthFindingId/v1":"991dcac8d871ddf130cf91beb689acc11ab9bc12a4cb86f2e8755c615e3ae760"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLEvalVisitorUtils.like (cyclomatic 17): SQLEvalVisitorUtils.like 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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java"},"region":{"startLine":2096}}}],"partialFingerprints":{"codehealthFindingId/v1":"0be79145d511d3c0e3828207eacb792d3a89db20933c04c5de17e9978155c7e2"}},{"ruleId":"D1","level":"warning","message":{"text":"OracleUnorderedLimitDetectVisitor.visit (cyclomatic 17): OracleUnorderedLimitDetectVisitor.visit 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. This is NOT this file\u0027s highest cyclomatic complexity: PagerUtils.limitQueryBlock (cyclomatic 20) 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/PagerUtils.java"},"region":{"startLine":719}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a39f22f4b5219dcb7ae63b5af0872c196393a651934b35c13270bbf373e5405"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLUtils.toSQLString (cyclomatic 17): SQLUtils.toSQLString 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. This is NOT this file\u0027s highest cyclomatic complexity: SQLUtils.createSchemaStatVisitor (cyclomatic 25) 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/SQLUtils.java"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"943690045d7eb3f59c074eccb923824d5851bb6992281caea237d8231fd83c91"}},{"ruleId":"D1","level":"warning","message":{"text":"WebAppStat.computeUserAgentAndroid (cyclomatic 17): WebAppStat.computeUserAgentAndroid has cyclomatic complexity 17 (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":"core/src/main/java/com/alibaba/druid/support/http/stat/WebAppStat.java"},"region":{"startLine":850}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a5661fb274b5d1a49e44940f89756e0e25a6a80deeb929e762e669ebb4c1fa5"}},{"ruleId":"D1","level":"warning","message":{"text":"ResourceHandler.service (cyclomatic 17): ResourceHandler.service has cyclomatic complexity 17 (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":"core/src/main/java/com/alibaba/druid/support/http/ResourceServlet.java"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"83098b92fd0637656cc4e8cbe205e6c56e89b1587ee5604b02dad6842813da19"}},{"ruleId":"D1","level":"warning","message":{"text":"ResourceHandler.service (cyclomatic 17): ResourceHandler.service has cyclomatic complexity 17 (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":"core/src/main/java/com/alibaba/druid/support/jakarta/ResourceServlet.java"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d92921d7506cd7be6ba080c8041bbecf4863414cc5614034b47e0dec9629cf4"}},{"ruleId":"D1","level":"warning","message":{"text":"JSONParser.nextToken (cyclomatic 17): JSONParser.nextToken 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":"core/src/main/java/com/alibaba/druid/support/json/JSONParser.java"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9d3f9a009d18f8c6f5f0f591d814244958db380ef9d0c57b2549c5fc0a206dc"}},{"ruleId":"D1","level":"warning","message":{"text":"DruidDataSourceUtils.configFromProperties (cyclomatic 17): DruidDataSourceUtils.configFromProperties has cyclomatic complexity 17 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/util/DruidDataSourceUtils.java"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"d171013640adfe11bc89046e5f538a4c4f424959261ecd151ce05c5dee4a329f"}},{"ruleId":"D1","level":"warning","message":{"text":"DruidWebUtils.getRemoteAddr (cyclomatic 17): DruidWebUtils.getRemoteAddr 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. This shape REPEATS in the file: one other method here (DruidWebUtils.getRemoteAddr) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/util/DruidWebUtils.java"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"4060b27365b9bd927d749cd2d618235a18ba3e48e983ff56fb43a5f1bcc77219"}},{"ruleId":"D1","level":"warning","message":{"text":"DruidWebUtils.getRemoteAddr (cyclomatic 17): DruidWebUtils.getRemoteAddr 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. This shape REPEATS in the file: one other method here (DruidWebUtils.getRemoteAddr) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/util/DruidWebUtils.java"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"29b69d7c533a73068f7819d33ed53eeb67cae587dbf8dbd7de6af5bd11083def"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlUtils.isNumber (cyclomatic 17): MySqlUtils.isNumber 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":"core/src/main/java/com/alibaba/druid/util/MySqlUtils.java"},"region":{"startLine":820}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec94610bf8d4ad0904ad606026a761b4060e6c8b1a534f150906f67d0cfb7d7f"}},{"ruleId":"D1","level":"warning","message":{"text":"WallVisitorUtils.isSimpleConstExpr (cyclomatic 17): WallVisitorUtils.isSimpleConstExpr 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":"core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f9f96b68ca5273ebc280d1b9b39e5fab2aa2ce1c2fe42efc83dd6d56f6bbaf3"}},{"ruleId":"D1","level":"warning","message":{"text":"WallVisitorUtils.isWhereOrHaving (cyclomatic 17): WallVisitorUtils.isWhereOrHaving 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":"core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java"},"region":{"startLine":1258}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d1ac801a27c1a36fbb42560c2ecf874bb5a07e1d91d450e1cfeb5026fcdbf32"}},{"ruleId":"D1","level":"warning","message":{"text":"LogFilter.configFromProperties (cyclomatic 16): LogFilter.configFromProperties 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":"core/src/main/java/com/alibaba/druid/filter/logging/LogFilter.java"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"d81d15b33216e9cc282ddd99bfd09c51466275619d42a4d473e3808f83c676ad"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLBinaryOpExpr.merge (cyclomatic 16): SQLBinaryOpExpr.merge has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLBinaryOpExpr.java"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a818e24baa77d2945ac9b55a22fa1df9eac9115742dcd032de1f6f4320c169b"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLSelectQueryBlock.addWhereForDynamicFilter (cyclomatic 16): SQLSelectQueryBlock.addWhereForDynamicFilter has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"027109a61e55cffad8e79ba0652b07825edb4ba7b21df473c71137d19b3de30a"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLUpdateStatement.equals (cyclomatic 16): SQLUpdateStatement.equals has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLUpdateStatement.java"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"92dbbd3b156b831bb9c876c0ad10c294ff5326bf9b32e6b8b2df0722c78c8178"}},{"ruleId":"D1","level":"warning","message":{"text":"BigQueryStatementParser.parseCreateFunction (cyclomatic 16): BigQueryStatementParser.parseCreateFunction has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryStatementParser.java"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cbc74a2e8b24bd6c416e1e268f7a44d73b6664579608303cdf265613ab34bc6"}},{"ruleId":"D1","level":"warning","message":{"text":"DB2ExprParser.parseIdentity (cyclomatic 16): DB2ExprParser.parseIdentity has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2ExprParser.java"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b818a713a7838a4659cb4bb3a6d4293f68e8b1b6d18a5108c55a2dd3a48b4ee"}},{"ruleId":"D1","level":"warning","message":{"text":"DmOutputVisitor.visit (cyclomatic 16): DmOutputVisitor.visit has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmOutputVisitor.java"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7d24971c285f79d51489d7c823ba3d05f20a9a5a8118f9a61c8d51e67f79b4e"}},{"ruleId":"D1","level":"warning","message":{"text":"GaussDbExprParser.parsePartitionValues (cyclomatic 16): GaussDbExprParser.parsePartitionValues has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/parser/GaussDbExprParser.java"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"23bad075643204528a2085f341769fe8310dc99fafe2951fac88054e1be42731"}},{"ruleId":"D1","level":"warning","message":{"text":"H2ExprParser.parseIdentity0 (cyclomatic 16): H2ExprParser.parseIdentity0 has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/h2/parser/H2ExprParser.java"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"7621f5d144e2b30a64104c0814a0c1f29c4446627693b72d4ac3883e5fed78ec"}},{"ruleId":"D1","level":"warning","message":{"text":"HiveOutputVisitor.visit (cyclomatic 16): HiveOutputVisitor.visit has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/visitor/HiveOutputVisitor.java"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d7a064142001ecdaa2b5a1bab8880e1e2d2bd8a47d60a9b15a7d01a94531fb3"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlExprParser.\u003Cinit\u003E (cyclomatic 16): MySqlExprParser.\u003Cinit\u003E has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"121959bdff249887b1e9be96cf6f1329462d3e58b68b75b74775c170984c8bc9"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlStatementParser.parseCreateEvent (cyclomatic 16): MySqlStatementParser.parseCreateEvent 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":5570}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb772e2b3ec5af7ff081ecab54f10851e299abebfecbf26bac7f2f51538428a7"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlOutputVisitor.visit (cyclomatic 16): MySqlOutputVisitor.visit has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":3810}}}],"partialFingerprints":{"codehealthFindingId/v1":"489960533943851da5c268482f55e79a323c89a28b902052b33769361c0f5cb3"}},{"ruleId":"D1","level":"warning","message":{"text":"OdpsOutputVisitor.visit (cyclomatic 16): OdpsOutputVisitor.visit has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/visitor/OdpsOutputVisitor.java"},"region":{"startLine":1253}}}],"partialFingerprints":{"codehealthFindingId/v1":"90a1dfe38cb1b3fc39282cdf51a50166d4b28dba20d617576eb7ed8155a7e0c1"}},{"ruleId":"D1","level":"warning","message":{"text":"OdpsOutputVisitor.visit (cyclomatic 16): OdpsOutputVisitor.visit has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/visitor/OdpsOutputVisitor.java"},"region":{"startLine":701}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fd3e2619cf3a3935410a27b511273a09a4d2dd5fa2922262b022344eb796366"}},{"ruleId":"D1","level":"warning","message":{"text":"OracleCreateTableParser.parseCreateTableSupplementalLoggingProps (cyclomatic 16): OracleCreateTableParser.parseCreateTableSupplementalLoggingProps has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleCreateTableParser.java"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"caf91b2414eb911b411a93013ceb49ffb9124117551de804ba358e49d63e5bf7"}},{"ruleId":"D1","level":"warning","message":{"text":"OracleExprParser.parsePartition (cyclomatic 16): OracleExprParser.parsePartition has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java"},"region":{"startLine":1771}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0383942f8a41e06a860b105333581194fb11d915a4923099daaf9654fcf232b"}},{"ruleId":"D1","level":"warning","message":{"text":"OracleStatementParser.parseAlterTableSplit (cyclomatic 16): OracleStatementParser.parseAlterTableSplit has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java"},"region":{"startLine":1814}}}],"partialFingerprints":{"codehealthFindingId/v1":"227bb274cb1dfb96af88125fbc4067a720178890556e47acd115c3657fe83f5b"}},{"ruleId":"D1","level":"warning","message":{"text":"OracleStatementParser.parseCreateSequence (cyclomatic 16): OracleStatementParser.parseCreateSequence 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java"},"region":{"startLine":2725}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b0be2713e7bef306c583122ff498084818885cb877fc841c294a90b3ab254a3"}},{"ruleId":"D1","level":"warning","message":{"text":"OracleOutputVisitor.visit (cyclomatic 16): OracleOutputVisitor.visit has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":2938}}}],"partialFingerprints":{"codehealthFindingId/v1":"c91d5bc6f2146ace660616e7cd0f296d042c92fcce476affe1deeec109dc64ee"}},{"ruleId":"D1","level":"warning","message":{"text":"OracleOutputVisitor.visit (cyclomatic 16): OracleOutputVisitor.visit has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":2441}}}],"partialFingerprints":{"codehealthFindingId/v1":"813550c6dead3e4f4c71353052a906031c367ad41c1ac55c8a3c11b11d153be2"}},{"ruleId":"D1","level":"warning","message":{"text":"OscarOutputVisitor.visit (cyclomatic 16): OscarOutputVisitor.visit has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":1370}}}],"partialFingerprints":{"codehealthFindingId/v1":"caed41fd0f1eaabab239043bd9ac308f752ce47a8eff41bd958715d367235c9f"}},{"ruleId":"D1","level":"warning","message":{"text":"PGSQLStatementParser.alterDatabase (cyclomatic 16): PGSQLStatementParser.alterDatabase 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":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java"},"region":{"startLine":1355}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ade5dd41590d7f717ed1d8d23671477e36af03b857e79697c907a327f47d87f"}},{"ruleId":"D1","level":"warning","message":{"text":"PGOutputVisitor.visit (cyclomatic 16): PGOutputVisitor.visit has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java"},"region":{"startLine":1747}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bd97ff031f1bdadc0fa84e90e9680c83c1e7c83660f09137c7e3fef25ff45d4"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLServerStatementParser.parseDeclare (cyclomatic 16): SQLServerStatementParser.parseDeclare has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerStatementParser.java"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"31b2df9c8947bafee2ae9ce66a66cab94bb64f0526ecfb2b011c44840e7a9435"}},{"ruleId":"D1","level":"warning","message":{"text":"Lexer.scanLineArgument (cyclomatic 16): Lexer.scanLineArgument has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java"},"region":{"startLine":2424}}}],"partialFingerprints":{"codehealthFindingId/v1":"c34b5bcff949cc5b827c2d7d9ea7e2c8d27953463de0d6aa57725a14ae064e27"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLCreateTableParser.createTableBodyItem (cyclomatic 16): SQLCreateTableParser.createTableBodyItem has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLCreateTableParser.java"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6d272ab37e67726fbde8ec5ac2a66fce0369e65f7ea725e2fac862a8cbeec78"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLExprParser.orRest (cyclomatic 16): SQLExprParser.orRest has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: SQLExprParser.parseInterval (cyclomatic 33) 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":3642}}}],"partialFingerprints":{"codehealthFindingId/v1":"b23091d9e3aeefc280d009bbf0d1f5f606ab83670a93ec940700d97571ee4876"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLSelectParser.parseHierachical (cyclomatic 16): SQLSelectParser.parseHierachical has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java"},"region":{"startLine":2240}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e6ba6cb510882ad20cf41e8ba91d8e8907ba6b4730808c217fecc75e09a0b7c"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLStatementParser.parseAlterDrop (cyclomatic 16): SQLStatementParser.parseAlterDrop has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":3151}}}],"partialFingerprints":{"codehealthFindingId/v1":"c31e626feadc058bd172e6b4fb8d6bdcaa3eb453326408cc865ae750f65f514d"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLStatementParser.parseMergeWhen (cyclomatic 16): SQLStatementParser.parseMergeWhen has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":5709}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a63cd0f0dc6e3f0394d6293de0d152876b048970c8ac367cd7b76df9164d11d"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLStatementParser.parserParameters (cyclomatic 16): SQLStatementParser.parserParameters has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":3529}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f87581de2177402a518735d4f912c41af6bbcad83edf80e4075bb779a365de1"}},{"ruleId":"D1","level":"warning","message":{"text":"SchemaRepository.console (cyclomatic 16): SchemaRepository.console has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/repository/SchemaRepository.java"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"12486d50f329194a20e15c0bf5627a7470b2614d8d3916f9710be48c8bff9a2c"}},{"ruleId":"D1","level":"warning","message":{"text":"ParameterizedOutputVisitorUtils.parameterizeHash (cyclomatic 16): ParameterizedOutputVisitorUtils.parameterizeHash has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: ParameterizedOutputVisitorUtils.createParameterizedOutputVisitor (cyclomatic 30) 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/ParameterizedOutputVisitorUtils.java"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c6307c324931ac69a74a633f7b8faca38b1d1fd18d80701a922d38598485fc7"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLASTOutputVisitor.printExpr (cyclomatic 16): SQLASTOutputVisitor.printExpr 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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":1098}}}],"partialFingerprints":{"codehealthFindingId/v1":"68367b3289a4c48e633a4b2cd0881e132ec07795570cf403bf36d73cccb2990a"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cyclomatic 16): SQLASTOutputVisitor.visit has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":8138}}}],"partialFingerprints":{"codehealthFindingId/v1":"948d246be453b57fa902262fdfe9b66277efbb1a3ed76c57ae9ef57737fd8dbb"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cyclomatic 16): SQLASTOutputVisitor.visit has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":8080}}}],"partialFingerprints":{"codehealthFindingId/v1":"386d4783149e5088ab3279e163d14fcacf7671be01daf509f9fd755fc9679480"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cyclomatic 16): SQLASTOutputVisitor.visit 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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":2372}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf71ddaead07be7c7a1ea4a431f2894c22988b60e5e1863a4aaa482d1f6a6674"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cyclomatic 16): SQLASTOutputVisitor.visit has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":6390}}}],"partialFingerprints":{"codehealthFindingId/v1":"a941ad3b377aa3c214e94a4c242aee13bd56093cb6331181ffefe9295c60ca0d"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cyclomatic 16): SQLASTOutputVisitor.visit has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":11062}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc65b8872a0fe5f4067437adc732778aa8a991475b38afb5945e498b4f0f558a"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cyclomatic 16): SQLASTOutputVisitor.visit 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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":3763}}}],"partialFingerprints":{"codehealthFindingId/v1":"16d6614531f2c3923750a53d05574b60c78a2d52b2624b21d9535fc2878c0dfe"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cyclomatic 16): SQLASTOutputVisitor.visit 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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":2862}}}],"partialFingerprints":{"codehealthFindingId/v1":"e37dbe1161b5020b83356cc277d0a4154bf533d2d2656f9f786533a037ddc582"}},{"ruleId":"D1","level":"warning","message":{"text":"ResourceServlet.initAuthEnv (cyclomatic 16): ResourceServlet.initAuthEnv has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/support/http/ResourceServlet.java"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"96f8e8ab4b32de951cd28cd36af5b784720233adf938ff0e3a4853e2a1e502db"}},{"ruleId":"D1","level":"warning","message":{"text":"ResourceServlet.initAuthEnv (cyclomatic 16): ResourceServlet.initAuthEnv has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/support/jakarta/ResourceServlet.java"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"763f6c50ab3b9ec7efa3c8fdb9a2beb5f462a7543981c70f309c138ed6270c91"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlStatementParser.parseShow (cognitive 475): MySqlStatementParser.parseShow has cognitive complexity 475 (threshold 15). Drivers by points: if/else 260 (446 pts), boolean chains 24, loops 2 (5 pts) (nesting depth added 189). 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":2497}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbb084d167a93baa73fd8efc9a8e426d8ad9e24871ce5448df9d47689f402329"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLSelectParser.parseTableSourceRest (cognitive 340): SQLSelectParser.parseTableSourceRest has cognitive complexity 340 (threshold 15). Drivers by points: if/else 108 (270 pts), boolean chains 41, ternaries 5 (14 pts), loops 3 (8 pts), match/switch 3 (7 pts) (nesting depth added 180). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java"},"region":{"startLine":1601}}}],"partialFingerprints":{"codehealthFindingId/v1":"56d08293523fd753dc2006e864f3fb56af610fe4351db816bbbc70914b8f0ead"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlCreateTableParser.parseCreateTable (cognitive 317): MySqlCreateTableParser.parseCreateTable has cognitive complexity 317 (threshold 15). Drivers by points: if/else 106 (285 pts), loops 4 (17 pts), boolean chains 15 (nesting depth added 192). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"3340502e84b5aaeb1ab24adae6c3bfe04ad4822e95be83a9610bc03ffbca9cca"}},{"ruleId":"D2","level":"warning","message":{"text":"OracleStatementParser.parseStatementList (cognitive 282): OracleStatementParser.parseStatementList has cognitive complexity 282 (threshold 15). Drivers by points: if/else 106 (264 pts), loops 4 (12 pts), boolean chains 6 (nesting depth added 166). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"56f053bfc24fbd64428e3d34489407710070e0d864343c231f8d5ad8e58fdd60"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlStatementParser.parseAlterSpecification (cognitive 254): MySqlStatementParser.parseAlterSpecification has cognitive complexity 254 (threshold 15). Drivers by points: if/else 105 (223 pts), loops 6 (20 pts), boolean chains 4, match/switch 2 (4 pts), error handling 1 (3 pts) (nesting depth added 136). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. 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. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":5783}}}],"partialFingerprints":{"codehealthFindingId/v1":"648a4177b8425fb819d96f888caea76fdf6f8691800cae35560d942e80fc712f"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLStatementParser.parseValueClauseNative (cognitive 242): SQLStatementParser.parseValueClauseNative has cognitive complexity 242 (threshold 15). Drivers by points: if/else 70 (214 pts), boolean chains 18, loops 3 (6 pts), match/switch 1 (4 pts) (nesting depth added 150). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":6057}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a64a58476609016da15d75aeae2b9df8bd24442623f6e3b55dacb8e08f2ee3b"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlStatementParser.parseStatementListDialect (cognitive 230): MySqlStatementParser.parseStatementListDialect has cognitive complexity 230 (threshold 15). Drivers by points: if/else 112 (178 pts), boolean chains 25, loops 8 (25 pts), match/switch 1 (2 pts) (nesting depth added 84). 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":1046}}}],"partialFingerprints":{"codehealthFindingId/v1":"038339dd90678b43fb0b4c2cf1c7ec81ab0f312b47ce719853a07df9e96a2d11"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLStatementParser.parseValueClause (cognitive 225): SQLStatementParser.parseValueClause has cognitive complexity 225 (threshold 15). Drivers by points: if/else 69 (206 pts), boolean chains 13, loops 3 (6 pts) (nesting depth added 140). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":6662}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddc4ffde1d794cd6bf6e73b99ef3503ff750344e58839dd2d3d26abd7acd0593"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlStatementParser.parseInsert (cognitive 211): MySqlStatementParser.parseInsert has cognitive complexity 211 (threshold 15). Drivers by points: if/else 64 (172 pts), loops 8 (30 pts), boolean chains 6, error handling 1 (3 pts) (nesting depth added 132). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":4535}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e691fe0c30da57a5d33f57ed3a1872ba97a63aa5afda9aa52e9304309832336"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlCreateTableParser.parseOptions (cognitive 185): MySqlCreateTableParser.parseOptions has cognitive complexity 185 (threshold 15). Drivers by points: if/else 66 (160 pts), loops 7 (21 pts), error handling 1 (3 pts), boolean chains 1 (nesting depth added 110). 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java"},"region":{"startLine":628}}}],"partialFingerprints":{"codehealthFindingId/v1":"f18cd3c7d9f47421a5922a823cdd0b3f512cce7750ddab16a77a690b0b4cf239"}},{"ruleId":"D2","level":"warning","message":{"text":"Lexer.scanSQLType (cognitive 185): Lexer.scanSQLType has cognitive complexity 185 (threshold 15). Drivers by points: if/else 113 (152 pts), boolean chains 19, loops 7 (14 pts) (nesting depth added 46). 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":"core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java"},"region":{"startLine":696}}}],"partialFingerprints":{"codehealthFindingId/v1":"434a5b8a91fbfc762188d22172023276f761f7def10ed023bb6f83fc2e1df34f"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlExprParser.primary (cognitive 178): MySqlExprParser.primary has cognitive complexity 178 (threshold 15). Drivers by points: if/else 78 (143 pts), boolean chains 23, loops 1 (4 pts), ternaries 1 (4 pts), error handling 1 (3 pts), match/switch 1 (nesting depth added 73). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. 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. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java"},"region":{"startLine":915}}}],"partialFingerprints":{"codehealthFindingId/v1":"bededfc5da97cf9577ac2148c0cf010213554ceead24d7a95c04f629d725b753"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLStatementParser.parseValueClause (cognitive 166): SQLStatementParser.parseValueClause has cognitive complexity 166 (threshold 15). Drivers by points: if/else 53 (144 pts), boolean chains 12, loops 3 (6 pts), match/switch 1 (4 pts) (nesting depth added 97). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":6388}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd420d4ad61ecd2064999556f3fbab9602ff42ca700ce9c3aa518ce0deaf7ad2"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLExprParser.parseSelectItem (cognitive 165): SQLExprParser.parseSelectItem has cognitive complexity 165 (threshold 15). Drivers by points: if/else 65 (128 pts), boolean chains 26, loops 3 (9 pts), match/switch 1 (2 pts) (nesting depth added 70). 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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":5859}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c62173213990db3fbc51777079071e8a3a3470fad76475f7469987db49c6685"}},{"ruleId":"D2","level":"warning","message":{"text":"OdpsCreateTableParser.parseCreateTable (cognitive 160): OdpsCreateTableParser.parseCreateTable has cognitive complexity 160 (threshold 15). Drivers by points: if/else 58 (129 pts), loops 6 (13 pts), boolean chains 11, match/switch 2 (7 pts) (nesting depth added 83). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsCreateTableParser.java"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"d09fb3626b450a98a8becd733450633ab863a16c670b00ddad67043b4042674d"}},{"ruleId":"D2","level":"warning","message":{"text":"OdpsStatementParser.parseStatementListDialect (cognitive 157): OdpsStatementParser.parseStatementListDialect has cognitive complexity 157 (threshold 15). Drivers by points: if/else 72 (133 pts), boolean chains 11, match/switch 2 (7 pts), error handling 1 (4 pts), loops 1 (2 pts) (nesting depth added 70). 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":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsStatementParser.java"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"bad874288b1be63a1a93621825675f95cd03d80bfa5cbfedb3350d28c2f2d830"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 148): SQLASTOutputVisitor.visit has cognitive complexity 148 (threshold 15). Drivers by points: if/else 39 (96 pts), loops 8 (29 pts), ternaries 4 (12 pts), boolean chains 9, match/switch 1 (2 pts) (nesting depth added 87). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":1522}}}],"partialFingerprints":{"codehealthFindingId/v1":"bed6fe427fe1cdddfaff7d211b7319aef87d9e1cdfaf28769170045bfaced6d1"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLEvalVisitorUtils.visit (cognitive 148): SQLEvalVisitorUtils.visit has cognitive complexity 148 (threshold 15). Drivers by points: if/else 74 (139 pts), boolean chains 8, match/switch 1 (nesting depth added 65). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bd5d06ebc141c024d4203469f094c371fda3937dddc781640160ab8e1fb8293"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlUtils.parseDateTime (cognitive 147): MySqlUtils.parseDateTime has cognitive complexity 147 (threshold 15). Drivers by points: if/else 68 (123 pts), boolean chains 22, match/switch 2 (nesting depth added 55). 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":"core/src/main/java/com/alibaba/druid/util/MySqlUtils.java"},"region":{"startLine":1436}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a805c8d8549a0bbd5be5cc1c67baced5c9ba5ed5b771b51462c392eb406552a"}},{"ruleId":"D2","level":"warning","message":{"text":"SchemaResolveVisitorFactory.resolveIdent (cognitive 143): SchemaResolveVisitorFactory.resolveIdent has cognitive complexity 143 (threshold 15). Drivers by points: if/else 49 (124 pts), boolean chains 13, loops 3 (6 pts) (nesting depth added 78). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java"},"region":{"startLine":1029}}}],"partialFingerprints":{"codehealthFindingId/v1":"e47c36d481649e6cae34be353ca4ec1552813ef996313ff8c735e630ffaef956"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLTimestampExpr.check (cognitive 140): SQLTimestampExpr.check has cognitive complexity 140 (threshold 15). Drivers by points: if/else 76 (116 pts), boolean chains 23, match/switch 1 (nesting depth added 40). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTimestampExpr.java"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"beb303eff56043437f5c28e7fa5e7077088df90a4ec61ac833047048d1f6c070"}},{"ruleId":"D2","level":"warning","message":{"text":"OracleCreateTableParser.parseCreateTable (cognitive 139): OracleCreateTableParser.parseCreateTable has cognitive complexity 139 (threshold 15). Drivers by points: if/else 59 (119 pts), loops 4 (14 pts), match/switch 1 (6 pts) (nesting depth added 75). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleCreateTableParser.java"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"d915d4048357807894cab5366c0ba95d53ea1220c569a40bfe0ff168b9b239fc"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLSelectParser.queryRest (cognitive 137): SQLSelectParser.queryRest has cognitive complexity 137 (threshold 15). Drivers by points: if/else 46 (118 pts), ternaries 2 (7 pts), loops 2 (5 pts), boolean chains 4, match/switch 1 (3 pts) (nesting depth added 82). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"051ce7732785176caf5fda7556e4ed3a95741d0619d28b7e863d8350226302d0"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlUtils.parseDate (cognitive 128): MySqlUtils.parseDate has cognitive complexity 128 (threshold 15). Drivers by points: if/else 63 (101 pts), boolean chains 24, match/switch 2, ternaries 1 (nesting depth added 38). 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":"core/src/main/java/com/alibaba/druid/util/MySqlUtils.java"},"region":{"startLine":978}}}],"partialFingerprints":{"codehealthFindingId/v1":"21588cd0f9383ffc046ae8867cada23d3b463f9283b4f30931fd7751260ec9ce"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLStatementParser.parsePrivilege (cognitive 127): SQLStatementParser.parsePrivilege has cognitive complexity 127 (threshold 15). Drivers by points: if/else 85 (121 pts), loops 2 (5 pts), boolean chains 1 (nesting depth added 39). 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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":1709}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1e736cceab2d6cfb9e7e21b3df17d0166d45c1f887916427a0b401f050f4c37"}},{"ruleId":"D2","level":"warning","message":{"text":"OracleStatementParser.parserParameters (cognitive 126): OracleStatementParser.parserParameters has cognitive complexity 126 (threshold 15). Drivers by points: if/else 48 (117 pts), boolean chains 8, loops 1 (nesting depth added 69). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java"},"region":{"startLine":2005}}}],"partialFingerprints":{"codehealthFindingId/v1":"f16bec1d5bf20b96e50d408303e5c339d6bcdd41bb88726fd24f957472faa46c"}},{"ruleId":"D2","level":"warning","message":{"text":"Lexer.nextToken (cognitive 126): Lexer.nextToken has cognitive complexity 126 (threshold 15). Drivers by points: if/else 40 (96 pts), boolean chains 23, match/switch 2 (6 pts), loops 1 (nesting depth added 60). 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":"core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java"},"region":{"startLine":1252}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e6e46797c54ffdaa0f94a6fb621527a3836113cff0b48d2001d67af8bef05ae"}},{"ruleId":"D2","level":"warning","message":{"text":"SchemaStatVisitor.unwrapExpr (cognitive 125): SchemaStatVisitor.unwrapExpr has cognitive complexity 125 (threshold 15). Drivers by points: if/else 31 (121 pts), boolean chains 3, loops 1 (nesting depth added 90). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java"},"region":{"startLine":1002}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd049fee055e2a9b48994eafc4888b9d3296cd9995fca6f6711da6796936b542"}},{"ruleId":"D2","level":"warning","message":{"text":"WallVisitorUtils.checkUpdate (cognitive 125): WallVisitorUtils.checkUpdate has cognitive complexity 125 (threshold 15). Drivers by points: if/else 31 (97 pts), loops 5 (22 pts), boolean chains 6 (nesting depth added 83). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java"},"region":{"startLine":841}}}],"partialFingerprints":{"codehealthFindingId/v1":"67615316da36e8353ef20f964c2c65baadb7d3d09b3ea5fc565c91e471489788"}},{"ruleId":"D2","level":"warning","message":{"text":"OdpsExprParser.primaryRest (cognitive 122): OdpsExprParser.primaryRest has cognitive complexity 122 (threshold 15). Drivers by points: if/else 33 (85 pts), loops 7 (25 pts), boolean chains 9, match/switch 1 (3 pts) (nesting depth added 72). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsExprParser.java"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b4b9b27d3a91c33b5cac685c70b44221ba2565c7f7e9cfdf6dd3fc3ceca58cf"}},{"ruleId":"D2","level":"warning","message":{"text":"OracleRowNumToLimit.visit (cognitive 119): OracleRowNumToLimit.visit has cognitive complexity 119 (threshold 15). Drivers by points: if/else 34 (97 pts), boolean chains 12, ternaries 2 (10 pts) (nesting depth added 71). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleRowNumToLimit.java"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a0d1b00414a2a50b38d9083b2dee72a2c6f384f913a7b077058ce9d97898eef"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlExprParser.parseTableOptions (cognitive 117): MySqlExprParser.parseTableOptions has cognitive complexity 117 (threshold 15). Drivers by points: if/else 39 (106 pts), boolean chains 6, ternaries 1 (4 pts), loops 1 (nesting depth added 70). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java"},"region":{"startLine":2512}}}],"partialFingerprints":{"codehealthFindingId/v1":"924647d2a59648802d080d45b8f359a0c870fa9206bd742e31fa420fc4976946"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLExprParser.inRest (cognitive 115): SQLExprParser.inRest has cognitive complexity 115 (threshold 15). Drivers by points: if/else 31 (97 pts), boolean chains 7, loops 2 (7 pts), match/switch 1 (4 pts) (nesting depth added 74). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":3208}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1604a2f7e618cb358259a2b9a23a46116b4435334bde6ddf6b1b20c7448d297"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 114): SQLASTOutputVisitor.visit has cognitive complexity 114 (threshold 15). Drivers by points: ternaries 28 (63 pts), if/else 34 (42 pts), loops 5 (8 pts), boolean chains 1 (nesting depth added 46). 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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":10478}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dbc36f491a6221b6d8e295b7be7209935cba7dacda508afc3864ef531ee6d47"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 113): SQLASTOutputVisitor.visit has cognitive complexity 113 (threshold 15). Drivers by points: ternaries 24 (69 pts), if/else 27 (42 pts), loops 1 (2 pts) (nesting depth added 61). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":9386}}}],"partialFingerprints":{"codehealthFindingId/v1":"5146242458129656554dc7d0f73cbc5cad7a470f4c4438f409f674ab039b1164"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlOutputVisitor.visit (cognitive 110): MySqlOutputVisitor.visit has cognitive complexity 110 (threshold 15). Drivers by points: ternaries 22 (63 pts), if/else 26 (41 pts), boolean chains 2, loops 1 (2 pts), match/switch 1 (2 pts) (nesting depth added 58). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"3113b8d553c67ecadd77ef22cfaf96fac84d4a05eff66049a2b3e279ff27d58e"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlExprParser.parseSelectItemRest (cognitive 109): MySqlExprParser.parseSelectItemRest has cognitive complexity 109 (threshold 15). Drivers by points: if/else 58 (88 pts), boolean chains 21 (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"7855225e946a52f6b8c67e84cc91e4e2cb1699beebf6e28f98de9a58d34c31d8"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 109): SQLASTOutputVisitor.visit has cognitive complexity 109 (threshold 15). Drivers by points: ternaries 16 (57 pts), if/else 24 (48 pts), boolean chains 4 (nesting depth added 65). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":7870}}}],"partialFingerprints":{"codehealthFindingId/v1":"2221fc1dad0c8a959e38264188a4f5af00be73aeb2e8b52a3d56d8dbd363e511"}},{"ruleId":"D2","level":"warning","message":{"text":"TDDLHint.\u003Cinit\u003E (cognitive 107): TDDLHint.\u003Cinit\u003E has cognitive complexity 107 (threshold 15). Drivers by points: if/else 41 (94 pts), loops 3 (8 pts), boolean chains 4, match/switch 1 (nesting depth added 58). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/TDDLHint.java"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d24bfc46b4871177327ebcf565facaf697c5ea9372261d8c0a7fca140f9aa27"}},{"ruleId":"D2","level":"warning","message":{"text":"SchemaResolveVisitorFactory.resolve (cognitive 106): SchemaResolveVisitorFactory.resolve has cognitive complexity 106 (threshold 15). Drivers by points: if/else 43 (87 pts), loops 8 (17 pts), boolean chains 2 (nesting depth added 53). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java"},"region":{"startLine":1401}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e440810d01748bb8872cfbeb6962c33775277eec131a168bd9f227954e6e0c9"}},{"ruleId":"D2","level":"warning","message":{"text":"PGOutputVisitor.visit (cognitive 105): PGOutputVisitor.visit has cognitive complexity 105 (threshold 15). Drivers by points: ternaries 15 (54 pts), if/else 24 (47 pts), boolean chains 4 (nesting depth added 62). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java"},"region":{"startLine":2270}}}],"partialFingerprints":{"codehealthFindingId/v1":"63f4c1d35a5cac3bf1b2457594141c8dae8fbdec863709ff2698c162ccd10405"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlOutputVisitor.visit (cognitive 103): MySqlOutputVisitor.visit has cognitive complexity 103 (threshold 15). Drivers by points: if/else 34 (66 pts), ternaries 12 (25 pts), loops 5 (11 pts), boolean chains 1 (nesting depth added 51). 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":1103}}}],"partialFingerprints":{"codehealthFindingId/v1":"78e402a3afa68b2fe9ce309b4ca855209f53556b2e635af67411b7b1ff106de9"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlLexer.scanComment (cognitive 102): MySqlLexer.scanComment has cognitive complexity 102 (threshold 15). Drivers by points: if/else 33 (68 pts), boolean chains 22, loops 5 (10 pts), ternaries 1 (2 pts) (nesting depth added 41). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java"},"region":{"startLine":726}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf3a0861d3065f855eafe0d2359bd293d5ea4dc703ff2709c00a8234fbf4643f"}},{"ruleId":"D2","level":"warning","message":{"text":"DruidDataSource.shrink (cognitive 101): DruidDataSource.shrink has cognitive complexity 101 (threshold 15). Drivers by points: if/else 32 (78 pts), error handling 4 (13 pts), boolean chains 5, loops 3 (5 pts) (nesting depth added 57). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/pool/DruidDataSource.java"},"region":{"startLine":3076}}}],"partialFingerprints":{"codehealthFindingId/v1":"00b2cf2b6e3b55e07ddb8b53adadaa274ca6ad11f6b67fdb041a38cc531adcf7"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 100): SQLASTOutputVisitor.visit has cognitive complexity 100 (threshold 15). Drivers by points: if/else 27 (71 pts), ternaries 6 (15 pts), boolean chains 12, loops 1 (2 pts) (nesting depth added 54). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":2431}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eea04f517cf334c878c25842a1521726f843724fe4f34fb9cf2668c267cba51"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 100): SQLASTOutputVisitor.visit has cognitive complexity 100 (threshold 15). Drivers by points: if/else 33 (68 pts), ternaries 4 (15 pts), loops 4 (9 pts), boolean chains 8 (nesting depth added 51). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":4187}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6fd7501c671aa7d554faa6b534f669881f5335a66c711394ba0e1d3380f4505"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlStatementParser.parseCreateDatabase (cognitive 99): MySqlStatementParser.parseCreateDatabase has cognitive complexity 99 (threshold 15). Drivers by points: if/else 39 (76 pts), loops 7 (19 pts), boolean chains 4 (nesting depth added 49). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":7813}}}],"partialFingerprints":{"codehealthFindingId/v1":"52b92312206bb8f7433612fefe073cf73dc6a0ff0011ef73534df45ba7f4cfb4"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLExprParser.methodRest (cognitive 99): SQLExprParser.methodRest has cognitive complexity 99 (threshold 15). Drivers by points: if/else 57 (89 pts), boolean chains 7, loops 1 (3 pts) (nesting depth added 34). 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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":1771}}}],"partialFingerprints":{"codehealthFindingId/v1":"80f90368415281b61cbb744c40d5d2039c475d69c039f240d94d87f0f2a6dce1"}},{"ruleId":"D2","level":"warning","message":{"text":"WebAppStat.computeUserAgent (cognitive 99): WebAppStat.computeUserAgent has cognitive complexity 99 (threshold 15). Drivers by points: if/else 74 (88 pts), boolean chains 9, match/switch 1 (2 pts) (nesting depth added 15). 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":"core/src/main/java/com/alibaba/druid/support/http/stat/WebAppStat.java"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"57a46a775a2e5b7cb1e7ef5cf3a146e245baef15dca0dbe8425bdcb75b967230"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlStatementParser.parseCreateMaterializedViewRest (cognitive 96): MySqlStatementParser.parseCreateMaterializedViewRest has cognitive complexity 96 (threshold 15). Drivers by points: if/else 33 (84 pts), loops 4 (11 pts), boolean chains 1 (nesting depth added 58). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":9231}}}],"partialFingerprints":{"codehealthFindingId/v1":"59259a1f3a07f40b585d733075aaa8fbe3bf1f6f66c22604e978b800a18812f3"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLStatementParser.parseStatementList (cognitive 96): SQLStatementParser.parseStatementList has cognitive complexity 96 (threshold 15). Drivers by points: if/else 28 (76 pts), boolean chains 11, loops 3 (7 pts), match/switch 1 (2 pts) (nesting depth added 53). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc889191cc709fa20ad20b11489a6019424682a7f5bf3b5a28d0b9ea9399a427"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLExprParser.parseColumnRest (cognitive 95): SQLExprParser.parseColumnRest has cognitive complexity 95 (threshold 15). Drivers by points: if/else 34 (92 pts), boolean chains 2, match/switch 1 (nesting depth added 58). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. 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. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":4855}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb81e2d26ec414d07f594253332ef3db8a9b5051b5a69d34f68a25ca3748e327"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 95): SQLASTOutputVisitor.visit has cognitive complexity 95 (threshold 15). Drivers by points: ternaries 24 (58 pts), if/else 28 (36 pts), boolean chains 1 (nesting depth added 42). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":8737}}}],"partialFingerprints":{"codehealthFindingId/v1":"7db4c770f57456ef7fe70b7b2bf6966bf8b2198260d8eeb0e1619d04e38958c9"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlOutputVisitor.visit (cognitive 94): MySqlOutputVisitor.visit has cognitive complexity 94 (threshold 15). Drivers by points: ternaries 28 (56 pts), if/else 32 (34 pts), boolean chains 2, loops 2 (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"682d369998ac1077c39b3e17bb68a341292431fa73858b3599cdf1ac17663ac1"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlOutputVisitor.visit (cognitive 93): MySqlOutputVisitor.visit has cognitive complexity 93 (threshold 15). Drivers by points: if/else 26 (59 pts), ternaries 10 (29 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 54). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":2112}}}],"partialFingerprints":{"codehealthFindingId/v1":"47ef7e2a3eccef1c0d57625af7abf38955c289a9c23216cc0412e860219babcb"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 93): SQLASTOutputVisitor.visit has cognitive complexity 93 (threshold 15). Drivers by points: ternaries 22 (56 pts), if/else 27 (36 pts), boolean chains 1 (nesting depth added 43). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":8848}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac41758e58188989144ce03acab58248265d4568f4c1a6cd8b05885b1a88b313"}},{"ruleId":"D2","level":"warning","message":{"text":"SchemaStatVisitor.visit (cognitive 93): SchemaStatVisitor.visit has cognitive complexity 93 (threshold 15). Drivers by points: if/else 35 (86 pts), boolean chains 5, loops 1 (2 pts) (nesting depth added 52). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java"},"region":{"startLine":1378}}}],"partialFingerprints":{"codehealthFindingId/v1":"80debfb3babbe4774d00f70090fcb236cf7d4f7d1cb07792876fe86d7575c8cf"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlCreateTableParser.partitionClauseRest (cognitive 92): MySqlCreateTableParser.partitionClauseRest has cognitive complexity 92 (threshold 15). Drivers by points: if/else 32 (73 pts), loops 4 (14 pts), boolean chains 5 (nesting depth added 51). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java"},"region":{"startLine":1248}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a36e2cdba05c6d3f543215e977862be8c4cf07b9a5964aa9297fcdb0005481c"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLParserUtils.splitAndRemoveComment (cognitive 92): SQLParserUtils.splitAndRemoveComment has cognitive complexity 92 (threshold 15). Drivers by points: if/else 30 (63 pts), boolean chains 16, ternaries 3 (10 pts), loops 3 (nesting depth added 40). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLParserUtils.java"},"region":{"startLine":802}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5c9d4ed629a6e65be17324e92db53c951a7f68af6da00a008c612be2858deec"}},{"ruleId":"D2","level":"warning","message":{"text":"Lexer.scanNumber (cognitive 91): Lexer.scanNumber has cognitive complexity 91 (threshold 15). Drivers by points: if/else 27 (58 pts), boolean chains 23, loops 5 (10 pts) (nesting depth added 36). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java"},"region":{"startLine":2852}}}],"partialFingerprints":{"codehealthFindingId/v1":"87552307387dc0b72db3a388fa7da25abf2ceb94d17c223d2eb0d43f73475d1e"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visitInternal (cognitive 91): SQLASTOutputVisitor.visitInternal has cognitive complexity 91 (threshold 15). Drivers by points: if/else 31 (63 pts), boolean chains 16, loops 3 (6 pts), ternaries 1 (6 pts) (nesting depth added 40). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":703}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f363dc4e947a7c06ecd08d11124f1e906bd9796b24d37f7446651342fd96178"}},{"ruleId":"D2","level":"warning","message":{"text":"DruidDataSource.getConnectionInternal (cognitive 90): DruidDataSource.getConnectionInternal has cognitive complexity 90 (threshold 15). Drivers by points: if/else 31 (75 pts), boolean chains 6, error handling 3 (6 pts), loops 2 (3 pts) (nesting depth added 48). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/pool/DruidDataSource.java"},"region":{"startLine":1550}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c85e526c8c1db287a8728afc010d8e2c64bf6509f3db5c61ef02fc7cea6fa34"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlStatementParser.parseProcedureStatementList (cognitive 88): MySqlStatementParser.parseProcedureStatementList has cognitive complexity 88 (threshold 15). Drivers by points: if/else 41 (85 pts), boolean chains 2, loops 1 (nesting depth added 44). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":8392}}}],"partialFingerprints":{"codehealthFindingId/v1":"08c380f64d6f20f307a77ebc1958e61b06ffaa531a8a3588b56e8c97aa06982a"}},{"ruleId":"D2","level":"warning","message":{"text":"OracleStatementParser.parserAlter (cognitive 88): OracleStatementParser.parserAlter has cognitive complexity 88 (threshold 15). Drivers by points: if/else 38 (73 pts), loops 5 (15 pts) (nesting depth added 45). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java"},"region":{"startLine":1299}}}],"partialFingerprints":{"codehealthFindingId/v1":"570bb0123b4e8f15f43ca94c9542721d0da5dc6d4b80216d980ca8fa1f031847"}},{"ruleId":"D2","level":"warning","message":{"text":"Lexer.scanOperator (cognitive 88): Lexer.scanOperator has cognitive complexity 88 (threshold 15). Drivers by points: if/else 53 (83 pts), boolean chains 2, loops 1 (2 pts), match/switch 1 (nesting depth added 31). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. 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. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java"},"region":{"startLine":1527}}}],"partialFingerprints":{"codehealthFindingId/v1":"cebf8be1a07bd867225b3b03f5622cec25a79baac7a30488c1addc0d26d49f2d"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitorBinaryOpSupport.visitBinaryOpExprGroup (cognitive 87): SQLASTOutputVisitorBinaryOpSupport.visitBinaryOpExprGroup has cognitive complexity 87 (threshold 15). Drivers by points: if/else 28 (71 pts), boolean chains 8, loops 3 (8 pts) (nesting depth added 48). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitorBinaryOpSupport.java"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"0afe5ef44f4ba2abd5506bfa4bb8c42a534c2b62cb087347589befc40a8f14f6"}},{"ruleId":"D2","level":"warning","message":{"text":"SchemaRepository.acceptCreateTable (cognitive 86): SchemaRepository.acceptCreateTable has cognitive complexity 86 (threshold 15). Drivers by points: if/else 19 (68 pts), loops 2 (11 pts), error handling 1 (5 pts), boolean chains 2 (nesting depth added 62). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/repository/SchemaRepository.java"},"region":{"startLine":966}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1468b89d8da478dd40ed8a2ee359245390b3cf6eb21b2eea275e4d2fec691c6"}},{"ruleId":"D2","level":"warning","message":{"text":"OracleOutputVisitor.visit (cognitive 85): OracleOutputVisitor.visit has cognitive complexity 85 (threshold 15). Drivers by points: ternaries 17 (41 pts), if/else 28 (38 pts), boolean chains 4, loops 1 (2 pts) (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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":2627}}}],"partialFingerprints":{"codehealthFindingId/v1":"7036385ad775ae31c8d7fb1c82fa3b60beeabaf9835000da94869a032c01091b"}},{"ruleId":"D2","level":"warning","message":{"text":"SchemaStatVisitor.visit (cognitive 85): SchemaStatVisitor.visit has cognitive complexity 85 (threshold 15). Drivers by points: if/else 33 (72 pts), boolean chains 11, loops 1 (2 pts) (nesting depth added 40). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java"},"region":{"startLine":1529}}}],"partialFingerprints":{"codehealthFindingId/v1":"4150a3321d6a7f3b0d18479b64aef23a3ca28d8e2357d0aac165c8f859b434d7"}},{"ruleId":"D2","level":"warning","message":{"text":"JdbcUtils.getDriverClassName (cognitive 85): JdbcUtils.getDriverClassName has cognitive complexity 85 (threshold 15). Drivers by points: if/else 75 (83 pts), boolean chains 2 (nesting depth added 8). 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, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/util/JdbcUtils.java"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"08779ed5f4e3a250674b8bac0f556bb3a3bbcab999e465156a7857d5be17287c"}},{"ruleId":"D2","level":"warning","message":{"text":"OracleExprParser.parseAggregateExpr (cognitive 83): OracleExprParser.parseAggregateExpr has cognitive complexity 83 (threshold 15). Drivers by points: if/else 38 (83 pts) (nesting depth added 45). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java"},"region":{"startLine":777}}}],"partialFingerprints":{"codehealthFindingId/v1":"1590c991bfd958acb6eca00fdf83c2435436c00883eaa43707f5c52880c403e9"}},{"ruleId":"D2","level":"warning","message":{"text":"HiveCreateTableParser.parseCreateTableRest (cognitive 82): HiveCreateTableParser.parseCreateTableRest has cognitive complexity 82 (threshold 15). Drivers by points: if/else 44 (70 pts), boolean chains 6, loops 3 (6 pts) (nesting depth added 29). 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":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveCreateTableParser.java"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0c6ca067253f02d8958c72ed59b02f40f8603fcfd3bdcb035710570b54aa7fb"}},{"ruleId":"D2","level":"warning","message":{"text":"OscarSelectParser.query (cognitive 82): OscarSelectParser.query has cognitive complexity 82 (threshold 15). Drivers by points: if/else 42 (71 pts), loops 3 (8 pts), boolean chains 3 (nesting depth added 34). 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarSelectParser.java"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc53c54450a899abd343167236a77c715335f362f7b98ca0e910bcbf7d5515e3"}},{"ruleId":"D2","level":"warning","message":{"text":"JdbcUtils.printResultSet (cognitive 82): JdbcUtils.printResultSet has cognitive complexity 82 (threshold 15). Drivers by points: if/else 39 (75 pts), loops 3 (5 pts), boolean chains 2 (nesting depth added 38). 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":"core/src/main/java/com/alibaba/druid/util/JdbcUtils.java"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f239bf71c9298ef5ba56c319523f4ad54fd3a215586045b89f8d4e9de24c7c4"}},{"ruleId":"D2","level":"warning","message":{"text":"PGSelectParser.query (cognitive 81): PGSelectParser.query has cognitive complexity 81 (threshold 15). Drivers by points: if/else 42 (70 pts), loops 3 (8 pts), boolean chains 3 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSelectParser.java"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"9800ddbf3676b1d8d6f4b8dfa8fd8dbdc2758dfd2db03109869371cb3b183d3f"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlSelectParser.parseTableSource (cognitive 80): MySqlSelectParser.parseTableSource has cognitive complexity 80 (threshold 15). Drivers by points: if/else 30 (67 pts), boolean chains 13 (nesting depth added 37). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectParser.java"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7ec001fe9417d7239a278ec573a36669e7bf8fa9ee4d41e9bbb69f0170fefe4"}},{"ruleId":"D2","level":"warning","message":{"text":"HiveLexer.scanComment (cognitive 79): HiveLexer.scanComment has cognitive complexity 79 (threshold 15). Drivers by points: if/else 25 (60 pts), loops 4 (11 pts), boolean chains 6, ternaries 1 (2 pts) (nesting depth added 43). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveLexer.java"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"07537f013e2aacdde5c01f6a8e682446d31dff9892cbef7a2428b8658fea6832"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlOutputVisitor.visit (cognitive 79): MySqlOutputVisitor.visit has cognitive complexity 79 (threshold 15). Drivers by points: ternaries 19 (40 pts), if/else 26 (34 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ea0822592516c20f18a122ac5d1a984746685fee134479605a85e061d14cc8d"}},{"ruleId":"D2","level":"warning","message":{"text":"OdpsSelectParser.query (cognitive 79): OdpsSelectParser.query has cognitive complexity 79 (threshold 15). Drivers by points: if/else 37 (65 pts), loops 3 (6 pts), boolean chains 4, match/switch 1 (4 pts) (nesting depth added 34). 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":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsSelectParser.java"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"3557fda7adc2994465a9860e3038de6a09bdb6b4bdb4a44bb0f0f20d5db487ed"}},{"ruleId":"D2","level":"warning","message":{"text":"OracleExprParser.primaryRest (cognitive 79): OracleExprParser.primaryRest has cognitive complexity 79 (threshold 15). Drivers by points: if/else 37 (71 pts), boolean chains 5, match/switch 1 (3 pts) (nesting depth added 36). 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"21a42cb1e774b9b5b766f37a1c084f7b75b9bbda47def9afcdc6be9cecd80db3"}},{"ruleId":"D2","level":"warning","message":{"text":"SchemaStatVisitor.getColumn (cognitive 79): SchemaStatVisitor.getColumn has cognitive complexity 79 (threshold 15). Drivers by points: if/else 27 (73 pts), boolean chains 6 (nesting depth added 46). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java"},"region":{"startLine":864}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c500fb625d5abdc568042c6e6343b29bc95fba992a0e3a9cf839911ed3ff68f"}},{"ruleId":"D2","level":"warning","message":{"text":"JdbcUtils.getDbTypeRaw (cognitive 79): JdbcUtils.getDbTypeRaw has cognitive complexity 79 (threshold 15). Drivers by points: if/else 62 (63 pts), boolean chains 16 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. 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":"core/src/main/java/com/alibaba/druid/util/JdbcUtils.java"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"da6321e0ca056d210cdaaa70e51cf0005dabb56b4ce03113603ae8fb15160123"}},{"ruleId":"D2","level":"warning","message":{"text":"HiveStatementParser.parseStatementListDialect (cognitive 78): HiveStatementParser.parseStatementListDialect has cognitive complexity 78 (threshold 15). Drivers by points: if/else 33 (73 pts), boolean chains 3, match/switch 1 (2 pts) (nesting depth added 41). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveStatementParser.java"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cae0ec568be2c6ebde48f1997a96e162a7dd23e5c990b2bde99f0385c82cb2f"}},{"ruleId":"D2","level":"warning","message":{"text":"OdpsStatementParser.parseShow (cognitive 78): OdpsStatementParser.parseShow has cognitive complexity 78 (threshold 15). Drivers by points: if/else 47 (75 pts), boolean chains 3 (nesting depth added 28). 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":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsStatementParser.java"},"region":{"startLine":961}}}],"partialFingerprints":{"codehealthFindingId/v1":"f791f6d1cc3287e30429a10489dacc7f2c5a7c2a8152470bda2f7475c3182ba7"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlExprParser.parseIndexOptions (cognitive 77): MySqlExprParser.parseIndexOptions has cognitive complexity 77 (threshold 15). Drivers by points: if/else 28 (67 pts), loops 2 (5 pts), match/switch 1 (3 pts), boolean chains 2 (nesting depth added 44). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b8e1d8b2994641b98058617ab357816bdc7e9599df622ab1cadbef39002765a"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlLexer.scanIdentifier (cognitive 77): MySqlLexer.scanIdentifier has cognitive complexity 77 (threshold 15). Drivers by points: if/else 26 (53 pts), boolean chains 8, loops 4 (8 pts), ternaries 3 (8 pts) (nesting depth added 36). 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"60f1d3ed9d407c519b84a9ce7a9e3e7e20504e916458c8a0eb7ef31b694e1fe4"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLSelectParser.parseGroupBy (cognitive 77): SQLSelectParser.parseGroupBy has cognitive complexity 77 (threshold 15). Drivers by points: if/else 26 (58 pts), loops 3 (9 pts), boolean chains 6, ternaries 1 (4 pts) (nesting depth added 41). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java"},"region":{"startLine":893}}}],"partialFingerprints":{"codehealthFindingId/v1":"54b88f03dbaa5a4f57cc7c87daf16a1d29239d85e5327bd79c9ba28bf57362ba"}},{"ruleId":"D2","level":"warning","message":{"text":"OracleToMySqlOutputVisitor.visit (cognitive 76): OracleToMySqlOutputVisitor.visit has cognitive complexity 76 (threshold 15). Drivers by points: if/else 23 (58 pts), ternaries 2 (10 pts), boolean chains 5, loops 1 (3 pts) (nesting depth added 45). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleToMySqlOutputVisitor.java"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6948274214a1454ca4ac4193a634335b32893386d7c1bde57fab748c56f33eb"}},{"ruleId":"D2","level":"warning","message":{"text":"OracleStatementParser.parseCreateIndex (cognitive 73): OracleStatementParser.parseCreateIndex has cognitive complexity 73 (threshold 15). Drivers by points: if/else 30 (56 pts), loops 5 (17 pts) (nesting depth added 38). 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java"},"region":{"startLine":2556}}}],"partialFingerprints":{"codehealthFindingId/v1":"8207ab1faace8713d3b00f57032a14fe319e649d20ffd6195f5cd7323b5720e0"}},{"ruleId":"D2","level":"warning","message":{"text":"PrestoStatementParser.parseStatementListDialect (cognitive 73): PrestoStatementParser.parseStatementListDialect has cognitive complexity 73 (threshold 15). Drivers by points: if/else 28 (70 pts), boolean chains 3 (nesting depth added 42). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/presto/parser/PrestoStatementParser.java"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a059b773c3b42872484e3d0187d0f19d2bbee60f0dea44b0ec57fbab123a44f"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLExprParser.parseDataType (cognitive 73): SQLExprParser.parseDataType has cognitive complexity 73 (threshold 15). Drivers by points: if/else 40 (61 pts), boolean chains 8, loops 2 (4 pts) (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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":4296}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2a2a05a44f9015b1a55bcf85b47588a2f735532fdf8208ccf59c05323375e19"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.printTableSourceExpr (cognitive 73): SQLASTOutputVisitor.printTableSourceExpr has cognitive complexity 73 (threshold 15). Drivers by points: if/else 35 (68 pts), boolean chains 5 (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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":3006}}}],"partialFingerprints":{"codehealthFindingId/v1":"9936c470154ef04f97e4fbcb013a8d7d8778ad7f68e293815609dbc341a61b0c"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlOutputVisitor.visit (cognitive 72): MySqlOutputVisitor.visit has cognitive complexity 72 (threshold 15). Drivers by points: ternaries 21 (44 pts), if/else 22 (27 pts), boolean chains 1 (nesting depth added 28). 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":4794}}}],"partialFingerprints":{"codehealthFindingId/v1":"73ebac524e7006730de63b684d347ea48fd778299b45225b6c7136702701a825"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 72): SQLASTOutputVisitor.visit has cognitive complexity 72 (threshold 15). Drivers by points: if/else 18 (33 pts), ternaries 13 (32 pts), loops 2 (6 pts), boolean chains 1 (nesting depth added 38). 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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":5703}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd7d619ce28f56e0c3ec59e902388bc1316c434430dd6740ade3ac0fcf8f1dd1"}},{"ruleId":"D2","level":"warning","message":{"text":"WallProvider.checkInternal (cognitive 72): WallProvider.checkInternal has cognitive complexity 72 (threshold 15). Drivers by points: if/else 29 (49 pts), boolean chains 10, loops 3 (7 pts), error handling 4 (6 pts) (nesting depth added 26). 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":"core/src/main/java/com/alibaba/druid/wall/WallProvider.java"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"3199a88c8588bde76644ae7e2a6267ba624b3116deefd420cba537767652f1a3"}},{"ruleId":"D2","level":"warning","message":{"text":"OracleCreateTableParser.parseOrganization (cognitive 71): OracleCreateTableParser.parseOrganization has cognitive complexity 71 (threshold 15). Drivers by points: if/else 24 (71 pts) (nesting depth added 47). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleCreateTableParser.java"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0b8d3381f59ce9983583bd5330d1a2ca5107552bbea9951fb51ef06ed5551f8"}},{"ruleId":"D2","level":"warning","message":{"text":"Lexer.scanSQLTypeV2 (cognitive 71): Lexer.scanSQLTypeV2 has cognitive complexity 71 (threshold 15). Drivers by points: if/else 25 (50 pts), ternaries 2 (8 pts), boolean chains 6, loops 2 (4 pts), match/switch 1 (3 pts) (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":"core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java"},"region":{"startLine":1022}}}],"partialFingerprints":{"codehealthFindingId/v1":"91524e4b5eb0411b209420382ff93aa4edd8717cd7a32e09aea960795f8b8545"}},{"ruleId":"D2","level":"warning","message":{"text":"OscarOutputVisitor.visit (cognitive 70): OscarOutputVisitor.visit has cognitive complexity 70 (threshold 15). Drivers by points: if/else 24 (33 pts), ternaries 14 (33 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 29). 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":1549}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d275e07d5d14bf0fb096c73bae962a2f0be5a313f6665e7f4ad07092b2c24e9"}},{"ruleId":"D2","level":"warning","message":{"text":"PGOutputVisitor.visit (cognitive 70): PGOutputVisitor.visit has cognitive complexity 70 (threshold 15). Drivers by points: if/else 24 (33 pts), ternaries 14 (33 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 29). 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":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java"},"region":{"startLine":1926}}}],"partialFingerprints":{"codehealthFindingId/v1":"04cc7f4535a680e4a8a200547bcd3c0fc3dfdee0f746780569bd09490360213e"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLExprParser.over (cognitive 70): SQLExprParser.over has cognitive complexity 70 (threshold 15). Drivers by points: if/else 28 (58 pts), boolean chains 8, match/switch 1 (4 pts) (nesting depth added 33). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":2665}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cc2918758b278e7ab67ab4c2d837992bc2be3d705e682bde1282e0421af175a"}},{"ruleId":"D2","level":"warning","message":{"text":"GaussDbStatementParser.parseInsert (cognitive 69): GaussDbStatementParser.parseInsert has cognitive complexity 69 (threshold 15). Drivers by points: if/else 26 (55 pts), loops 3 (10 pts), error handling 1 (4 pts) (nesting depth added 39). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/parser/GaussDbStatementParser.java"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e60ec0c777251a83f8520047800411e879633ee03455e0f8677e0d1d7a40e4d"}},{"ruleId":"D2","level":"warning","message":{"text":"OracleSelectParser.parsePivot (cognitive 69): OracleSelectParser.parsePivot has cognitive complexity 69 (threshold 15). Drivers by points: if/else 22 (51 pts), loops 6 (18 pts) (nesting depth added 41). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleSelectParser.java"},"region":{"startLine":966}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b875909e079bf713cbcccab9bd2fbc6342b2d68424955c2e05d659d0b8b32ae"}},{"ruleId":"D2","level":"warning","message":{"text":"WallVisitorUtils.checkSchema (cognitive 69): WallVisitorUtils.checkSchema has cognitive complexity 69 (threshold 15). Drivers by points: if/else 14 (54 pts), loops 2 (10 pts), boolean chains 5 (nesting depth added 48). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java"},"region":{"startLine":1864}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ce381ba66b07a13099c028443c9ae0b12d1e4d63915defecf0618d280ad57e0"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLDataTypeImpl.jdbcType (cognitive 68): SQLDataTypeImpl.jdbcType has cognitive complexity 68 (threshold 15). Drivers by points: if/else 48, boolean chains 20. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. 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":"core/src/main/java/com/alibaba/druid/sql/ast/SQLDataTypeImpl.java"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4936a947b480699197eb0be89caf68c588c24333fdf90ccd59c98f73f523639"}},{"ruleId":"D2","level":"warning","message":{"text":"DmSelectParser.query (cognitive 68): DmSelectParser.query has cognitive complexity 68 (threshold 15). Drivers by points: if/else 38 (61 pts), loops 2 (4 pts), boolean chains 3 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmSelectParser.java"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb30630553205cefb11581224eddb65279b2f3b08736b5b2322f512271b5fe36"}},{"ruleId":"D2","level":"warning","message":{"text":"SchemaResolveVisitorFactory.extractColumns (cognitive 68): SchemaResolveVisitorFactory.extractColumns has cognitive complexity 68 (threshold 15). Drivers by points: if/else 21 (51 pts), loops 6 (16 pts), boolean chains 1 (nesting depth added 40). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java"},"region":{"startLine":1617}}}],"partialFingerprints":{"codehealthFindingId/v1":"89bf180384aaf9de660867771cc1312b236a76cf573f9c2b8927518d6f6cfdf6"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlSelectParser.query (cognitive 67): MySqlSelectParser.query has cognitive complexity 67 (threshold 15). Drivers by points: if/else 44 (59 pts), boolean chains 4, loops 2 (4 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectParser.java"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b178727132310d1108350b7d9da6203b50b4847450815fc59bfa128e6cc0c5b"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlOutputVisitor.visit (cognitive 67): MySqlOutputVisitor.visit has cognitive complexity 67 (threshold 15). Drivers by points: ternaries 19 (42 pts), if/else 16 (23 pts), boolean chains 2 (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":1367}}}],"partialFingerprints":{"codehealthFindingId/v1":"a32a57abeabf55ad5ccfe6b2fe871f46c87e9053c0a03d44c3911d96bd3cbeaa"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 67): SQLASTOutputVisitor.visit has cognitive complexity 67 (threshold 15). Drivers by points: ternaries 17 (36 pts), if/else 19 (23 pts), loops 3 (6 pts), boolean chains 2 (nesting depth added 26). 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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":5335}}}],"partialFingerprints":{"codehealthFindingId/v1":"78e156f7dc115c5b4670c31fb2ba72558cb1a92e0f589501e6de9ef78f0b7337"}},{"ruleId":"D2","level":"warning","message":{"text":"SchemaStatVisitor.visitOrderBy (cognitive 67): SchemaStatVisitor.visitOrderBy has cognitive complexity 67 (threshold 15). Drivers by points: if/else 29 (61 pts), boolean chains 4, loops 1 (2 pts) (nesting depth added 33). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"892eb6fe684658965bce7862f30701eda9bf1674ce081431ab0c1cc0232dcea5"}},{"ruleId":"D2","level":"warning","message":{"text":"DruidDataSource.init (cognitive 66): DruidDataSource.init has cognitive complexity 66 (threshold 15). Drivers by points: if/else 33 (43 pts), error handling 6 (8 pts), loops 4 (8 pts), boolean chains 7 (nesting depth added 16). 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, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/pool/DruidDataSource.java"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b56b265cd2f2e638dd405a4ffda935bdd7e21b6545ace56058ce621f29f2e55"}},{"ruleId":"D2","level":"warning","message":{"text":"Lexer.scanVariable (cognitive 66): Lexer.scanVariable has cognitive complexity 66 (threshold 15). Drivers by points: if/else 18 (42 pts), boolean chains 11, loops 5 (11 pts), ternaries 1 (2 pts) (nesting depth added 31). 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":"core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java"},"region":{"startLine":2246}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd42f88c254918067ff054863b29d261a62a0a0c375feb40f87d57039de37092"}},{"ruleId":"D2","level":"warning","message":{"text":"SchemaResolveVisitorFactory.resolve (cognitive 66): SchemaResolveVisitorFactory.resolve has cognitive complexity 66 (threshold 15). Drivers by points: if/else 26 (63 pts), boolean chains 3 (nesting depth added 37). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java"},"region":{"startLine":1887}}}],"partialFingerprints":{"codehealthFindingId/v1":"a606a295a7a351f89f01bf64b4da5ca8b04337b7d6348c22f6f2c62e371bf68f"}},{"ruleId":"D2","level":"warning","message":{"text":"WallVisitorUtils.queryBlockFromIsNull (cognitive 66): WallVisitorUtils.queryBlockFromIsNull has cognitive complexity 66 (threshold 15). Drivers by points: if/else 18 (55 pts), loops 2 (8 pts), boolean chains 3 (nesting depth added 43). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java"},"region":{"startLine":2381}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4c161684bd144ca48d4f48822913cbac068551ea92abd6a24146323f5ea12ac"}},{"ruleId":"D2","level":"warning","message":{"text":"SqlTypeUDF.evaluate (cognitive 65): SqlTypeUDF.evaluate has cognitive complexity 65 (threshold 15). Drivers by points: if/else 21 (42 pts), loops 5 (10 pts), boolean chains 5, error handling 3 (4 pts), match/switch 1 (3 pts), ternaries 1 (nesting depth added 29). 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":"core/src/main/java/com/alibaba/druid/support/opds/udf/SqlTypeUDF.java"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"9367f8b9acb38538fdba65564f579dcab2643e9684071baaa8b82dfb5dc7056e"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLSelectParser.parseTableSource (cognitive 64): SQLSelectParser.parseTableSource has cognitive complexity 64 (threshold 15). Drivers by points: if/else 26 (53 pts), boolean chains 6, loops 2 (5 pts) (nesting depth added 30). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java"},"region":{"startLine":1219}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0f5e611cbf21ea24d5b0fd71519e7c270b4b300fa12a6c9f463835808c1c0cb"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 64): SQLASTOutputVisitor.visit has cognitive complexity 64 (threshold 15). Drivers by points: if/else 27 (49 pts), boolean chains 6, loops 3 (6 pts), ternaries 1 (3 pts) (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":4715}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f16ce6ae8f4603938919b2e1f370177b9f432669b77bc34101ccd1f86d2d57b"}},{"ruleId":"D2","level":"warning","message":{"text":"StringUtils.isNumber (cognitive 64): StringUtils.isNumber has cognitive complexity 64 (threshold 15). Drivers by points: if/else 20 (40 pts), boolean chains 19, loops 2 (4 pts), ternaries 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":"core/src/main/java/com/alibaba/druid/util/StringUtils.java"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dceb7c283c2d75c585958f1fa8887ce8c41926270e77945308209061117ee2e"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlExprParser.primaryRest (cognitive 62): MySqlExprParser.primaryRest has cognitive complexity 62 (threshold 15). Drivers by points: if/else 27 (56 pts), boolean chains 3, loops 1 (3 pts) (nesting depth added 31). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java"},"region":{"startLine":1360}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4c115cb55242dd53273b4b74d1c25936f2c88b76ef1943f58657f65f0cdd727"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLExprParser.relationalRest (cognitive 62): SQLExprParser.relationalRest has cognitive complexity 62 (threshold 15). Drivers by points: if/else 33 (53 pts), match/switch 3 (4 pts), boolean chains 3, error handling 1 (2 pts) (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":3742}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d16a431f4a168efadd598e21ad79d41d3757212283a204dcb9e2afe30267dcd"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlUtils.createXAConnection (cognitive 62): MySqlUtils.createXAConnection has cognitive complexity 62 (threshold 15). Drivers by points: if/else 14 (31 pts), error handling 9 (25 pts), boolean chains 6 (nesting depth added 33). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/util/MySqlUtils.java"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"e667843bdf8fbe8a9dc12d9bfd7dd2e429d9bcbc8a81e13d2cf4e00c30bfeeca"}},{"ruleId":"D2","level":"warning","message":{"text":"StringUtils.isNumber (cognitive 62): StringUtils.isNumber has cognitive complexity 62 (threshold 15). Drivers by points: if/else 19 (38 pts), boolean chains 19, loops 2 (4 pts), ternaries 1 (nesting depth added 21). 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":"core/src/main/java/com/alibaba/druid/util/StringUtils.java"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a90c766b5d0e1574dec1c50d6a84508acd167720e0ae66040b6e87a423fa57f"}},{"ruleId":"D2","level":"warning","message":{"text":"DruidAbstractDataSource.createPhysicalConnection (cognitive 61): DruidAbstractDataSource.createPhysicalConnection has cognitive complexity 61 (threshold 15). Drivers by points: if/else 27 (45 pts), boolean chains 7, error handling 5 (7 pts), ternaries 2 (nesting depth added 20). 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":"core/src/main/java/com/alibaba/druid/pool/DruidAbstractDataSource.java"},"region":{"startLine":1704}}}],"partialFingerprints":{"codehealthFindingId/v1":"aef90b6878747e87777201299c5bf0d5098d5d79f66c65a0459dad7b2f9aab73"}},{"ruleId":"D2","level":"warning","message":{"text":"CalciteMySqlNodeVisitor.visit (cognitive 61): CalciteMySqlNodeVisitor.visit has cognitive complexity 61 (threshold 15). Drivers by points: if/else 41 (57 pts), boolean chains 3, match/switch 1 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/support/calcite/CalciteMySqlNodeVisitor.java"},"region":{"startLine":1008}}}],"partialFingerprints":{"codehealthFindingId/v1":"2748a75a4149658f5d0067712e261fd6a06ad28c23c1ff107488be94098bf5d3"}},{"ruleId":"D2","level":"warning","message":{"text":"HiveLexer.scanString (cognitive 60): HiveLexer.scanString has cognitive complexity 60 (threshold 15). Drivers by points: if/else 23 (46 pts), loops 3 (7 pts), boolean chains 4, match/switch 1 (3 pts) (nesting depth added 29). 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":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveLexer.java"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6caad7befa8006bae32c608fcceb36cad33e55174916df4510c4af9438062d6"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlOutputVisitor.printValuesList (cognitive 60): MySqlOutputVisitor.printValuesList has cognitive complexity 60 (threshold 15). Drivers by points: if/else 15 (34 pts), loops 6 (18 pts), boolean chains 5, ternaries 2 (3 pts) (nesting depth added 32). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":1267}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd4fd2be0d6862356d7e6053dbc626b9e974377fafa2d1c40ea1c099341077db"}},{"ruleId":"D2","level":"warning","message":{"text":"DruidDataSourceFactory.config (cognitive 59): DruidDataSourceFactory.config has cognitive complexity 59 (threshold 15). Drivers by points: if/else 48 (55 pts), error handling 1 (3 pts), loops 1 (nesting depth added 9). 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, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/pool/DruidDataSourceFactory.java"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6322bedae7cc0309441c1f2a13d141b38e298c5f1fef7085bb4bec56d43ec97"}},{"ruleId":"D2","level":"warning","message":{"text":"OracleStatementParser.parseAlterTable (cognitive 59): OracleStatementParser.parseAlterTable has cognitive complexity 59 (threshold 15). Drivers by points: if/else 33 (53 pts), loops 2 (5 pts), boolean chains 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java"},"region":{"startLine":1585}}}],"partialFingerprints":{"codehealthFindingId/v1":"475298740e67448be8918f202242f2a5a11da04512c18b71e582fe154c27648c"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLParser.tableAlias (cognitive 59): SQLParser.tableAlias has cognitive complexity 59 (threshold 15). Drivers by points: if/else 21 (47 pts), boolean chains 9, match/switch 1 (3 pts) (nesting depth added 28). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLParser.java"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba6f16b0c2662ecd49fe5cb24440d24b4ab8cad3d583a71db08a111fcf5b9dc9"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visitBinaryLeft (cognitive 59): SQLASTOutputVisitor.visitBinaryLeft has cognitive complexity 59 (threshold 15). Drivers by points: if/else 30 (49 pts), boolean chains 8, match/switch 1 (2 pts) (nesting depth added 20). 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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":954}}}],"partialFingerprints":{"codehealthFindingId/v1":"29b10097be4abb08629c0a7899113e348f835fc49402e153ecb15215cdc59840"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlUtils.getLastPacketReceivedTimeMs (cognitive 59): MySqlUtils.getLastPacketReceivedTimeMs has cognitive complexity 59 (threshold 15). Drivers by points: if/else 19 (36 pts), error handling 7 (18 pts), boolean chains 5 (nesting depth added 28). 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":"core/src/main/java/com/alibaba/druid/util/MySqlUtils.java"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec5707985afabb32bc8c2e536463ede26f91b5ee203bf63685e29f033a5cb957"}},{"ruleId":"D2","level":"warning","message":{"text":"OdpsStatementParser.parseInsert (cognitive 58): OdpsStatementParser.parseInsert has cognitive complexity 58 (threshold 15). Drivers by points: if/else 22 (54 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 33). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsStatementParser.java"},"region":{"startLine":829}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f09faf4e708f03682e12cfaeb46cfd411ae49417a7e9c3cde1bfe6b2c95ff1c"}},{"ruleId":"D2","level":"warning","message":{"text":"Lexer.scanAlias (cognitive 58): Lexer.scanAlias has cognitive complexity 58 (threshold 15). Drivers by points: if/else 20 (52 pts), match/switch 1 (3 pts), loops 2, boolean chains 1 (nesting depth added 34). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java"},"region":{"startLine":2089}}}],"partialFingerprints":{"codehealthFindingId/v1":"d824a9dfaedeedc677f498116e130a8511a847f69cb889aa5178d7402af5b275"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLSelectQueryBlock.equals (cognitive 57): SQLSelectQueryBlock.equals has cognitive complexity 57 (threshold 15). Drivers by points: ternaries 16 (31 pts), if/else 25, boolean chains 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java"},"region":{"startLine":813}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0d7c9f3e7d308b78b01e6e0e9d65be4f9b02c486e87868f12df45e4b7089cdd"}},{"ruleId":"D2","level":"warning","message":{"text":"OracleOutputVisitor.visit (cognitive 57): OracleOutputVisitor.visit has cognitive complexity 57 (threshold 15). Drivers by points: ternaries 18 (37 pts), if/else 17 (18 pts), loops 1 (2 pts) (nesting depth added 21). 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":1306}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1f8506dd8265f100b6daad3e5b3973b60876312e8929f1745aa3815ab5bda93"}},{"ruleId":"D2","level":"warning","message":{"text":"SchemaResolveVisitorFactory.resolve (cognitive 57): SchemaResolveVisitorFactory.resolve has cognitive complexity 57 (threshold 15). Drivers by points: if/else 21 (53 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 33). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java"},"region":{"startLine":1238}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5015f8039b18260acf0054c6ead57f8e769d96f6924bf8ad89d447ad74d3d82"}},{"ruleId":"D2","level":"warning","message":{"text":"WallVisitorUtils.getValue (cognitive 57): WallVisitorUtils.getValue has cognitive complexity 57 (threshold 15). Drivers by points: if/else 24 (50 pts), boolean chains 7 (nesting depth added 26). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java"},"region":{"startLine":1483}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd3df78cbc0622d8cf20fa3d9879101377c1642bedf699c5c62f67c579de2d05"}},{"ruleId":"D2","level":"warning","message":{"text":"DruidDataSource.getConnectionDirect (cognitive 56): DruidDataSource.getConnectionDirect has cognitive complexity 56 (threshold 15). Drivers by points: if/else 15 (50 pts), boolean chains 3, error handling 1 (2 pts), loops 1 (nesting depth added 36). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/pool/DruidDataSource.java"},"region":{"startLine":1373}}}],"partialFingerprints":{"codehealthFindingId/v1":"a228d8305d7f3ed181aee74df61ac41f7b48b0c060218d41acf4b77f9fdfa623"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 56): SQLASTOutputVisitor.visit has cognitive complexity 56 (threshold 15). Drivers by points: ternaries 14 (37 pts), if/else 14 (19 pts) (nesting depth added 28). 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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":9321}}}],"partialFingerprints":{"codehealthFindingId/v1":"efabe743a8d11fa24414c94e07bcff7a31d13f8e2484f00adb2045169dc88668"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 56): SQLASTOutputVisitor.visit has cognitive complexity 56 (threshold 15). Drivers by points: if/else 17 (27 pts), ternaries 8 (23 pts), boolean chains 4, loops 1 (2 pts) (nesting depth added 26). 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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":9871}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d6eee0f64696810db10e4da7b3fb639cae083f7a9fc6c39cbbe57a899a76e94"}},{"ruleId":"D2","level":"warning","message":{"text":"WallVisitorUtils.check (cognitive 56): WallVisitorUtils.check has cognitive complexity 56 (threshold 15). Drivers by points: if/else 21 (47 pts), boolean chains 5, loops 1 (4 pts) (nesting depth added 29). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java"},"region":{"startLine":2165}}}],"partialFingerprints":{"codehealthFindingId/v1":"876cea6c4be8bcd38387d7cb06e16c001b5637190ef8021ebf8e65e0d15d33b7"}},{"ruleId":"D2","level":"warning","message":{"text":"OracleExprParser.parseDataType (cognitive 55): OracleExprParser.parseDataType has cognitive complexity 55 (threshold 15). Drivers by points: if/else 32 (52 pts), boolean chains 3 (nesting depth added 20). 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"458e91fc02ccc75788191366380708cdadeb57403010807c28c39dfe9eda7525"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 55): SQLASTOutputVisitor.visit has cognitive complexity 55 (threshold 15). Drivers by points: ternaries 11 (33 pts), if/else 14 (22 pts) (nesting depth added 30). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":9213}}}],"partialFingerprints":{"codehealthFindingId/v1":"60f7939f94e9ab209b1992366085eb7f455d5e4498d86d5fa2580f5d36f77fe2"}},{"ruleId":"D2","level":"warning","message":{"text":"WallVisitorUtils.checkUnion (cognitive 55): WallVisitorUtils.checkUnion has cognitive complexity 55 (threshold 15). Drivers by points: if/else 16 (30 pts), boolean chains 17, loops 4 (8 pts) (nesting depth added 18). 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":"core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java"},"region":{"startLine":2254}}}],"partialFingerprints":{"codehealthFindingId/v1":"20799b64662eb12b530032e5c59ffa58b5a30e0777b52628e1f78aea6d7ea6cf"}},{"ruleId":"D2","level":"warning","message":{"text":"CreateConnectionTask.runInternal (cognitive 54): CreateConnectionTask.runInternal has cognitive complexity 54 (threshold 15). Drivers by points: if/else 12 (35 pts), error handling 5 (10 pts), boolean chains 8, loops 1 (nesting depth added 28). 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":"core/src/main/java/com/alibaba/druid/pool/DruidDataSource.java"},"region":{"startLine":2586}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5854ed5836368bba999830a728f811bad038479265645cbf2bae097f8eba3b1"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlShowColumnOutpuVisitor.visit (cognitive 54): MySqlShowColumnOutpuVisitor.visit has cognitive complexity 54 (threshold 15). Drivers by points: if/else 22 (47 pts), loops 3 (6 pts), boolean chains 1 (nesting depth added 28). 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlShowColumnOutpuVisitor.java"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"685bca810c8678ea58e27139c0e6f49052299036a38a9e251e52b0e32a1f1b04"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLParserUtils.split (cognitive 54): SQLParserUtils.split has cognitive complexity 54 (threshold 15). Drivers by points: if/else 22 (47 pts), boolean chains 6, loops 1 (nesting depth added 25). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLParserUtils.java"},"region":{"startLine":693}}}],"partialFingerprints":{"codehealthFindingId/v1":"4269c1213f2642f02beae4d7e4fa92ddf7489d114cc69a2791f917daa7e26860"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 54): SQLASTOutputVisitor.visit has cognitive complexity 54 (threshold 15). Drivers by points: ternaries 14 (30 pts), if/else 19 (22 pts), boolean chains 2 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":6875}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcf12faa1e96b0a8ed7ebbfe2c56ab5c6ef34fbc1fa7e94699319c592338606c"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLSelectQueryBlock.addWhereForDynamicFilter (cognitive 53): SQLSelectQueryBlock.addWhereForDynamicFilter has cognitive complexity 53 (threshold 15). Drivers by points: if/else 12 (38 pts), loops 3 (14 pts), boolean chains 1 (nesting depth added 37). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"626b989ad30f2ba143b77c29aabf6381c93ff9e5b37591b6bf38bf0a3b8058c8"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLSelectQueryBlock.equalsForMergeJoin (cognitive 53): SQLSelectQueryBlock.equalsForMergeJoin has cognitive complexity 53 (threshold 15). Drivers by points: ternaries 14 (28 pts), if/else 24, boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java"},"region":{"startLine":924}}}],"partialFingerprints":{"codehealthFindingId/v1":"747506980aa78470b498ae7bdbd39a5e3d260d24244645f4241f820bb341d6d8"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlStatementParser.parseLoadDataInFile (cognitive 53): MySqlStatementParser.parseLoadDataInFile has cognitive complexity 53 (threshold 15). Drivers by points: if/else 30 (52 pts), boolean chains 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":4330}}}],"partialFingerprints":{"codehealthFindingId/v1":"f575bd7b374dfd55b2ad678486ab3834a457e0d20a3694ead5ee2ad01f0f9681"}},{"ruleId":"D2","level":"warning","message":{"text":"PGSQLStatementParser.parseInsert (cognitive 53): PGSQLStatementParser.parseInsert has cognitive complexity 53 (threshold 15). Drivers by points: if/else 21 (46 pts), loops 2 (7 pts) (nesting depth added 30). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec03c9c3d05976a25a3ef787d435091b063cbfeb9b547138e0bf9ac889638515"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLExprParser.andRest (cognitive 53): SQLExprParser.andRest has cognitive complexity 53 (threshold 15). Drivers by points: if/else 15 (43 pts), boolean chains 5, loops 2 (5 pts) (nesting depth added 31). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":3527}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4d915b297ba1bc5e407eb398f0cd39babf48c2818529639d83833405e0f1ff6"}},{"ruleId":"D2","level":"warning","message":{"text":"DruidDataSourceStatLoggerImpl.log (cognitive 52): DruidDataSourceStatLoggerImpl.log has cognitive complexity 52 (threshold 15). Drivers by points: if/else 32 (50 pts), loops 1 (2 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/pool/DruidDataSourceStatLoggerImpl.java"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c8b3bd90d4ef3e1f70af49d8204d05da7e7b63c379e729ce6a855c1f47be035"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLPropertyExpr.computeDataType (cognitive 52): SQLPropertyExpr.computeDataType has cognitive complexity 52 (threshold 15). Drivers by points: if/else 18 (45 pts), loops 2 (7 pts) (nesting depth added 32). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLPropertyExpr.java"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"f00ee8e2d34fc245ca2edaf0f3a3df9168c94c3103ccbfe25b6e7c853ab1153d"}},{"ruleId":"D2","level":"warning","message":{"text":"ImpalaCreateTableParser.parseCreateTableRest (cognitive 52): ImpalaCreateTableParser.parseCreateTableRest has cognitive complexity 52 (threshold 15). Drivers by points: if/else 29 (44 pts), boolean chains 6, loops 1 (2 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/impala/parser/ImpalaCreateTableParser.java"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"974b548d490262d87faf13f96454dc32b26b8c5efd529ac7da20fe20e53b7b74"}},{"ruleId":"D2","level":"warning","message":{"text":"OscarStatementParser.parseInsert (cognitive 52): OscarStatementParser.parseInsert has cognitive complexity 52 (threshold 15). Drivers by points: if/else 20 (45 pts), loops 2 (7 pts) (nesting depth added 30). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"47573788b3242d02494eb6ccac6a3d8117967060d8c0d031e86f8ab3af0e8eeb"}},{"ruleId":"D2","level":"warning","message":{"text":"DruidDataSource.configFromPropertiesAfterInit (cognitive 51): DruidDataSource.configFromPropertiesAfterInit has cognitive complexity 51 (threshold 15). Drivers by points: if/else 18 (26 pts), boolean chains 8, ternaries 5 (7 pts), error handling 3 (6 pts), loops 3 (4 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/pool/DruidDataSource.java"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"676c205d91979d288bb1612966c169a03853d10a79d15049dc9d0f7f1df5b922"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLSelectQueryBlock.addWhere (cognitive 51): SQLSelectQueryBlock.addWhere has cognitive complexity 51 (threshold 15). Drivers by points: if/else 11 (34 pts), loops 4 (16 pts), boolean chains 1 (nesting depth added 35). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d4efe386ae3ee7e7971606004fb4b418a65c8f77d92e33fc1fe2598e8ee02d8"}},{"ruleId":"D2","level":"warning","message":{"text":"BigQueryLexer.scanAlias (cognitive 51): BigQueryLexer.scanAlias has cognitive complexity 51 (threshold 15). Drivers by points: if/else 24 (42 pts), loops 3 (4 pts), match/switch 1 (3 pts), boolean chains 2 (nesting depth added 21). 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":"core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryLexer.java"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7f6d1065393ba825d571da76a6ebb755d657a612e407c91b75d40206c2bba78"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlExprParser.parseInterval (cognitive 51): MySqlExprParser.parseInterval has cognitive complexity 51 (threshold 15). Drivers by points: if/else 29 (50 pts), boolean chains 1 (nesting depth added 21). 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java"},"region":{"startLine":1626}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd4a62a5b2cc664da266e6984820e0516c66cec76dc27b61fc35cc4a967bb693"}},{"ruleId":"D2","level":"warning","message":{"text":"TDOutputVisitor.printSqlSetQuantifier (cognitive 51): TDOutputVisitor.printSqlSetQuantifier has cognitive complexity 51 (threshold 15). Drivers by points: ternaries 9 (31 pts), if/else 9 (17 pts), boolean chains 3 (nesting depth added 30). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/teradata/visitor/TDOutputVisitor.java"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cd9120e19ce849a5e71dd2b120a7f565ab5da5b3e3f86e65d356bd9ed93d016"}},{"ruleId":"D2","level":"warning","message":{"text":"Lexer.scanString2_d (cognitive 51): Lexer.scanString2_d has cognitive complexity 51 (threshold 15). Drivers by points: if/else 24 (47 pts), boolean chains 2, loops 2 (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":"core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java"},"region":{"startLine":1902}}}],"partialFingerprints":{"codehealthFindingId/v1":"24b113fb4188ea7a215c9c1efcfd4f1f38f2fe8299398cb3070787b5d75b8f0f"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLEvalVisitorUtils.visit (cognitive 51): SQLEvalVisitorUtils.visit has cognitive complexity 51 (threshold 15). Drivers by points: if/else 24 (39 pts), boolean chains 8, match/switch 2 (4 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java"},"region":{"startLine":958}}}],"partialFingerprints":{"codehealthFindingId/v1":"21d203217af49a971c58d13eeedd3b2e4005a8b5628beac523bd960e1014bc5f"}},{"ruleId":"D2","level":"warning","message":{"text":"CreateConnectionThread.run (cognitive 50): CreateConnectionThread.run has cognitive complexity 50 (threshold 15). Drivers by points: if/else 10 (27 pts), error handling 6 (14 pts), boolean chains 8, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/pool/DruidDataSource.java"},"region":{"startLine":2743}}}],"partialFingerprints":{"codehealthFindingId/v1":"6658de83f7efe39023aa5f596968ec339bf55031a875f1e28cde6d94dd71d4cc"}},{"ruleId":"D2","level":"warning","message":{"text":"GaussDbOutputVisitor.visit (cognitive 50): GaussDbOutputVisitor.visit has cognitive complexity 50 (threshold 15). Drivers by points: if/else 14 (26 pts), ternaries 7 (24 pts) (nesting depth added 29). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/visitor/GaussDbOutputVisitor.java"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"6872e2fe8ae0f700cd508b4aea1d05fa73a76c0946c9acdcd00fdeebaba680ea"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlLexer.skipFirstHintsOrMultiCommentAndNextToken (cognitive 50): MySqlLexer.skipFirstHintsOrMultiCommentAndNextToken has cognitive complexity 50 (threshold 15). Drivers by points: if/else 12 (40 pts), boolean chains 9, loops 1 (nesting depth added 28). 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c00d391cecda068195cbfbe11add9f2bbf67d1f147ecddb5cbf32531d2d8e5c"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlSelectParser.parseTableSourceRest (cognitive 50): MySqlSelectParser.parseTableSourceRest has cognitive complexity 50 (threshold 15). Drivers by points: if/else 17 (40 pts), boolean chains 5, match/switch 1 (5 pts) (nesting depth added 27). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectParser.java"},"region":{"startLine":683}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfb656e752d5be8c2fd3aa55ddaddac13a6d2d70f98fb48d2d098760e794cda6"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlOutputVisitor.visit (cognitive 50): MySqlOutputVisitor.visit has cognitive complexity 50 (threshold 15). Drivers by points: if/else 15 (28 pts), ternaries 6 (11 pts), loops 4 (10 pts), boolean chains 1 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":1451}}}],"partialFingerprints":{"codehealthFindingId/v1":"288a3ee2a63fcf16f0b69791b91d4cef99aa1a5b377749b88738597a3505fa3a"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlOutputVisitor.visit (cognitive 50): MySqlOutputVisitor.visit has cognitive complexity 50 (threshold 15). Drivers by points: ternaries 14 (30 pts), if/else 17 (20 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":3948}}}],"partialFingerprints":{"codehealthFindingId/v1":"8043ea771820994b048a3e8da5eb4d71e7cc668b93fa2e96e50c9471202cf25f"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLStatementParser.parseTruncate (cognitive 50): SQLStatementParser.parseTruncate has cognitive complexity 50 (threshold 15). Drivers by points: if/else 23 (42 pts), loops 4 (8 pts) (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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":3674}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae111914be801254a2286656083316879ffc9195a90b251297dd78872e9a7e9f"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 50): SQLASTOutputVisitor.visit has cognitive complexity 50 (threshold 15). Drivers by points: ternaries 14 (32 pts), if/else 13 (18 pts) (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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":6565}}}],"partialFingerprints":{"codehealthFindingId/v1":"25497241166993825e68d38211954e5508ad7337cac5ebac2346b5095d019a26"}},{"ruleId":"D2","level":"warning","message":{"text":"SchemaStatVisitor.visit (cognitive 50): SchemaStatVisitor.visit has cognitive complexity 50 (threshold 15). Drivers by points: if/else 19 (47 pts), boolean chains 3 (nesting depth added 28). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java"},"region":{"startLine":1747}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fb3d7865f68fffc94850951d8899aa5bfd3ffc5f81f218a06807473c74c3a69"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLCreateTableStatement.sort (cognitive 49): SQLCreateTableStatement.sort has cognitive complexity 49 (threshold 15). Drivers by points: if/else 12 (32 pts), loops 9 (17 pts) (nesting depth added 28). 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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateTableStatement.java"},"region":{"startLine":772}}}],"partialFingerprints":{"codehealthFindingId/v1":"480e7278234d9a9f4c3c292a6e054f207c0a30695185db9633925f08ff50b45e"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlExprParser.parsePartition (cognitive 49): MySqlExprParser.parsePartition has cognitive complexity 49 (threshold 15). Drivers by points: if/else 24 (43 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 20). 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java"},"region":{"startLine":2385}}}],"partialFingerprints":{"codehealthFindingId/v1":"6060f6444dd59b9c20cc0b25cd97aac494e5788ffabd51787d4bc4cc080f724f"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlStatementParser.parseFlush (cognitive 49): MySqlStatementParser.parseFlush has cognitive complexity 49 (threshold 15). Drivers by points: if/else 27 (40 pts), loops 3 (7 pts), boolean chains 2 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":2194}}}],"partialFingerprints":{"codehealthFindingId/v1":"db5545960f265e2b6274b21e5524df17d32b30bbedb1abd993153184459e5f77"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlOutputVisitor.visit (cognitive 49): MySqlOutputVisitor.visit has cognitive complexity 49 (threshold 15). Drivers by points: ternaries 13 (25 pts), if/else 17 (19 pts), loops 2 (3 pts), boolean chains 2 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":2223}}}],"partialFingerprints":{"codehealthFindingId/v1":"14429cf8689320c92f3c6f7004b8ccbae589652f0acb5ffb75ad4162dc2b545e"}},{"ruleId":"D2","level":"warning","message":{"text":"OscarOutputVisitor.visit (cognitive 49): OscarOutputVisitor.visit has cognitive complexity 49 (threshold 15). Drivers by points: ternaries 13 (27 pts), if/else 14 (19 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 20). 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":2280}}}],"partialFingerprints":{"codehealthFindingId/v1":"a285249e2a2338a34679c95a9dc05193265d3405b6570558c0a71096fda302d7"}},{"ruleId":"D2","level":"warning","message":{"text":"PGSelectParser.parseTableSourceTableSample (cognitive 49): PGSelectParser.parseTableSourceTableSample has cognitive complexity 49 (threshold 15). Drivers by points: if/else 16 (39 pts), boolean chains 5, match/switch 1 (5 pts) (nesting depth added 27). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSelectParser.java"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"455456b8d5b7b17027a7f2f34ec04e63134aff6dc64fc8c66de6203fb50f4654"}},{"ruleId":"D2","level":"warning","message":{"text":"PGOutputVisitor.visit (cognitive 49): PGOutputVisitor.visit has cognitive complexity 49 (threshold 15). Drivers by points: ternaries 13 (27 pts), if/else 14 (19 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 20). 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":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java"},"region":{"startLine":2773}}}],"partialFingerprints":{"codehealthFindingId/v1":"21a5abe1e16727184164b545bb3d41e0b3f5b301ab08d4796f0579d501c4529c"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLExprParser.parseSelectOrderByItem (cognitive 49): SQLExprParser.parseSelectOrderByItem has cognitive complexity 49 (threshold 15). Drivers by points: if/else 24 (45 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":2996}}}],"partialFingerprints":{"codehealthFindingId/v1":"b85abaa135e8176b515ecefd5d2bb6e4f3d472022b22ceca4086f645d1e7e83d"}},{"ruleId":"D2","level":"warning","message":{"text":"BigQueryLexer.scanString (cognitive 48): BigQueryLexer.scanString has cognitive complexity 48 (threshold 15). Drivers by points: if/else 22 (39 pts), loops 3 (4 pts), match/switch 1 (3 pts), boolean chains 2 (nesting depth added 20). 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":"core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryLexer.java"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"b09545d7c1f018b94cc674ea3990fd942c8682858ada84d0028c236c3331f68f"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlStatementParser.parseSet (cognitive 48): MySqlStatementParser.parseSet has cognitive complexity 48 (threshold 15). Drivers by points: if/else 30 (48 pts) (nesting depth added 18). 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":4895}}}],"partialFingerprints":{"codehealthFindingId/v1":"d47e970e9b471fe4067be4126b44b07ae6e47d0a7c669b122eadf0c8d5df848f"}},{"ruleId":"D2","level":"warning","message":{"text":"OracleStatementParser.parseCreatePackage (cognitive 48): OracleStatementParser.parseCreatePackage has cognitive complexity 48 (threshold 15). Drivers by points: if/else 21 (42 pts), loops 2 (6 pts) (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java"},"region":{"startLine":2891}}}],"partialFingerprints":{"codehealthFindingId/v1":"13ac3d8a864a77842026d8c1e39b525b84c8b963d381ca398349d2a5d5ac2336"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLStatementParser.parseCreateMaterializedView (cognitive 48): SQLStatementParser.parseCreateMaterializedView has cognitive complexity 48 (threshold 15). Drivers by points: if/else 26 (41 pts), loops 2 (4 pts), boolean chains 3 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":4345}}}],"partialFingerprints":{"codehealthFindingId/v1":"024908d09817c67a4636a2c0c8c9cbef99eeca931c1dfdd607de5f84c1074366"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLStatementParser.parseCreateView (cognitive 48): SQLStatementParser.parseCreateView has cognitive complexity 48 (threshold 15). Drivers by points: if/else 25 (43 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":5002}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d24872f2036cf39c9d7316238d1871358f5d5a0d040de0244b73ebeacb71c26"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLStatementParser.parseDrop (cognitive 48): SQLStatementParser.parseDrop has cognitive complexity 48 (threshold 15). Drivers by points: if/else 29 (41 pts), boolean chains 3, loops 1 (3 pts), match/switch 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":841}}}],"partialFingerprints":{"codehealthFindingId/v1":"61e349ae5339d712359a09c377d51b28dc6bd8a4d7bb2d1688583ec90d812396"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLStatementParser.parseStatementListNonStandard (cognitive 48): SQLStatementParser.parseStatementListNonStandard has cognitive complexity 48 (threshold 15). Drivers by points: if/else 36 (41 pts), boolean chains 5, loops 1 (2 pts) (nesting depth added 6). 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, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7e8a178d80c8bf4a4c1e7c3c872bf8687fe17c08237026419ae80fbab23f752"}},{"ruleId":"D2","level":"warning","message":{"text":"ParameterizedOutputVisitorUtils.parameterize (cognitive 48): ParameterizedOutputVisitorUtils.parameterize has cognitive complexity 48 (threshold 15). Drivers by points: if/else 18 (39 pts), loops 3 (7 pts), boolean chains 2 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/ParameterizedOutputVisitorUtils.java"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ab28f2f71f53218c0adf32d8bd8a7f68bb29b8e0818f8e015f7f9a80c20b9f0"}},{"ruleId":"D2","level":"warning","message":{"text":"DruidStatManagerFacade.mergeWallStat (cognitive 48): DruidStatManagerFacade.mergeWallStat has cognitive complexity 48 (threshold 15). Drivers by points: if/else 15 (28 pts), loops 4 (10 pts), boolean chains 7, ternaries 1 (3 pts) (nesting depth added 21). 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":"core/src/main/java/com/alibaba/druid/stat/DruidStatManagerFacade.java"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe33550332fd98b7cff4234f721321715a84eb9bda9b1e5335c1829ee5bf783f"}},{"ruleId":"D2","level":"warning","message":{"text":"OracleOutputVisitor.visit (cognitive 47): OracleOutputVisitor.visit has cognitive complexity 47 (threshold 15). Drivers by points: ternaries 14 (28 pts), if/else 18 (19 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":1613}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcfb118ccad2fa36f40880fdff95576465bc77fe8695a2e7ba98dd1ab5961ce1"}},{"ruleId":"D2","level":"warning","message":{"text":"OscarOutputVisitor.visit (cognitive 47): OscarOutputVisitor.visit has cognitive complexity 47 (threshold 15). Drivers by points: ternaries 12 (25 pts), if/else 19 (21 pts), boolean chains 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":1186}}}],"partialFingerprints":{"codehealthFindingId/v1":"2705c5f251ca90ea5a55109c8ca00cd4d842400117ccf4cc3a69b63b59740913"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLExprParser.notRationalRest (cognitive 47): SQLExprParser.notRationalRest has cognitive complexity 47 (threshold 15). Drivers by points: if/else 14 (38 pts), match/switch 3 (7 pts), boolean chains 2 (nesting depth added 28). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. 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. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":4119}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bb935899246e34ea348c51062800e33e33dc408c2922b78f40ae1fe9758417f"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLStatementParser.parseGrant (cognitive 47): SQLStatementParser.parseGrant has cognitive complexity 47 (threshold 15). Drivers by points: if/else 21 (39 pts), loops 2 (4 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 21). 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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":1566}}}],"partialFingerprints":{"codehealthFindingId/v1":"999016cf1007ab357fd9351514974d66d57ce98f11edfde4cd68e8d2f8de2695"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 47): SQLASTOutputVisitor.visit has cognitive complexity 47 (threshold 15). Drivers by points: if/else 24 (32 pts), ternaries 5 (12 pts), boolean chains 3 (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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":4531}}}],"partialFingerprints":{"codehealthFindingId/v1":"41892b5313a1fc560286ebbe214299fb2c001a2d2daaef40e2d6ae9a9cd0bc0d"}},{"ruleId":"D2","level":"warning","message":{"text":"CalciteMySqlNodeVisitor.visit (cognitive 47): CalciteMySqlNodeVisitor.visit has cognitive complexity 47 (threshold 15). Drivers by points: if/else 21 (35 pts), loops 3 (7 pts), boolean chains 5 (nesting depth added 18). 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":"core/src/main/java/com/alibaba/druid/support/calcite/CalciteMySqlNodeVisitor.java"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"853287f03dc5ac5f2fb93072ff1f56a440252a18fad8a68cf2b97743128559e8"}},{"ruleId":"D2","level":"warning","message":{"text":"DB2ExprParser.primaryRest (cognitive 46): DB2ExprParser.primaryRest has cognitive complexity 46 (threshold 15). Drivers by points: if/else 26 (44 pts), boolean chains 2 (nesting depth added 18). 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":"core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2ExprParser.java"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"96806bb9c88713ed777cc3e929d261f603ae67140a786c20a0a14e03066da857"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlSelectQueryBlock.accept0 (cognitive 46): MySqlSelectQueryBlock.accept0 has cognitive complexity 46 (threshold 15). Drivers by points: if/else 16 (32 pts), loops 5 (14 pts) (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlSelectQueryBlock.java"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"94e2a3598968b206f5420ff1922c40972bac115075e301685cd5a28ab39270f9"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlCreateTableParser.parsePartitionBy (cognitive 46): MySqlCreateTableParser.parsePartitionBy has cognitive complexity 46 (threshold 15). Drivers by points: if/else 22 (37 pts), loops 3 (8 pts), boolean chains 1 (nesting depth added 20). 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java"},"region":{"startLine":1032}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6227acc7f19561865e1c4c9f4934e7fab4a30b498e29b6a994f786fe41e0f63"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLParser.as (cognitive 46): SQLParser.as has cognitive complexity 46 (threshold 15). Drivers by points: if/else 19 (36 pts), boolean chains 4, loops 1 (3 pts), match/switch 2 (3 pts) (nesting depth added 20). 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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLParser.java"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccc6ee4e281ef0393c6a226db28403f05da9a46fa0659296dc094d00358179b3"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visitStatementList (cognitive 46): SQLASTOutputVisitor.visitStatementList has cognitive complexity 46 (threshold 15). Drivers by points: if/else 12 (33 pts), loops 4 (12 pts), boolean chains 1 (nesting depth added 29). 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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":11950}}}],"partialFingerprints":{"codehealthFindingId/v1":"80b60771128595be9e27dde1495692c3cc761ef0cb97b90a51420aca0c0c5e51"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLEvalVisitorUtils.div (cognitive 46): SQLEvalVisitorUtils.div has cognitive complexity 46 (threshold 15). Drivers by points: if/else 23 (32 pts), boolean chains 12, error handling 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java"},"region":{"startLine":1597}}}],"partialFingerprints":{"codehealthFindingId/v1":"c891b84995b3fc7200ac2f3c44995a6bc1f8581d22ce2b0c735498012c2b81c2"}},{"ruleId":"D2","level":"warning","message":{"text":"WallVisitorUtils.checkSelectForMultiTenant (cognitive 46): WallVisitorUtils.checkSelectForMultiTenant has cognitive complexity 46 (threshold 15). Drivers by points: if/else 19 (42 pts), boolean chains 4 (nesting depth added 23). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"8106e01f394f226f443fa79207e3259cc5a30a6d14b5a6c6cd1440c03062f179"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLDateExpr.check (cognitive 45): SQLDateExpr.check has cognitive complexity 45 (threshold 15). Drivers by points: if/else 28 (43 pts), boolean chains 1, match/switch 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLDateExpr.java"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"63f98979285552e835e2e5457f79a0e2e1b6b35b3e2484f639fc868dba9df408"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLTimestampNTZExpr.check (cognitive 45): SQLTimestampNTZExpr.check has cognitive complexity 45 (threshold 15). Drivers by points: if/else 28 (43 pts), boolean chains 1, match/switch 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTimestampNTZExpr.java"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"54b51ef5c28c320ae82f67bf24949b9e00a4fc67ccab83e0ec4120c95ce5dedd"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlLexer.scanString (cognitive 45): MySqlLexer.scanString has cognitive complexity 45 (threshold 15). Drivers by points: if/else 22 (40 pts), match/switch 1 (3 pts), loops 2 (nesting depth added 20). 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a64d9ddb7e31b72de9609858e53c4d31996b7bdfaabc7acb732c8e8985c1fe2"}},{"ruleId":"D2","level":"warning","message":{"text":"OracleOutputVisitor.visit (cognitive 45): OracleOutputVisitor.visit has cognitive complexity 45 (threshold 15). Drivers by points: ternaries 12 (28 pts), if/else 14 (17 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":2276}}}],"partialFingerprints":{"codehealthFindingId/v1":"f283dcf6ca2e00ab3e00812ecf52837ad9d951cb62b3fda873c3d61b30a222e4"}},{"ruleId":"D2","level":"warning","message":{"text":"OscarOutputVisitor.visit (cognitive 45): OscarOutputVisitor.visit has cognitive complexity 45 (threshold 15). Drivers by points: ternaries 9 (23 pts), if/else 11 (17 pts), boolean chains 5 (nesting depth added 20). 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"b13b57f289454711124b77eea9aadf5c02e623b2b715ab112727032ef02f02fc"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 45): SQLASTOutputVisitor.visit has cognitive complexity 45 (threshold 15). Drivers by points: if/else 18 (22 pts), ternaries 9 (20 pts), boolean chains 2, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":3536}}}],"partialFingerprints":{"codehealthFindingId/v1":"a014294bd9c06f1fae3440a2b33106b8f8dac40eca3a5f353bfafd48375c7d0c"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 45): SQLASTOutputVisitor.visit has cognitive complexity 45 (threshold 15). Drivers by points: ternaries 14 (27 pts), if/else 12 (14 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":7019}}}],"partialFingerprints":{"codehealthFindingId/v1":"11b0fc77a0b2ba478d70cbe2fd5300fd04732e66b94a83902f69f37461a3cf21"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlExprParser.parseColumnRest (cognitive 44): MySqlExprParser.parseColumnRest has cognitive complexity 44 (threshold 15). Drivers by points: if/else 31 (39 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 9). 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, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java"},"region":{"startLine":1784}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c6178c21f715801f6f2c7f1ede96e55bb4e9be7a49bff41babdac7c65ab7e3b"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlStatementParser.parseAlterDrop (cognitive 44): MySqlStatementParser.parseAlterDrop has cognitive complexity 44 (threshold 15). Drivers by points: if/else 22 (39 pts), loops 1 (3 pts), boolean chains 2 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":7640}}}],"partialFingerprints":{"codehealthFindingId/v1":"65b1668129337cf3fa1f59f32514b3d2b83a31a7bab57f109faec49f04537f6f"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlStatementParser.parseCreateUser (cognitive 44): MySqlStatementParser.parseCreateUser has cognitive complexity 44 (threshold 15). Drivers by points: if/else 17 (41 pts), boolean chains 2, loops 1 (nesting depth added 24). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":776}}}],"partialFingerprints":{"codehealthFindingId/v1":"2de2be1a4deda6b8f958e033a7b8f0cf4849e4f4024d3b524b87d3482e51bed8"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlStatementParser.parseDeleteStatement (cognitive 44): MySqlStatementParser.parseDeleteStatement has cognitive complexity 44 (threshold 15). Drivers by points: if/else 24 (42 pts), boolean chains 2 (nesting depth added 18). 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"46b5f5f4989e9e6d46e5ec622ecf7685c3c5c1d716ebd53a4490653b2c924158"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlOutputVisitor.visit (cognitive 44): MySqlOutputVisitor.visit has cognitive complexity 44 (threshold 15). Drivers by points: ternaries 11 (22 pts), if/else 17 (20 pts), loops 1 (2 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":5623}}}],"partialFingerprints":{"codehealthFindingId/v1":"470218a17e8457a205cb11855f981bb93a9ad27df2f4ca9967fe9bbee85f8c80"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlOutputVisitor.visit (cognitive 44): MySqlOutputVisitor.visit has cognitive complexity 44 (threshold 15). Drivers by points: ternaries 10 (26 pts), if/else 9 (16 pts), boolean chains 2 (nesting depth added 23). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":2065}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b9a935768ab98b7c15241667e3086b1bd0a7c01f9c7395b804ce91c434dadd1"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlOutputVisitor.visit (cognitive 44): MySqlOutputVisitor.visit has cognitive complexity 44 (threshold 15). Drivers by points: ternaries 11 (23 pts), if/else 15 (17 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":1015}}}],"partialFingerprints":{"codehealthFindingId/v1":"03b32806c1b1360e42f69d2ae3b03c21971994935d3fa0ad5633ab4218fbb539"}},{"ruleId":"D2","level":"warning","message":{"text":"PGOutputVisitor.visit (cognitive 44): PGOutputVisitor.visit has cognitive complexity 44 (threshold 15). Drivers by points: if/else 14 (24 pts), ternaries 6 (16 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 21). 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":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"a60c620ae8608a904665286e9851ce7035cbd4bd497d563ba60df21a2ca128eb"}},{"ruleId":"D2","level":"warning","message":{"text":"PGOutputVisitor.visit (cognitive 44): PGOutputVisitor.visit has cognitive complexity 44 (threshold 15). Drivers by points: ternaries 11 (23 pts), if/else 17 (20 pts), boolean chains 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java"},"region":{"startLine":1566}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4d082b643e625b0298d8c64bdbe9b63f527a41cccb9667270be928c2eca87b5"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLExprParser.primaryRest (cognitive 44): SQLExprParser.primaryRest has cognitive complexity 44 (threshold 15). Drivers by points: if/else 21 (37 pts), boolean chains 5, loops 1 (2 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":1590}}}],"partialFingerprints":{"codehealthFindingId/v1":"0573387f385133af295be86924a3e4a64abe2a9c83a7b98b759080f8bfcbbc0d"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLSelectParser.parseTableSourceSampleHive (cognitive 44): SQLSelectParser.parseTableSourceSampleHive has cognitive complexity 44 (threshold 15). Drivers by points: if/else 12 (34 pts), boolean chains 5, match/switch 1 (5 pts) (nesting depth added 26). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java"},"region":{"startLine":1522}}}],"partialFingerprints":{"codehealthFindingId/v1":"66b4b3d5c4f1a1b4e89dcbcdb809ed91c9e5c81183ab47d8b0ba63043f2eb985"}},{"ruleId":"D2","level":"warning","message":{"text":"ExportParameterVisitorUtils.exportParameter (cognitive 44): ExportParameterVisitorUtils.exportParameter has cognitive complexity 44 (threshold 15). Drivers by points: if/else 22 (38 pts), loops 2 (6 pts) (nesting depth added 20). 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":"core/src/main/java/com/alibaba/druid/sql/visitor/ExportParameterVisitorUtils.java"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6b3140b8a7dbf018e2292bbd78691a9b5971dff4f31e967b41668c59690edea"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLUtils._normalize (cognitive 44): SQLUtils._normalize has cognitive complexity 44 (threshold 15). Drivers by points: if/else 13 (38 pts), boolean chains 6 (nesting depth added 25). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/SQLUtils.java"},"region":{"startLine":1953}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2c949ba864ca1cd13e4454297665297c17ce3b3e4d8af0465365f563e3072ef"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlStatementParser.alterView (cognitive 43): MySqlStatementParser.alterView has cognitive complexity 43 (threshold 15). Drivers by points: if/else 21 (39 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":5200}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b92ea39f758ecd9a3654cade23ddebc970ee89adae968298848f14b51ab08ae"}},{"ruleId":"D2","level":"warning","message":{"text":"OracleSelectParser.parseTableSourceRest (cognitive 43): OracleSelectParser.parseTableSourceRest has cognitive complexity 43 (threshold 15). Drivers by points: if/else 27 (39 pts), boolean chains 4 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleSelectParser.java"},"region":{"startLine":808}}}],"partialFingerprints":{"codehealthFindingId/v1":"46963850e4069ded9ddbd1cfe003fc8234db6d2b1d23f2f5691c56fb4da55e0a"}},{"ruleId":"D2","level":"warning","message":{"text":"PGExprParser.primaryRest (cognitive 43): PGExprParser.primaryRest has cognitive complexity 43 (threshold 15). Drivers by points: if/else 23 (35 pts), boolean chains 5, match/switch 1 (3 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGExprParser.java"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"600fb723b7ebcf4bfd10b1036bcdd91bba00140328ea96189b8fd3d456681da2"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLServerLexer.scanComment (cognitive 43): SQLServerLexer.scanComment has cognitive complexity 43 (threshold 15). Drivers by points: if/else 15 (31 pts), boolean chains 6, loops 3 (6 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerLexer.java"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"89124404abb35031efdda2f4d0ac1c8e56a1c9d61ae2e2f9784ac8c4967a9209"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.printFetchFirst (cognitive 43): SQLASTOutputVisitor.printFetchFirst has cognitive complexity 43 (threshold 15). Drivers by points: ternaries 6 (21 pts), if/else 10 (19 pts), boolean chains 3 (nesting depth added 24). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":2765}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6171b61df3545373940887b294e6a05b25d7350930f7f5a845f60e989dd9bec"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.printMethodParameters (cognitive 43): SQLASTOutputVisitor.printMethodParameters has cognitive complexity 43 (threshold 15). Drivers by points: if/else 15 (37 pts), boolean chains 5, loops 1 (nesting depth added 22). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":1916}}}],"partialFingerprints":{"codehealthFindingId/v1":"135acd5c77243ae5047ca0cb14267664d1f5dea963ab0f9fd8073405c64028fd"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLUtils.toSQLString (cognitive 43): SQLUtils.toSQLString has cognitive complexity 43 (threshold 15). Drivers by points: if/else 13 (33 pts), loops 3 (9 pts), boolean chains 1 (nesting depth added 26). 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":"core/src/main/java/com/alibaba/druid/sql/SQLUtils.java"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fa1cb7a5432f517a480a2b4ab24fba273851b6d182b9b3204713470de9bac74"}},{"ruleId":"D2","level":"warning","message":{"text":"DruidDataSource.recycle (cognitive 42): DruidDataSource.recycle has cognitive complexity 42 (threshold 15). Drivers by points: if/else 25 (36 pts), boolean chains 5, error handling 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/pool/DruidDataSource.java"},"region":{"startLine":1901}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef69718f136c83ea2eb06f6862908c870008edd9664f1bba107d2ad3a13a2c00"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLBinaryOpExpr.computeDataType (cognitive 42): SQLBinaryOpExpr.computeDataType has cognitive complexity 42 (threshold 15). Drivers by points: if/else 14 (33 pts), boolean chains 8, match/switch 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLBinaryOpExpr.java"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"74367b8b86e35088901983541bd0f9ee765c025522b33a8581901106f653b2f0"}},{"ruleId":"D2","level":"warning","message":{"text":"DB2ExprParser.parseIdentity (cognitive 42): DB2ExprParser.parseIdentity has cognitive complexity 42 (threshold 15). Drivers by points: if/else 19 (42 pts) (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":"core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2ExprParser.java"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"74ccc3c246bcc1791a1da9da4ce581bbec216af55c86e66f0e220857f2a31ff0"}},{"ruleId":"D2","level":"warning","message":{"text":"H2ExprParser.parseIdentity0 (cognitive 42): H2ExprParser.parseIdentity0 has cognitive complexity 42 (threshold 15). Drivers by points: if/else 19 (42 pts) (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":"core/src/main/java/com/alibaba/druid/sql/dialect/h2/parser/H2ExprParser.java"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"3662eaa9b1afdc5a832f59e754f3fdbc6ac28f50d954666fa09a3f15ab20dbf5"}},{"ruleId":"D2","level":"warning","message":{"text":"OdpsLexer.scanIdentifier (cognitive 42): OdpsLexer.scanIdentifier has cognitive complexity 42 (threshold 15). Drivers by points: if/else 15 (31 pts), boolean chains 6, loops 3 (5 pts) (nesting depth added 18). 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":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsLexer.java"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e01fc64263b141018f9d29b9d8c08e54ff063a934cd8b68154b92141286a2f4"}},{"ruleId":"D2","level":"warning","message":{"text":"OracleLexer.scanComment (cognitive 42): OracleLexer.scanComment has cognitive complexity 42 (threshold 15). Drivers by points: if/else 15 (30 pts), loops 3 (6 pts), boolean chains 4, ternaries 1 (2 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleLexer.java"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"25501ab63a8556dc03674d2c176f820804476b69d17ad783253f869ade53532e"}},{"ruleId":"D2","level":"warning","message":{"text":"OscarOutputVisitor.visit (cognitive 42): OscarOutputVisitor.visit has cognitive complexity 42 (threshold 15). Drivers by points: if/else 19 (24 pts), ternaries 7 (14 pts), boolean chains 4 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"5277c8d4291b3bd17b555504f434f18ca1ad25a498f8a3b164f9bdf8f10bb300"}},{"ruleId":"D2","level":"warning","message":{"text":"SnowflakeCreateTableParser.parseCreateTableRest (cognitive 42): SnowflakeCreateTableParser.parseCreateTableRest has cognitive complexity 42 (threshold 15). Drivers by points: if/else 17 (38 pts), loops 2 (4 pts) (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":"core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeCreateTableParser.java"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"911f27199960a6f4b5f3ae8b1d96c38420b4703826a96d42b42b3e7b7cd8abaf"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLStatementParser.parseCreate (cognitive 42): SQLStatementParser.parseCreate has cognitive complexity 42 (threshold 15). Drivers by points: if/else 28 (39 pts), boolean chains 2, match/switch 1 (nesting depth added 11). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. 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. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":4096}}}],"partialFingerprints":{"codehealthFindingId/v1":"10d16f2dade0e623c5ae25a6dc106f549a846c07e97fa26cfe109dbab0b7d9f4"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLStatementParser.parseHiveInsertStmt (cognitive 42): SQLStatementParser.parseHiveInsertStmt has cognitive complexity 42 (threshold 15). Drivers by points: if/else 22 (33 pts), boolean chains 5, loops 2 (4 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":6934}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ab063aaca73cccddf71e58fd4ad530aab1c088edbd9c2d033c8d564f97f46e5"}},{"ruleId":"D2","level":"warning","message":{"text":"FnvHash.hashCode64 (cognitive 42): FnvHash.hashCode64 has cognitive complexity 42 (threshold 15). Drivers by points: if/else 8 (18 pts), boolean chains 12, ternaries 4 (8 pts), loops 2 (4 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/util/FnvHash.java"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd07ae9344c09971c66cfac4f804469897b2e5583965fe175fa380b0cd26d4e2"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLBinaryOpExpr.split (cognitive 41): SQLBinaryOpExpr.split has cognitive complexity 41 (threshold 15). Drivers by points: if/else 19 (39 pts), loops 2 (nesting depth added 20). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLBinaryOpExpr.java"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"45eacc7f83cbe50c99f0ef8791d1b26ada0edd4db18f261d64c8d4eee61d14e5"}},{"ruleId":"D2","level":"warning","message":{"text":"OracleOutputVisitor.visit (cognitive 41): OracleOutputVisitor.visit has cognitive complexity 41 (threshold 15). Drivers by points: ternaries 15 (29 pts), if/else 12 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":1722}}}],"partialFingerprints":{"codehealthFindingId/v1":"82967f3532e91bc43822f989a36e094a34a8c7b69f8e414e7b8ab6639988b19d"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLServerStatementParser.parseDeclare (cognitive 41): SQLServerStatementParser.parseDeclare has cognitive complexity 41 (threshold 15). Drivers by points: if/else 14 (34 pts), loops 2 (5 pts), boolean chains 2 (nesting depth added 23). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerStatementParser.java"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"c75ecf6abf0c6a3739fb9c4800eb50907cc9da23f83002337bcec6d120afebdf"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLExprParser.primaryIdentifier (cognitive 41): SQLExprParser.primaryIdentifier has cognitive complexity 41 (threshold 15). Drivers by points: if/else 19 (21 pts), boolean chains 18, ternaries 1 (2 pts) (nesting depth added 3). 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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":939}}}],"partialFingerprints":{"codehealthFindingId/v1":"e871c775e580162dda87127b27df46edaae5710c1014307ea9b79f101488d684"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.printInteger (cognitive 41): SQLASTOutputVisitor.printInteger has cognitive complexity 41 (threshold 15). Drivers by points: if/else 16 (35 pts), boolean chains 6 (nesting depth added 19). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":1807}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ca7782033c5eedadd65f349e2c3fef7db52f5badb0bc345f883eeb00790a3f7"}},{"ruleId":"D2","level":"warning","message":{"text":"SchemaStatVisitor.handleCondition (cognitive 41): SchemaStatVisitor.handleCondition has cognitive complexity 41 (threshold 15). Drivers by points: if/else 15 (28 pts), boolean chains 5, loops 3 (5 pts), match/switch 1 (3 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java"},"region":{"startLine":764}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1c98be6c305f509b95ffca5a7d602207f06dde785f296647b7a16f0550f66dc"}},{"ruleId":"D2","level":"warning","message":{"text":"SchemaStatVisitor.visit (cognitive 41): SchemaStatVisitor.visit has cognitive complexity 41 (threshold 15). Drivers by points: if/else 19 (25 pts), loops 7 (12 pts), boolean chains 4 (nesting depth added 11). 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, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java"},"region":{"startLine":1213}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcd6e2c9988ae03d5c389256e6c7a7bc7144885475c0db82d39da021b9beb1b5"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlStatementParser.parseExplain (cognitive 40): MySqlStatementParser.parseExplain has cognitive complexity 40 (threshold 15). Drivers by points: if/else 23 (36 pts), loops 1 (3 pts), match/switch 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":2381}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8a9b73f21513530377d167e85669df53de0eeb60a9d0f499a23cbafd532b6c8"}},{"ruleId":"D2","level":"warning","message":{"text":"OracleSelectParser.select (cognitive 40): OracleSelectParser.select has cognitive complexity 40 (threshold 15). Drivers by points: if/else 26 (38 pts), boolean chains 2 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleSelectParser.java"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc4c6064e94eafac7192eb62f8c4ca17b84c14a74988e8e651934102c653af32"}},{"ruleId":"D2","level":"warning","message":{"text":"OracleOutputVisitor.printCreateFunctionBody (cognitive 40): OracleOutputVisitor.printCreateFunctionBody has cognitive complexity 40 (threshold 15). Drivers by points: ternaries 9 (20 pts), if/else 14 (18 pts), boolean chains 2 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":2059}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebd73c762ffb3ff88546bfcf86cd3fa055f0d0cc4c9af125fba6c51a6b888dbb"}},{"ruleId":"D2","level":"warning","message":{"text":"OscarExprParser.primaryRest (cognitive 40): OscarExprParser.primaryRest has cognitive complexity 40 (threshold 15). Drivers by points: if/else 21 (33 pts), boolean chains 4, match/switch 1 (3 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarExprParser.java"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"6840a885243d9c7ff60f81fc8faccec1e8d694261a9e8758cc1cfbfd6d0c3bc4"}},{"ruleId":"D2","level":"warning","message":{"text":"Lexer.scanIdentifier (cognitive 40): Lexer.scanIdentifier has cognitive complexity 40 (threshold 15). Drivers by points: if/else 14 (20 pts), boolean chains 9, ternaries 3 (6 pts), loops 2 (3 pts), match/switch 1 (2 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (Lexer.scanIdentifier0) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java"},"region":{"startLine":2585}}}],"partialFingerprints":{"codehealthFindingId/v1":"259125e31073772303e9e9e9420740bbbb75e44c6708e72366c74a3b66e4a55b"}},{"ruleId":"D2","level":"warning","message":{"text":"Lexer.scanIdentifier0 (cognitive 40): Lexer.scanIdentifier0 has cognitive complexity 40 (threshold 15). Drivers by points: if/else 14 (20 pts), boolean chains 9, ternaries 3 (6 pts), loops 2 (3 pts), match/switch 1 (2 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (Lexer.scanIdentifier) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java"},"region":{"startLine":2721}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e8d2d00f296609c5235b37e7ba2f55d7860f58149ecdee30fc116bed3522212"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLExprParser.expr (cognitive 40): SQLExprParser.expr has cognitive complexity 40 (threshold 15). Drivers by points: if/else 21 (30 pts), boolean chains 10 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6552f13766b46922a3829098fa4ee250fab5fb5a7bfea50ca79f7a01f6a1cb3"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLSelectParser.parsePivot (cognitive 40): SQLSelectParser.parsePivot has cognitive complexity 40 (threshold 15). Drivers by points: if/else 17 (32 pts), loops 3 (8 pts) (nesting depth added 20). 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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java"},"region":{"startLine":2431}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e5af86dc35da7f6a88c2e0c68bd8f43c8c2bbaa71a908a9f4f22c6db384a07b"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 40): SQLASTOutputVisitor.visit has cognitive complexity 40 (threshold 15). Drivers by points: if/else 12 (22 pts), ternaries 5 (14 pts), loops 1 (3 pts), boolean chains 1 (nesting depth added 21). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":7978}}}],"partialFingerprints":{"codehealthFindingId/v1":"40c2ec157f4f7c9f0de82f3be5615eebea628aa2c949b1134cc625fc3b94831b"}},{"ruleId":"D2","level":"warning","message":{"text":"NameResolveVisitor.visit (cognitive 39): NameResolveVisitor.visit has cognitive complexity 39 (threshold 15). Drivers by points: if/else 13 (32 pts), boolean chains 6, loops 1 (nesting depth added 19). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/transform/NameResolveVisitor.java"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"06b13104d83b892d65d72ce7291e947ad57aa80bbe89f66fe1092c88e7fd79a2"}},{"ruleId":"D2","level":"warning","message":{"text":"OscarOutputVisitor.visit (cognitive 39): OscarOutputVisitor.visit has cognitive complexity 39 (threshold 15). Drivers by points: ternaries 12 (24 pts), if/else 15 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":1668}}}],"partialFingerprints":{"codehealthFindingId/v1":"973f5e63d2a25e12f0f1cc30f2a0bf1f59ce8b6054a3b096d5a8b187af9228be"}},{"ruleId":"D2","level":"warning","message":{"text":"PGOutputVisitor.visit (cognitive 39): PGOutputVisitor.visit has cognitive complexity 39 (threshold 15). Drivers by points: ternaries 12 (24 pts), if/else 15 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java"},"region":{"startLine":2058}}}],"partialFingerprints":{"codehealthFindingId/v1":"93d1934be91477a1e552c2d044f5fff8a2f2c6effb36d76ff304983ddb357075"}},{"ruleId":"D2","level":"warning","message":{"text":"RedshiftCreateTableParser.parseCreateTableRest (cognitive 39): RedshiftCreateTableParser.parseCreateTableRest has cognitive complexity 39 (threshold 15). Drivers by points: if/else 14 (30 pts), loops 2 (7 pts), boolean chains 2 (nesting depth added 21). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/redshift/parser/RedshiftCreateTableParser.java"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bcee5232ac2f8852410e5d70670bfc44b494d15bdbefbb08bb153f6a48ebe6c"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLExprParser.orRest (cognitive 39): SQLExprParser.orRest has cognitive complexity 39 (threshold 15). Drivers by points: if/else 11 (30 pts), loops 2 (5 pts), boolean chains 4 (nesting depth added 22). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":3642}}}],"partialFingerprints":{"codehealthFindingId/v1":"f311ca8068ea5c83ccfea4a04e40915ea0f323eda0fa1f98ade5b73c7b208852"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLMethodInvokeExpr.computeDataType (cognitive 38): SQLMethodInvokeExpr.computeDataType has cognitive complexity 38 (threshold 15). Drivers by points: if/else 22 (29 pts), boolean chains 9 (nesting depth added 7). 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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLMethodInvokeExpr.java"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"a509c0f4d195137e6be7e76a7bf54e6ef419305ae818aeb7cb6ffdecbb96b63b"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlOutputVisitor.visit (cognitive 38): MySqlOutputVisitor.visit has cognitive complexity 38 (threshold 15). Drivers by points: if/else 14 (18 pts), ternaries 9 (16 pts), loops 3 (4 pts) (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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":3448}}}],"partialFingerprints":{"codehealthFindingId/v1":"4354912b47209c92a53e6c2301004fd080dd7bf3deedb672c227dcd96609d2ba"}},{"ruleId":"D2","level":"warning","message":{"text":"StarRocksOutputVisitor.printDistributedBy (cognitive 38): StarRocksOutputVisitor.printDistributedBy has cognitive complexity 38 (threshold 15). Drivers by points: ternaries 5 (21 pts), if/else 7 (16 pts), boolean chains 1 (nesting depth added 25). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/starrocks/visitor/StarRocksOutputVisitor.java"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc6538f294a7dd5677087da7f3ede72550b400ec6495528d1228e5175087e704"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLParserUtils.removeComment (cognitive 38): SQLParserUtils.removeComment has cognitive complexity 38 (threshold 15). Drivers by points: if/else 14 (25 pts), boolean chains 7, loops 3 (6 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLParserUtils.java"},"region":{"startLine":1036}}}],"partialFingerprints":{"codehealthFindingId/v1":"571002507b360fad476a638b42ffe71ec79ffd3d71703f719db7c5bda7c838f0"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLSelectParser.parseWhere (cognitive 38): SQLSelectParser.parseWhere has cognitive complexity 38 (threshold 15). Drivers by points: if/else 18 (25 pts), loops 2 (4 pts), boolean chains 3, error handling 1 (3 pts), match/switch 1 (3 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java"},"region":{"startLine":684}}}],"partialFingerprints":{"codehealthFindingId/v1":"9480e3d1f28aa9354eeba62312a08ecb0723f833baa11caed7d56a234f2f3ea0"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLStatementParser.alterMaterialized (cognitive 38): SQLStatementParser.alterMaterialized has cognitive complexity 38 (threshold 15). Drivers by points: if/else 21 (33 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":7587}}}],"partialFingerprints":{"codehealthFindingId/v1":"42269110c90d7afb1928493c821c039852d5fd74993820692edc1d40f655caba"}},{"ruleId":"D2","level":"warning","message":{"text":"SchemaRepository.console (cognitive 38): SchemaRepository.console has cognitive complexity 38 (threshold 15). Drivers by points: if/else 16 (29 pts), loops 3 (8 pts), error handling 1 (nesting depth added 18). 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":"core/src/main/java/com/alibaba/druid/sql/repository/SchemaRepository.java"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4ccea991373ec3db19afd78db51cffa37a24c684d7097382802bea0d84ea137"}},{"ruleId":"D2","level":"warning","message":{"text":"SqlTypeUDF.getStmtSqlType (cognitive 38): SqlTypeUDF.getStmtSqlType has cognitive complexity 38 (threshold 15). Drivers by points: if/else 26 (29 pts), ternaries 3 (8 pts), boolean chains 1 (nesting depth added 8). 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, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/support/opds/udf/SqlTypeUDF.java"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a36170946002924761e600922e8b7650a305c4ee84b585f775f0860fb2becf3"}},{"ruleId":"D2","level":"warning","message":{"text":"WallVisitorUtils.isWhereOrHaving (cognitive 38): WallVisitorUtils.isWhereOrHaving has cognitive complexity 38 (threshold 15). Drivers by points: if/else 17 (36 pts), boolean chains 1, loops 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java"},"region":{"startLine":1258}}}],"partialFingerprints":{"codehealthFindingId/v1":"25d07e119758f43811ad99027083d32d026648261eef20297ea02c70ebac255f"}},{"ruleId":"D2","level":"warning","message":{"text":"AthenaCreateTableParser.parseCreateTableRest (cognitive 37): AthenaCreateTableParser.parseCreateTableRest has cognitive complexity 37 (threshold 15). Drivers by points: if/else 16 (30 pts), loops 2 (4 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/athena/parser/AthenaCreateTableParser.java"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bcee3cc10c81f8e3f148c4c2cc64af3ba6c929281831672f5a73f051f7b3b81"}},{"ruleId":"D2","level":"warning","message":{"text":"DB2SelectParser.query (cognitive 37): DB2SelectParser.query has cognitive complexity 37 (threshold 15). Drivers by points: if/else 22 (35 pts), boolean chains 1, loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2SelectParser.java"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebe6a36732d226159f1f5a824f4813d02985bcbacfc691ef70822149437159d0"}},{"ruleId":"D2","level":"warning","message":{"text":"Lexer.scanString2 (cognitive 37): Lexer.scanString2 has cognitive complexity 37 (threshold 15). Drivers by points: if/else 20 (35 pts), loops 2 (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":"core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java"},"region":{"startLine":1799}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcbbed98c56f324de955163de9c308a619045798d6d85891eceb9f98b7e2c0e4"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLSelectParser.parseGroupByItem (cognitive 37): SQLSelectParser.parseGroupByItem has cognitive complexity 37 (threshold 15). Drivers by points: if/else 17 (34 pts), loops 1 (3 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java"},"region":{"startLine":1065}}}],"partialFingerprints":{"codehealthFindingId/v1":"65dfec27fcfc20459425da05d5277f0f0e3ada533e19901391fc8e743c9b557a"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.printMethodParameters (cognitive 37): SQLASTOutputVisitor.printMethodParameters has cognitive complexity 37 (threshold 15). Drivers by points: ternaries 7 (19 pts), if/else 12 (17 pts), boolean chains 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":1983}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecfeaae352c3261db1510b870159bbf1980c168b2018f428b0010ff1ac83a328"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 37): SQLASTOutputVisitor.visit has cognitive complexity 37 (threshold 15). Drivers by points: if/else 10 (18 pts), ternaries 4 (13 pts), boolean chains 4, loops 1 (2 pts) (nesting depth added 18). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":8138}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bc5e616635c2e11ef613a5c627106c022c98cf690e3a02d45ec196be1bf743d"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 37): SQLASTOutputVisitor.visit has cognitive complexity 37 (threshold 15). Drivers by points: ternaries 11 (20 pts), if/else 11 (13 pts), boolean chains 2, loops 1 (2 pts) (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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":5588}}}],"partialFingerprints":{"codehealthFindingId/v1":"e95f24fb662a0b0f1a0572fafc674adb9ccae45694e534745fbb995f11ab2d27"}},{"ruleId":"D2","level":"warning","message":{"text":"WallVisitorUtils.check (cognitive 37): WallVisitorUtils.check has cognitive complexity 37 (threshold 15). Drivers by points: if/else 9 (29 pts), loops 2 (5 pts), boolean chains 3 (nesting depth added 23). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e725945bc36d9da20d1bd025eb69fc5e66234b3c647994112b54f83183f9a79"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlExprParser.parseSubPartition (cognitive 36): MySqlExprParser.parseSubPartition has cognitive complexity 36 (threshold 15). Drivers by points: if/else 16 (33 pts), boolean chains 2, loops 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java"},"region":{"startLine":2316}}}],"partialFingerprints":{"codehealthFindingId/v1":"408a1a891f8532bc761dda0290def9cffada003179a82a4c0b9f9f7d755eee2e"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlStatementParser.parseCreateTableSpace (cognitive 36): MySqlStatementParser.parseCreateTableSpace has cognitive complexity 36 (threshold 15). Drivers by points: if/else 20 (35 pts), 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"637543b53d266204b79a8ee3b07f4397dab5b9cf623c1a4906ca4d18cf0627bb"}},{"ruleId":"D2","level":"warning","message":{"text":"OdpsStatementParser.parsePrivilege (cognitive 36): OdpsStatementParser.parsePrivilege has cognitive complexity 36 (threshold 15). Drivers by points: if/else 25 (32 pts), loops 2 (4 pts) (nesting depth added 9). 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, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsStatementParser.java"},"region":{"startLine":1421}}}],"partialFingerprints":{"codehealthFindingId/v1":"a11a145ca42cb35816ae5561c8a85756f504ae4569677b818c0a2c4eba2053e6"}},{"ruleId":"D2","level":"warning","message":{"text":"OracleExprParser.parseLobStorage (cognitive 36): OracleExprParser.parseLobStorage has cognitive complexity 36 (threshold 15). Drivers by points: if/else 14 (33 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 20). 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java"},"region":{"startLine":1482}}}],"partialFingerprints":{"codehealthFindingId/v1":"add29655d6e29d5a6b50bffb3a59f748d61ceb6399957982a8257ba0352b90f4"}},{"ruleId":"D2","level":"warning","message":{"text":"PGOutputVisitor.printOnConflict (cognitive 36): PGOutputVisitor.printOnConflict has cognitive complexity 36 (threshold 15). Drivers by points: ternaries 6 (18 pts), if/else 7 (13 pts), boolean chains 5 (nesting depth added 18). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"08f13d9d60717cf4e3423b2d0cdcbcb007dafafec3f084c2dbef37af58f0920b"}},{"ruleId":"D2","level":"warning","message":{"text":"SchemaResolveVisitorFactory.resolve (cognitive 36): SchemaResolveVisitorFactory.resolve has cognitive complexity 36 (threshold 15). Drivers by points: if/else 14 (26 pts), loops 4 (10 pts) (nesting depth added 18). 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":"core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java"},"region":{"startLine":2013}}}],"partialFingerprints":{"codehealthFindingId/v1":"74750d4bd9309a4f3fb559ff610862975e44049af61666d932fd09eb974f6213"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 36): SQLASTOutputVisitor.visit has cognitive complexity 36 (threshold 15). Drivers by points: ternaries 11 (22 pts), if/else 13, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":5984}}}],"partialFingerprints":{"codehealthFindingId/v1":"838b63838d16d6f5d2f449f5181c1f850228dcf52d8003e8fcaf49063461c74c"}},{"ruleId":"D2","level":"warning","message":{"text":"WallVisitorUtils.getValue (cognitive 36): WallVisitorUtils.getValue has cognitive complexity 36 (threshold 15). Drivers by points: if/else 15 (22 pts), boolean chains 7, match/switch 2 (7 pts) (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":"core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java"},"region":{"startLine":989}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1ebc7c5eed82f56cd4b4f20a01e37ea30012d5ffa54363a44f76b2fc8f5f4b4"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLSelect.equals (cognitive 35): SQLSelect.equals has cognitive complexity 35 (threshold 15). Drivers by points: ternaries 11 (21 pts), if/else 13, boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelect.java"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"371ff7bd3d1cd8ce14eeec089399340cc615bd427bf1cd76a5084b84c2222406"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlOutputVisitor.visit (cognitive 35): MySqlOutputVisitor.visit has cognitive complexity 35 (threshold 15). Drivers by points: ternaries 9 (24 pts), if/else 5 (8 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":4040}}}],"partialFingerprints":{"codehealthFindingId/v1":"d49336941b7c1e8f2e16cb79ba6156b1440d7226a4076c0a4488f6f17ba25dc7"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlOutputVisitor.visit (cognitive 35): MySqlOutputVisitor.visit has cognitive complexity 35 (threshold 15). Drivers by points: if/else 13 (19 pts), ternaries 9 (16 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":5024}}}],"partialFingerprints":{"codehealthFindingId/v1":"01d2c1ebc7a7da46f85f229d865b6ceb6535edd5b5a0d37f3ceceed39f39909e"}},{"ruleId":"D2","level":"warning","message":{"text":"OracleExprParser.parseInterval (cognitive 35): OracleExprParser.parseInterval has cognitive complexity 35 (threshold 15). Drivers by points: if/else 23 (33 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java"},"region":{"startLine":994}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2a82ba6da1f23bb7c3d7827f3e4a80267d063a5ab9f12dfb2d422e26ab291c0"}},{"ruleId":"D2","level":"warning","message":{"text":"SnowflakeStatementParser.parseShow (cognitive 35): SnowflakeStatementParser.parseShow has cognitive complexity 35 (threshold 15). Drivers by points: if/else 19 (29 pts), boolean chains 6 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeStatementParser.java"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"979dc6c460dad2a9015d96ff802439dadbd4398fa187b95ed02b61d5e3e8c028"}},{"ruleId":"D2","level":"warning","message":{"text":"Substring.eval (cognitive 35): Substring.eval has cognitive complexity 35 (threshold 15). Drivers by points: if/else 12 (28 pts), boolean chains 6, loops 1 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/functions/Substring.java"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"79681d6698d09f6eaf24008f02de8eb8370d2e7ddd096e7c193c8fa53e645ced"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 35): SQLASTOutputVisitor.visit has cognitive complexity 35 (threshold 15). Drivers by points: ternaries 9 (22 pts), if/else 11 (13 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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":10018}}}],"partialFingerprints":{"codehealthFindingId/v1":"1caa1d05d2ae9a8c692e76a79de2d65d6bc898f03e9aa7a05b001d9926202b30"}},{"ruleId":"D2","level":"warning","message":{"text":"WallFilter.preprocessResultSet (cognitive 35): WallFilter.preprocessResultSet has cognitive complexity 35 (threshold 15). Drivers by points: if/else 14 (29 pts), boolean chains 5, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/wall/WallFilter.java"},"region":{"startLine":1586}}}],"partialFingerprints":{"codehealthFindingId/v1":"6babf5f659c7d758debe3c9f69152baa48b32218e9fd6b28ace4ad27ee0d0bb8"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlCreateTableParser.parseConstraint (cognitive 34): MySqlCreateTableParser.parseConstraint has cognitive complexity 34 (threshold 15). Drivers by points: if/else 19 (33 pts), boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java"},"region":{"startLine":1524}}}],"partialFingerprints":{"codehealthFindingId/v1":"7874a135cc956511ad44ceeda35dfdcca408a8fa51192815d89779a78f90ca9b"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlExprParser.parseJsonTableColumn (cognitive 34): MySqlExprParser.parseJsonTableColumn has cognitive complexity 34 (threshold 15). Drivers by points: if/else 11 (26 pts), loops 2 (5 pts), boolean chains 3 (nesting depth added 18). 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java"},"region":{"startLine":1288}}}],"partialFingerprints":{"codehealthFindingId/v1":"89948d9fccc658767f9591b282677b4419e16919e75b89accab75909b61b1434"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlStatementParser.parseReplace (cognitive 34): MySqlStatementParser.parseReplace has cognitive complexity 34 (threshold 15). Drivers by points: if/else 18 (27 pts), loops 4 (6 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":4135}}}],"partialFingerprints":{"codehealthFindingId/v1":"545da6a13427f26625152f526f8384db1cf3124a26779da6310764feb41a90fb"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlOutputVisitor.visit (cognitive 34): MySqlOutputVisitor.visit has cognitive complexity 34 (threshold 15). Drivers by points: ternaries 5 (16 pts), if/else 8 (15 pts), loops 1 (3 pts) (nesting depth added 20). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"c451d90d7e0633b4c6007f6e86ed785a01a031ce6384710c2ac28d30c7f14103"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlOutputVisitor.visit (cognitive 34): MySqlOutputVisitor.visit has cognitive complexity 34 (threshold 15). Drivers by points: if/else 15 (26 pts), boolean chains 5, loops 2 (3 pts) (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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":725}}}],"partialFingerprints":{"codehealthFindingId/v1":"6233bc768b2fb37e3da25a488656fd3daa0a5c1246753a6bacc2cff940fc11d2"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlOutputVisitor.visit (cognitive 34): MySqlOutputVisitor.visit has cognitive complexity 34 (threshold 15). Drivers by points: ternaries 9 (21 pts), if/else 9 (13 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":5170}}}],"partialFingerprints":{"codehealthFindingId/v1":"502614ba32994ad0a2660e1c5255a89cb6c2ca5530e8780341efc671785f8db8"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlOutputVisitor.visit (cognitive 34): MySqlOutputVisitor.visit has cognitive complexity 34 (threshold 15). Drivers by points: ternaries 12 (23 pts), if/else 11 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":5098}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7805717327f188f71ea139147099fecf070bcce17fb725c6fc8a510bda64ab3"}},{"ruleId":"D2","level":"warning","message":{"text":"OdpsExprParser.parseSelectItem (cognitive 34): OdpsExprParser.parseSelectItem has cognitive complexity 34 (threshold 15). Drivers by points: if/else 15 (24 pts), boolean chains 7, loops 1 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsExprParser.java"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"86425e5e92a93dbf8d1e90e939526462ec02d460df308447ea529124cc0e4808"}},{"ruleId":"D2","level":"warning","message":{"text":"OdpsOutputVisitor.visit (cognitive 34): OdpsOutputVisitor.visit has cognitive complexity 34 (threshold 15). Drivers by points: if/else 13 (17 pts), ternaries 6 (15 pts), boolean chains 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/visitor/OdpsOutputVisitor.java"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d34f970e6e8a832064516fa0076e2281066932a41e9d27ad1046f73c67af0c3"}},{"ruleId":"D2","level":"warning","message":{"text":"OracleCreateTableParser.parseCreateTableSupplementalLoggingProps (cognitive 34): OracleCreateTableParser.parseCreateTableSupplementalLoggingProps has cognitive complexity 34 (threshold 15). Drivers by points: if/else 14 (30 pts), loops 2 (4 pts) (nesting depth added 18). 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleCreateTableParser.java"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a9c18fbfbc809e3147cdcef2df407001cf81f0a81ec258ecd86bb525d4c112c"}},{"ruleId":"D2","level":"warning","message":{"text":"OracleExprParser.parseOpaque (cognitive 34): OracleExprParser.parseOpaque has cognitive complexity 34 (threshold 15). Drivers by points: if/else 13 (32 pts), loops 1 (2 pts) (nesting depth added 20). 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java"},"region":{"startLine":1382}}}],"partialFingerprints":{"codehealthFindingId/v1":"80909c3603838747727b5fd2fb7a28f60302787ca59c36a1dc2a14b47d6e5e22"}},{"ruleId":"D2","level":"warning","message":{"text":"PGOutputVisitor.visit (cognitive 34): PGOutputVisitor.visit has cognitive complexity 34 (threshold 15). Drivers by points: ternaries 11 (22 pts), if/else 11 (12 pts) (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":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java"},"region":{"startLine":2985}}}],"partialFingerprints":{"codehealthFindingId/v1":"a334d2402328fa17ff142d05ca881a6a2ec213d494271dd596c1c9c63a952837"}},{"ruleId":"D2","level":"warning","message":{"text":"RedshiftOutputVisitor.visit (cognitive 34): RedshiftOutputVisitor.visit has cognitive complexity 34 (threshold 15). Drivers by points: ternaries 9 (22 pts), if/else 10 (12 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":"core/src/main/java/com/alibaba/druid/sql/dialect/redshift/visitor/RedshiftOutputVisitor.java"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"95df0d40cb7cea7ba0d402fe1252e16e42c2f4f706659c68fd6e4a3720cadfbc"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLServerStatementParser.parseSet (cognitive 34): SQLServerStatementParser.parseSet has cognitive complexity 34 (threshold 15). Drivers by points: if/else 23 (33 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerStatementParser.java"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"e35c7f5b3981d09726969a631f62603eb7bbbbc2b958f6388a271e65ecd2b358"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLExprParser.dotRest (cognitive 34): SQLExprParser.dotRest has cognitive complexity 34 (threshold 15). Drivers by points: if/else 17 (30 pts), boolean chains 4 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":2065}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9a0e105c2b9b9d8c8a821c4d3640ef6efd36e1c97700558164264969a029f95"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLStatementParser.alterSequence (cognitive 34): SQLStatementParser.alterSequence has cognitive complexity 34 (threshold 15). Drivers by points: if/else 22 (30 pts), boolean chains 3, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":7356}}}],"partialFingerprints":{"codehealthFindingId/v1":"642f1187fef10f6ebcfb92f1132b36cc30686bf3fbfdce496eaeb12eed1b466b"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 34): SQLASTOutputVisitor.visit has cognitive complexity 34 (threshold 15). Drivers by points: ternaries 10 (20 pts), if/else 10, boolean chains 4 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":12280}}}],"partialFingerprints":{"codehealthFindingId/v1":"4968e8244dbb6dc3adf7805a0dcec5aa1071f8701fd9a6c286436a72c7919171"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 34): SQLASTOutputVisitor.visit has cognitive complexity 34 (threshold 15). Drivers by points: ternaries 11 (21 pts), if/else 11, loops 1 (2 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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":5051}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1a8751874d021d9526b988e46d6aa6cbc65bb241be334ebb7618698fd480b23"}},{"ruleId":"D2","level":"warning","message":{"text":"WebURIStat.afterInvoke (cognitive 34): WebURIStat.afterInvoke has cognitive complexity 34 (threshold 15). Drivers by points: if/else 12 (27 pts), loops 4 (7 pts) (nesting depth added 18). 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":"core/src/main/java/com/alibaba/druid/support/http/stat/WebURIStat.java"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"0999681a7892089bf50e2cd41d7e22de1c28ba1a021141e003ce852b67b33299"}},{"ruleId":"D2","level":"warning","message":{"text":"CodeStatVisitor.preVisit (cognitive 34): CodeStatVisitor.preVisit has cognitive complexity 34 (threshold 15). Drivers by points: if/else 19 (31 pts), loops 1 (3 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/support/opds/udf/SqlCodeStat.java"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"07884eaa599246a17e36417f48ac2adff3757ed91ea73b86dc66dd9d6cdb8b6e"}},{"ruleId":"D2","level":"warning","message":{"text":"DruidAbstractDataSource.validateConnection (cognitive 33): DruidAbstractDataSource.validateConnection has cognitive complexity 33 (threshold 15). Drivers by points: if/else 11 (21 pts), error handling 4 (8 pts), ternaries 1 (3 pts), boolean chains 1 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/pool/DruidAbstractDataSource.java"},"region":{"startLine":1434}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaedff809e5fd814ebe98463d307b4b83684a7e514939f689790ace086415b39"}},{"ruleId":"D2","level":"warning","message":{"text":"DmOutputVisitor.visit (cognitive 33): DmOutputVisitor.visit has cognitive complexity 33 (threshold 15). Drivers by points: if/else 16, ternaries 8 (15 pts), boolean chains 2 (nesting depth added 7). 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":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmOutputVisitor.java"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"db3a7ac1eb822e3fa19c070a5fb3a172ae3ec96676ed9beb883fd47d4e1f0c6a"}},{"ruleId":"D2","level":"warning","message":{"text":"HiveOutputVisitor.visit (cognitive 33): HiveOutputVisitor.visit has cognitive complexity 33 (threshold 15). Drivers by points: if/else 11 (19 pts), ternaries 4 (11 pts), loops 1 (3 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/visitor/HiveOutputVisitor.java"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"12276cfc69b7c4c56d6eaf98b2463d015fe8ce5d5eafbd7ba7a84a927249817c"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlOutputVisitor.visit (cognitive 33): MySqlOutputVisitor.visit has cognitive complexity 33 (threshold 15). Drivers by points: ternaries 9 (18 pts), if/else 11 (13 pts), loops 1 (2 pts) (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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":4663}}}],"partialFingerprints":{"codehealthFindingId/v1":"86d2eb060bbc7d0c753f13079dd525eaefa6adc2bb3a92381a44e5d5f2d8dd1b"}},{"ruleId":"D2","level":"warning","message":{"text":"OracleOutputVisitor.visit (cognitive 33): OracleOutputVisitor.visit has cognitive complexity 33 (threshold 15). Drivers by points: ternaries 8 (18 pts), if/else 12 (14 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"31507e9d3b3943622a6d6b1c411c860520a4f938ae5fdf9d15c3ecd15a270fe6"}},{"ruleId":"D2","level":"warning","message":{"text":"PGOutputVisitor.visit (cognitive 33): PGOutputVisitor.visit has cognitive complexity 33 (threshold 15). Drivers by points: if/else 14 (19 pts), ternaries 5 (10 pts), boolean chains 4 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"035fc9818cae4fce89fa89559c76b40a5a8962dbf48d9e2a04aca507d306407e"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLServerOutputVisitor.visit (cognitive 33): SQLServerOutputVisitor.visit has cognitive complexity 33 (threshold 15). Drivers by points: if/else 10 (15 pts), ternaries 6 (13 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/visitor/SQLServerOutputVisitor.java"},"region":{"startLine":712}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1e6fceda04b6f920648413d91c44f2480bad9bd64b6e6f34c7ea50566477208"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLParserUtils.getTables (cognitive 33): SQLParserUtils.getTables has cognitive complexity 33 (threshold 15). Drivers by points: if/else 7 (27 pts), match/switch 2 (3 pts), boolean chains 2, loops 1 (nesting depth added 21). 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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLParserUtils.java"},"region":{"startLine":1115}}}],"partialFingerprints":{"codehealthFindingId/v1":"f99af5a1b6c45fae56b76bd274d5730f4e9b3a174e6448b4d2f1fb206f0a5dfc"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLStatementParser.parseCreateSequence (cognitive 33): SQLStatementParser.parseCreateSequence has cognitive complexity 33 (threshold 15). Drivers by points: if/else 22 (29 pts), boolean chains 3, loops 1 (nesting depth added 7). 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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":4728}}}],"partialFingerprints":{"codehealthFindingId/v1":"395dcb8a855282134b172e677886c1175947e587d5fa6b1f0b342e2c7effbba3"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 33): SQLASTOutputVisitor.visit has cognitive complexity 33 (threshold 15). Drivers by points: ternaries 8 (16 pts), if/else 10 (14 pts), boolean chains 2, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":6190}}}],"partialFingerprints":{"codehealthFindingId/v1":"8958fd0aba3c47d53c648f14d7ce9844d445de65ed549d69d9b336fb82eb1dd1"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 33): SQLASTOutputVisitor.visit has cognitive complexity 33 (threshold 15). Drivers by points: ternaries 12 (23 pts), if/else 9 (10 pts) (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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":6259}}}],"partialFingerprints":{"codehealthFindingId/v1":"0227a78b85e75d7d14134d83a729db0e5e81339c3dcdf733b5ca093c95d7fc16"}},{"ruleId":"D2","level":"warning","message":{"text":"OracleUnorderedLimitDetectVisitor.visit (cognitive 33): OracleUnorderedLimitDetectVisitor.visit has cognitive complexity 33 (threshold 15). Drivers by points: if/else 11 (27 pts), boolean chains 4, loops 1 (2 pts) (nesting depth added 17). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/PagerUtils.java"},"region":{"startLine":719}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c351cb78ef919818a7755d277fae73fb9aff7519233b9ff6ec7aba0206391ac"}},{"ruleId":"D2","level":"warning","message":{"text":"WallVisitorUtils.preVisitCheck (cognitive 33): WallVisitorUtils.preVisitCheck has cognitive complexity 33 (threshold 15). Drivers by points: if/else 28, boolean chains 5. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. 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":"core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java"},"region":{"startLine":2534}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fc82e9e9d1c604525f2864549d27cb337c53608d5788b9cf656569357533049"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLBinaryOpExpr.merge (cognitive 32): SQLBinaryOpExpr.merge has cognitive complexity 32 (threshold 15). Drivers by points: if/else 11 (28 pts), boolean chains 3, loops 1 (nesting depth added 17). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLBinaryOpExpr.java"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"73154676536e540608155b581d6acfd9c3772bdd098cb765d1fbcbd80fbd7dba"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLSelectQueryBlock.cloneTo (cognitive 32): SQLSelectQueryBlock.cloneTo has cognitive complexity 32 (threshold 15). Drivers by points: if/else 20 (23 pts), loops 5 (9 pts) (nesting depth added 7). 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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java"},"region":{"startLine":1033}}}],"partialFingerprints":{"codehealthFindingId/v1":"38b43d79e99b266cea29ab6e308b2944ab482b8b44db993bb451ef5db2d504b8"}},{"ruleId":"D2","level":"warning","message":{"text":"DmExprParser.parseInterval (cognitive 32): DmExprParser.parseInterval has cognitive complexity 32 (threshold 15). Drivers by points: if/else 20 (30 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmExprParser.java"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"828ab61dda1a31d6d19da37ad9c8fadb3580449a9c95a16a96e177c2bfef753b"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlInsertStatement.accept0 (cognitive 32): MySqlInsertStatement.accept0 has cognitive complexity 32 (threshold 15). Drivers by points: if/else 9 (23 pts), loops 3 (9 pts) (nesting depth added 20). 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlInsertStatement.java"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"d25b6d272b9cca9cba89cf0240c8214030c1f3df38293dcd91b9fc7c66df8c01"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlExprParser.parseAssignItem (cognitive 32): MySqlExprParser.parseAssignItem has cognitive complexity 32 (threshold 15). Drivers by points: if/else 22 (28 pts), ternaries 1 (3 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java"},"region":{"startLine":2005}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcbef86e7b89c8c9d46bf40c68817b8d4759780ed65307ca3b358949103441a5"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlSelectIntoParser.parseInto (cognitive 32): MySqlSelectIntoParser.parseInto has cognitive complexity 32 (threshold 15). Drivers by points: if/else 11 (31 pts), boolean chains 1 (nesting depth added 20). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectIntoParser.java"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"727e3da4f6f8635a3cbfe1da881c4202ec62f20a4de911254fcfb1656108130d"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlSelectParser.parseInto (cognitive 32): MySqlSelectParser.parseInto has cognitive complexity 32 (threshold 15). Drivers by points: if/else 13 (29 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 17). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectParser.java"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"46fc9f76c60a8d7e9297e19389f803b69478228b5b3d54fbc31f5bece6fdd61f"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlOutputVisitor.visit (cognitive 32): MySqlOutputVisitor.visit has cognitive complexity 32 (threshold 15). Drivers by points: ternaries 10 (21 pts), if/else 8 (11 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":4921}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd3648396a4a4b50cca8a064765bd52a169c23dcf52eabe86b8c4834a06fc25d"}},{"ruleId":"D2","level":"warning","message":{"text":"OracleStatementParser.parseAlterTableSplit (cognitive 32): OracleStatementParser.parseAlterTableSplit has cognitive complexity 32 (threshold 15). Drivers by points: if/else 15 (25 pts), loops 2 (7 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java"},"region":{"startLine":1814}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a230552688352500f76e56485c309efd27ed1d3b2f91430e05c9aa122027650"}},{"ruleId":"D2","level":"warning","message":{"text":"OracleStatementParser.parseFunction (cognitive 32): OracleStatementParser.parseFunction has cognitive complexity 32 (threshold 15). Drivers by points: if/else 26 (31 pts), boolean chains 1 (nesting depth added 5). 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, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java"},"region":{"startLine":989}}}],"partialFingerprints":{"codehealthFindingId/v1":"e05fba1ee8a65d0d07cb96cdd280a9345d78c421f12e0450086b1c059746d880"}},{"ruleId":"D2","level":"warning","message":{"text":"OscarExprParser.parseInterval (cognitive 32): OscarExprParser.parseInterval has cognitive complexity 32 (threshold 15). Drivers by points: if/else 20 (30 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarExprParser.java"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"462c9fdbe3fc6f77016c1dc124bf790218ab335fc624ce42c0beb1f9db2a0058"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLServerSelectParser.select (cognitive 32): SQLServerSelectParser.select has cognitive complexity 32 (threshold 15). Drivers by points: if/else 16 (28 pts), loops 1 (3 pts), boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerSelectParser.java"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dd4067f238cf925d1432dfc278368337aee4b4003326347c701f73cd89ea2db"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLServerStatementParser.parseStatementListDialect (cognitive 32): SQLServerStatementParser.parseStatementListDialect has cognitive complexity 32 (threshold 15). Drivers by points: if/else 20 (29 pts), boolean chains 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerStatementParser.java"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"6325a924983d52849ac22067b474ebfb0e996beea555aadd96ceae11648ef0ea"}},{"ruleId":"D2","level":"warning","message":{"text":"StarRocksOutputVisitor.visit (cognitive 32): StarRocksOutputVisitor.visit has cognitive complexity 32 (threshold 15). Drivers by points: ternaries 7 (15 pts), if/else 12 (14 pts), boolean chains 2, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/starrocks/visitor/StarRocksOutputVisitor.java"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"509f745ea73787372342c298b9039a2cfb0b8f96db0d4382c5abbc34ed8c8591"}},{"ruleId":"D2","level":"warning","message":{"text":"Lexer.nextTokenValue (cognitive 32): Lexer.nextTokenValue has cognitive complexity 32 (threshold 15). Drivers by points: if/else 16 (20 pts), boolean chains 11, loops 1 (nesting depth added 4). 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, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1a64451d1fd9df84735442b496670cb25b7bd0754b110c13516d902d19ecdc6"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLStatementParser.alterTableAfterName (cognitive 32): SQLStatementParser.alterTableAfterName has cognitive complexity 32 (threshold 15). Drivers by points: if/else 19 (27 pts), boolean chains 2, match/switch 1 (2 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":2265}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d4c81c180eab8456589e0ba4d20841b2abdc61df3c577bc1f4ae0e964d4ca74"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLStatementParser.parseInsert0 (cognitive 32): SQLStatementParser.parseInsert0 has cognitive complexity 32 (threshold 15). Drivers by points: if/else 16 (24 pts), boolean chains 4, loops 2 (4 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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":3855}}}],"partialFingerprints":{"codehealthFindingId/v1":"f73b5bea39df68918e6be23e2933259a74e6e83d713517427444e9f2d4836719"}},{"ruleId":"D2","level":"warning","message":{"text":"SchemaResolveVisitorFactory.checkParameter (cognitive 32): SchemaResolveVisitorFactory.checkParameter has cognitive complexity 32 (threshold 15). Drivers by points: if/else 12 (30 pts), boolean chains 1, loops 1 (nesting depth added 18). 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":"core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java"},"region":{"startLine":2238}}}],"partialFingerprints":{"codehealthFindingId/v1":"7073e2d1591948bd639f694e0c1397e5cea854fdc0359040f417fe247e4f7d92"}},{"ruleId":"D2","level":"warning","message":{"text":"ParameterizedOutputVisitorUtils.parameterizeHash (cognitive 32): ParameterizedOutputVisitorUtils.parameterizeHash has cognitive complexity 32 (threshold 15). Drivers by points: if/else 15 (30 pts), loops 1, ternaries 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/ParameterizedOutputVisitorUtils.java"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb30ab1aa40d9739395597bb4417f64c4a244d6df23f6e93d6a6292f73c4164d"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.printName (cognitive 32): SQLASTOutputVisitor.printName has cognitive complexity 32 (threshold 15). Drivers by points: if/else 10 (26 pts), boolean chains 3, loops 1 (3 pts) (nesting depth added 18). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":1474}}}],"partialFingerprints":{"codehealthFindingId/v1":"110275947345242083fbd9875b09569a0b4d8916365da48300a5be405610f133"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLEvalVisitorUtils.add (cognitive 32): SQLEvalVisitorUtils.add has cognitive complexity 32 (threshold 15). Drivers by points: if/else 17 (19 pts), boolean chains 13 (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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java"},"region":{"startLine":1898}}}],"partialFingerprints":{"codehealthFindingId/v1":"da94cfd749c674f3bebc8e7b61ec30725e504411ae266f4084ad2ce19db44333"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLEvalVisitorUtils.eq (cognitive 32): SQLEvalVisitorUtils.eq has cognitive complexity 32 (threshold 15). Drivers by points: if/else 16 (19 pts), boolean chains 13 (nesting depth added 3). 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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java"},"region":{"startLine":1826}}}],"partialFingerprints":{"codehealthFindingId/v1":"0668056b72e7fc24a15704f81c33b26d8f8e02cd8a4384dc871d677d9367ff78"}},{"ruleId":"D2","level":"warning","message":{"text":"PagerUtils.limitOracle (cognitive 32): PagerUtils.limitOracle has cognitive complexity 32 (threshold 15). Drivers by points: if/else 10 (28 pts), boolean chains 4 (nesting depth added 18). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/PagerUtils.java"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7c56d3db2259472b5c3ad0f34a4fccc3101f9480f6e3e377f18e35b67fa1578"}},{"ruleId":"D2","level":"warning","message":{"text":"WallVisitorUtils.check (cognitive 32): WallVisitorUtils.check has cognitive complexity 32 (threshold 15). Drivers by points: if/else 16 (26 pts), boolean chains 4, loops 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java"},"region":{"startLine":2660}}}],"partialFingerprints":{"codehealthFindingId/v1":"5258026eb7b6731b1241577beea59059ac86874ccc35005956270f6d32e06e20"}},{"ruleId":"D2","level":"warning","message":{"text":"DruidConnectionHolder.\u003Cinit\u003E (cognitive 31): DruidConnectionHolder.\u003Cinit\u003E has cognitive complexity 31 (threshold 15). Drivers by points: if/else 12 (19 pts), error handling 5 (9 pts), boolean chains 3 (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":"core/src/main/java/com/alibaba/druid/pool/DruidConnectionHolder.java"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"151085d6b2d740bb63bcfd5178871451c1cc62e1b579e4c70616e06582c78c18"}},{"ruleId":"D2","level":"warning","message":{"text":"DB2OutputVisitor.visit (cognitive 31): DB2OutputVisitor.visit has cognitive complexity 31 (threshold 15). Drivers by points: if/else 11 (15 pts), ternaries 6 (11 pts), boolean chains 5 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/db2/visitor/DB2OutputVisitor.java"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4d63103403e2c370b6ce778d65f90503b5ced1ef6a058bc7a32bc2b48c05fac"}},{"ruleId":"D2","level":"warning","message":{"text":"HiveExprParser.parseSelectItemRest (cognitive 31): HiveExprParser.parseSelectItemRest has cognitive complexity 31 (threshold 15). Drivers by points: if/else 14 (22 pts), boolean chains 9 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveExprParser.java"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"978e1b962dc8f63da8739bfe6a7989fa8564d43f65569dfa7d5a5bed60bc0a7d"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlStatementParser.parseFullTextAnalyzer (cognitive 31): MySqlStatementParser.parseFullTextAnalyzer has cognitive complexity 31 (threshold 15). Drivers by points: if/else 8 (20 pts), loops 3 (9 pts), boolean chains 2 (nesting depth added 18). 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"713a19689065d7f01c352a0789af8fa1227d1c13c91d57425f17fd9e43e446d4"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlOutputVisitor.visit (cognitive 31): MySqlOutputVisitor.visit has cognitive complexity 31 (threshold 15). Drivers by points: ternaries 8 (18 pts), if/else 9 (11 pts), boolean chains 2 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":5463}}}],"partialFingerprints":{"codehealthFindingId/v1":"49d6be36c3ae1f2389add030259854f978bff75240138b6216567dfd2d2ba9dc"}},{"ruleId":"D2","level":"warning","message":{"text":"OracleOutputVisitor.visit (cognitive 31): OracleOutputVisitor.visit has cognitive complexity 31 (threshold 15). Drivers by points: ternaries 8 (19 pts), if/else 7 (12 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":2441}}}],"partialFingerprints":{"codehealthFindingId/v1":"c63f44042ead53e6d7014fe35ca5188c31471ec5c9a9340129baf726be45253e"}},{"ruleId":"D2","level":"warning","message":{"text":"OracleSchemaStatVisitor.visit (cognitive 31): OracleSchemaStatVisitor.visit has cognitive complexity 31 (threshold 15). Drivers by points: if/else 8 (21 pts), loops 3 (10 pts) (nesting depth added 20). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleSchemaStatVisitor.java"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd6f6cdf46015f092b5c02a1c4b8e8a98f62027d9f63ed4a905bea3e69b02ce1"}},{"ruleId":"D2","level":"warning","message":{"text":"OscarOutputVisitor.visit (cognitive 31): OscarOutputVisitor.visit has cognitive complexity 31 (threshold 15). Drivers by points: ternaries 8 (19 pts), if/else 7 (12 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":1370}}}],"partialFingerprints":{"codehealthFindingId/v1":"87981ce5e813182d5919fe40357fa14a12a47e763de79e78ff655f202581817f"}},{"ruleId":"D2","level":"warning","message":{"text":"PGOutputVisitor.visit (cognitive 31): PGOutputVisitor.visit has cognitive complexity 31 (threshold 15). Drivers by points: ternaries 8 (19 pts), if/else 7 (12 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java"},"region":{"startLine":1747}}}],"partialFingerprints":{"codehealthFindingId/v1":"54d5cf8545ce7830438a2c48dff55620a067dd7e4def976e0ed16d615c7c50e3"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLServerOutputVisitor.visit (cognitive 31): SQLServerOutputVisitor.visit has cognitive complexity 31 (threshold 15). Drivers by points: ternaries 10 (18 pts), if/else 11 (13 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":"core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/visitor/SQLServerOutputVisitor.java"},"region":{"startLine":656}}}],"partialFingerprints":{"codehealthFindingId/v1":"32f7cb796b1d903d2b3a0af4969332f6ee4c4dd0979532cd13b33f8b47fbc288"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLExprParser.primary (cognitive 31): SQLExprParser.primary has cognitive complexity 31 (threshold 15). Drivers by points: if/else 16 (25 pts), boolean chains 3, match/switch 2 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"222091c5f5d11a9898849406c6b8d4e7e2eeec276d12732649a433a6d2dc5e47"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.printDataType (cognitive 31): SQLASTOutputVisitor.printDataType has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (15 pts), ternaries 4 (14 pts), loops 1 (2 pts) (nesting depth added 17). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":1325}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc2bafdb3a370ce6d1cc846d2bb773f39fc66ae3f817c7a8660f848290d3a777"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.printParameter (cognitive 31): SQLASTOutputVisitor.printParameter has cognitive complexity 31 (threshold 15). Drivers by points: if/else 19, ternaries 3 (8 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 6). 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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":3298}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cb09df55e7a17fd2470ffcbecd249017f12f1fe76ac442b1167ff736ed135c7"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 31): SQLASTOutputVisitor.visit has cognitive complexity 31 (threshold 15). Drivers by points: ternaries 9 (17 pts), if/else 12, loops 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":3406}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fa1e898bb14b6e2278767e85ce93c364cf18a837cb3f8dd88acbbcdfb6c5df3"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visitorBinaryRight (cognitive 31): SQLASTOutputVisitor.visitorBinaryRight has cognitive complexity 31 (threshold 15). Drivers by points: if/else 15 (26 pts), boolean chains 5 (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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":878}}}],"partialFingerprints":{"codehealthFindingId/v1":"befd52d966a9fca812d550df66d143819da4f9a9f21d08ad2e9ad1f1790655d9"}},{"ruleId":"D2","level":"warning","message":{"text":"DruidStatService.service (cognitive 31): DruidStatService.service has cognitive complexity 31 (threshold 15). Drivers by points: if/else 19, boolean chains 6, ternaries 3 (6 pts) (nesting depth added 3). 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":"core/src/main/java/com/alibaba/druid/stat/DruidStatService.java"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"eae2ece654575284070e056965fc0f72f913f589b39256ffa86ca852ae7c67ef"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlUtils.isNumber (cognitive 31): MySqlUtils.isNumber has cognitive complexity 31 (threshold 15). Drivers by points: if/else 12 (24 pts), boolean chains 6, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/util/MySqlUtils.java"},"region":{"startLine":820}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d42e456602e3c4b7788d50d2b8952f8b107bf8d7e50707b05817a7afdf6ee19"}},{"ruleId":"D2","level":"warning","message":{"text":"WallFilter.wallUpdateCheck (cognitive 31): WallFilter.wallUpdateCheck has cognitive complexity 31 (threshold 15). Drivers by points: if/else 12 (26 pts), loops 2 (5 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/wall/WallFilter.java"},"region":{"startLine":749}}}],"partialFingerprints":{"codehealthFindingId/v1":"93fa1fef9a7cdc0aa20da38d9af231ee88e5b8d2f0fab520e97925c82e50cc99"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLSelectQueryBlock.resolveColum (cognitive 30): SQLSelectQueryBlock.resolveColum has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (25 pts), loops 1 (4 pts), boolean chains 1 (nesting depth added 18). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java"},"region":{"startLine":1427}}}],"partialFingerprints":{"codehealthFindingId/v1":"fafacbfa4f38c499045bf850f341123f9b2d54c8ba149669747439bfa96448a4"}},{"ruleId":"D2","level":"warning","message":{"text":"GaussDbOutputVisitor.visit (cognitive 30): GaussDbOutputVisitor.visit has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (16 pts), ternaries 6 (10 pts), loops 2 (4 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":"core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/visitor/GaussDbOutputVisitor.java"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"05a33b5b06028fede056a71771f5c8d1da6f541882cb5a88e5386b134345424f"}},{"ruleId":"D2","level":"warning","message":{"text":"HiveOutputVisitor.visit (cognitive 30): HiveOutputVisitor.visit has cognitive complexity 30 (threshold 15). Drivers by points: ternaries 12 (21 pts), if/else 9 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/visitor/HiveOutputVisitor.java"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a8640e2c708ad10cb96f72c99dfc38cbd5b76a94d2e2b35d7bf0f607e4baaca"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlSelectIntoParser.query (cognitive 30): MySqlSelectIntoParser.query has cognitive complexity 30 (threshold 15). Drivers by points: if/else 19 (30 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectIntoParser.java"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd50aac5997b5771a8192a6fd99c38daec7ea47fb0e93dcd5091855ae2dc066e"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlOutputVisitor.visit (cognitive 30): MySqlOutputVisitor.visit has cognitive complexity 30 (threshold 15). Drivers by points: ternaries 7 (19 pts), if/else 7 (11 pts) (nesting depth added 16). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":1986}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bcbeb66796cecdeb804ffd33b3864b556eae0a0a6691b59020c6b766824c3eb"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlOutputVisitor.visit (cognitive 30): MySqlOutputVisitor.visit has cognitive complexity 30 (threshold 15). Drivers by points: ternaries 10 (18 pts), if/else 8 (10 pts), loops 1 (2 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":5414}}}],"partialFingerprints":{"codehealthFindingId/v1":"2708efe39b414db74e54ba003430ad1dc56893312bf99efe28e2f3474bed7bf0"}},{"ruleId":"D2","level":"warning","message":{"text":"OdpsOutputVisitor.visit (cognitive 30): OdpsOutputVisitor.visit has cognitive complexity 30 (threshold 15). Drivers by points: ternaries 6 (16 pts), if/else 8 (12 pts), loops 1 (2 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":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/visitor/OdpsOutputVisitor.java"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"86a6197faa12c295d449c0397e1ae96df95862f8a72014cc2656b00cf2683930"}},{"ruleId":"D2","level":"warning","message":{"text":"OracleExprParser.parseSegmentAttributes (cognitive 30): OracleExprParser.parseSegmentAttributes has cognitive complexity 30 (threshold 15). Drivers by points: if/else 20 (26 pts), boolean chains 3, loops 1 (nesting depth added 6). 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, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java"},"region":{"startLine":1927}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fc56ae017649ebe2b4f95a3bae039aecd4dfddd137a62561668e36587b9c2d9"}},{"ruleId":"D2","level":"warning","message":{"text":"OracleExprParser.primary (cognitive 30): OracleExprParser.primary has cognitive complexity 30 (threshold 15). Drivers by points: if/else 12 (24 pts), match/switch 3 (5 pts), boolean chains 1 (nesting depth added 14). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. 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. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"853d35675828e4cde798157100b49829b8bd7602f2dfc998f1589f6dfb0bffa6"}},{"ruleId":"D2","level":"warning","message":{"text":"OracleStatementParser.parseCreateType (cognitive 30): OracleStatementParser.parseCreateType has cognitive complexity 30 (threshold 15). Drivers by points: if/else 22 (28 pts), boolean chains 1, loops 1 (nesting depth added 6). 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, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java"},"region":{"startLine":3061}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf0d8d90d79d05dc2e9552d8a6d49db5529b4e667f539aa73c90476be8d4b8e3"}},{"ruleId":"D2","level":"warning","message":{"text":"OracleRowNumToLimit.visit (cognitive 30): OracleRowNumToLimit.visit has cognitive complexity 30 (threshold 15). Drivers by points: if/else 14 (22 pts), boolean chains 4, loops 2 (4 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleRowNumToLimit.java"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"03c08a1ae72a1257ee1c9a009548b25254eac4b379c9a554b8220fefbbc19350"}},{"ruleId":"D2","level":"warning","message":{"text":"SnowflakeSelectParser.parseTableSourceRest (cognitive 30): SnowflakeSelectParser.parseTableSourceRest has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (28 pts), boolean chains 2 (nesting depth added 17). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeSelectParser.java"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"af98e3a2110e458b611b13272cba3ca6552ffed420a00bd09e32bbe45fb496fc"}},{"ruleId":"D2","level":"warning","message":{"text":"Lexer.scanMultiLineComment (cognitive 30): Lexer.scanMultiLineComment has cognitive complexity 30 (threshold 15). Drivers by points: if/else 9 (20 pts), boolean chains 6, loops 2 (4 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java"},"region":{"startLine":2476}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2fbdff136be73ed8a6664005143a0f1ce1480c3fcc5a1df47f70760b54b8036"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLParser.tableAliasFromOptionalKeyword (cognitive 30): SQLParser.tableAliasFromOptionalKeyword has cognitive complexity 30 (threshold 15). Drivers by points: if/else 8 (17 pts), match/switch 5 (11 pts), boolean chains 2 (nesting depth added 15). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. 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. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLParser.java"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec9835f15316cb1bc9a5b27f4a9477aca9a6424e8c7de1b59aa74e86462edf23"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLStatementParser.parseDropTable (cognitive 30): SQLStatementParser.parseDropTable has cognitive complexity 30 (threshold 15). Drivers by points: if/else 17 (25 pts), boolean chains 3, loops 2 (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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":3311}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2c739994e9729f195ddc85d2804d66fa1e0047fc7e23dcc68d2c6ef7ca103b3"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.printSelectList (cognitive 30): SQLASTOutputVisitor.printSelectList has cognitive complexity 30 (threshold 15). Drivers by points: if/else 12 (24 pts), boolean chains 5, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"d90a75c36bb59d139c49dd7a884e61a41cabcad1d6c46d779ed1b476b7993d97"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 30): SQLASTOutputVisitor.visit has cognitive complexity 30 (threshold 15). Drivers by points: ternaries 9 (18 pts), if/else 10, loops 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":6814}}}],"partialFingerprints":{"codehealthFindingId/v1":"de569347bb5dce801312f68caf6a23403452652404faacdb084116e9eac34c33"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLEvalVisitorUtils.sub (cognitive 30): SQLEvalVisitorUtils.sub has cognitive complexity 30 (threshold 15). Drivers by points: if/else 17 (19 pts), boolean chains 11 (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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java"},"region":{"startLine":1969}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b3fe53142f163532a0f3d1e76c86c8143551f4e1a119840d2189be20929e6b3"}},{"ruleId":"D2","level":"warning","message":{"text":"WallVisitorUtils.checkConditionForMultiTenant (cognitive 30): WallVisitorUtils.checkConditionForMultiTenant has cognitive complexity 30 (threshold 15). Drivers by points: if/else 20 (29 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"643f81ae4da9d88315a9aa6f66dc17089922c835b5c1fb60447d52c669b4fdae"}},{"ruleId":"D2","level":"warning","message":{"text":"DruidDataSource.toString (cognitive 29): DruidDataSource.toString has cognitive complexity 29 (threshold 15). Drivers by points: if/else 6 (18 pts), loops 3 (7 pts), error handling 1 (4 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/pool/DruidDataSource.java"},"region":{"startLine":3354}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5e16bb90f2a052c19b4f1e0596d5f498a8eae7f377546fdd179638dae97f817"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLColumnDefinition.clone (cognitive 29): SQLColumnDefinition.clone has cognitive complexity 29 (threshold 15). Drivers by points: if/else 20 (24 pts), loops 3 (5 pts) (nesting depth added 6). 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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLColumnDefinition.java"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"29bf4f04cc0a4893b3bf596f9d1272a8a5f6797647e79060e58ce2df6eb702df"}},{"ruleId":"D2","level":"warning","message":{"text":"BigQueryOutputVisitor.visit (cognitive 29): BigQueryOutputVisitor.visit has cognitive complexity 29 (threshold 15). Drivers by points: if/else 13 (17 pts), ternaries 6 (11 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryOutputVisitor.java"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b75fef236daa03ede6b2fd79e75ad74ff31594facf12899a75188e2af30225b"}},{"ruleId":"D2","level":"warning","message":{"text":"CKOutputVisitor.visit (cognitive 29): CKOutputVisitor.visit has cognitive complexity 29 (threshold 15). Drivers by points: ternaries 10 (19 pts), if/else 10 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/visitor/CKOutputVisitor.java"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ef741a4e8902a8c3d33ace94fe9c9624d8ee543b1ab110bd064bce8096e35c7"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlUpdateStatement.accept0 (cognitive 29): MySqlUpdateStatement.accept0 has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (23 pts), loops 2 (6 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlUpdateStatement.java"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"42e2f9ee78adf2f98ab2b9e2da9e5df40cf8971e71dc8b2eb47ee51bddfc7066"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlOutputVisitor.visit (cognitive 29): MySqlOutputVisitor.visit has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (13 pts), ternaries 7 (13 pts), boolean chains 2, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":661}}}],"partialFingerprints":{"codehealthFindingId/v1":"79380a5417ea387861097ff94147823c975b077dca310893f8d8c64f556fa39e"}},{"ruleId":"D2","level":"warning","message":{"text":"OracleLexer.scanVariable (cognitive 29): OracleLexer.scanVariable has cognitive complexity 29 (threshold 15). Drivers by points: if/else 14 (20 pts), boolean chains 5, loops 2 (4 pts) (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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleLexer.java"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a6dfbde22be44f3621c5c14f89ae103387b8c609295575ed68abd0f99f4e27e"}},{"ruleId":"D2","level":"warning","message":{"text":"Lexer.scanLineArgument (cognitive 29): Lexer.scanLineArgument has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (19 pts), boolean chains 5, loops 3 (5 pts) (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":"core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java"},"region":{"startLine":2424}}}],"partialFingerprints":{"codehealthFindingId/v1":"8623f4b64cbb3634edc02c8d82bac5984baa427ccc510b9005b4d2af7d615e7c"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLExprParser.parseAssignItem (cognitive 29): SQLExprParser.parseAssignItem has cognitive complexity 29 (threshold 15). Drivers by points: if/else 18 (21 pts), boolean chains 8 (nesting depth added 3). 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, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":5417}}}],"partialFingerprints":{"codehealthFindingId/v1":"e83a7f428ed9c825185b1a40561304e452404630dee5840d7fe92ce62b91047c"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLExprParser.parseQueryPlanHint (cognitive 29): SQLExprParser.parseQueryPlanHint has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (25 pts), boolean chains 4 (nesting depth added 15). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":3481}}}],"partialFingerprints":{"codehealthFindingId/v1":"635103bf52ba2eeeb2b7411b67a0a136cdedf4327a4776f7e6f88aec93c5e11d"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.printInsertColumns (cognitive 29): SQLASTOutputVisitor.printInsertColumns has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (26 pts), loops 1 (2 pts), boolean chains 1 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":3820}}}],"partialFingerprints":{"codehealthFindingId/v1":"96ee7f9e8aa06eb5242276dac0c623c520d3d9f6bb3c06c32f7589d32af390e5"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 29): SQLASTOutputVisitor.visit has cognitive complexity 29 (threshold 15). Drivers by points: ternaries 10 (19 pts), if/else 10 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":10884}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9f519b70675d551db994fa435908e0f3aa3810f58636b97e63d680882c98050"}},{"ruleId":"D2","level":"warning","message":{"text":"FilterManager.loadFilter (cognitive 28): FilterManager.loadFilter has cognitive complexity 28 (threshold 15). Drivers by points: error handling 6 (16 pts), if/else 6 (10 pts), loops 1 (2 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":"core/src/main/java/com/alibaba/druid/filter/FilterManager.java"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"64f0da58796c87c9531f8ce3285217c7b182ffc6887ff2be2c380a24163e122e"}},{"ruleId":"D2","level":"warning","message":{"text":"DruidDataSource.initExceptionSorter (cognitive 28): DruidDataSource.initExceptionSorter has cognitive complexity 28 (threshold 15). Drivers by points: if/else 17 (23 pts), boolean chains 4, loops 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/pool/DruidDataSource.java"},"region":{"startLine":1279}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdcec75baea1765b57b64cf999468df775fe009c38910a05f7b393e0d79ee6f3"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLCreateTableStatement.findIndex (cognitive 28): SQLCreateTableStatement.findIndex has cognitive complexity 28 (threshold 15). Drivers by points: if/else 6 (21 pts), loops 3 (7 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateTableStatement.java"},"region":{"startLine":645}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6a3e0e3ea77537d916c81d3d9b11de8b23583264e1b521a45736ce89373c5d6"}},{"ruleId":"D2","level":"warning","message":{"text":"BigQueryStatementParser.parseCreateFunction (cognitive 28): BigQueryStatementParser.parseCreateFunction has cognitive complexity 28 (threshold 15). Drivers by points: if/else 13 (24 pts), boolean chains 3, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryStatementParser.java"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"edfdb47770e55bbeddc693e006984a08840d152a595ee9eda73ec08ed14c8a60"}},{"ruleId":"D2","level":"warning","message":{"text":"HiveOutputVisitor.visit (cognitive 28): HiveOutputVisitor.visit has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (16 pts), ternaries 5 (10 pts), loops 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/visitor/HiveOutputVisitor.java"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cf9c12f70d22067b9106c900a812dd6ab5110db069bee531f6afa248ae63e81"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlExprParser.primaryIdentifierRest (cognitive 28): MySqlExprParser.primaryIdentifierRest has cognitive complexity 28 (threshold 15). Drivers by points: if/else 14 (16 pts), boolean chains 12 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe6f5ee15d2ffab0f4b902e6b716b76f34e8e3ed5dc375769029971f8a32865e"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlStatementParser.alterDatabase (cognitive 28): MySqlStatementParser.alterDatabase has cognitive complexity 28 (threshold 15). Drivers by points: if/else 16 (25 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":8052}}}],"partialFingerprints":{"codehealthFindingId/v1":"51bbb153b1035b496cf3d2249744b0fb9c3f51a9a8ef28ebdbbb27577cb25675"}},{"ruleId":"D2","level":"warning","message":{"text":"OscarLexer.scanString (cognitive 28): OscarLexer.scanString has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (24 pts), match/switch 1 (3 pts), loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarLexer.java"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"54dd211baaa503e276e6b1d108981a1dcf21386d227faba65c41e2d9876c7ad2"}},{"ruleId":"D2","level":"warning","message":{"text":"PGLexer.scanString (cognitive 28): PGLexer.scanString has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (24 pts), match/switch 1 (3 pts), loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGLexer.java"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab39845d750ccf580899ef387dc708bfb907b9bfba607b2674c0f49d304485f2"}},{"ruleId":"D2","level":"warning","message":{"text":"RedshiftOutputVisitor.printInto (cognitive 28): RedshiftOutputVisitor.printInto has cognitive complexity 28 (threshold 15). Drivers by points: ternaries 4 (15 pts), if/else 6 (13 pts) (nesting depth added 18). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/redshift/visitor/RedshiftOutputVisitor.java"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa8390a5b189afa641d66e30c8202790b6c2d9bddf396f905faaf5207c4a005d"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLExprParser.methodRest (cognitive 28): SQLExprParser.methodRest has cognitive complexity 28 (threshold 15). Drivers by points: if/else 17 (28 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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":2139}}}],"partialFingerprints":{"codehealthFindingId/v1":"080970b0178e9a8c50e9a90e1d4c7f713286ac2147bfc199487de5cf9b188007"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLSelectParser.parseSelectList (cognitive 28): SQLSelectParser.parseSelectList has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (21 pts), boolean chains 6, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java"},"region":{"startLine":1143}}}],"partialFingerprints":{"codehealthFindingId/v1":"c761f31d7bca989cc7c1917c444c8c8daa949ce8a3c000e11078d21d7b1257e1"}},{"ruleId":"D2","level":"warning","message":{"text":"SchemaResolveVisitorFactory.resolve (cognitive 28): SchemaResolveVisitorFactory.resolve has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (23 pts), error handling 1 (3 pts), loops 1 (2 pts) (nesting depth added 16). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java"},"region":{"startLine":1805}}}],"partialFingerprints":{"codehealthFindingId/v1":"719ae8d7578c8bddbf92e075d7d4b27f27ea523fee61977b1d53d256643d92db"}},{"ruleId":"D2","level":"warning","message":{"text":"WebStatFilter.init (cognitive 28): WebStatFilter.init has cognitive complexity 28 (threshold 15). Drivers by points: if/else 17 (22 pts), boolean chains 4, error handling 1 (2 pts) (nesting depth added 6). 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, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/support/http/WebStatFilter.java"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"64fee1b1014186a0143f894fab02fa33ccb1d33c7be49e38bef1b5f6e29c2723"}},{"ruleId":"D2","level":"warning","message":{"text":"WebStatFilter.init (cognitive 28): WebStatFilter.init has cognitive complexity 28 (threshold 15). Drivers by points: if/else 17 (22 pts), boolean chains 4, error handling 1 (2 pts) (nesting depth added 6). 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, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/support/jakarta/WebStatFilter.java"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"423e0475f12bf6611bd5f1c4db28360acb26a17153da982acee798842aea5f36"}},{"ruleId":"D2","level":"warning","message":{"text":"WallVisitorUtils.isSimpleConstExpr (cognitive 28): WallVisitorUtils.isSimpleConstExpr has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (24 pts), boolean chains 3, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"62dc0af8fe84d341d0bb239f12aa1cd032f0da084413fe6d9408c00d5c334247"}},{"ruleId":"D2","level":"warning","message":{"text":"CKCreateTableParser.parseCreateTableRest (cognitive 27): CKCreateTableParser.parseCreateTableRest has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 6, loops 2 (3 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/parser/CKCreateTableParser.java"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"7381ee1a03a2b0566069b6a1be239b5c1c0366150aa2b29ddaca028b5641e052"}},{"ruleId":"D2","level":"warning","message":{"text":"DorisOutputVisitor.visit (cognitive 27): DorisOutputVisitor.visit has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (12 pts), ternaries 5 (12 pts), boolean chains 3 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/doris/visitor/DorisOutputVisitor.java"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cb6fdf2c106582e1199d15970e50ab702394b26081da11899f87e3ad1804fa7"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlStatementParser.parseAnalyze (cognitive 27): MySqlStatementParser.parseAnalyze has cognitive complexity 27 (threshold 15). Drivers by points: if/else 14 (21 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":931}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fbb98addeb49d1618b1de30d49778f98460dcb791f88fd28acd3d87986102fd"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlOutputVisitor.visit (cognitive 27): MySqlOutputVisitor.visit has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (16 pts), ternaries 3 (6 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":4146}}}],"partialFingerprints":{"codehealthFindingId/v1":"b400973ba6149f98b43ad62d64aba7ecacc99f9ce95d3b88712b3a4eda419314"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlOutputVisitor.visit (cognitive 27): MySqlOutputVisitor.visit has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 11 (19 pts), if/else 8 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":1716}}}],"partialFingerprints":{"codehealthFindingId/v1":"9272dcfdb9a40c32c5744bd50492a5ae28e0f9a318b759cd6d519fe47768bad4"}},{"ruleId":"D2","level":"warning","message":{"text":"OracleOutputVisitor.printConstraintState (cognitive 27): OracleOutputVisitor.printConstraintState has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 6 (16 pts), if/else 9 (11 pts) (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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":1575}}}],"partialFingerprints":{"codehealthFindingId/v1":"84d9bed83950c3ba3a574bb7c19757934a2a4618faec34b7558ca8c1ef3c07f3"}},{"ruleId":"D2","level":"warning","message":{"text":"OracleOutputVisitor.visit (cognitive 27): OracleOutputVisitor.visit has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 9 (18 pts), if/else 7 (9 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":2132}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aae301ab863393d279966f8e327f1c91c4f32579e5bf3827966420c5779dbf7"}},{"ruleId":"D2","level":"warning","message":{"text":"PGSQLStatementParser.parseSet (cognitive 27): PGSQLStatementParser.parseSet has cognitive complexity 27 (threshold 15). Drivers by points: if/else 15 (20 pts), loops 2 (4 pts), boolean chains 3 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java"},"region":{"startLine":1034}}}],"partialFingerprints":{"codehealthFindingId/v1":"3295aef2724bf6ced47c7e94d51b246e5c326e24857295d164c6caaa3bf423a0"}},{"ruleId":"D2","level":"warning","message":{"text":"PGOutputVisitor.visit (cognitive 27): PGOutputVisitor.visit has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 8 (15 pts), if/else 8 (10 pts), loops 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"210abd110dad25d2d5d526c4c3a4325ea2f2ca12ec45ca5c40e236e20dd3cd1d"}},{"ruleId":"D2","level":"warning","message":{"text":"SparkExprParser.primary (cognitive 27): SparkExprParser.primary has cognitive complexity 27 (threshold 15). Drivers by points: if/else 13 (25 pts), boolean chains 1, match/switch 1 (nesting depth added 12). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. 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. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/spark/parser/SparkExprParser.java"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"adf9677757eb4ce9636345b9479b2af2f14f40808546641239a5245bcc9e8a85"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLServerOutputVisitor.visit (cognitive 27): SQLServerOutputVisitor.visit has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 6 (14 pts), if/else 6 (10 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/visitor/SQLServerOutputVisitor.java"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3e7f80f4bc913be5929ad0ca3de98fb6e32a208b5fd4572a6296f1a48630b85"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLStatementParser.parseHiveInsert (cognitive 27): SQLStatementParser.parseHiveInsert has cognitive complexity 27 (threshold 15). Drivers by points: if/else 14 (22 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":7049}}}],"partialFingerprints":{"codehealthFindingId/v1":"69dab4b872d07e34fbc23650685a298c0cc687d600a3bf39e106ae8ae16c5728"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.printOracleSegmentAttributes (cognitive 27): SQLASTOutputVisitor.printOracleSegmentAttributes has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 8 (16 pts), if/else 10 (11 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":9083}}}],"partialFingerprints":{"codehealthFindingId/v1":"30156fb402394ab8e114c373b56485781911d24c588fa5db41d858525c839934"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 27): SQLASTOutputVisitor.visit has cognitive complexity 27 (threshold 15). Drivers by points: if/else 15 (23 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":2280}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb0de168025da4dcdb786c6b19a7151783f2d43bfdbdf191395880d999f24eb3"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 27): SQLASTOutputVisitor.visit has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 8 (13 pts), if/else 8 (10 pts), boolean chains 2, loops 1 (2 pts) (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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":5516}}}],"partialFingerprints":{"codehealthFindingId/v1":"93297776fb77b83e8569f8ccac08cdc472ef13ddbdf39b448fe75b58710ea86a"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 27): SQLASTOutputVisitor.visit has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 7 (18 pts), if/else 7 (9 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":11922}}}],"partialFingerprints":{"codehealthFindingId/v1":"251dc5b1d96e503ac67220f76ec2a7005431547b01a3862ff217ec741c29c5da"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 27): SQLASTOutputVisitor.visit has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 8 (16 pts), if/else 9 (10 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":11105}}}],"partialFingerprints":{"codehealthFindingId/v1":"39a6632dd542c0b4f8cc550f5e359dec4978f74fdc944144e514b062230884b1"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLEvalVisitorUtils.like (cognitive 27): SQLEvalVisitorUtils.like has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (22 pts), boolean chains 4, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java"},"region":{"startLine":2096}}}],"partialFingerprints":{"codehealthFindingId/v1":"c23da09115481f4f26ca5531b7948c506834a218e9c05f2b78895e787d2a4b0f"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlWallVisitor.visit (cognitive 27): MySqlWallVisitor.visit has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (23 pts), boolean chains 4 (nesting depth added 16). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/wall/spi/MySqlWallVisitor.java"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0fcf3f75f0ba33e43475af27e3617a5c04fda8e6ac1989510799c8900964b68"}},{"ruleId":"D2","level":"warning","message":{"text":"ProxoolDataSource.populatePropertiesFromReference (cognitive 27): ProxoolDataSource.populatePropertiesFromReference has cognitive complexity 27 (threshold 15). Drivers by points: if/else 25 (26 pts), loops 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. 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":"druid-wrapper/src/main/java/org/logicalcobwebs/proxool/ProxoolDataSource.java"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"e785f3b9143e3ec33f59f4ef052714fa29431e3b7851b14af8f4b2142a6f99da"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLDeleteStatement.removeCondition (cognitive 26): SQLDeleteStatement.removeCondition has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (20 pts), loops 2 (5 pts), boolean chains 1 (nesting depth added 14). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDeleteStatement.java"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f3a263331a8b0e67d4e62eacf818024611c859cdb0c934be2c5a73de7c63886"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLSelectItem.match (cognitive 26): SQLSelectItem.match has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (19 pts), loops 1 (4 pts), boolean chains 3 (nesting depth added 13). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectItem.java"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba519b6af12491d97abfa3ef21217cc27b632bdd62435e8f800fe9d593a88b5e"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLSelectQueryBlock.removeCondition (cognitive 26): SQLSelectQueryBlock.removeCondition has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (20 pts), loops 2 (5 pts), boolean chains 1 (nesting depth added 14). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java"},"region":{"startLine":1496}}}],"partialFingerprints":{"codehealthFindingId/v1":"c27b2d3632a3365069d1e3348e886327b51a7bfa0f04c1d5a3e2c1577bf6e6de"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLUpdateStatement.removeCondition (cognitive 26): SQLUpdateStatement.removeCondition has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (20 pts), loops 2 (5 pts), boolean chains 1 (nesting depth added 14). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLUpdateStatement.java"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"92701e3d8b02ddf374eaf58ad8abd526a9978681a0fb45f65e4d0c4523f49564"}},{"ruleId":"D2","level":"warning","message":{"text":"DorisCreateTableParser.parsePartitionBy (cognitive 26): DorisCreateTableParser.parsePartitionBy has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (20 pts), loops 2 (5 pts), boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/doris/parser/DorisCreateTableParser.java"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"62d7894e875f981e0725a790c618909191d339f682ceb83a3a3b980149e5ee62"}},{"ruleId":"D2","level":"warning","message":{"text":"GaussDbCreateTableParser.parseCreateTableRest (cognitive 26): GaussDbCreateTableParser.parseCreateTableRest has cognitive complexity 26 (threshold 15). Drivers by points: if/else 16 (24 pts), boolean chains 2 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/parser/GaussDbCreateTableParser.java"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef2ef62e6a72ca4e021bfc21b5d5ec0eca642bd5fe0f19b961e33854d6c3990f"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlSelectQueryBlock.equals (cognitive 26): MySqlSelectQueryBlock.equals has cognitive complexity 26 (threshold 15). Drivers by points: if/else 15, ternaries 5 (10 pts), boolean chains 1 (nesting depth added 5). 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlSelectQueryBlock.java"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"540f608e465a2ba3bcfe87e4fe121afe56ae6a9b2d5918691c1e4aff1d21cd42"}},{"ruleId":"D2","level":"warning","message":{"text":"OdpsOutputVisitor.visit (cognitive 26): OdpsOutputVisitor.visit has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 7 (14 pts), if/else 9 (12 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":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/visitor/OdpsOutputVisitor.java"},"region":{"startLine":701}}}],"partialFingerprints":{"codehealthFindingId/v1":"36e09a3824e256c4e66d5a645e99921a9757d01e84c68a006de1b16a5ddf0bf6"}},{"ruleId":"D2","level":"warning","message":{"text":"OracleExprParser.parseConstraint (cognitive 26): OracleExprParser.parseConstraint has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (25 pts), loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java"},"region":{"startLine":1687}}}],"partialFingerprints":{"codehealthFindingId/v1":"15ab2e9e3df3efbc743abc5823bb4da87e83c61d336baefe6ecae8780863ff9c"}},{"ruleId":"D2","level":"warning","message":{"text":"OracleOutputVisitor.visit (cognitive 26): OracleOutputVisitor.visit has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (18 pts), ternaries 3 (8 pts) (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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa74557dad5535e9c649f179b3c15e3683b16fac9fb08778ed188f53ada713d5"}},{"ruleId":"D2","level":"warning","message":{"text":"PGCreateTableParser.parsePartitionBy (cognitive 26): PGCreateTableParser.parsePartitionBy has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (19 pts), loops 2 (6 pts), boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGCreateTableParser.java"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a44d0b99a9eb1640f4a39bff7e5a6dbbef3c2af2ba8be1b30022a2ba00337ab"}},{"ruleId":"D2","level":"warning","message":{"text":"PGExprParser.primary (cognitive 26): PGExprParser.primary has cognitive complexity 26 (threshold 15). Drivers by points: if/else 13 (21 pts), loops 1 (2 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGExprParser.java"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea352034b3c31dea30c717279f714c19dee43097040fd0335f7787583671543c"}},{"ruleId":"D2","level":"warning","message":{"text":"SnowflakeStatementParser.parseCopyIntoOptions (cognitive 26): SnowflakeStatementParser.parseCopyIntoOptions has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (22 pts), loops 2 (4 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeStatementParser.java"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5ac2af48b5d4256a8b569383ee951378b225941f689a781c0780ad9651c03de"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLServerStatementParser.parseCreateFunctionBody (cognitive 26): SQLServerStatementParser.parseCreateFunctionBody has cognitive complexity 26 (threshold 15). Drivers by points: if/else 14 (21 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerStatementParser.java"},"region":{"startLine":884}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b7da1d6f27d6b66945faaa89017d2e6f6ec1352f3ea658fabc814c1148a7c15"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLStatementParser.parserParameters (cognitive 26): SQLStatementParser.parserParameters has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (21 pts), boolean chains 4, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":3529}}}],"partialFingerprints":{"codehealthFindingId/v1":"c35a4aa5d6516d1a1279d3004224a40c5fea033d1a5b401a7a79c15167a8b760"}},{"ruleId":"D2","level":"warning","message":{"text":"SchemaRepository.findTable (cognitive 26): SchemaRepository.findTable has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (23 pts), loops 1 (3 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (SchemaRepository.findView) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/repository/SchemaRepository.java"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"3883b905c2e1194453da8811c23f388e9b7f13b292ceac939f0c8bfc1f29717a"}},{"ruleId":"D2","level":"warning","message":{"text":"SchemaRepository.findView (cognitive 26): SchemaRepository.findView has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (23 pts), loops 1 (3 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (SchemaRepository.findTable) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/repository/SchemaRepository.java"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"e56d7173577f6dbe3e9843e4665d8f34cc2234fac171e023c4f86535127f08f1"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 26): SQLASTOutputVisitor.visit has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 7 (14 pts), if/else 7 (12 pts) (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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":10836}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbe4d6eaed1d99abb12e659af0102e0986aebf50ee3490b28d7fd3065e6bb644"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 26): SQLASTOutputVisitor.visit has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (16 pts), ternaries 5 (9 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":2058}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4e1f0dcf937be64df953d7db685469da5ed15d5cc95c54578ac8ed485f67e96"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLEvalVisitorUtils.gt (cognitive 26): SQLEvalVisitorUtils.gt has cognitive complexity 26 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 10 (nesting depth added 3). 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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java"},"region":{"startLine":1690}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc3b5bd1662329a5207ef27b261c6f03acde421c3c1753c0ce21bca5b1ed1d6a"}},{"ruleId":"D2","level":"warning","message":{"text":"PagerUtils.getLimit (cognitive 26): PagerUtils.getLimit has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (22 pts), ternaries 1 (4 pts) (nesting depth added 17). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/PagerUtils.java"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"75085b8de26b0bd54eef796ae007f00280d67ef3556ec115290fd4934eb706e8"}},{"ruleId":"D2","level":"warning","message":{"text":"JSONWriter.writeObject (cognitive 26): JSONWriter.writeObject has cognitive complexity 26 (threshold 15). Drivers by points: if/else 18 (22 pts), loops 2 (4 pts) (nesting depth added 6). 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":"core/src/main/java/com/alibaba/druid/support/json/JSONWriter.java"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dda1acf33d3e2939a02dae76d89e26c9e0b5ec59bd12f07a9862060e4fdfccc"}},{"ruleId":"D2","level":"warning","message":{"text":"WallVisitorUtils.checkInsertForMultiTenant (cognitive 26): WallVisitorUtils.checkInsertForMultiTenant has cognitive complexity 26 (threshold 15). Drivers by points: if/else 15 (18 pts), boolean chains 4, loops 2 (4 pts) (nesting depth added 5). 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, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef5a334e9e51560c67fa0fa7b759f91d7fba3dc461f4f07e0c92d0166e3b8663"}},{"ruleId":"D2","level":"warning","message":{"text":"BlinkCreateTableParser.parseCreateTable (cognitive 25): BlinkCreateTableParser.parseCreateTable has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 5, match/switch 1 (2 pts), loops 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/blink/parser/BlinkCreateTableParser.java"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"87e2d4d867947b49079440c729a6375353e619109a11fd330daae2f5c1755139"}},{"ruleId":"D2","level":"warning","message":{"text":"GaussDbExprParser.parsePartitionValues (cognitive 25): GaussDbExprParser.parsePartitionValues has cognitive complexity 25 (threshold 15). Drivers by points: if/else 16 (25 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/parser/GaussDbExprParser.java"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"205955051fe49ae74d0cef2248d5f43dedf52acf9d8fbed493cc69c78474e1fc"}},{"ruleId":"D2","level":"warning","message":{"text":"HiveOutputVisitor.visit (cognitive 25): HiveOutputVisitor.visit has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 7 (16 pts), if/else 8 (9 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":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/visitor/HiveOutputVisitor.java"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"a68effde0d4d7d7c61a9929cf0d43b82248962be42ba862b09d5e363e4c5b368"}},{"ruleId":"D2","level":"warning","message":{"text":"ImpalaExprParser.parsePartition (cognitive 25): ImpalaExprParser.parsePartition has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (20 pts), loops 1 (3 pts), boolean chains 2 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/impala/parser/ImpalaExprParser.java"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0c684966257901bc9448ce49e482917a51f93c46faac93fe22a6517a7d2daa1"}},{"ruleId":"D2","level":"warning","message":{"text":"OracleExprParser.parsePartition (cognitive 25): OracleExprParser.parsePartition has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (19 pts), loops 3 (5 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java"},"region":{"startLine":1771}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ce024afac33788462803d31f2bfa4fc7e4363b4d8d4e965d224f53b7a69250c"}},{"ruleId":"D2","level":"warning","message":{"text":"OracleStatementParser.parseExecute (cognitive 25): OracleStatementParser.parseExecute has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (22 pts), loops 1 (3 pts) (nesting depth added 15). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java"},"region":{"startLine":858}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fb35643c3f69f67a6d7b12d7ae401e0f9be17ba1301e104a994492f5eca70bf"}},{"ruleId":"D2","level":"warning","message":{"text":"OracleOutputVisitor.visit (cognitive 25): OracleOutputVisitor.visit has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (13 pts), ternaries 5 (10 pts), loops 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":2938}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5ad629b665e3514708d8545ffce651d6b5c97a840f5cb008c10618b4807a062"}},{"ruleId":"D2","level":"warning","message":{"text":"OracleOutputVisitor.visit (cognitive 25): OracleOutputVisitor.visit has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (13 pts), ternaries 7 (12 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":2382}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fe6b562721698c449437f1160feeb0d379bf5ebafef7a8344fc3ca91081b172"}},{"ruleId":"D2","level":"warning","message":{"text":"OscarOutputVisitor.visit (cognitive 25): OscarOutputVisitor.visit has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (13 pts), ternaries 7 (12 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":1310}}}],"partialFingerprints":{"codehealthFindingId/v1":"a94b74f4025e9cd0200dc87e7da488c61fc617b5a3880e3f55dbc118348b48a4"}},{"ruleId":"D2","level":"warning","message":{"text":"PGOutputVisitor.visit (cognitive 25): PGOutputVisitor.visit has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (13 pts), ternaries 7 (12 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java"},"region":{"startLine":1687}}}],"partialFingerprints":{"codehealthFindingId/v1":"b98360d5701a868bebe8ee822f8000b242d3be4f70ce7558f138ae08e2301c5a"}},{"ruleId":"D2","level":"warning","message":{"text":"PGOutputVisitor.visit (cognitive 25): PGOutputVisitor.visit has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 9 (17 pts), if/else 8 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java"},"region":{"startLine":2950}}}],"partialFingerprints":{"codehealthFindingId/v1":"da2c10a76d62ec8e69778222b2d133c0a972226ff685cfcb8749bbeb148147ec"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLStatementParser.parseWithQuery (cognitive 25): SQLStatementParser.parseWithQuery has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 2 (4 pts), boolean chains 3, match/switch 1 (2 pts) (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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":5912}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a16e1e7b9bc712348ed2ddd64d3023e4c6484cebf987e2beaca7c3768ebdcdf"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 25): SQLASTOutputVisitor.visit has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (13 pts), ternaries 5 (10 pts), loops 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":8080}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a0da4b1ea2b899de1d57299a9aaaffc9e255f2f5a9927c4e1e7472427069a5a"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 25): SQLASTOutputVisitor.visit has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 3 (6 pts), ternaries 2 (4 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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":1734}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c82dc99c81cb79b14ff368c4ccf3b2459c9d259bc313e8ed9412ebc7da5e91b"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 25): SQLASTOutputVisitor.visit has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (14 pts), ternaries 3 (7 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":9815}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed686524073ab250646231f70640fdddc5edb5f0393c466f187ef9dfc6de9e10"}},{"ruleId":"D2","level":"warning","message":{"text":"JdbcStatManager.getSqlList (cognitive 25): JdbcStatManager.getSqlList has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 5 (8 pts), boolean chains 3 (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":"core/src/main/java/com/alibaba/druid/stat/JdbcStatManager.java"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"435356d30e74e6d8ea8e9ecdedce8c5d0b3f9b15cfd1abfed82ee4d18a9726a5"}},{"ruleId":"D2","level":"warning","message":{"text":"WebStatFilter.doFilter (cognitive 25): WebStatFilter.doFilter has cognitive complexity 25 (threshold 15). Drivers by points: if/else 16 (21 pts), error handling 4 (nesting depth added 5). 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, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/support/http/WebStatFilter.java"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"f12e9d99ede36fe2afcb6d4c7da3993fba96e7821019c9279a73de4cc025cdd9"}},{"ruleId":"D2","level":"warning","message":{"text":"WebStatFilter.doFilter (cognitive 25): WebStatFilter.doFilter has cognitive complexity 25 (threshold 15). Drivers by points: if/else 16 (21 pts), error handling 4 (nesting depth added 5). 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, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/support/jakarta/WebStatFilter.java"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac8d3187bfdddfaf6120d2cf8c5a8183e89b0f2f14ad4a090daa35437225a070"}},{"ruleId":"D2","level":"warning","message":{"text":"MonitorDaoJdbcImpl.load (cognitive 25): MonitorDaoJdbcImpl.load has cognitive complexity 25 (threshold 15). Drivers by points: if/else 14 (16 pts), loops 5 (6 pts), match/switch 1 (2 pts), error handling 1 (nesting depth added 4). 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, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/support/monitor/dao/MonitorDaoJdbcImpl.java"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"52657587deb2ae9b241de71d29d2e05d188ea8328854d8ea01d90c2ea463f78d"}},{"ruleId":"D2","level":"warning","message":{"text":"WallVisitorUtils.checkJoinSelectForMultiTenant (cognitive 25): WallVisitorUtils.checkJoinSelectForMultiTenant has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (22 pts), boolean chains 3 (nesting depth added 13). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5506c23c049a013a174c2eaa4146574dd56313ab3e98c4fa1f3db6d8e5ea640"}},{"ruleId":"D2","level":"warning","message":{"text":"WallVisitorUtils.isFirstSelectTableSource (cognitive 25): WallVisitorUtils.isFirstSelectTableSource has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (18 pts), boolean chains 4, loops 3 (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":"core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java"},"region":{"startLine":2001}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5ed0fa2176d53f9bacc87beb71c0bd07971eda3bf270fe99b3e4d8407c4c399"}},{"ruleId":"D2","level":"warning","message":{"text":"PreparedStatementProxyImpl.setObjectParameter (cognitive 24): PreparedStatementProxyImpl.setObjectParameter has cognitive complexity 24 (threshold 15). Drivers by points: if/else 23, boolean chains 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. 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":"core/src/main/java/com/alibaba/druid/proxy/jdbc/PreparedStatementProxyImpl.java"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2004e1e06eb4123e9cc62429dd03bf1cc57e777069e67e7e4776beb36ac2b34"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLCreateTableStatement.apply (cognitive 24): SQLCreateTableStatement.apply has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (19 pts), loops 3 (5 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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateTableStatement.java"},"region":{"startLine":1184}}}],"partialFingerprints":{"codehealthFindingId/v1":"d40037eaa0d3bd8efab0dbe76d37d970474ee7be37dcb17dfc8f21eed0de30c8"}},{"ruleId":"D2","level":"warning","message":{"text":"BigQueryCreateTableParser.parseCreateTableRest (cognitive 24): BigQueryCreateTableParser.parseCreateTableRest has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (20 pts), loops 2 (4 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryCreateTableParser.java"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6ad7b6a4d4f2c017a815c51e69424c4053ee38303e7bb7cf6019d055878dbfa"}},{"ruleId":"D2","level":"warning","message":{"text":"DmOutputVisitor.visit (cognitive 24): DmOutputVisitor.visit has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 7 (13 pts), if/else 7 (9 pts), loops 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmOutputVisitor.java"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"aff573e891f00bec026dd8f06cd614f83f7f286ef25d8a877162ca4f35c83f5e"}},{"ruleId":"D2","level":"warning","message":{"text":"ImpalaOutputVisitor.visit (cognitive 24): ImpalaOutputVisitor.visit has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 6 (14 pts), if/else 9 (10 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/impala/visitor/ImpalaOutputVisitor.java"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"75d8926df8d85dab42691d4dc28cd642b3022bdeed8715ff360ba0cccaa875a1"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlExprParser.parseSelectItemIdentifier (cognitive 24): MySqlExprParser.parseSelectItemIdentifier has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (19 pts), boolean chains 5 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java"},"region":{"startLine":846}}}],"partialFingerprints":{"codehealthFindingId/v1":"529b2fb7b426a4ae06a1569aa8d89f11d851bf4d3f9176086e9ca528d5240ebb"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlOutputVisitor.visit (cognitive 24): MySqlOutputVisitor.visit has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 6 (15 pts), if/else 7 (9 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":1573}}}],"partialFingerprints":{"codehealthFindingId/v1":"af5ac099d81761babbefce73d104b185f8b933dd0e89187f2f2cf48844d31baf"}},{"ruleId":"D2","level":"warning","message":{"text":"OdpsStatementParser.parseGrant (cognitive 24): OdpsStatementParser.parseGrant has cognitive complexity 24 (threshold 15). Drivers by points: if/else 19 (24 pts) (nesting depth added 5). 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, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsStatementParser.java"},"region":{"startLine":1340}}}],"partialFingerprints":{"codehealthFindingId/v1":"d95c8ea2119dfdefde6ae9f80d9578ec93171adf330f432dd14541a71348c924"}},{"ruleId":"D2","level":"warning","message":{"text":"OracleExprParser.parseStorage (cognitive 24): OracleExprParser.parseStorage has cognitive complexity 24 (threshold 15). Drivers by points: if/else 18 (23 pts), loops 1 (nesting depth added 5). 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, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java"},"region":{"startLine":1586}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f796932424e3f37692509768111407cbb47a615cc739559540e5eb8022297ec"}},{"ruleId":"D2","level":"warning","message":{"text":"OracleExprParser.relationalRest (cognitive 24): OracleExprParser.relationalRest has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (21 pts), loops 1 (3 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java"},"region":{"startLine":1085}}}],"partialFingerprints":{"codehealthFindingId/v1":"50889c56b2dd35c6c0ad54017d0475ba37ac5454c6cf998b87210ff39df254f7"}},{"ruleId":"D2","level":"warning","message":{"text":"OracleLexer.scanNumber (cognitive 24): OracleLexer.scanNumber has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 8, loops 3 (5 pts) (nesting depth added 4). 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, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleLexer.java"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e34311c209ecd41e27a2d807ce7c8c8fc9fc1090df1f0b44de296e0dc79e8bd"}},{"ruleId":"D2","level":"warning","message":{"text":"OracleOutputVisitor.visit (cognitive 24): OracleOutputVisitor.visit has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (12 pts), ternaries 6 (11 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":1407}}}],"partialFingerprints":{"codehealthFindingId/v1":"42cdd8ae8aadaaff3f136392d6516967866a11027429e3300bf0a148b4e7defd"}},{"ruleId":"D2","level":"warning","message":{"text":"OracleRowNumToLimit.visit (cognitive 24): OracleRowNumToLimit.visit has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (23 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleRowNumToLimit.java"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bfa2bfe344b94f3e2c20f243572a12d5fcb014fc5719d577e1e310d366532d6"}},{"ruleId":"D2","level":"warning","message":{"text":"OscarOutputVisitor.visit (cognitive 24): OscarOutputVisitor.visit has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 6 (15 pts), if/else 7 (9 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"87b55a02d9da7d1067a7bf05748f6b8d223394def730ac8fcfbccca3437971da"}},{"ruleId":"D2","level":"warning","message":{"text":"OscarOutputVisitor.visit (cognitive 24): OscarOutputVisitor.visit has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (16 pts), ternaries 3 (8 pts) (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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":1986}}}],"partialFingerprints":{"codehealthFindingId/v1":"975b628879197c52686cb0439d5170c118b91edaefc5871f8d6d99c56e8344a5"}},{"ruleId":"D2","level":"warning","message":{"text":"PGSQLStatementParser.parseAlterColumn (cognitive 24): PGSQLStatementParser.parseAlterColumn has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (21 pts), boolean chains 3 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java"},"region":{"startLine":951}}}],"partialFingerprints":{"codehealthFindingId/v1":"687c11bcd91025a45cb85ec9f9156ce6d8d41be355ad2c06a83ddd48eadfc0c5"}},{"ruleId":"D2","level":"warning","message":{"text":"PGSQLStatementParser.parseParameters (cognitive 24): PGSQLStatementParser.parseParameters has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (20 pts), boolean chains 3, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java"},"region":{"startLine":818}}}],"partialFingerprints":{"codehealthFindingId/v1":"95f1d762d8f28d53b90859ecad793bc0cbe97a3a6c9bc849aea8b19fefc91fca"}},{"ruleId":"D2","level":"warning","message":{"text":"PGOutputVisitor.visit (cognitive 24): PGOutputVisitor.visit has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 6 (15 pts), if/else 7 (9 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":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"171a1f87126b465afaadd1933716619f7052718b155a7012de8eb059845fd9cb"}},{"ruleId":"D2","level":"warning","message":{"text":"PGOutputVisitor.visit (cognitive 24): PGOutputVisitor.visit has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (16 pts), ternaries 3 (8 pts) (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":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java"},"region":{"startLine":2479}}}],"partialFingerprints":{"codehealthFindingId/v1":"41c3881485829aa509b54f28765be86d2b02ec4fe7afbe3efe8cc8e177632b29"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLServerOutputVisitor.visit (cognitive 24): SQLServerOutputVisitor.visit has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (11 pts), ternaries 5 (11 pts), loops 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/visitor/SQLServerOutputVisitor.java"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb421479ba2b76edd88f837b254aeced9d0f26d5b51d7ff16c5304566a1869c6"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLExprParser.parseCharTypeRest (cognitive 24): SQLExprParser.parseCharTypeRest has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (20 pts), boolean chains 4 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":4727}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a04b832b349d1e0e5138c6cbf4a1a3aec20deac077ec4f103f0934374b762d6"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLStatementParser.parseAlterDrop (cognitive 24): SQLStatementParser.parseAlterDrop has cognitive complexity 24 (threshold 15). Drivers by points: if/else 15 (21 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":3151}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd58220a545083eb43000f8d400e29d36e84e1ed35b7f18c9fef07859499302c"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLStatementParser.parseCreateTrigger (cognitive 24): SQLStatementParser.parseCreateTrigger has cognitive complexity 24 (threshold 15). Drivers by points: if/else 16 (22 pts), boolean chains 1, loops 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":4537}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0618f029184b0ff3559d12e945a392702aa63078335d469adcb273588bc8de9"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLStatementParser.parseDescribe (cognitive 24): SQLStatementParser.parseDescribe has cognitive complexity 24 (threshold 15). Drivers by points: if/else 16 (20 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 5). 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, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":5835}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0409ff3ec693ba9fd9eea627bb8b7293c72c0710cb925477b4c7b945fa7bcca"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLStatementParser.parseRevoke (cognitive 24): SQLStatementParser.parseRevoke has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 2, loops 1 (2 pts), match/switch 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":1994}}}],"partialFingerprints":{"codehealthFindingId/v1":"1108a01a22d6c52d1127ca93174d7a68078141cb300d3693ce0c822bb001caf3"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.hiveVisit (cognitive 24): SQLASTOutputVisitor.hiveVisit has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 8 (16 pts), if/else 8 (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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":9956}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b2b5fe5dd701fc644251f68b44a48bc27dba2bb1ad6d660037ade310d2f1b11"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.printPartitionsCountAndSubPartitions (cognitive 24): SQLASTOutputVisitor.printPartitionsCountAndSubPartitions has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 5 (14 pts), if/else 8 (10 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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":8264}}}],"partialFingerprints":{"codehealthFindingId/v1":"d25f8315ea3b68a56e7a61e41ebbdf0dbe2a14701e99ad7360d7a64567366ce0"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 24): SQLASTOutputVisitor.visit has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 6 (15 pts), if/else 7 (9 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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":5879}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8782b0bce96a91b17adaf49d48a5594e9fd7c3cda6be17e8de32b8adcdf5a25"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 24): SQLASTOutputVisitor.visit has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 8 (16 pts), if/else 8 (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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":11062}}}],"partialFingerprints":{"codehealthFindingId/v1":"507bf57b5dc52970cc17a1c4427b6b0a19476d22f801410c7d5f81e92e088446"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLEvalVisitorUtils.lt (cognitive 24): SQLEvalVisitorUtils.lt has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 8 (nesting depth added 3). 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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java"},"region":{"startLine":1757}}}],"partialFingerprints":{"codehealthFindingId/v1":"af3fec4a82629db4d756e6bc715ac2d11ae56bb44183316c20caa2e3d9beb660"}},{"ruleId":"D2","level":"warning","message":{"text":"StatViewFilter.init (cognitive 24): StatViewFilter.init has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 5, loops 2 (4 pts), error handling 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/support/http/StatViewFilter.java"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"184bd799c31fc4a06f3f041d8d63f57dbb8805477210ffcc34ccd7d90f427cf2"}},{"ruleId":"D2","level":"warning","message":{"text":"IbatisUtils.set (cognitive 24): IbatisUtils.set has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (16 pts), boolean chains 4, error handling 1 (2 pts), loops 1 (2 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":"core/src/main/java/com/alibaba/druid/support/ibatis/IbatisUtils.java"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"809d06fa96f23687a0c234131cac30fc75241b7644c07dd014f7ae5bfa5b4690"}},{"ruleId":"D2","level":"warning","message":{"text":"StatViewFilter.init (cognitive 24): StatViewFilter.init has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 5, loops 2 (4 pts), error handling 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/support/jakarta/StatViewFilter.java"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"dab0863bf20bcc8882244fcedebcb0a9ed130d32a32bdf79848774ff11e50baa"}},{"ruleId":"D2","level":"warning","message":{"text":"WallVisitorUtils.isSimpleCountTableSource (cognitive 24): WallVisitorUtils.isSimpleCountTableSource has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (23 pts), boolean chains 1 (nesting depth added 13). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java"},"region":{"startLine":1615}}}],"partialFingerprints":{"codehealthFindingId/v1":"938e7bc3981bffed6405336b6a109ebb0e922015c7d660c5833ae937a7dde445"}},{"ruleId":"D2","level":"warning","message":{"text":"LogFilter.resultSet_next (cognitive 23): LogFilter.resultSet_next has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (16 pts), error handling 1 (3 pts), loops 1 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/filter/logging/LogFilter.java"},"region":{"startLine":632}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffe1aa4f757f615e29a8a91c52f85021e084260b0f189446c7f788a9c92f2817"}},{"ruleId":"D2","level":"warning","message":{"text":"StatFilter.buildSlowParameters (cognitive 23): StatFilter.buildSlowParameters has cognitive complexity 23 (threshold 15). Drivers by points: if/else 17 (22 pts), loops 1 (nesting depth added 5). 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, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/filter/stat/StatFilter.java"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"090cf2a00f525984acbb1700b4a546714377d9f8a29a73bddb306a1dcd500845"}},{"ruleId":"D2","level":"warning","message":{"text":"DruidAbstractDataSource.testConnectionInternal (cognitive 23): DruidAbstractDataSource.testConnectionInternal has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14 (20 pts), boolean chains 2, error handling 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/pool/DruidAbstractDataSource.java"},"region":{"startLine":1513}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5f1f25062ee4828fab87b89c06fb2b96ef3d22783973495bd89c79ce4b2102f"}},{"ruleId":"D2","level":"warning","message":{"text":"DruidDataSource.removeAbandoned (cognitive 23): DruidDataSource.removeAbandoned has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 4 (11 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/pool/DruidDataSource.java"},"region":{"startLine":2932}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3d4adc23cd0d8522bd4199079250e590a56fc738ef1cb38c1e693353ad6c042"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLSelectQueryBlock.acceptChild (cognitive 23): SQLSelectQueryBlock.acceptChild has cognitive complexity 23 (threshold 15). Drivers by points: if/else 15 (16 pts), loops 4 (7 pts) (nesting depth added 4). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. 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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java"},"region":{"startLine":738}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e8b0e5f036b1c2c918ff2247c50256bb8dd4c53fad8121bc16b891f30e825cf"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLSelectQueryBlock.getMappJoinTableSources (cognitive 23): SQLSelectQueryBlock.getMappJoinTableSources has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (17 pts), loops 2 (6 pts) (nesting depth added 15). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java"},"region":{"startLine":1659}}}],"partialFingerprints":{"codehealthFindingId/v1":"28ad4245d170106efbfb8078f233c45d4bf76307579977fb8314154e8bd91779"}},{"ruleId":"D2","level":"warning","message":{"text":"H2OutputVisitor.visit (cognitive 23): H2OutputVisitor.visit has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 2 (5 pts), ternaries 3 (5 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":"core/src/main/java/com/alibaba/druid/sql/dialect/h2/visitor/H2OutputVisitor.java"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"1db07a4ee963841ee5d47f7e943525f97c3e07a675a32e27bf65bced8ae8dfd5"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlStatementParser.createTableRest (cognitive 23): MySqlStatementParser.createTableRest has cognitive complexity 23 (threshold 15). Drivers by points: if/else 16 (21 pts), boolean chains 2 (nesting depth added 5). 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, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"91808f6cb3f1b58c421aad9b66459b4cc2d3dd5568e06f6a35028923ba60574b"}},{"ruleId":"D2","level":"warning","message":{"text":"OrderByResolve.visit (cognitive 23): OrderByResolve.visit has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (17 pts), loops 2 (5 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/transform/OrderByResolve.java"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee18ff50aeab9f01993e5e1936ac60cb3f36b1e784da013bcf2ccde53f42eb76"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlOutputVisitor.visit (cognitive 23): MySqlOutputVisitor.visit has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 9 (16 pts), if/else 6 (7 pts) (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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":3810}}}],"partialFingerprints":{"codehealthFindingId/v1":"34b3a629c2f4cf4ee9ba8f707f11ff9d2944a6b494ea078b16044606857ce231"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlOutputVisitor.visit (cognitive 23): MySqlOutputVisitor.visit has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 9 (16 pts), if/else 7 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":4973}}}],"partialFingerprints":{"codehealthFindingId/v1":"238c40256a2249975f8f187f0ee030e02e01eb542e835dcd3b0aa302e6bbce09"}},{"ruleId":"D2","level":"warning","message":{"text":"OdpsOutputVisitor.visit (cognitive 23): OdpsOutputVisitor.visit has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 7 (13 pts), if/else 9, boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/visitor/OdpsOutputVisitor.java"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"1baddfee5a75094be07cc2a84560c109a959076d37eee07ff929eb20af0a05e0"}},{"ruleId":"D2","level":"warning","message":{"text":"OracleUpdateStatement.equals (cognitive 23): OracleUpdateStatement.equals has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 7 (13 pts), if/else 9, boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleUpdateStatement.java"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f7ef258fb96fb5dcd5beb86e40c22442bdd3d99f9feb8833edce993faeb0433"}},{"ruleId":"D2","level":"warning","message":{"text":"PGSQLStatementParser.parseCreateIndex (cognitive 23): PGSQLStatementParser.parseCreateIndex has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14 (19 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java"},"region":{"startLine":1120}}}],"partialFingerprints":{"codehealthFindingId/v1":"229f68bd86600f0038e20e1479c78a3b85d83c92a3c1006d1ef307c4daa693cb"}},{"ruleId":"D2","level":"warning","message":{"text":"Lexer.scanString (cognitive 23): Lexer.scanString has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (22 pts), loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java"},"region":{"startLine":1747}}}],"partialFingerprints":{"codehealthFindingId/v1":"72e4fa9cd1bf084f374454ad03f1b151e618e236f30d741aae993d915f472551"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLExprParser.parseLimit (cognitive 23): SQLExprParser.parseLimit has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":6340}}}],"partialFingerprints":{"codehealthFindingId/v1":"020a5c0d077d5607977d6f423773e2ff501ad8cd14bb930107214ae9547ae3aa"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLParser.printError (cognitive 23): SQLParser.printError has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 3, loops 1 (3 pts) (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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLParser.java"},"region":{"startLine":859}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d4bc1b3f23e01b3b494a0d1d155c41469f5f257a7fd71a1549d389ba22049a8"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLSelectParser.parseHierachical (cognitive 23): SQLSelectParser.parseHierachical has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (17 pts), boolean chains 6 (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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java"},"region":{"startLine":2240}}}],"partialFingerprints":{"codehealthFindingId/v1":"456b62c37df2aea476ceef6a261d8f598ccc4c6da9c7027946f70d3e628648df"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLSelectParser.select (cognitive 23): SQLSelectParser.select has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (19 pts), loops 3, boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"f631bc05913d0636aaf630f657476e3d56783b023fb0d6f7c76c63f95e9167c5"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLStatementParser.alterTableSet (cognitive 23): SQLStatementParser.alterTableSet has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (19 pts), loops 1 (4 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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":2628}}}],"partialFingerprints":{"codehealthFindingId/v1":"9714acfe32300d118372fd5f4ca492de2dbb74aa0f089142e102e728534dae88"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLStatementParser.parseCreateDatabase (cognitive 23): SQLStatementParser.parseCreateDatabase has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (18 pts), loops 1 (3 pts), boolean chains 2 (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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":4651}}}],"partialFingerprints":{"codehealthFindingId/v1":"f75126a246d903f97dd2033dd6934bfe105d648dd5fd1857b1968176f3e6466b"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLStatementParser.parseHiveCreateFunction (cognitive 23): SQLStatementParser.parseHiveCreateFunction has cognitive complexity 23 (threshold 15). Drivers by points: if/else 17 (20 pts), boolean chains 3 (nesting depth added 3). 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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":7701}}}],"partialFingerprints":{"codehealthFindingId/v1":"a11f46800cfd824b74b56914d210238fee4a3f0b9fbda55b5c7d6501dac0c770"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLStatementParser.parseMergeWhen (cognitive 23): SQLStatementParser.parseMergeWhen has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14 (20 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":5709}}}],"partialFingerprints":{"codehealthFindingId/v1":"6be98360fec0ba262eb792fbdbbee35a7cfae4a808881cc74b50b1b9a6f22a92"}},{"ruleId":"D2","level":"warning","message":{"text":"Schema.findTable (cognitive 23): Schema.findTable has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (23 pts) (nesting depth added 14). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/repository/Schema.java"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"6af8dff2049be32f7fb81ce7907efdc3c842ee891385ab00c5600e2be8349c26"}},{"ruleId":"D2","level":"warning","message":{"text":"SchemaResolveVisitorFactory.resolve (cognitive 23): SchemaResolveVisitorFactory.resolve has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (19 pts), loops 2 (4 pts) (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":"core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java"},"region":{"startLine":816}}}],"partialFingerprints":{"codehealthFindingId/v1":"6190a7bf0d3e6086237fb9b93c52246f7c9d9a27a503804638c8a3a400b5c110"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 23): SQLASTOutputVisitor.visit has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (11 pts), ternaries 5 (11 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":7319}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeb3bc496edd6d1f507b58e27b2e215a4e25badd34bfa9220500efffdbf8d195"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 23): SQLASTOutputVisitor.visit has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 9 (17 pts), if/else 6 (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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":6390}}}],"partialFingerprints":{"codehealthFindingId/v1":"60c679f5a627ed5a6fe03e0634999edf93319f37b099291261a19f8169026424"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 23): SQLASTOutputVisitor.visit has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 7 (14 pts), if/else 6 (8 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":11711}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff9862a22ee3b62c628d1ebfb597bee7ba296d183488876b28194048b94858ab"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 23): SQLASTOutputVisitor.visit has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (12 pts), ternaries 3 (6 pts), loops 2 (5 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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":6735}}}],"partialFingerprints":{"codehealthFindingId/v1":"210a87981d73e2eaece1535f348bdf84b35e4595153d94503fbd4fa85cf84691"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLEvalVisitorUtils.multi (cognitive 23): SQLEvalVisitorUtils.multi has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 10 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. 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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java"},"region":{"startLine":2041}}}],"partialFingerprints":{"codehealthFindingId/v1":"591d1e536a9b24b31095dbc32c92f95ce673d6b0261bb83d6bd2deaf4286cde2"}},{"ruleId":"D2","level":"warning","message":{"text":"CalciteMySqlNodeVisitor.visit (cognitive 23): CalciteMySqlNodeVisitor.visit has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (19 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 11). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/support/calcite/CalciteMySqlNodeVisitor.java"},"region":{"startLine":776}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3709c3a0f64dced7ba8a0f315ab1ca12f124f21d254f74e0db02bd6fe0e8e93"}},{"ruleId":"D2","level":"warning","message":{"text":"AbstractWebStatImpl.getSessionId (cognitive 23): AbstractWebStatImpl.getSessionId has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (16 pts), loops 2 (7 pts) (nesting depth added 15). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/support/http/AbstractWebStatImpl.java"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"eba9cd09c9a393195e7150db752e03a491d269cbfaa2e4d3bee3b25c3300bede"}},{"ruleId":"D2","level":"warning","message":{"text":"AbstractWebStatImpl.getSessionId (cognitive 23): AbstractWebStatImpl.getSessionId has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (16 pts), loops 2 (7 pts) (nesting depth added 15). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/support/jakarta/AbstractWebStatImpl.java"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"375bbb3159b4896dfa91ead6a2fbb9f922815f472aa2f556448a371ca8f050cd"}},{"ruleId":"D2","level":"warning","message":{"text":"SqlTypeUDF.getSqlType (cognitive 23): SqlTypeUDF.getSqlType has cognitive complexity 23 (threshold 15). Drivers by points: if/else 18 (20 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. 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":"core/src/main/java/com/alibaba/druid/support/opds/udf/SqlTypeUDF.java"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"12fc2545b2b78893edcd6377477ab5294ff24d5c1132e2378e0bd48b730e5e80"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlExceptionSorter.isExceptionFatal (cognitive 22): MySqlExceptionSorter.isExceptionFatal has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 7, loops 1, match/switch 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/pool/vendor/MySqlExceptionSorter.java"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"4abbd4efc9a7193c5d530ca8dbd04da4db152d548b7908f161d68297c2803074"}},{"ruleId":"D2","level":"warning","message":{"text":"DruidDataSource.handleFatalError (cognitive 22): DruidDataSource.handleFatalError has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 5, loops 1 (3 pts), ternaries 2 (nesting depth added 4). 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, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/pool/DruidDataSource.java"},"region":{"startLine":1814}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8fc6bc5f133d748442c583d5cb882fbd28cfddb67f25a109c692761a88a32a4"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLSelectQueryBlock.hashCode (cognitive 22): SQLSelectQueryBlock.hashCode has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 22. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. 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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java"},"region":{"startLine":896}}}],"partialFingerprints":{"codehealthFindingId/v1":"889705f8a3cd553c451193fd2d47a2d241476dbfd05536a4ed05132cec24742b"}},{"ruleId":"D2","level":"warning","message":{"text":"DB2OutputVisitor.visit (cognitive 22): DB2OutputVisitor.visit has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (12 pts), ternaries 4 (10 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/db2/visitor/DB2OutputVisitor.java"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"72efb93f723f17a09805ee4df7210f4eda18c6bacf70f6a0fe07f895376a46ab"}},{"ruleId":"D2","level":"warning","message":{"text":"ImpalaOutputVisitor.visit (cognitive 22): ImpalaOutputVisitor.visit has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (14 pts), ternaries 3 (8 pts) (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":"core/src/main/java/com/alibaba/druid/sql/dialect/impala/visitor/ImpalaOutputVisitor.java"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"61e3e1be6458a98354973ddf9bf842374c0316f801d736a339d3a5d92d732d97"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlExprParser.\u003Cinit\u003E (cognitive 22): MySqlExprParser.\u003Cinit\u003E has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 7 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"c66a6977fb95758c6e3bc7afd717aa80678d74c1d44c77dd4b7db63a14eb4bc4"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlLexer.scanVariable (cognitive 22): MySqlLexer.scanVariable has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 3 (6 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"f936da10e0fe9393c7651bcfbcc93d7a50080f5139318e343c91ca39a781013c"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlStatementParser.parseCreateEvent (cognitive 22): MySqlStatementParser.parseCreateEvent has cognitive complexity 22 (threshold 15). Drivers by points: if/else 16 (21 pts), loops 1 (nesting depth added 5). 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, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":5570}}}],"partialFingerprints":{"codehealthFindingId/v1":"c65ef4315317ca243fb3a3f74fdb52e751e095285256c63e9c3eed45cbd73cbd"}},{"ruleId":"D2","level":"warning","message":{"text":"OracleOutputVisitor.visit (cognitive 22): OracleOutputVisitor.visit has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 5 (13 pts), if/else 7 (9 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":2785}}}],"partialFingerprints":{"codehealthFindingId/v1":"da75dea44804237415f0e248614d35029cad1bcdccf447c343752564fe9535a1"}},{"ruleId":"D2","level":"warning","message":{"text":"OscarStatementParser.parseSet (cognitive 22): OscarStatementParser.parseSet has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13 (16 pts), loops 2 (4 pts), boolean chains 2 (nesting depth added 5). 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, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"6476364d731a3e3274b029e886b7af48a9de8d04f0f4684ae197b03a6691a571"}},{"ruleId":"D2","level":"warning","message":{"text":"PGSQLStatementParser.alterDatabase (cognitive 22): PGSQLStatementParser.alterDatabase has cognitive complexity 22 (threshold 15). Drivers by points: if/else 17 (22 pts) (nesting depth added 5). 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, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java"},"region":{"startLine":1355}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4daf929c5bf57bd4003fb8e0175999fffb6058ff5214293a1649d813285a3b7"}},{"ruleId":"D2","level":"warning","message":{"text":"PGSQLStatementParser.parseBlock (cognitive 22): PGSQLStatementParser.parseBlock has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java"},"region":{"startLine":729}}}],"partialFingerprints":{"codehealthFindingId/v1":"47a1cddd954298cac2f42a92fb412e071d08e4d8c783100685c19ae0738865f0"}},{"ruleId":"D2","level":"warning","message":{"text":"PGSQLStatementParser.parseCopy (cognitive 22): PGSQLStatementParser.parseCopy has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (17 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"daf6372a4e1f34b3b9af759a26b2f886f9a054caf50cc1e7172a446d7fcc31b1"}},{"ruleId":"D2","level":"warning","message":{"text":"PrestoStatementParser.parseAlterFunction (cognitive 22): PrestoStatementParser.parseAlterFunction has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (20 pts), loops 1 (2 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":"core/src/main/java/com/alibaba/druid/sql/dialect/presto/parser/PrestoStatementParser.java"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ea6f646c0c57275c479552ebd8a6dc475b7d24d03a23d7d2031539264572921"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLServerStatementParser.parseInsert0 (cognitive 22): SQLServerStatementParser.parseInsert0 has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 4, loops 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerStatementParser.java"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea2436595f80a4a38e6090b3dcc0cae07354fc3bcd470f3a2f6702decd2a73df"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLExprParser.parseDataTypeRest (cognitive 22): SQLExprParser.parseDataTypeRest has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (20 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":4660}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f98cff9c72eef3ed3ed953b1aded321cfaf841407449d03f202a4551fe43311"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLSelectParser.parseSortBy (cognitive 22): SQLSelectParser.parseSortBy has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (16 pts), loops 3 (6 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java"},"region":{"startLine":806}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eb4745ad8a4da3d330aaa1f2ef60f05afe83de080e724b1bb242a932c9028ce"}},{"ruleId":"D2","level":"warning","message":{"text":"SchemaResolveVisitorFactory.resolveUnion (cognitive 22): SchemaResolveVisitorFactory.resolveUnion has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 3 (7 pts), boolean chains 3 (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":"core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java"},"region":{"startLine":2403}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6d1c1a845535fc83083e66dd0e29c54459d3f643a234d73aa87d626a2d5474c"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 22): SQLASTOutputVisitor.visit has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 5 (11 pts), if/else 8 (10 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":7403}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ff692ef7993c7ce8c019bf2530ffde9d07efb8482ffea336efbcae9d368fcf3"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 22): SQLASTOutputVisitor.visit has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11, ternaries 4 (8 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 5). 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, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":3763}}}],"partialFingerprints":{"codehealthFindingId/v1":"3434259e46541a2b78efda56ee8dce25b06b21b6668ed8d50779068c130065a9"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 22): SQLASTOutputVisitor.visit has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 6 (13 pts), if/else 6 (9 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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":6652}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0933435011cac068f380404ca5ddf98c354ab5ed12c70b54227ef9b1b87eca1"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 22): SQLASTOutputVisitor.visit has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9, ternaries 5 (9 pts), boolean chains 4 (nesting depth added 4). 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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":2595}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5fef7afdc5014b5ef63fcbe018f94053c5363a1153908a9e48c622abc58d1a6"}},{"ruleId":"D2","level":"warning","message":{"text":"SchemaStatVisitor.visit (cognitive 22): SchemaStatVisitor.visit has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 2 (4 pts), match/switch 2 (3 pts), boolean chains 2 (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":"core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0d00894ad368e939c5cefb6edffe079261e0131a1daffc22793769c4c233ef8"}},{"ruleId":"D2","level":"warning","message":{"text":"FileNodeListener.refresh (cognitive 21): FileNodeListener.refresh has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 4, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/pool/ha/node/FileNodeListener.java"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"74373f12f822d35c4b9966831d9c54312c02261327b4b4db2ae08a249ef1d5de"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLAggregateExpr.equals (cognitive 21): SQLAggregateExpr.equals has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 5 (10 pts), if/else 9, boolean chains 2 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLAggregateExpr.java"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d5a1d778a7fec7ce5d63817f82deefda4a0864063fc232d8e361d992770e96e"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLCaseStatement.accept0 (cognitive 21): SQLCaseStatement.accept0 has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 2 (6 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLCaseStatement.java"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5dc5662deac34e83f51cd1e848f8318161bd5b56f6f7f7716644eafe028f8bb"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLJoinTableSource.equals (cognitive 21): SQLJoinTableSource.equals has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11, ternaries 5 (9 pts), boolean chains 1 (nesting depth added 4). 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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLJoinTableSource.java"},"region":{"startLine":651}}}],"partialFingerprints":{"codehealthFindingId/v1":"3807c0d31eb6995570083902e368f0049e988ce8af12abf3e4528a8e9422e241"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLSelectQueryBlock.findSelectItemAndComputeDataType (cognitive 21): SQLSelectQueryBlock.findSelectItemAndComputeDataType has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (17 pts), loops 1 (3 pts), boolean chains 1 (nesting depth added 12). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java"},"region":{"startLine":1269}}}],"partialFingerprints":{"codehealthFindingId/v1":"baec0958bf23c2c25a04409fc6e5885d7bd0eeda27f483b50959d953f5c8621a"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLUnique.applyColumnRename (cognitive 21): SQLUnique.applyColumnRename has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (16 pts), boolean chains 4, loops 1 (nesting depth added 11). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLUnique.java"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"a19cfca51039d15abb460bbb4a5fb5cf5530ed428ddb8e39700aaded72f6b8ae"}},{"ruleId":"D2","level":"warning","message":{"text":"GaussDbCreateTableParser.parsePartitionBy (cognitive 21): GaussDbCreateTableParser.parsePartitionBy has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (17 pts), loops 1 (4 pts) (nesting depth added 13). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/parser/GaussDbCreateTableParser.java"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"0664c74254d1c32042a5938a3b193c7272c4ec4bb2bfc4e8e720e07c6a574532"}},{"ruleId":"D2","level":"warning","message":{"text":"ImpalaCreateTableParser.parsePartitionBy (cognitive 21): ImpalaCreateTableParser.parsePartitionBy has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (17 pts), loops 1 (4 pts) (nesting depth added 13). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/impala/parser/ImpalaCreateTableParser.java"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c5b5ea4f32df3428e0e827fdb7872edcbc859cb745e6ff649d6ff61725a222a"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlTableIndex.applyColumnRename (cognitive 21): MySqlTableIndex.applyColumnRename has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (16 pts), boolean chains 4, loops 1 (nesting depth added 11). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlTableIndex.java"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"04482771a2cc713d43d0c1a85706afe6d8eb2c0d71a571a8f9f533e8f024429f"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlStatementParser.parseAlterTableAddColumn (cognitive 21): MySqlStatementParser.parseAlterTableAddColumn has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 2, loops 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":7581}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b3b721f8b38bd632f73b28ac93868d01a0214928be2e1cc9970055f0f95fe2d"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlOutputVisitor.printInsertColumns (cognitive 21): MySqlOutputVisitor.printInsertColumns has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (19 pts), loops 1 (2 pts) (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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":5321}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5ef48f17827884471c5eea7e7d7050664cca2b1eec169a037a9d65d0d35f869"}},{"ruleId":"D2","level":"warning","message":{"text":"OdpsOutputVisitor.visit (cognitive 21): OdpsOutputVisitor.visit has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 5 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/visitor/OdpsOutputVisitor.java"},"region":{"startLine":1253}}}],"partialFingerprints":{"codehealthFindingId/v1":"429751fc165fe6897398d20be34c1d7b7d24cd2b21edcb4de34283f054bda566"}},{"ruleId":"D2","level":"warning","message":{"text":"OracleIntervalExpr.equals (cognitive 21): OracleIntervalExpr.equals has cognitive complexity 21 (threshold 15). Drivers by points: if/else 17 (21 pts) (nesting depth added 4). 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/expr/OracleIntervalExpr.java"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"f75acf74690eacb6850b9168bcc0db559850133b5168ef9eddc01b47dd6350bf"}},{"ruleId":"D2","level":"warning","message":{"text":"OracleExprParser.parseUsingIndex (cognitive 21): OracleExprParser.parseUsingIndex has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (16 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java"},"region":{"startLine":1217}}}],"partialFingerprints":{"codehealthFindingId/v1":"1456802a409b9602c2e93741d8fdbc2e8c86dfa3f5d27d5a802997ccc56359e9"}},{"ruleId":"D2","level":"warning","message":{"text":"OracleStatementParser.parseCreateProcedure (cognitive 21): OracleStatementParser.parseCreateProcedure has cognitive complexity 21 (threshold 15). Drivers by points: if/else 17 (21 pts) (nesting depth added 4). 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, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java"},"region":{"startLine":2796}}}],"partialFingerprints":{"codehealthFindingId/v1":"322c2379412e7807e15461482d0631f4c17dc817b96f1eae369b3be6f91cc16c"}},{"ruleId":"D2","level":"warning","message":{"text":"OracleOutputVisitor.visit (cognitive 21): OracleOutputVisitor.visit has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 5 (11 pts), if/else 8 (10 pts) (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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":2236}}}],"partialFingerprints":{"codehealthFindingId/v1":"d15ddc08fbe7283e8c567f8300c585b40de58188fa0090161a5cebc2bc7a893c"}},{"ruleId":"D2","level":"warning","message":{"text":"PGOutputVisitor.visit (cognitive 21): PGOutputVisitor.visit has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 6 (11 pts), if/else 9 (10 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":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java"},"region":{"startLine":787}}}],"partialFingerprints":{"codehealthFindingId/v1":"8762ad87711d0debd964f0932c0eb2135bb24522b1f632647212c211ac09d9f8"}},{"ruleId":"D2","level":"warning","message":{"text":"StarRocksCreateTableParser.parsePartitionBy (cognitive 21): StarRocksCreateTableParser.parsePartitionBy has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (17 pts), loops 2 (4 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":"core/src/main/java/com/alibaba/druid/sql/dialect/starrocks/parser/StarRocksCreateTableParser.java"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"c02b1a17c3af78e191965d87df0071a852ad04ac9b1e5d6eea0ad1cf26e09f3c"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLCreateTableParser.createTableBodyItem (cognitive 21): SQLCreateTableParser.createTableBodyItem has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13 (18 pts), boolean chains 3 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLCreateTableParser.java"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2c8287d46855c6b1ab58cc7e111ce596dde2f73779890528c429b7deb6d0072"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 21): SQLASTOutputVisitor.visit has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 6 (12 pts), if/else 7, loops 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":7178}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e3f2df79555d8b9b60cee6f057d4f6efd1f869ebea21808b3714726f61998b2"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 21): SQLASTOutputVisitor.visit has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 5 (10 pts), if/else 6 (9 pts), loops 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":4974}}}],"partialFingerprints":{"codehealthFindingId/v1":"738cbcf51ce987eaa2dce4ef2e2d9757685a3ae629fa6f3fe03d2b276c8c16b7"}},{"ruleId":"D2","level":"warning","message":{"text":"SchemaStatVisitor.setColumn (cognitive 21): SchemaStatVisitor.setColumn has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (20 pts), 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":"core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java"},"region":{"startLine":1699}}}],"partialFingerprints":{"codehealthFindingId/v1":"c36602dc179d851814f582fe48b155cbd1119159af6adf96162d2d9b308003be"}},{"ruleId":"D2","level":"warning","message":{"text":"ResourceServlet.initAuthEnv (cognitive 21): ResourceServlet.initAuthEnv has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 4, loops 2 (4 pts), error handling 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/support/http/ResourceServlet.java"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b9396659c1c8d768378bb4481eff2354059939f1e8624bb6e4b660074fa8f0f"}},{"ruleId":"D2","level":"warning","message":{"text":"ResourceHandler.service (cognitive 21): ResourceHandler.service has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 6 (nesting depth added 3). 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, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/support/http/ResourceServlet.java"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3873fee1b58150f017e27f31f1ceb4d19e3bb410d80b0dceba55b8cfe9079f8"}},{"ruleId":"D2","level":"warning","message":{"text":"ResourceServlet.initAuthEnv (cognitive 21): ResourceServlet.initAuthEnv has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 4, loops 2 (4 pts), error handling 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/support/jakarta/ResourceServlet.java"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"b664c7077295f5f0920c3e07f31d56e40982e506ad5e34446c272c5e8e4be7a5"}},{"ruleId":"D2","level":"warning","message":{"text":"ResourceHandler.service (cognitive 21): ResourceHandler.service has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 6 (nesting depth added 3). 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, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/support/jakarta/ResourceServlet.java"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3581d0632504ef496f2042b558bd1fed456ec1b750a811422bc8cb936408c2a"}},{"ruleId":"D2","level":"warning","message":{"text":"DruidStatInterceptor.getMethodInfo (cognitive 21): DruidStatInterceptor.getMethodInfo has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (17 pts), loops 2, boolean chains 1, error handling 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/support/spring/stat/DruidStatInterceptor.java"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc270f3d0585361077e84a2751fa531336ede490685a952e624fd423eddb8809"}},{"ruleId":"D2","level":"warning","message":{"text":"template (cognitive 21): template has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 10, ternaries 6, if/else 3 (4 pts), error handling 1 (nesting depth added 1). Of this number, 16 points are the body\u0027s own statements and 5 belong to 5 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/js/doT.js"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ccd6ef61ad04ec2c4014fe57e72bc29f9e07abc8fa2a15bf54eaaf604b45516"}},{"ruleId":"D2","level":"warning","message":{"text":"template (cognitive 21): template has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 10, ternaries 6, if/else 3 (4 pts), error handling 1 (nesting depth added 1). Of this number, 16 points are the body\u0027s own statements and 5 belong to 5 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/js/doT.js"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8ea11c13e9ea97cf9a147e1c382d034f1f5dadbd6c7c965d117fa7627ac6a2c"}},{"ruleId":"D2","level":"warning","message":{"text":"LogFilter.logParameter (cognitive 20): LogFilter.logParameter has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 2 (4 pts), match/switch 1 (3 pts) (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":"core/src/main/java/com/alibaba/druid/filter/logging/LogFilter.java"},"region":{"startLine":838}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c37219bde2ff3a44a28a90c84b5287d77cd398a1fd892a8b6a87156bed91f28"}},{"ruleId":"D2","level":"warning","message":{"text":"StatFilter.internalAfterStatementExecute (cognitive 20): StatFilter.internalAfterStatementExecute has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (9 pts), match/switch 1 (4 pts), error handling 1 (3 pts), loops 1 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/filter/stat/StatFilter.java"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"6351f50ca1b9bd80b28706208bcdc7f6265fecba5c535d054a870db6d7a8ab1f"}},{"ruleId":"D2","level":"warning","message":{"text":"DruidDataSource.pollLast (cognitive 20): DruidDataSource.pollLast has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (17 pts), boolean chains 1, error handling 1, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/pool/DruidDataSource.java"},"region":{"startLine":2225}}}],"partialFingerprints":{"codehealthFindingId/v1":"cba6d9c04405fa3cf8140f5d28efeeaaa2d2dff41a801fcf97f345f32774a3e7"}},{"ruleId":"D2","level":"warning","message":{"text":"DruidDataSource.setConnectProperties (cognitive 20): DruidDataSource.setConnectProperties has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/pool/DruidDataSource.java"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ba35624f4f569e82d74342dd5d2f43561faab44b888ef068b0ec34bb2e96540"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLBinaryOpExpr.replace (cognitive 20): SQLBinaryOpExpr.replace has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (20 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLBinaryOpExpr.java"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e77dcabc438be52190e0da882a99feaf7bb77aa8cbb24d6465ff7a64aeaaae3"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLCreateTableStatement.cloneTo (cognitive 20): SQLCreateTableStatement.cloneTo has cognitive complexity 20 (threshold 15). Drivers by points: if/else 15, loops 5. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. 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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateTableStatement.java"},"region":{"startLine":1285}}}],"partialFingerprints":{"codehealthFindingId/v1":"4273bc1cda7f66aa01c2bd04808cb7090fe896624698bfd7b8c47e757b4d0027"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLJoinTableSource.rearrangement (cognitive 20): SQLJoinTableSource.rearrangement has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 4 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLJoinTableSource.java"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"632d88f7de584072f307a3dd950abb032262c1494001e01efdaf3e0c9d5aaaa7"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLSelect.accept0 (cognitive 20): SQLSelect.accept0 has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (17 pts), loops 1 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelect.java"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"82926324edaea0c3d102af14609b23afc55d016672cf317176fa2016fbcc9d51"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLUpdateStatement.equals (cognitive 20): SQLUpdateStatement.equals has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 6 (11 pts), if/else 8, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLUpdateStatement.java"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"2acc692017fc7c38fe91b77199f457816f1146b25f207e7d77987bc42eaa7df9"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLIndexDefinition.getOption (cognitive 20): SQLIndexDefinition.getOption has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (18 pts), loops 2 (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":"core/src/main/java/com/alibaba/druid/sql/ast/SQLIndexDefinition.java"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"16db5a6615f187642478aaa06dca53ce9e1f80db137d5dc674de55f14239c707"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLOver.accept0 (cognitive 20): SQLOver.accept0 has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (17 pts), loops 1 (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":"core/src/main/java/com/alibaba/druid/sql/ast/SQLOver.java"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b1ee253deabd193cd65d0c5c38aab2f84b22c83ea8df5b62e23a169afa56afc"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLOver.equals (cognitive 20): SQLOver.equals has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11, ternaries 4 (8 pts), boolean chains 1 (nesting depth added 4). 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":"core/src/main/java/com/alibaba/druid/sql/ast/SQLOver.java"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"0446a6a93e489975dec40996b97e2ab6a6529c54bba48e5f962e0329b2d72834"}},{"ruleId":"D2","level":"warning","message":{"text":"CKOutputVisitor.visit (cognitive 20): CKOutputVisitor.visit has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (11 pts), ternaries 5 (8 pts), loops 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/visitor/CKOutputVisitor.java"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cbcfcb02e31ca63cc481bbaae33419cc260cc32f09fbdde035e71a1bf193478"}},{"ruleId":"D2","level":"warning","message":{"text":"DmLexer.scanString (cognitive 20): DmLexer.scanString has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (19 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmLexer.java"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5967a3535679c94f6d5bc90d637f9f450a1226482d52e24a7633837f4c51f7b"}},{"ruleId":"D2","level":"warning","message":{"text":"H2OutputVisitor.printTableElements (cognitive 20): H2OutputVisitor.printTableElements has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/h2/visitor/H2OutputVisitor.java"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"adafd613d2ba4426d1da51a4345016f4b157727511558805784affbe4278f2e7"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlCreateTableParser.parseTableOptionCharsetOrCollate (cognitive 20): MySqlCreateTableParser.parseTableOptionCharsetOrCollate has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14 (20 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java"},"region":{"startLine":1463}}}],"partialFingerprints":{"codehealthFindingId/v1":"379327b8a1d69247eb6f43889b8d84ed3e9145cf3bc45d1bc22262dc228a89e3"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlStatementParser.alterUser (cognitive 20): MySqlStatementParser.alterUser has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (19 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":8146}}}],"partialFingerprints":{"codehealthFindingId/v1":"1af208206f96044690c8cbd69b43b3c37c77d7a27c4094a799c70ff2115a0206"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlStatementParser.parseDeclareHandler (cognitive 20): MySqlStatementParser.parseDeclareHandler has cognitive complexity 20 (threshold 15). Drivers by points: if/else 15 (19 pts), loops 1 (nesting depth added 4). 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, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":9014}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6073bdd5df5b570d36a2a478de698ccd4a78d99e636b10bf3baa3ba484e6a37"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlOutputVisitor.visit (cognitive 20): MySqlOutputVisitor.visit has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 4, ternaries 1 (2 pts), loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":798}}}],"partialFingerprints":{"codehealthFindingId/v1":"83fd9f51db685526ae1de16641f6aa9de6a60d904117d92a3560fa4510db1ac5"}},{"ruleId":"D2","level":"warning","message":{"text":"OdpsStatementParser.parseSet (cognitive 20): OdpsStatementParser.parseSet has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 3 (nesting depth added 4). 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, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsStatementParser.java"},"region":{"startLine":1263}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7ddb602acf20ca2a342ad9896a0287436cf9cf844ec26aefeff0bd54eb5a38f"}},{"ruleId":"D2","level":"warning","message":{"text":"OracleExprParser.parseColumnRest (cognitive 20): OracleExprParser.parseColumnRest has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14 (18 pts), boolean chains 1, loops 1 (nesting depth added 4). 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, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java"},"region":{"startLine":1284}}}],"partialFingerprints":{"codehealthFindingId/v1":"2aef81648179de2f17f15cefddeac6224b93e7a35d3ee7cc4efdc9bbfc0fada0"}},{"ruleId":"D2","level":"warning","message":{"text":"OracleSelectParser.parseTableSourceQueryTableExpr (cognitive 20): OracleSelectParser.parseTableSourceQueryTableExpr has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14 (20 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleSelectParser.java"},"region":{"startLine":674}}}],"partialFingerprints":{"codehealthFindingId/v1":"f33e435b903d4b4acdb1c52e32cc097205d31e787b1bcd3c9f649092800c9bcf"}},{"ruleId":"D2","level":"warning","message":{"text":"OracleSelectParser.parseWith (cognitive 20): OracleSelectParser.parseWith has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 2 (4 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleSelectParser.java"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4687ff4196c47292262f6064731eee5f4025f945194996f108b1df89a05d3c3"}},{"ruleId":"D2","level":"warning","message":{"text":"OracleOutputVisitor.visit (cognitive 20): OracleOutputVisitor.visit has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 5 (12 pts), if/else 6 (8 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":1544}}}],"partialFingerprints":{"codehealthFindingId/v1":"513fdacc655c465efd554397586e7478a7fd3de69e657a07c92d8e63d37000dd"}},{"ruleId":"D2","level":"warning","message":{"text":"OscarStatementParser.parseCreateIndex (cognitive 20): OscarStatementParser.parseCreateIndex has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13 (17 pts), loops 2 (3 pts) (nesting depth added 5). 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, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5f98aa5ff694f16edf3a0233d18bf3653ec5d2f7e4ba8b0af299eabf8ebe2a7"}},{"ruleId":"D2","level":"warning","message":{"text":"PGOutputVisitor.visit (cognitive 20): PGOutputVisitor.visit has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 6 (11 pts), if/else 8 (9 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":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3a4d0fbb336a2b2d8c81346fc45de067a1b64c4ace5b82e4b33284141ea599a"}},{"ruleId":"D2","level":"warning","message":{"text":"SnowflakeExprParser.parseColumnRest (cognitive 20): SnowflakeExprParser.parseColumnRest has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (17 pts), loops 1 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeExprParser.java"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"67ecfb791c91d592a6c2a2e6a39c49714a8f7e729cdf7cd6bde72b05c0ebe073"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLServerStatementParser.parseCreateProcedure (cognitive 20): SQLServerStatementParser.parseCreateProcedure has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (15 pts), loops 1 (3 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerStatementParser.java"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a0982bf0defecf4c3e65a510c30cc63f62a99a8ce0d503088937c42f7dc3c3e"}},{"ruleId":"D2","level":"warning","message":{"text":"StarRocksCreateTableParser.parseIndex (cognitive 20): StarRocksCreateTableParser.parseIndex has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (18 pts), loops 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/starrocks/parser/StarRocksCreateTableParser.java"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"c31079d0b2541453ad603f890a13f00ae5400291c5632eff481eca473d6ea28d"}},{"ruleId":"D2","level":"warning","message":{"text":"TDSelectParser.parseBeforeSelectList (cognitive 20): TDSelectParser.parseBeforeSelectList has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/teradata/parser/TDSelectParser.java"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0dfe5a14bde1555ce9edc3524ba3239812df1d79261241af8572f0e1ff32e11"}},{"ruleId":"D2","level":"warning","message":{"text":"Schema.computeTables (cognitive 20): Schema.computeTables has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (19 pts), boolean chains 1 (nesting depth added 11). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/repository/Schema.java"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"45e8217ac1a405a2a5d6201442722f15097f9a246abef1336cf28676de2fd055"}},{"ruleId":"D2","level":"warning","message":{"text":"SchemaResolveVisitorFactory.resolve (cognitive 20): SchemaResolveVisitorFactory.resolve has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (17 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java"},"region":{"startLine":1731}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d9e807e3794752dfa15eafd157f3225110843e61cb7eb430a2e4d925e066e12"}},{"ruleId":"D2","level":"warning","message":{"text":"SchemaResolveVisitorFactory.resolve (cognitive 20): SchemaResolveVisitorFactory.resolve has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (15 pts), loops 3 (5 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java"},"region":{"startLine":872}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ea0af54893262554ef5cc26cc47708e13f4d3bc61b44d47fcaec790dbfe840d"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 20): SQLASTOutputVisitor.visit has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":3243}}}],"partialFingerprints":{"codehealthFindingId/v1":"12b804cd1dcf95534a43677806d83122e7d84593e1cc58a26400bb8108b5c600"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 20): SQLASTOutputVisitor.visit has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (14 pts), ternaries 2 (3 pts), boolean chains 2, loops 1 (nesting depth added 4). 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, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":2862}}}],"partialFingerprints":{"codehealthFindingId/v1":"bda4a857dda5e9db3d534630d438475ce23764fc69474a99d434c8b3c3bfa2df"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 20): SQLASTOutputVisitor.visit has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 5 (10 pts), if/else 7 (8 pts), loops 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":10246}}}],"partialFingerprints":{"codehealthFindingId/v1":"e05e8873f8b0efbc4ede27b5b92614961573834e06d63d84dc3eeccb11824441"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitorBinaryOpSupport.visitBetweenExpr (cognitive 20): SQLASTOutputVisitorBinaryOpSupport.visitBetweenExpr has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12, ternaries 4 (8 pts) (nesting depth added 4). 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, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitorBinaryOpSupport.java"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"d06a1c15ee0b658af11913ae63f6429bb1e6737935af62131db821ff209deebf"}},{"ruleId":"D2","level":"warning","message":{"text":"SchemaStatVisitor.statAllColumn (cognitive 20): SchemaStatVisitor.statAllColumn has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (17 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java"},"region":{"startLine":1843}}}],"partialFingerprints":{"codehealthFindingId/v1":"77c097b9bd54044d2776a14e96a8fdc250db88c7bcfc3cc0a0ccd6f5fc5661ca"}},{"ruleId":"D2","level":"warning","message":{"text":"SchemaStatVisitor.visit (cognitive 20): SchemaStatVisitor.visit has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 3 (7 pts), boolean chains 3 (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":"core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java"},"region":{"startLine":3097}}}],"partialFingerprints":{"codehealthFindingId/v1":"7671a49af88fc239e2b0bff52a10ba8c188f8153b736ff394c064d0b85979cff"}},{"ruleId":"D2","level":"warning","message":{"text":"DruidStatManagerFacade.getSqlStatDataList (cognitive 20): DruidStatManagerFacade.getSqlStatDataList has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (16 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 11). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/stat/DruidStatManagerFacade.java"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5aed8a838b9258807994494a1ae1d7358b0f0e543dcfd6ba72eee8641ef766a"}},{"ruleId":"D2","level":"warning","message":{"text":"DruidDataSourceUtils.configFromProperties (cognitive 20): DruidDataSourceUtils.configFromProperties has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (8 pts), boolean chains 6, error handling 3 (6 pts) (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":"core/src/main/java/com/alibaba/druid/util/DruidDataSourceUtils.java"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b5eeda6b06f06b728f5bb9a0ceadfb78344e9f72880d8644b580a0c63ed1c73"}},{"ruleId":"D2","level":"warning","message":{"text":"WallVisitorUtils.checkUpdateForMultiTenant (cognitive 20): WallVisitorUtils.checkUpdateForMultiTenant has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (17 pts), boolean chains 3 (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":"core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"34964d8e43a9f4959880d9c4aad4c5aa1680a26b5efabf4ee03a4a62043462b0"}},{"ruleId":"D2","level":"warning","message":{"text":"WallFilter.initWallProviderInternal (cognitive 20): WallFilter.initWallProviderInternal has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (19 pts), match/switch 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/wall/WallFilter.java"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2835bf4938930d5bf411764e46d51e936f74072703c7cc1759c14416e1e6faf"}},{"ruleId":"D2","level":"warning","message":{"text":"MonitorStatService.service (cognitive 20): MonitorStatService.service has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14, boolean chains 4, ternaries 1 (2 pts) (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. 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":"druid-admin/src/main/java/com/alibaba/druid/admin/service/MonitorStatService.java"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"398ae47f89d21a57d946f21a658b33b76218df2d0a84cfab906c34b0966dce30"}},{"ruleId":"D2","level":"warning","message":{"text":"resolveDefs (cognitive 20): resolveDefs has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 4, ternaries 2 (nesting depth added 6). Most of this is not in the body itself: 3 of the 20 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 60, 77, 76, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/js/doT.js"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"88c025f2467fe37cbe3debd12b782f80630a507277a4baa8f7234fd46a91bc80"}},{"ruleId":"D2","level":"warning","message":{"text":"resolveDefs (cognitive 20): resolveDefs has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 4, ternaries 2 (nesting depth added 6). Most of this is not in the body itself: 3 of the 20 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 53, 70, 69, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/js/doT.js"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f0c9566399ffd8373549bd0f243aaf2bb4448be798c589202403d99f7760f57"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlMockExecuteHandlerImpl.executeQueryFromDual (cognitive 19): MySqlMockExecuteHandlerImpl.executeQueryFromDual has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13 (18 pts), loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/mock/handler/MySqlMockExecuteHandlerImpl.java"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"38772e3125f6fe3dc8fd1ad2d40504a6c646705293bc677550c0b9105fe44488"}},{"ruleId":"D2","level":"warning","message":{"text":"DruidPooledConnection.closePoolableStatement (cognitive 19): DruidPooledConnection.closePoolableStatement has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (11 pts), error handling 3 (6 pts), boolean chains 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":"core/src/main/java/com/alibaba/druid/pool/DruidPooledConnection.java"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"b904340d65ed0116eb4dc51f8abeda36b08d9528eebdb1c3e30a124a66143c57"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLPartitionOf.accept0 (cognitive 19): SQLPartitionOf.accept0 has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (19 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/SQLPartitionOf.java"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"46733ed210fe2a2505b534d1c9ed61fb09661649727e259326cb5984d17fd311"}},{"ruleId":"D2","level":"warning","message":{"text":"BigQueryExprParser.parseDataTypeStruct0 (cognitive 19): BigQueryExprParser.parseDataTypeStruct0 has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (14 pts), ternaries 1 (3 pts), boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryExprParser.java"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4c3ae53e3889f0d6b73357795485aeea0062ab2f4464331d63acd22bf688afd"}},{"ruleId":"D2","level":"warning","message":{"text":"DmExprParser.primaryRest (cognitive 19): DmExprParser.primaryRest has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 3 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmExprParser.java"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"89105ffa13d53b52044559fc508747cbfd93513d7d7487f5899c4ae2a1a56f3d"}},{"ruleId":"D2","level":"warning","message":{"text":"HiveCreateTableParser.createTableBody (cognitive 19): HiveCreateTableParser.createTableBody has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 2, loops 1 (2 pts) (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":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveCreateTableParser.java"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"d69e423302b4f205d11da413654b39546f0396aa5f6d28076de18170400528af"}},{"ruleId":"D2","level":"warning","message":{"text":"HiveExprParser.parseAliasExpr (cognitive 19): HiveExprParser.parseAliasExpr has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (17 pts), boolean chains 1, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveExprParser.java"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"48acf2615e2597c4b80d00fb81856e1d751a9ae2d0c47fe82327797d03f70dda"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlCreateTableStatement.accept0 (cognitive 19): MySqlCreateTableStatement.accept0 has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 2 (4 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlCreateTableStatement.java"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"36b6cf2f114ed149e9439523223a5c3587cc3566cc3b8636e4fa06ec5a856a85"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlStatementParser.alterEvent (cognitive 19): MySqlStatementParser.alterEvent has cognitive complexity 19 (threshold 15). Drivers by points: if/else 14 (18 pts), loops 1 (nesting depth added 4). 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, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":5665}}}],"partialFingerprints":{"codehealthFindingId/v1":"be6353962ed511a619816d50f6875b46c0b033cfa50b27047047f311374790f7"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlStatementParser.parseBackup (cognitive 19): MySqlStatementParser.parseBackup has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 2 (5 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":1797}}}],"partialFingerprints":{"codehealthFindingId/v1":"2009f9ee55aa50d6a5e4997b17af1729ea1283dac2b0876c9c7b55070248041b"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlStatementParser.parseCopy (cognitive 19): MySqlStatementParser.parseCopy has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 2 (4 pts) (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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":9166}}}],"partialFingerprints":{"codehealthFindingId/v1":"192c7def06884a6dacd6f4187a018fc18af35901300ee0bc46fab247e37bcc95"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlStatementParser.parseCreateProcedure (cognitive 19): MySqlStatementParser.parseCreateProcedure has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 1, loops 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":8301}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1aa0e868d70ba94b1300152a5b38fd48962bc225468dae114ccc1182aafed88"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlOutputVisitor.visit (cognitive 19): MySqlOutputVisitor.visit has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 7 (12 pts), if/else 5, boolean chains 2 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":2327}}}],"partialFingerprints":{"codehealthFindingId/v1":"2103f1059c908bf0cf88d83388b90724a6c0580a1013cf9b34f3eaa7c3d7f094"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlOutputVisitor.visit (cognitive 19): MySqlOutputVisitor.visit has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (9 pts), ternaries 4 (9 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":4560}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b8831764fb1bc9bd11366ffb5ff1b81784b386b572d864fc54e31779c22aa6c"}},{"ruleId":"D2","level":"warning","message":{"text":"OscarOutputVisitor.visit (cognitive 19): OscarOutputVisitor.visit has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (15 pts), loops 2 (4 pts) (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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"a996c9758a53c5b3f7917dcb98448d610a1c593491ff955af48ca37980f5c0d6"}},{"ruleId":"D2","level":"warning","message":{"text":"OscarOutputVisitor.visit (cognitive 19): OscarOutputVisitor.visit has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 5 (9 pts), if/else 6 (8 pts), loops 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"29f1fcb948df15e9e76ae41cc04d1ceae61c108487475255d24a79de9a51569d"}},{"ruleId":"D2","level":"warning","message":{"text":"PGSQLStatementParser.parseCreateSchema (cognitive 19): PGSQLStatementParser.parseCreateSchema has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 1, loops 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc17b1abf8f200dfae4a3d986f5b6c1287c59c401f8b3978ddea594bdd4d4b58"}},{"ruleId":"D2","level":"warning","message":{"text":"PGOutputVisitor.visit (cognitive 19): PGOutputVisitor.visit has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (15 pts), loops 2 (4 pts) (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":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java"},"region":{"startLine":969}}}],"partialFingerprints":{"codehealthFindingId/v1":"4026b7c21aa89e350ddc58da1667afd50db4f4b757a91bda350995079d876b86"}},{"ruleId":"D2","level":"warning","message":{"text":"PrestoSelectParser.parseFetchClause (cognitive 19): PrestoSelectParser.parseFetchClause has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 4 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/presto/parser/PrestoSelectParser.java"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"3977caa801793f36ae8b7922cd34b9ef4c0e76abe7399c3580b6c1699df904c8"}},{"ruleId":"D2","level":"warning","message":{"text":"PrestoSelectParser.query (cognitive 19): PrestoSelectParser.query has cognitive complexity 19 (threshold 15). Drivers by points: if/else 15 (17 pts), boolean chains 2 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/presto/parser/PrestoSelectParser.java"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"20af71a6ba5ec44682bb17c1a3df280d92fded4580fe1bc5b8e731b886f5e206"}},{"ruleId":"D2","level":"warning","message":{"text":"SnowflakeStatementParser.parseStageOptions (cognitive 19): SnowflakeStatementParser.parseStageOptions has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (18 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeStatementParser.java"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"c32d872855fbe038f4603bfa14dc21f038669bc499736fa02cfda6c69ee92707"}},{"ruleId":"D2","level":"warning","message":{"text":"SuperSqlCreateTableParser.parseCreateTableRest (cognitive 19): SuperSqlCreateTableParser.parseCreateTableRest has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (15 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/supersql/parser/SuperSqlCreateTableParser.java"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e280b92c0be930695c62a51dd3878f98d733718167417b89f395d2d055ed9ea"}},{"ruleId":"D2","level":"warning","message":{"text":"SynapseCreateTableParser.parseSynapseWithOptions (cognitive 19): SynapseCreateTableParser.parseSynapseWithOptions has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 2 (4 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/synapse/parser/SynapseCreateTableParser.java"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea2604ac2a6c1ce8659e73232d97bbebe61b5b1861ed109027fdb8332cefc462"}},{"ruleId":"D2","level":"warning","message":{"text":"Lexer.decimalValue (cognitive 19): Lexer.decimalValue has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 1 (3 pts), ternaries 1 (3 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java"},"region":{"startLine":3239}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f5ca1fecc709623d49025b4bcad6c55a74de008db27c79a752eb70b5ffb4bc1"}},{"ruleId":"D2","level":"warning","message":{"text":"Lexer.integerValue (cognitive 19): Lexer.integerValue has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (17 pts), loops 1, ternaries 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java"},"region":{"startLine":3166}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fb54f292b3c64dc5a372b179129ac099e444a7710a74b9324776d5456877e4b"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.printHierarchical (cognitive 19): SQLASTOutputVisitor.printHierarchical has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 4 (11 pts), if/else 4 (7 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":9059}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d07f21c261947d120a2a18c7a66dbd6eeb432b5a0333c5ab6f624d847c3390c"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 19): SQLASTOutputVisitor.visit has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 5 (11 pts), if/else 6 (7 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":8031}}}],"partialFingerprints":{"codehealthFindingId/v1":"45ec9e851ebe7eb6cf8f91699270af60a62d679b646ad949c33d36631bf60b7c"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 19): SQLASTOutputVisitor.visit has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 4 (10 pts), if/else 8 (9 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":4876}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f1cb75f90267d27ed3821143392108f2c943056a3879338c796b6e8237587c8"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 19): SQLASTOutputVisitor.visit has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 6 (12 pts), if/else 6 (7 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":8396}}}],"partialFingerprints":{"codehealthFindingId/v1":"87539656a56b2826f9d2f79bc9b4c72b59af1fb46445bda9bd32917ea600938b"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 19): SQLASTOutputVisitor.visit has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (8 pts), ternaries 3 (8 pts), boolean chains 3 (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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":3166}}}],"partialFingerprints":{"codehealthFindingId/v1":"eabc82646cb921a9ef216acfd64bb885a00ce84d379b2deec66f5f2696983a6d"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 19): SQLASTOutputVisitor.visit has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (8 pts), ternaries 2 (6 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":4451}}}],"partialFingerprints":{"codehealthFindingId/v1":"975f6c810a63935b7beab75c560ffa1d14d755eb416d3e996e53dd5530c5623e"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 19): SQLASTOutputVisitor.visit has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (10 pts), ternaries 4 (6 pts), loops 2 (3 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":3874}}}],"partialFingerprints":{"codehealthFindingId/v1":"9313fec3ba6735553036df1245ec194f68aa26b14f98dfed63a1e2bf0f0da40f"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLEvalVisitorUtils.type (cognitive 19): SQLEvalVisitorUtils.type has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (13 pts), match/switch 1 (4 pts), boolean chains 2 (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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java"},"region":{"startLine":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"c564126da0733e9afcb1eea7ae6cd55fac6e2a0b7a194eed1f368e96ec3fb017"}},{"ruleId":"D2","level":"warning","message":{"text":"SchemaStatVisitor.handleName (cognitive 19): SchemaStatVisitor.handleName has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (16 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"449cf5c6ca2cad0d4cf57d9a8a6a1b3cb02d3def8fa9191e35dd4e595ed181bc"}},{"ruleId":"D2","level":"warning","message":{"text":"JSONParser.scanString (cognitive 19): JSONParser.scanString has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 1, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/support/json/JSONParser.java"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"b73f6839173f7d07c77926b58170ad08b25d8d209dfe2b9b917c7fd4ebbb0ced"}},{"ruleId":"D2","level":"warning","message":{"text":"SqlTypeUDF.getSqlTypeForSingleLineSql (cognitive 19): SqlTypeUDF.getSqlTypeForSingleLineSql has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (12 pts), match/switch 1 (3 pts), loops 1 (2 pts), boolean chains 1, error handling 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/support/opds/udf/SqlTypeUDF.java"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f05466b17554016dd8a67095d5f603b10c172bf3944696bde1a3c690017fb31"}},{"ruleId":"D2","level":"warning","message":{"text":"DruidWebUtils.getRemoteAddr (cognitive 19): DruidWebUtils.getRemoteAddr has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 8 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (DruidWebUtils.getRemoteAddr) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/util/DruidWebUtils.java"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"f67743435b14525130e8c5c0ad8893970f983b46938fd201ba8106b6c5c8544e"}},{"ruleId":"D2","level":"warning","message":{"text":"DruidWebUtils.getRemoteAddr (cognitive 19): DruidWebUtils.getRemoteAddr has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 8 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (DruidWebUtils.getRemoteAddr) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/util/DruidWebUtils.java"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"8734cf2b0217a2b056eb5d1121caf8d8801a27a625439930c3b72f01dec325b5"}},{"ruleId":"D2","level":"warning","message":{"text":"DruidAbstractDataSource.initSqls (cognitive 18): DruidAbstractDataSource.initSqls has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (10 pts), loops 3 (7 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/pool/DruidAbstractDataSource.java"},"region":{"startLine":1948}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f5399bdb66b8ea7403a2cb7c89872da2e0a88903f57569550b4622da1400ba7"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLDateTimeExpr.check (cognitive 18): SQLDateTimeExpr.check has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 9, if/else 9. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLDateTimeExpr.java"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"61e079ef113d78f24ab14b0f99409c9223cff63ca11568612d37baab91bfc433"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLMethodInvokeExpr.accept0 (cognitive 18): SQLMethodInvokeExpr.accept0 has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (SQLMethodInvokeExpr.accept0) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLMethodInvokeExpr.java"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbcdee0bd112bdecbe270da1f1edd0e180268018d8ad4ad12bbc0e014dacfac8"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLMethodInvokeExpr.accept0 (cognitive 18): SQLMethodInvokeExpr.accept0 has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (SQLMethodInvokeExpr.accept0) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLMethodInvokeExpr.java"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a822f2a3acef293c5cd0c4ea907adee11880ebd81e60a44e7fafef49c610fa4"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLTimeExpr.check (cognitive 18): SQLTimeExpr.check has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 9, if/else 9. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTimeExpr.java"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"30d91ae81d4678ff2dd978280d8593470aac695e152d16601dcab4f46d44b4ff"}},{"ruleId":"D2","level":"warning","message":{"text":"HiveExprParser.primary (cognitive 18): HiveExprParser.primary has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 1, match/switch 1 (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. 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. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveExprParser.java"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"0698fb45d9e42eec99aacae28f4bc5a7a717559efad29348a57d192d03544806"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlStatementParser.parseRollback (cognitive 18): MySqlStatementParser.parseRollback has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":4057}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d31d2dec5fc41d0fe245d11ade5b4699164d30672ff957c4e5e539fb6ca802b"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlOutputVisitor.visit (cognitive 18): MySqlOutputVisitor.visit has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 5 (10 pts), if/else 6, loops 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":1601}}}],"partialFingerprints":{"codehealthFindingId/v1":"85a32cc189ef6954c390a922e76f50b4ad33c16881eebcdb9172179b4ad857b6"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlOutputVisitor.visit (cognitive 18): MySqlOutputVisitor.visit has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 4 (10 pts), if/else 5 (8 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":3176}}}],"partialFingerprints":{"codehealthFindingId/v1":"b581664bec6f67a82d2dfda39ef260ce96cef53e51b2c62f383f726bdd4ce68e"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlOutputVisitor.visit (cognitive 18): MySqlOutputVisitor.visit has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 6 (11 pts), if/else 7 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":2900}}}],"partialFingerprints":{"codehealthFindingId/v1":"1012ff4a5b2f7666488a2357c9a422e6b3965268287d9315a1207ba465a6e2a0"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlOutputVisitor.visit (cognitive 18): MySqlOutputVisitor.visit has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (8 pts), ternaries 4 (6 pts), loops 2 (4 pts) (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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":3092}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdfea88ed0cc1d74e303b151ca2e92ac2bf847101e3d221307c937de5a7b9932"}},{"ruleId":"D2","level":"warning","message":{"text":"OdpsOutputVisitor.visit (cognitive 18): OdpsOutputVisitor.visit has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 8 (13 pts), if/else 5 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/visitor/OdpsOutputVisitor.java"},"region":{"startLine":992}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3eba5e204590bb330e2218bdb5e2e48e054ce2426f5d6d5d8e47501550ba50a"}},{"ruleId":"D2","level":"warning","message":{"text":"OracleSelectTableReference.equals (cognitive 18): OracleSelectTableReference.equals has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 5 (9 pts), if/else 8, boolean chains 1 (nesting depth added 4). 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleSelectTableReference.java"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"0327a0f75d22748869b5d968fdf4bb9e5dafda2729c4028ebaabca6e59453390"}},{"ruleId":"D2","level":"warning","message":{"text":"OracleSelectParser.parseModelRulesClause (cognitive 18): OracleSelectParser.parseModelRulesClause has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (17 pts), loops 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleSelectParser.java"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5f6bda9369a33640c7a45d0872040b524578fa7305bc4afb53095bfed5dac2b"}},{"ruleId":"D2","level":"warning","message":{"text":"OracleStatementParser.parseCreateSequence (cognitive 18): OracleStatementParser.parseCreateSequence has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 1, loops 1 (nesting depth added 3). 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java"},"region":{"startLine":2725}}}],"partialFingerprints":{"codehealthFindingId/v1":"739c1574c8b3443a894fe4c1e848f65d36ad0fc4766f147a5a5ed4e9a2e6f7dd"}},{"ruleId":"D2","level":"warning","message":{"text":"OracleOutputVisitor.visit (cognitive 18): OracleOutputVisitor.visit has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 6 (10 pts), if/else 6 (7 pts), loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1ac375056e845883638a0d77502bc86c51dbebb0bf9753af23b89ec3db60f1c"}},{"ruleId":"D2","level":"warning","message":{"text":"OscarOutputVisitor.visit (cognitive 18): OscarOutputVisitor.visit has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 6 (10 pts), if/else 6 (7 pts), loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":1918}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aee56155338a1f01f827a050f6603237d2688f618755e4cbadb4d5ded61d1bc"}},{"ruleId":"D2","level":"warning","message":{"text":"OscarOutputVisitor.visit (cognitive 18): OscarOutputVisitor.visit has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 6 (10 pts), if/else 6 (7 pts), loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"6113e2ca048d2d932d1fd00a8260852810e59db04b6477f86b08c7a634cbc9eb"}},{"ruleId":"D2","level":"warning","message":{"text":"PGSQLStatementParser.parseVacuumTable (cognitive 18): PGSQLStatementParser.parseVacuumTable has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13 (16 pts), loops 2 (nesting depth added 3). 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, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java"},"region":{"startLine":1267}}}],"partialFingerprints":{"codehealthFindingId/v1":"6805875bbfea448abea6c8fc584df5af3bb4cacebcc590eb5c7db76d1d0bf825"}},{"ruleId":"D2","level":"warning","message":{"text":"PGOutputVisitor.visit (cognitive 18): PGOutputVisitor.visit has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 6 (10 pts), if/else 6 (7 pts), loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java"},"region":{"startLine":2411}}}],"partialFingerprints":{"codehealthFindingId/v1":"821a6d5cc438f3a1b9dc8eba0f23cb74218ab14d98aeca58906388e6c259427e"}},{"ruleId":"D2","level":"warning","message":{"text":"PGOutputVisitor.visit (cognitive 18): PGOutputVisitor.visit has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 6 (10 pts), if/else 6 (7 pts), loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"639f1393b8a73f7de3e6d00e8582a850118344bb9fc9798f873dfee292bef717"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLServerOutputVisitor.visit (cognitive 18): SQLServerOutputVisitor.visit has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (12 pts), loops 1 (3 pts), ternaries 2 (3 pts) (nesting depth added 11). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/visitor/SQLServerOutputVisitor.java"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"19d8abf32e033faf6b946aaa6e7dee87a0f06a2b2fe7047269a7505239a158bc"}},{"ruleId":"D2","level":"warning","message":{"text":"StarRocksOutputVisitor.print (cognitive 18): StarRocksOutputVisitor.print has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 2, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/starrocks/visitor/StarRocksOutputVisitor.java"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"c808c08c3f4d0a929268794e474e826e26623dcd29ba9e14645d9fc9f2086528"}},{"ruleId":"D2","level":"warning","message":{"text":"StarRocksOutputVisitor.printUniqueKey (cognitive 18): StarRocksOutputVisitor.printUniqueKey has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 4 (12 pts), if/else 5 (6 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/starrocks/visitor/StarRocksOutputVisitor.java"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"04936aa30db689a81a27a4473b08d2e01355162e00c21adbd61092c78a8f2201"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLExprParser.exprList (cognitive 18): SQLExprParser.exprList has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 5, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":2256}}}],"partialFingerprints":{"codehealthFindingId/v1":"126f4aeb223d91ba636245437780cb85f7c9288cfbc34b59b78c90fa9d590213"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLExprParser.primarySub (cognitive 18): SQLExprParser.primarySub has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 1 (2 pts), boolean chains 1, match/switch 1 (nesting depth added 7). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. 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. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":1170}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad57011d7017ea94338f6ba9603d8951dea8335bde89097f8a4735d5a1a3c6f7"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLSelectParser.parseUnnestTableSource (cognitive 18): SQLSelectParser.parseUnnestTableSource has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (17 pts), boolean chains 1 (nesting depth added 10). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java"},"region":{"startLine":1443}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f38a7d076f02c9316c3bbede791b30e3d6eb28b0eee00a16f47cb1a520500d4"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLStatementParser.alterResourceGroup (cognitive 18): SQLStatementParser.alterResourceGroup has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 2 (5 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (SQLStatementParser.createResource) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":7539}}}],"partialFingerprints":{"codehealthFindingId/v1":"f029981756b98360afa9b10bb8fc24f0fa1c89e6e8f39a2b88f0153411b880b2"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLStatementParser.createResource (cognitive 18): SQLStatementParser.createResource has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 2 (5 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (SQLStatementParser.alterResourceGroup) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":7493}}}],"partialFingerprints":{"codehealthFindingId/v1":"55ca1a09e3a7d740bb36ff021f5df91f2fd976607cfeb8535bd434a9aaa68da2"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLStatementParser.parseAlterTableAddColumn (cognitive 18): SQLStatementParser.parseAlterTableAddColumn has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 2, loops 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":5219}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e1b08df93b57fc777e6e1cbdb98a686d6b1f9112650b732248e29124c7d2376"}},{"ruleId":"D2","level":"warning","message":{"text":"SchemaResolveVisitorFactory.resolve (cognitive 18): SchemaResolveVisitorFactory.resolve has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 3 (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":"core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java"},"region":{"startLine":935}}}],"partialFingerprints":{"codehealthFindingId/v1":"32b173f2d2b407c9ed6fed8ba3cc02b824d10ccce34df32a433aedf07b692737"}},{"ruleId":"D2","level":"warning","message":{"text":"SchemaResolveVisitorFactory.resolve (cognitive 18): SchemaResolveVisitorFactory.resolve has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 4 (7 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java"},"region":{"startLine":2325}}}],"partialFingerprints":{"codehealthFindingId/v1":"a729c317cf1a829c218febc2fa633f1a4c30f5d0808265b7c2ec0cbdb959a1ab"}},{"ruleId":"D2","level":"warning","message":{"text":"Greatest.eval (cognitive 18): Greatest.eval has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 1 (3 pts), boolean chains 2 (nesting depth added 10). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/functions/Greatest.java"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"50da988f03cfd4bd32be320a166db7a0f95374b932fe21e0ce5393de18d3320a"}},{"ruleId":"D2","level":"warning","message":{"text":"Least.eval (cognitive 18): Least.eval has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 1 (3 pts), boolean chains 2 (nesting depth added 10). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/functions/Least.java"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"7183aa61eead3a628fed7132436835adcef3bc59401ed0ee5de55475768bfd54"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.isTableSourceAlias (cognitive 18): SQLASTOutputVisitor.isTableSourceAlias has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 2 (5 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":2345}}}],"partialFingerprints":{"codehealthFindingId/v1":"49ceb0e813730503341cd2850e5e4ed229089923d0b556e826e30ae2e3a14073"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 18): SQLASTOutputVisitor.visit has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 3 (9 pts), if/else 6 (8 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":10067}}}],"partialFingerprints":{"codehealthFindingId/v1":"129de16ad8eed73bb2c513094056af0b1f7a7d58ad32b9479b4522ae05f0c522"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 18): SQLASTOutputVisitor.visit has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 5, ternaries 2, loops 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":7619}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ebbd2e7d6f3cdc07048fadee673e01a2a9f66a82d89cdd6a98a75945eb32a56"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 18): SQLASTOutputVisitor.visit has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (8 pts), ternaries 4 (8 pts), loops 1 (2 pts) (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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":12457}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a78ebee402b6417410b569a30cd03820579918326d52e2e63e574a3c9b01e14"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 18): SQLASTOutputVisitor.visit has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 7 (12 pts), if/else 6 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":6429}}}],"partialFingerprints":{"codehealthFindingId/v1":"48671e2e6e9f9a0868e3e1deda389ee195f6260589240c1516ee54abc4e8763b"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 18): SQLASTOutputVisitor.visit has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 7 (11 pts), if/else 6 (7 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":8672}}}],"partialFingerprints":{"codehealthFindingId/v1":"48651a01cb804c92561bd3606f933068c0c832013f3ee9fc0789acb83fcd8af4"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLEvalVisitorUtils.visit (cognitive 18): SQLEvalVisitorUtils.visit has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 3, loops 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java"},"region":{"startLine":790}}}],"partialFingerprints":{"codehealthFindingId/v1":"c399ce4f5f3aa7dcbc960bd7d895b4a7087d292e744ebce67b71ccba0c4a79a0"}},{"ruleId":"D2","level":"warning","message":{"text":"WallVisitorUtils.checkJoinConditionForMultiTenant (cognitive 18): WallVisitorUtils.checkJoinConditionForMultiTenant has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (17 pts), boolean chains 1 (nesting depth added 9). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java"},"region":{"startLine":749}}}],"partialFingerprints":{"codehealthFindingId/v1":"0294a025bab54d794f13dd95671dd81d459c635cf596eb401ba063219b3b891a"}},{"ruleId":"D2","level":"warning","message":{"text":"WallVisitorUtils.getValue_and (cognitive 18): WallVisitorUtils.getValue_and has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 3, loops 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java"},"region":{"startLine":1107}}}],"partialFingerprints":{"codehealthFindingId/v1":"77fedcfa681f36b9ee2a9656d9232568148b862a41f9f7b32890f4999e73a647"}},{"ruleId":"D2","level":"warning","message":{"text":"LogFilter.statement_executeErrorAfter (cognitive 17): LogFilter.statement_executeErrorAfter has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (8 pts), ternaries 1 (5 pts), loops 1 (4 pts) (nesting depth added 10). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/filter/logging/LogFilter.java"},"region":{"startLine":790}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cbd872fb3e155912e34e265a956f2db6cf753ba7606c49adc3aef428c427686"}},{"ruleId":"D2","level":"warning","message":{"text":"DruidDataSource.fill (cognitive 17): DruidDataSource.fill has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (10 pts), error handling 3 (6 pts), loops 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/pool/DruidDataSource.java"},"region":{"startLine":3812}}}],"partialFingerprints":{"codehealthFindingId/v1":"20dc951ebc697cb57e3e7e38f51abcb20ed0482a414751b7b270006a42cfa0a5"}},{"ruleId":"D2","level":"warning","message":{"text":"DruidDriver.parseConfig (cognitive 17): DruidDriver.parseConfig has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/proxy/DruidDriver.java"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec768fa88d23ee447333b8a549930e64d00612da540a437c0b7b4e2654ee3d7e"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLExprTableSource.equals (cognitive 17): SQLExprTableSource.equals has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 5 (9 pts), if/else 7, boolean chains 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLExprTableSource.java"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0081b7387ac3e42753afa0c918472ef84c23ec8d457dc3785442449aaa5ba5d"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLIndexDefinition.cloneTo (cognitive 17): SQLIndexDefinition.cloneTo has cognitive complexity 17 (threshold 15). Drivers by points: if/else 14, loops 3. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. 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":"core/src/main/java/com/alibaba/druid/sql/ast/SQLIndexDefinition.java"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f912f7789e09e2da8356ab7093cce4c14b982dab6c6d2069918345634f52713"}},{"ruleId":"D2","level":"warning","message":{"text":"CKStatementParser.parseCreateMaterializedView (cognitive 17): CKStatementParser.parseCreateMaterializedView has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (14 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. 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":"core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/parser/CKStatementParser.java"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"aff86054e8d2a22590af8a4b653b4a6d81983de85c3ac9143b130d549dda8a2b"}},{"ruleId":"D2","level":"warning","message":{"text":"CKOutputVisitor.printComment (cognitive 17): CKOutputVisitor.printComment has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 6, loops 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. 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":"core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/visitor/CKOutputVisitor.java"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"88c78e9eb0e47029c774dee2535a73d1abf90bf89affe17d7f596812bb2a73d6"}},{"ruleId":"D2","level":"warning","message":{"text":"DorisSelectParser.parseAfterTableSourceRest (cognitive 17): DorisSelectParser.parseAfterTableSourceRest has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 1 (3 pts) (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":"core/src/main/java/com/alibaba/druid/sql/dialect/doris/parser/DorisSelectParser.java"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cf8203c7c9b74b67583bc4a62e5c0051833ca1162eccf20e4edc1f6f14df497"}},{"ruleId":"D2","level":"warning","message":{"text":"GaussDbCreateTableParser.parseDistributeBy (cognitive 17): GaussDbCreateTableParser.parseDistributeBy has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 1 (4 pts) (nesting depth added 10). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/parser/GaussDbCreateTableParser.java"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"72d772313a08e727d30f55428d7326fdb78de756be4a1c92ba1c87f6951c905c"}},{"ruleId":"D2","level":"warning","message":{"text":"HiveOutputVisitor.visit (cognitive 17): HiveOutputVisitor.visit has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (10 pts), match/switch 1 (3 pts), loops 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/visitor/HiveOutputVisitor.java"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"162fe1af64334098e684e2e44cd13c7c4017153f92230f0a4311c89464ca7015"}},{"ruleId":"D2","level":"warning","message":{"text":"HiveOutputVisitor.visit (cognitive 17): HiveOutputVisitor.visit has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (10 pts), ternaries 2 (6 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/visitor/HiveOutputVisitor.java"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d961cfc662f3d9fb4933ce3b2a4e32cd613738871a7ef4da59ec90c06f99106"}},{"ruleId":"D2","level":"warning","message":{"text":"HologresOutputVisitor.printComment (cognitive 17): HologresOutputVisitor.printComment has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 6, loops 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. 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":"core/src/main/java/com/alibaba/druid/sql/dialect/hologres/visitor/HologresOutputVisitor.java"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aa75a28a8d0f4f1adb8242237e13a549dba82ae4e5d07bc4299729392c733c3"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlCreateTableStatement.cloneTo (cognitive 17): MySqlCreateTableStatement.cloneTo has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13, loops 3 (4 pts) (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlCreateTableStatement.java"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0be4b10655427631264f1e00e82bc109da9bd8c1dca751b1d3b95c067734644"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlLexer.scanSharp (cognitive 17): MySqlLexer.scanSharp has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 3, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"a51860784c43e12ee1740071c2f19668f06f07e53d443ac75b4a449987aaeb6c"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlSelectParser.parseUpdateStatment (cognitive 17): MySqlSelectParser.parseUpdateStatment has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13 (15 pts), loops 2 (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, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectParser.java"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"6517d1d41a77f0709655f9f2579dcf877b4a84409a478b9925daa718acee8c63"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlOutputVisitor.visit (cognitive 17): MySqlOutputVisitor.visit has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 4 (9 pts), if/else 5 (6 pts), loops 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"74a8b4ecee72e20041866b39c6d1ab02090d9643d80fd054469e1ebf5dc89ee5"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlOutputVisitor.visit (cognitive 17): MySqlOutputVisitor.visit has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 5 (9 pts), if/else 5 (7 pts), loops 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":4592}}}],"partialFingerprints":{"codehealthFindingId/v1":"abb2e3add8fa6c8850e5da55c7e120f00842915c487b5c9d2e7673491b81ec80"}},{"ruleId":"D2","level":"warning","message":{"text":"OdpsStatementParser.parseLoad (cognitive 17): OdpsStatementParser.parseLoad has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (15 pts), loops 1 (2 pts) (nesting depth added 4). 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, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsStatementParser.java"},"region":{"startLine":1525}}}],"partialFingerprints":{"codehealthFindingId/v1":"5741f75a0a171f542e946e5b9d4c88745511f12927ec4ab2d9d7252b6771c726"}},{"ruleId":"D2","level":"warning","message":{"text":"OdpsStatementParser.parseUnload (cognitive 17): OdpsStatementParser.parseUnload has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 1, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsStatementParser.java"},"region":{"startLine":675}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ff89e81de1ae0124644f2f49fa748296da050f8abbbac682587ef3f403af27f"}},{"ruleId":"D2","level":"warning","message":{"text":"OracleSelectParser.parseTableSourcePrimary (cognitive 17): OracleSelectParser.parseTableSourcePrimary has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 4 (nesting depth added 3). 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, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleSelectParser.java"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"52a1cac27d5cbf2abb791a6d9424d9ba8cc01421d56e56463f1395ca10a54578"}},{"ruleId":"D2","level":"warning","message":{"text":"OracleOutputVisitor.visit (cognitive 17): OracleOutputVisitor.visit has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 5 (10 pts), if/else 5, boolean chains 1, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":2519}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddf83fd8f72f87a38dfdedca917dde2887439e462f9b393c9682d43a0421d619"}},{"ruleId":"D2","level":"warning","message":{"text":"OscarCreateTableParser.parsePartitionBy (cognitive 17): OscarCreateTableParser.parsePartitionBy has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 1 (3 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarCreateTableParser.java"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b3aafcb1f3e10316b35bece4389d2baefe4caf06e23cbfc96e47da68fe0cc94"}},{"ruleId":"D2","level":"warning","message":{"text":"OscarOutputVisitor.visit (cognitive 17): OscarOutputVisitor.visit has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 5 (10 pts), if/else 5, boolean chains 1, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":1449}}}],"partialFingerprints":{"codehealthFindingId/v1":"162c7d7d74bdccde54f41fb047fbcd248bccf2b64533ddbcba83d5898a05769c"}},{"ruleId":"D2","level":"warning","message":{"text":"OscarOutputVisitor.visit (cognitive 17): OscarOutputVisitor.visit has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 6 (11 pts), if/else 6 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"d380e030e60d7f3840a35a889a126f9e0626ebc642ae710e9789cdb4c9e37868"}},{"ruleId":"D2","level":"warning","message":{"text":"PGOutputVisitor.visit (cognitive 17): PGOutputVisitor.visit has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (15 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":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java"},"region":{"startLine":2894}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cd0fab9d2ce31e3d204ee733961a995b35072599686af13e1b9e318eb0f7ff8"}},{"ruleId":"D2","level":"warning","message":{"text":"PGOutputVisitor.visit (cognitive 17): PGOutputVisitor.visit has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 5 (10 pts), if/else 5, boolean chains 1, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java"},"region":{"startLine":1826}}}],"partialFingerprints":{"codehealthFindingId/v1":"3de53c667e91e37e8361d152e2ad560b5aa08bb9f390167867ed7bfffc25eb35"}},{"ruleId":"D2","level":"warning","message":{"text":"SnowflakeExprParser.parseLimit (cognitive 17): SnowflakeExprParser.parseLimit has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (14 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":"core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeExprParser.java"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"4af7f8e1a9dba64b18050fd5ad1daa3ab72f51ccc89cea21477c256f2d9331b4"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLServerOutputVisitor.visit (cognitive 17): SQLServerOutputVisitor.visit has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (9 pts), ternaries 4 (6 pts), loops 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/visitor/SQLServerOutputVisitor.java"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"31606550d5ae9fe7841bc15bfb4e2fde363299d0e96ea3a720eae61a0bc9a38d"}},{"ruleId":"D2","level":"warning","message":{"text":"StarRocksCreateTableParser.parseCreateTableRest (cognitive 17): StarRocksCreateTableParser.parseCreateTableRest has cognitive complexity 17 (threshold 15). Drivers by points: if/else 14 (17 pts) (nesting depth added 3). 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, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/starrocks/parser/StarRocksCreateTableParser.java"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"6df45bfc803c4678b7baf7f41c6a1080fc829ba769cbad57a05df66efe2680bc"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLExprParser.parseAggregateExpr (cognitive 17): SQLExprParser.parseAggregateExpr has cognitive complexity 17 (threshold 15). Drivers by points: if/else 16 (17 pts) (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. 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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":2546}}}],"partialFingerprints":{"codehealthFindingId/v1":"36098a0b27e3d1d4a52191f87db63366abb0727cc04aa0b6b07c3e36528b6ca9"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLExprParser.parseSelectItemRest (cognitive 17): SQLExprParser.parseSelectItemRest has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 2 (nesting depth added 8). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":5790}}}],"partialFingerprints":{"codehealthFindingId/v1":"83d6ed711e77a87bc04cf12dad1a76053da4dff4cbd91241bfb5322eb6ef0dd7"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLParser.alias (cognitive 17): SQLParser.alias has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (14 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLParser.java"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"12d8664bc8c5d825da70e0af22723b0cf2cd02320392012e8c4f2b166cf080b2"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLSelectParser.parseFetchClause (cognitive 17): SQLSelectParser.parseFetchClause has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 4 (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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java"},"region":{"startLine":2198}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bc249613ef76ae9c8d569baeadacfa2e45acb7e16e5862432656fd1089afc3a"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLSelectParser.parseLateralTableSource (cognitive 17): SQLSelectParser.parseLateralTableSource has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java"},"region":{"startLine":1401}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3e847b8de39f3a5a052c45e7acb2514b5e11ddcb75e6571cc3296c63a72601b"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLStatementParser.parseStart (cognitive 17): SQLStatementParser.parseStart has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13 (17 pts) (nesting depth added 4). 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, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":7919}}}],"partialFingerprints":{"codehealthFindingId/v1":"94a5421c1aeea65a809b1086f1921bc4c4e9edbd2e95cae8336cf9d5e696c7da"}},{"ruleId":"D2","level":"warning","message":{"text":"SchemaResolveVisitorFactory.unwrapAlias (cognitive 17): SchemaResolveVisitorFactory.unwrapAlias has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 2, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java"},"region":{"startLine":1359}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0792a2bea43333792133d8cb3a88b266b42220c117440b02d7dbb8e5964cbd3"}},{"ruleId":"D2","level":"warning","message":{"text":"Substring.eval (cognitive 17): Substring.eval has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 5 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. 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":"core/src/main/java/com/alibaba/druid/sql/visitor/functions/Substring.java"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"71d1bf6581021bbfb21e3850ee8cf25ea826a52b3c542cd97569193aaa4602f6"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.replaceQuota (cognitive 17): SQLASTOutputVisitor.replaceQuota has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (11 pts), boolean chains 6 (nesting depth added 6). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":3148}}}],"partialFingerprints":{"codehealthFindingId/v1":"793c4028d7220c1e916ec3dedc44c986676e19efa4b9e5c34bd30bf01fa6ab85"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 17): SQLASTOutputVisitor.visit has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 4 (9 pts), if/else 5 (6 pts), loops 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":4146}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd60f54958c688216a1950320d998b50ce6757283943d3ce8f4e2b31c34fb62e"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 17): SQLASTOutputVisitor.visit has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 7 (12 pts), if/else 5 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":11288}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3defedb5954ce3f7338e7e69cd91edd72ec791201a6a52984ab01557d78215b"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 17): SQLASTOutputVisitor.visit has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 7 (12 pts), if/else 5 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":10206}}}],"partialFingerprints":{"codehealthFindingId/v1":"af8150b0277733727cf34c2b3cf21df0e59545e2538adde09ce742c973bd3068"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLEvalVisitorUtils.visit (cognitive 17): SQLEvalVisitorUtils.visit has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 1 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java"},"region":{"startLine":860}}}],"partialFingerprints":{"codehealthFindingId/v1":"a18ea6009bed409c2f696244cd81ccebaf1b51d2fff3067bc4613f1152242a9d"}},{"ruleId":"D2","level":"warning","message":{"text":"PagerUtils.count (cognitive 17): PagerUtils.count has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 3, loops 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":"core/src/main/java/com/alibaba/druid/sql/PagerUtils.java"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d0e38efd3d7c4accdc50a65d5b1be5a1fe6d019abacb3d3196a8166fdcfaf5c"}},{"ruleId":"D2","level":"warning","message":{"text":"JdbcConnectionStat.afterClose (cognitive 17): JdbcConnectionStat.afterClose has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 2, boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/stat/JdbcConnectionStat.java"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f74e9877816089db2809cefee4bbe5331b7ad232a243e7b68dc64e96863606f"}},{"ruleId":"D2","level":"warning","message":{"text":"WebAppStat.computeUserAgentAndroid (cognitive 17): WebAppStat.computeUserAgentAndroid has cognitive complexity 17 (threshold 15). Drivers by points: if/else 16 (17 pts) (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. 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":"core/src/main/java/com/alibaba/druid/support/http/stat/WebAppStat.java"},"region":{"startLine":850}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ab5dafa073ac5acd531a3ed1a6df3dd68f9fe1c9e915e79030a0c7cb6e007e7"}},{"ruleId":"D2","level":"warning","message":{"text":"AbstractWebStatImpl.getPrincipal (cognitive 17): AbstractWebStatImpl.getPrincipal has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (12 pts), error handling 1 (2 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/support/http/AbstractWebStatImpl.java"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0cf2475742f4a70d12022f2c9f01b2cdbde9ce9bd1345d43b23573a783af4c5"}},{"ruleId":"D2","level":"warning","message":{"text":"AbstractWebStatImpl.getPrincipal (cognitive 17): AbstractWebStatImpl.getPrincipal has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (12 pts), error handling 1 (2 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/support/jakarta/AbstractWebStatImpl.java"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b9a7d8e282ce0848ef7d92b1737edbcd412128b7c4d180e0795630de2a989db"}},{"ruleId":"D2","level":"warning","message":{"text":"FnvHash.hashCode64 (cognitive 17): FnvHash.hashCode64 has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 5, loops 1 (2 pts) (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":"core/src/main/java/com/alibaba/druid/util/FnvHash.java"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"f271fd727419fc1908ebd0d93b0cc5352b5ae6dfa5564ce69619da9b21067d76"}},{"ruleId":"D2","level":"warning","message":{"text":"ServletPathMatcher.matches (cognitive 17): ServletPathMatcher.matches has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 3 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/util/ServletPathMatcher.java"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"67d431caf2b77a4a6f933f3d65960773f0df3827d1f76409d906b5bf2c69d62b"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlWallVisitor.visit (cognitive 17): MySqlWallVisitor.visit has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 5 (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":"core/src/main/java/com/alibaba/druid/wall/spi/MySqlWallVisitor.java"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"83594e757090bb686eb5931fd1022739830178adc4d373ad78f055d5113f9ec9"}},{"ruleId":"D2","level":"warning","message":{"text":"WallVisitorUtils.checkSelect (cognitive 17): WallVisitorUtils.checkSelect has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d40c0fcff601ed1896ee62a4f9fa4c34aabe429444f01298619aa9ef6a02cea"}},{"ruleId":"D2","level":"warning","message":{"text":"WallVisitorUtils.getConditionValue (cognitive 17): WallVisitorUtils.getConditionValue has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 6 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java"},"region":{"startLine":1422}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8a191d8f6797f6f576e93ffb8e62552ac2d334aedf94544f14cb4f5dc8e7e18"}},{"ruleId":"D2","level":"warning","message":{"text":"WallVisitorUtils.isSimpleCaseTableSource (cognitive 17): WallVisitorUtils.isSimpleCaseTableSource has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (17 pts) (nesting depth added 10). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java"},"region":{"startLine":1654}}}],"partialFingerprints":{"codehealthFindingId/v1":"298423f0689f37850f1ccf475b9ec5cc782f24209d2ac01cd49e9790a3610a6c"}},{"ruleId":"D2","level":"warning","message":{"text":"WallVisitorUtils.isTopFromDenySchema (cognitive 17): WallVisitorUtils.isTopFromDenySchema has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java"},"region":{"startLine":1821}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6b6a8b1fe04d72c75a62e9bd8c4d18c79e63fb259d58e467ff2066cff39019b"}},{"ruleId":"D2","level":"warning","message":{"text":"StatFilter.resultSet_close (cognitive 16): StatFilter.resultSet_close has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (15 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/filter/stat/StatFilter.java"},"region":{"startLine":627}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5b6eef6eedc682b2315b838975a1414fc996cf2c9967ebd87969dc2ca909434"}},{"ruleId":"D2","level":"warning","message":{"text":"PoolUpdater.removeDataSources (cognitive 16): PoolUpdater.removeDataSources has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), error handling 2 (5 pts), boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/pool/ha/node/PoolUpdater.java"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"de1d7280500d7884395ea8ad678fff57c1224e6e97bb508f7b7bc23d69f5e53e"}},{"ruleId":"D2","level":"warning","message":{"text":"RandomDataSourceValidateThread.maintainBlacklist (cognitive 16): RandomDataSourceValidateThread.maintainBlacklist has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 2 (4 pts), boolean chains 3 (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":"core/src/main/java/com/alibaba/druid/pool/ha/selector/RandomDataSourceValidateThread.java"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9e376eea520fbcedf7934ee62bfe66d48975f4a6ec25757f7a5f979e11f9e6c"}},{"ruleId":"D2","level":"warning","message":{"text":"DruidPooledPreparedStatement.close (cognitive 16): DruidPooledPreparedStatement.close has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 2, error handling 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/pool/DruidPooledPreparedStatement.java"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"5af0ca60e9ceec1d5f0abf18c04f63c06a00f61d8ae0963673a54db193460694"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLAggregateExpr.accept0 (cognitive 16): SQLAggregateExpr.accept0 has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 1 (2 pts) (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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLAggregateExpr.java"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"87156ad88ee7a2148bf821a3c15d7295fc1e17114979a1c53d3ca9a10cb38e25"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLBetweenExpr.equals (cognitive 16): SQLBetweenExpr.equals has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13 (16 pts) (nesting depth added 3). 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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLBetweenExpr.java"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"edd7f1c6d441ee6e685f19f8a147b667662854a2c8845967aa46c7793eefb25c"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLBinaryOpExpr.and (cognitive 16): SQLBinaryOpExpr.and has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 3 (nesting depth added 3). 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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLBinaryOpExpr.java"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"62691077909cc9433230503939a62342314de174030ce9187a835fc90d4d02fd"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLBinaryOpExpr.andIfNotExists (cognitive 16): SQLBinaryOpExpr.andIfNotExists has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLBinaryOpExpr.java"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"83acd8c62d0dfe7c7d5c11d761bcc490b436d20fe0d4038dcf9ef4b7d91d2c81"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLBinaryOpExprGroup.replace (cognitive 16): SQLBinaryOpExprGroup.replace has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (9 pts), loops 2 (5 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLBinaryOpExprGroup.java"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d3fdeb6bedbc6821b2aaa61882d337fcd08d26910180f8d8397ffda386bc98e"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLIdentifierExpr.computeDataType (cognitive 16): SQLIdentifierExpr.computeDataType has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (12 pts), ternaries 1 (3 pts), loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLIdentifierExpr.java"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8bc5180b136113dc3487c9a518a73f2b62b449a579e61dbf3c658750908ad2b"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLCreateTableStatement.isMUL (cognitive 16): SQLCreateTableStatement.isMUL has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 4, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateTableStatement.java"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"dae6fa48b0175809a170631222ebc1b47a94d6abceb76251e7b3c6ce207983d5"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLSelectQueryBlock.findSelectItem (cognitive 16): SQLSelectQueryBlock.findSelectItem has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 2, loops 2 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java"},"region":{"startLine":1315}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d5a063cec762c4ed514a41bd132d9ac2c6a2a16290b296ae5b3dfa982fd400f"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLSelectQueryBlock.replace (cognitive 16): SQLSelectQueryBlock.replace has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, boolean chains 6. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. 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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java"},"region":{"startLine":1180}}}],"partialFingerprints":{"codehealthFindingId/v1":"e08cfca117147eb63794a7edcb9299f046cec1f3c8ed02f016801f61be67e50a"}},{"ruleId":"D2","level":"warning","message":{"text":"DB2CreateTableParser.parseCreateTableRest (cognitive 16): DB2CreateTableParser.parseCreateTableRest has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (15 pts), loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2CreateTableParser.java"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bf19d0c665b4e5da77efebfd95b095e6723c917109e63bf1da9ecb3c0445ebd"}},{"ruleId":"D2","level":"warning","message":{"text":"DB2StatementParser.parseAlterColumn (cognitive 16): DB2StatementParser.parseAlterColumn has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (15 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2StatementParser.java"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"58f328aac93b0293dc9c616323e4b8c81935cd62c5a60c53efeb8cc8f87ad851"}},{"ruleId":"D2","level":"warning","message":{"text":"DB2StatementParser.parseTruncate (cognitive 16): DB2StatementParser.parseTruncate has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2StatementParser.java"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"8948673fe24cfdb92cc7fcaf739707afffde8d8e6b8283510f1015ddbb0f0f58"}},{"ruleId":"D2","level":"warning","message":{"text":"HiveOutputVisitor.printTableElementsWithComment (cognitive 16): HiveOutputVisitor.printTableElementsWithComment has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (12 pts), boolean chains 2, loops 1 (2 pts) (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":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/visitor/HiveOutputVisitor.java"},"region":{"startLine":707}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a3e5b9448810f43cbd769a8739ac9800a65c4a8bff0cd592ce73f667b494055"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlSubPartitionByValue.isPartitionByColumn (cognitive 16): MySqlSubPartitionByValue.isPartitionByColumn has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 2 (5 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlSubPartitionByValue.java"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3781df150aec29f71f5c9ed199f1e5db48fc55eb7ca220cb08c190db48b839a"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlUpdateStatement.equals (cognitive 16): MySqlUpdateStatement.equals has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, ternaries 3 (5 pts), boolean chains 1 (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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlUpdateStatement.java"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f3f756787b0e8e0e991b1fea8d3566c50123801e35b8d48f1831e2fa6e69157"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlExprParser.methodRestAllowIdentifierMethodSpecific (cognitive 16): MySqlExprParser.methodRestAllowIdentifierMethodSpecific has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (15 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc93c671d98e3fce7823042a46f9f2090e7154b6d01759f00f98611065ab53ff"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlExprParser.userNameRest (cognitive 16): MySqlExprParser.userNameRest has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 1 (nesting depth added 3). 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, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java"},"region":{"startLine":1521}}}],"partialFingerprints":{"codehealthFindingId/v1":"5760f5a45a597cfb73b907ed8f67e52ed8c38d8fd11a41bde99de237c0d09716"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlStatementParser.parseCreateFunction (cognitive 16): MySqlStatementParser.parseCreateFunction has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (15 pts), loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":8221}}}],"partialFingerprints":{"codehealthFindingId/v1":"913336cd150dabac444fcdc8412b41ece8cf7fe61cf15ce72e73fcb69d3b8344"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlOutputVisitor.visit (cognitive 16): MySqlOutputVisitor.visit has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (7 pts), ternaries 2 (5 pts), boolean chains 3, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":3595}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e632b3e0ea7af84a2b8c352b29bbf37b0a6ecbd9253ef3d13ffed4f2f37c743"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlOutputVisitor.visit (cognitive 16): MySqlOutputVisitor.visit has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 5 (9 pts), if/else 6, boolean chains 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":1541}}}],"partialFingerprints":{"codehealthFindingId/v1":"17a4b145efe2e4062b85e25fb2c5d0404dd8851bee3cd3bdda76a2f95d11a5ce"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlOutputVisitor.visit (cognitive 16): MySqlOutputVisitor.visit has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (8 pts), ternaries 4 (8 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":4877}}}],"partialFingerprints":{"codehealthFindingId/v1":"469c1f797d5c5509f0213b57ff193578dd029368b7096753be5e44935c5c22bc"}},{"ruleId":"D2","level":"warning","message":{"text":"OdpsOutputVisitor.visit (cognitive 16): OdpsOutputVisitor.visit has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 4, loops 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":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/visitor/OdpsOutputVisitor.java"},"region":{"startLine":1197}}}],"partialFingerprints":{"codehealthFindingId/v1":"d87ca591b4add7dfe326f706e4b00e1259b3ac2094f3bae88231145cd0518446"}},{"ruleId":"D2","level":"warning","message":{"text":"OdpsOutputVisitor.visit (cognitive 16): OdpsOutputVisitor.visit has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 2, ternaries 1 (nesting depth added 3). 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, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/visitor/OdpsOutputVisitor.java"},"region":{"startLine":1143}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c98258e3adf9560b071de9558144ecc37c8d3effc9166322486649dd0983f0c"}},{"ruleId":"D2","level":"warning","message":{"text":"OdpsOutputVisitor.visit (cognitive 16): OdpsOutputVisitor.visit has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 5 (10 pts), if/else 5 (6 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":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/visitor/OdpsOutputVisitor.java"},"region":{"startLine":796}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2960f800fa933ad363788cd525cbb4352aa5b4f9fb83db754a58cc9c295a75d"}},{"ruleId":"D2","level":"warning","message":{"text":"OracleOutputVisitor.visit (cognitive 16): OracleOutputVisitor.visit has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (9 pts), ternaries 4 (7 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"938142fe6e22ca0d3ac33893f7097dcd6f9c945bb8678c0c40b205ca4385d0be"}},{"ruleId":"D2","level":"warning","message":{"text":"OscarPermissionOutputVisitor.visit (cognitive 16): OscarPermissionOutputVisitor.visit has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 4 (7 pts), if/else 5 (6 pts), boolean chains 2, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarPermissionOutputVisitor.java"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"0182f57fccd87aae2708f72fbfd4e1cb7251c3bed61c10bd35b8024c8a53c73d"}},{"ruleId":"D2","level":"warning","message":{"text":"PGSQLStatementParser.parseDeleteStatement (cognitive 16): PGSQLStatementParser.parseDeleteStatement has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12 (16 pts) (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":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b6ab47dd0fcabf77469765e6d72e3efa1ecef8597a5fe3dd01dee339f3ad18b"}},{"ruleId":"D2","level":"warning","message":{"text":"SnowflakeExprParser.parseJSONObject (cognitive 16): SnowflakeExprParser.parseJSONObject has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 2, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeExprParser.java"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"57c0b4315db7a1935830cf521bc20dc38fb88acc86bc72acccf8dd7a195059d8"}},{"ruleId":"D2","level":"warning","message":{"text":"SnowflakeSelectParser.parseTableSourceSample (cognitive 16): SnowflakeSelectParser.parseTableSourceSample has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (13 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":"core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeSelectParser.java"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"713c1d1daa3f1a7d3e74a38784f2bfb0dc4e27a839f61de14e2aab23a26538fe"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLExprParser.multiplicativeRest (cognitive 16): SQLExprParser.multiplicativeRest has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 3 (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, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"a80b0e3b3d8be59125706938ab510a41aeab23f6334a8ed165f2353b4940aff4"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLStatementParser.alterTableChange (cognitive 16): SQLStatementParser.alterTableChange has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":2783}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bce1669dc0d4545428393c90bededffb3c6daa6b9f4e1e83cee5b600235c6e1"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.printComment (cognitive 16): SQLASTOutputVisitor.printComment has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 6, loops 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. 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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":7229}}}],"partialFingerprints":{"codehealthFindingId/v1":"731d213918852f01916ec10dc2570be982ecf2137bc85434788c3f0f5a456c07"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.printExpr (cognitive 16): SQLASTOutputVisitor.printExpr has cognitive complexity 16 (threshold 15). Drivers by points: if/else 16. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. 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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":1098}}}],"partialFingerprints":{"codehealthFindingId/v1":"828501833ac788346392394cd39224a304c88d3c0f66427f146418bfdc1e61bf"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.unwrapShardingTable (cognitive 16): SQLASTOutputVisitor.unwrapShardingTable has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 7, if/else 5 (7 pts), loops 1, ternaries 1 (nesting depth added 2). 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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":1440}}}],"partialFingerprints":{"codehealthFindingId/v1":"f41697ffee3c70f0d868ab62bbc7d4c77e6c725515e78dd713f7cd2ba232b83b"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 16): SQLASTOutputVisitor.visit has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (7 pts), ternaries 3 (5 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":8993}}}],"partialFingerprints":{"codehealthFindingId/v1":"4314f74ae46e21db205e23fd5abd0a4814e02f1ec789d923d1a72271426c95ef"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 16): SQLASTOutputVisitor.visit has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (15 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":1870}}}],"partialFingerprints":{"codehealthFindingId/v1":"a702b8b7d91bf3b150647995dec4da49ccd7dc0053c2c04a4f13196a85c82376"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 16): SQLASTOutputVisitor.visit has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9, boolean chains 7. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. 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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":2372}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7d039c39dbede7b6c5390cf44a495f9de945df059858a80e685ac41f18d275d"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 16): SQLASTOutputVisitor.visit has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (8 pts), ternaries 3 (8 pts) (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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":7132}}}],"partialFingerprints":{"codehealthFindingId/v1":"169daebdaae002d663af8bd8d0b797227c67dae2fcbb9ece3899684f7ccc501f"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 16): SQLASTOutputVisitor.visit has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (8 pts), ternaries 4 (7 pts), boolean chains 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":6526}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ce3183d3ba7c5fa47c79fd6cb165fe818f486d6e078fd9a43e69bfcbb2b6951"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 16): SQLASTOutputVisitor.visit has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (12 pts), ternaries 2 (4 pts) (nesting depth added 3). 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, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":2946}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bdec1a34126579e1dea28bdf62d22d8331b1970b408755a48e0239f6f3bbd0b"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 16): SQLASTOutputVisitor.visit has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (11 pts), loops 1 (2 pts), ternaries 1 (2 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":4921}}}],"partialFingerprints":{"codehealthFindingId/v1":"b57215fdb1b8cd53812fa236bd60211dc0f205c4888c81bf664c59e799e23065"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 16): SQLASTOutputVisitor.visit has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (9 pts), ternaries 3 (6 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":10769}}}],"partialFingerprints":{"codehealthFindingId/v1":"21cb20e766499e08519c2f35d820b5c52762f42685604c8525cbaf003680c067"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLASTOutputVisitor.visit (cognitive 16): SQLASTOutputVisitor.visit has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (8 pts), ternaries 3 (7 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":5934}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f50a34d1228921e8fc82898796ccbb24bf7d0be8ea91c766ba8d51b1753caca"}},{"ruleId":"D2","level":"warning","message":{"text":"PagerUtils.limitDB2 (cognitive 16): PagerUtils.limitDB2 has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 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":"core/src/main/java/com/alibaba/druid/sql/PagerUtils.java"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b8034aee96c27e14c76c45e6f002dbaf1382943b042767a4daa264497f1db04"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLUtils.getLimit (cognitive 16): SQLUtils.getLimit has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (10 pts), ternaries 3 (6 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/SQLUtils.java"},"region":{"startLine":2231}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae5733ba7683e2e5b546819c8a18ff325591a57f104ff271bf4b8ead9b63fe36"}},{"ruleId":"D2","level":"warning","message":{"text":"IPAddress.parseIPAddress (cognitive 16): IPAddress.parseIPAddress has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 2, error handling 2, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/support/http/util/IPAddress.java"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"374395f9c590e51df6a94dbd9242a86192f8d5f64c91bbd4f127a76f3c7387d0"}},{"ruleId":"D2","level":"warning","message":{"text":"JSONParser.nextToken (cognitive 16): JSONParser.nextToken has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 1, loops 1, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/support/json/JSONParser.java"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"637f5db0b6f368148f125693bbd51b4b62a9b83dbfbe5fdea0ff82d7ccfda1d9"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlUtils.decimal (cognitive 16): MySqlUtils.decimal has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 3 (8 pts), if/else 5 (7 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/util/MySqlUtils.java"},"region":{"startLine":786}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0d0e114d24ee8fe620681bb3cbe1df8d3aa0aea29921432408862df345f08c5"}},{"ruleId":"D2","level":"warning","message":{"text":"WallProvider.checkWhiteAndBlackList (cognitive 16): WallProvider.checkWhiteAndBlackList has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (16 pts) (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":"core/src/main/java/com/alibaba/druid/wall/WallProvider.java"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"86359ae5e070085033f92e14416bd037de7acaef55f13c4b979c3c263468756b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SQLASTOutputVisitor: ClassTooLong \u2014 8233 significant lines (blank, comment-only and punctuation-only lines excluded), 567 methods. The bar is 400 significant lines; this is 7833 over it, 20.58\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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"e37bbdb126678217e160d16f693266724c331615ca6e70414e3739fd90bed9a6"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SQLASTOutputVisitor: TooManyMethods \u2014 567 methods. The bar is 30 methods; this is 537 over it, 18.90\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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"771a848b85b42b1b281cfb531f061f363207734c3da6b55feb385baf6b41c327"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: visitor/SQLASTOutputVisitor.java: FileTooLong \u2014 8280 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: SQLASTOutputVisitor (67-12536). The bar is 500 significant lines; this is 7780 over it, 16.56\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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d67a7db8e4515ae6c1fe3a70669a46a6a99c1c8375764858f3fb746275ba4b3f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: FilterChainImpl: TooManyMethods \u2014 496 methods. The bar is 30 methods; this is 466 over it, 16.53\u00D7 the bar. Most of these members implement filter.FilterChain (295 of 300 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/filter/FilterChainImpl.java"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"299ef0b16b3e7e0e58d18ca8cfef3230307cc8fbfdc4be184a353d6cf16d49d0"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: FilterAdapter: TooManyMethods \u2014 488 methods. The bar is 30 methods; this is 458 over it, 16.27\u00D7 the bar. Most of these members implement filter.Filter (294 of 294 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/filter/FilterAdapter.java"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5c583d4956ec7ec9cd89d56f3712eed932d64febb32205849f42c0eba09ce59"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SQLStatementParser: ClassTooLong \u2014 5436 significant lines (blank, comment-only and punctuation-only lines excluded), 246 methods. The bar is 400 significant lines; this is 5036 over it, 13.59\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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"320e408070d0c65ff2b28e53b90c83e8ca44c2d91d1a0d6165c7d21205af0f6c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: parser/MySqlStatementParser.java: FileTooLong \u2014 5735 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 5235 over it, 11.47\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a67a7dfc4f2a96f67f67844253c5de014f86ddd2443e776faa66caa2f887d5d4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: parser/SQLStatementParser.java: FileTooLong \u2014 5465 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: SQLStatementParser (49-7983). The bar is 500 significant lines; this is 4965 over it, 10.93\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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc4c084cbe8140c330a5326f3e8c6b87fc62a97c0360798f71dd7b2fc2d92e20"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: parser/SQLExprParser.java: FileTooLong \u2014 4815 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 4315 over it, 9.63\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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef12e883e9a78d26faba2c759e94279f7cf0d85cf7afa5e54ed71c8d810755ba"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MySqlOutputVisitor: ClassTooLong \u2014 3724 significant lines (blank, comment-only and punctuation-only lines excluded), 225 methods. The bar is 400 significant lines; this is 3324 over it, 9.31\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"74361720e3f6d6e82dff70e1450ea2b5794ca24b4d5a0816cde98758f6572721"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DruidAbstractDataSource: TooManyMethods \u2014 262 methods. The bar is 30 methods; this is 232 over it, 8.73\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":"core/src/main/java/com/alibaba/druid/pool/DruidAbstractDataSource.java"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"cab53b704b134f9e48d430255eb562944c75c434438da46e16b1db000d59eb17"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: FilterChainImpl: ClassTooLong \u2014 3439 significant lines (blank, comment-only and punctuation-only lines excluded), 496 methods. The bar is 400 significant lines; this is 3039 over it, 8.60\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":"core/src/main/java/com/alibaba/druid/filter/FilterChainImpl.java"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e7f56cc7d4ddff06d124e15d660fac1b7c2c42e5f976f08d545e9596f1dc6c7"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SQLStatementParser: TooManyMethods \u2014 246 methods. The bar is 30 methods; this is 216 over it, 8.20\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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"5857f8d94753d4869d8fd1178bb31566603213187076c9cf0dda013d2747446a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MySqlOutputVisitor: TooManyMethods \u2014 225 methods. The bar is 30 methods; this is 195 over it, 7.50\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e844280f7a4ddf43ec7dbecdb42b07ad9a16329dea5fa820aeb436b5371cbb2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: visitor/MySqlOutputVisitor.java: FileTooLong \u2014 3746 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: MySqlOutputVisitor (41-5722). The bar is 500 significant lines; this is 3246 over it, 7.49\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce1ea51a60ad04b6e6b57157a5bae3ecb6aa5d64601b7835916dc16c5b5eb7e6"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ResultSetProxyImpl: TooManyMethods \u2014 219 methods. The bar is 30 methods; this is 189 over it, 7.30\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":"core/src/main/java/com/alibaba/druid/proxy/jdbc/ResultSetProxyImpl.java"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a2287400fd16bb6af0acc02d062706ff62b61b17e8e45c1779ae9dcc7d8db85"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: filter/FilterChainImpl.java: FileTooLong \u2014 3453 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: FilterChainImpl (36-5287). The bar is 500 significant lines; this is 2953 over it, 6.91\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":"core/src/main/java/com/alibaba/druid/filter/FilterChainImpl.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2b3b1cd5f3f4876237194076d1281bf4647910a545e4c7f412df38b7222d0d5"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SchemaStatVisitor: TooManyMethods \u2014 207 methods. The bar is 30 methods; this is 177 over it, 6.90\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":"core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"b468de6f939bd52239ddf037b35f89ac771ad9098feffefcec66320207f9c20e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SQLExprParser: TooManyMethods \u2014 199 methods. The bar is 30 methods; this is 169 over it, 6.63\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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"7548c9be71eacba9e9c928ca0a70894790bf021f2595af9b722a5e1ed3f82d18"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DruidPooledResultSet: TooManyMethods \u2014 194 methods. The bar is 30 methods; this is 164 over it, 6.47\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":"core/src/main/java/com/alibaba/druid/pool/DruidPooledResultSet.java"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"02a9a739b0ca32fad61ee47b7a3ff62dcc9e5f8cff5a5e04374eee22aa31fd94"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ResultSetBase: TooManyMethods \u2014 192 methods. The bar is 30 methods; this is 162 over it, 6.40\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":"core/src/main/java/com/alibaba/druid/util/jdbc/ResultSetBase.java"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"76c6c15175fcc20f288ff9ec676bc99e64941c36ed8dfadbd630c991345a96f4"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DruidDataSource: ClassTooLong \u2014 2503 significant lines (blank, comment-only and punctuation-only lines excluded), 144 methods. The bar is 400 significant lines; this is 2103 over it, 6.26\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":"core/src/main/java/com/alibaba/druid/pool/DruidDataSource.java"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"a772d85377ab233a6ac61e4ceed425b4f8419fa91d562dd7b944c8f1fbe4c699"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Lexer: ClassTooLong \u2014 2482 significant lines (blank, comment-only and punctuation-only lines excluded), 120 methods. The bar is 400 significant lines; this is 2082 over it, 6.21\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":"core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"98641c657002c66d477c3358149234a43a93089d760afdbdf9ffcc0bdbde503c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DatabaseMetaDataProxyImpl: TooManyMethods \u2014 177 methods. The bar is 30 methods; this is 147 over it, 5.90\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":"core/src/main/java/com/alibaba/druid/proxy/jdbc/DatabaseMetaDataProxyImpl.java"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"03ef612c7dc293afbbf5025d51dff67979656c68d42d734449a0eca83e34f49f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: OracleStatementParser: ClassTooLong \u2014 2221 significant lines (blank, comment-only and punctuation-only lines excluded), 53 methods. The bar is 400 significant lines; this is 1821 over it, 5.55\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7f46d0762b6faaa662a41d734cfe5995119b98a9775d619527ce9cdb6423657"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WallConfig: TooManyMethods \u2014 166 methods. The bar is 30 methods; this is 136 over it, 5.53\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":"core/src/main/java/com/alibaba/druid/wall/WallConfig.java"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"f52eebe5334b53f0ffce919b1328b3603d8ee2bf6586f490436f8002235f5bd0"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PGOutputVisitor: TooManyMethods \u2014 163 methods. The bar is 30 methods; this is 133 over it, 5.43\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":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"39bac733a625025e474b08b09c23e9407717f01231d1e317b395ce83977f1736"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WallFilter: TooManyMethods \u2014 161 methods. The bar is 30 methods; this is 131 over it, 5.37\u00D7 the bar. Most of these members implement filter.Filter (97 of 127 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/wall/WallFilter.java"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"e05d74c5727a1bb464c3720445413453866313fc59961fe6017d8f13a1052b65"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SchemaStatVisitor: ClassTooLong \u2014 2051 significant lines (blank, comment-only and punctuation-only lines excluded), 207 methods. The bar is 400 significant lines; this is 1651 over it, 5.13\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":"core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5ca1660de398b2ea0e8a8f99f2100431df5b6d6bb59c286eb7c69e5a6d40676"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: pool/DruidDataSource.java: FileTooLong \u2014 2560 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: DruidDataSource (81-3991). The bar is 500 significant lines; this is 2060 over it, 5.12\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":"core/src/main/java/com/alibaba/druid/pool/DruidDataSource.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"284effc305013252f2cebf7ccab8d2bde93c875b5a52e90efe5bf359a4b1e04d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PGOutputVisitor: ClassTooLong \u2014 2046 significant lines (blank, comment-only and punctuation-only lines excluded), 163 methods. The bar is 400 significant lines; this is 1646 over it, 5.12\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":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"580953f97bc0a591e5be0180f5a609d2da85563c6861a61a416964f76971e320"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SQLCreateTableStatement: TooManyMethods \u2014 152 methods. The bar is 30 methods; this is 122 over it, 5.07\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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateTableStatement.java"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b8bfd23bfee1fd107ef59ff29bc6452ab67d488146e46bc2392498b9442a91f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MySqlSchemaStatVisitor: TooManyMethods \u2014 151 methods. The bar is 30 methods; this is 121 over it, 5.03\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlSchemaStatVisitor.java"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c1c09bc9f7ea383fd84a503c5ae2af0f821c32c817d7d5536df44d6bc92398d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: parser/Lexer.java: FileTooLong \u2014 2500 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: Lexer (41-3524). The bar is 500 significant lines; this is 2000 over it, 5.00\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":"core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"95495a8f88a282a63d1594d71231fb1ec744ad06038acf658596e65aeb5e825a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: OracleOutputVisitor: ClassTooLong \u2014 1961 significant lines (blank, comment-only and punctuation-only lines excluded), 130 methods. The bar is 400 significant lines; this is 1561 over it, 4.90\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"23a6be1dd74d2b56516aaa5c4db9df0a5894342e7d6d387bf617595763cd5b49"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OracleStatementParser.parseStatementList: MethodTooLong \u2014 parseStatementList runs 481 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 381 over it, 4.81\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"24e2c5086d318c94753f36d0b1b0281ff4800f2403cf725713101274013adc44"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DruidDataSource: TooManyMethods \u2014 144 methods. The bar is 30 methods; this is 114 over it, 4.80\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":"core/src/main/java/com/alibaba/druid/pool/DruidDataSource.java"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"45fadc13865d5e7b363035ea7371cf122adad3b853c5aea53369118d3f3f377c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MySqlExprParser: ClassTooLong \u2014 1897 significant lines (blank, comment-only and punctuation-only lines excluded), 49 methods. The bar is 400 significant lines; this is 1497 over it, 4.74\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"d41e2b300fed71e9bae1452c734fb25c53f5211b3225f632e70dfa7afad3356e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: FilterAdapter: ClassTooLong \u2014 1861 significant lines (blank, comment-only and punctuation-only lines excluded), 488 methods. The bar is 400 significant lines; this is 1461 over it, 4.65\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":"core/src/main/java/com/alibaba/druid/filter/FilterAdapter.java"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"db5afdd2ac3d4f8672820aef18b362efd9d218432a10d75d98dc32f203ab6f71"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: parser/OracleStatementParser.java: FileTooLong \u2014 2238 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: OracleStatementParser (37-3175). The bar is 500 significant lines; this is 1738 over it, 4.48\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f1e50f09b48a6fc899494a727afa440f4a3d4b63fd6d1152a7bdc51e066bec1"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MySqlStatementParser: TooManyMethods \u2014 132 methods. The bar is 30 methods; this is 102 over it, 4.40\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"571ba75446efe516fbe222f56606f6d8d7646bbc34537d0b6e397e80a20b22a4"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: OracleOutputVisitor: TooManyMethods \u2014 130 methods. The bar is 30 methods; this is 100 over it, 4.33\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b48e55aca0c4928ab3ba6475d6760d52a27f1bed206eb75eed2bc06dd71ee0d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SQLSelectParser.parseTableSourceRest: MethodTooLong \u2014 parseTableSourceRest runs 432 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 332 over it, 4.32\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java"},"region":{"startLine":1601}}}],"partialFingerprints":{"codehealthFindingId/v1":"226c321105027354f7d026afe18549922e34676d6c38c98be476e7618993acba"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SQLSelectParser: ClassTooLong \u2014 1722 significant lines (blank, comment-only and punctuation-only lines excluded), 58 methods. The bar is 400 significant lines; this is 1322 over it, 4.31\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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"70922e356f9b1a2503c1f041117d0671555c5d2b136a506aad56fe88f3d8a655"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WebAppStatValue: TooManyMethods \u2014 128 methods. The bar is 30 methods; this is 98 over it, 4.27\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":"core/src/main/java/com/alibaba/druid/support/http/stat/WebAppStatValue.java"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a38f1bab3335d5ede8eb6b8edabd05d38ae83efe359e34796b691ceadde98c9"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SQLUtils: TooManyMethods \u2014 127 methods. The bar is 30 methods; this is 97 over it, 4.23\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":"core/src/main/java/com/alibaba/druid/sql/SQLUtils.java"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"feff872a90a74f81926b0e7956d834287c094ddb845da4ff994d4b1c3854ddd0"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SQLSelectQueryBlock: TooManyMethods \u2014 127 methods. The bar is 30 methods; this is 97 over it, 4.23\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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5d03a70b8f4187d45f1bfdf8a46de6af15475f66913dc38b9dac2709789a036"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: visitor/SchemaStatVisitor.java: FileTooLong \u2014 2074 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: SchemaStatVisitor (42-3341). The bar is 500 significant lines; this is 1574 over it, 4.15\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":"core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d60b776d897cbf1c4bf5028186034842409ce01f762916ebf3f076c45ea69cc3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: visitor/PGOutputVisitor.java: FileTooLong \u2014 2071 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: PGOutputVisitor (44-3126). The bar is 500 significant lines; this is 1571 over it, 4.14\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":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c4230973298de4727f4063a6c880d997f254abd97c9c9b1ea5fd9a28d557731"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: OscarOutputVisitor: TooManyMethods \u2014 124 methods. The bar is 30 methods; this is 94 over it, 4.13\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f410da6cc3cb55800b9c9009b1d624cb9c5db9f10b6e34088581adb66aaf358"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Lexer: TooManyMethods \u2014 120 methods. The bar is 30 methods; this is 90 over it, 4.00\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":"core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3f5f9d7324669c0806a384b981babf2c57749bd8ec0bbe159a4bd7ca120e500"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: visitor/OracleOutputVisitor.java: FileTooLong \u2014 1988 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: OracleOutputVisitor (46-3011). The bar is 500 significant lines; this is 1488 over it, 3.98\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c909222fc2c86456daa40f5478da72f311a62b3e1435d7b61d5f1c9ad3ba996f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DruidPooledCallableStatement: TooManyMethods \u2014 117 methods. The bar is 30 methods; this is 87 over it, 3.90\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":"core/src/main/java/com/alibaba/druid/pool/DruidPooledCallableStatement.java"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c1e817d68c1898a88d14866cec067e907713a43a940840107186d0ef6fa0cdd"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: OracleExprParser: ClassTooLong \u2014 1557 significant lines (blank, comment-only and punctuation-only lines excluded), 39 methods. The bar is 400 significant lines; this is 1157 over it, 3.89\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b137e5bbd8353cf6fd30a7f5baed5360f4d6e2e811e90b65318f6f960f76ae2"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CallableStatementProxyImpl: TooManyMethods \u2014 116 methods. The bar is 30 methods; this is 86 over it, 3.87\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":"core/src/main/java/com/alibaba/druid/proxy/jdbc/CallableStatementProxyImpl.java"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"c26d526260e0a47b09e76e203e8e0211bb030d613896620ac34a464c9444fed2"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: OscarOutputVisitor: ClassTooLong \u2014 1545 significant lines (blank, comment-only and punctuation-only lines excluded), 124 methods. The bar is 400 significant lines; this is 1145 over it, 3.86\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8d4b3dcef20e2e10208609f3a26e62049b925a31ee819be93a2c67477360e01"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: parser/MySqlExprParser.java: FileTooLong \u2014 1919 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: MySqlExprParser (41-2689). The bar is 500 significant lines; this is 1419 over it, 3.84\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"531434981f0407229934b1e1e75c831a65f17e80717304c9b930ca8f43de70f2"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MockCallableStatement: TooManyMethods \u2014 115 methods. The bar is 30 methods; this is 85 over it, 3.83\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":"core/src/main/java/com/alibaba/druid/mock/MockCallableStatement.java"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e468b1443513c7496853cb6c641983919b5cacd383c06cf07fe49a809060397"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MySqlUtils.parseDateTime: MethodTooLong \u2014 parseDateTime runs 380 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 280 over it, 3.80\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/util/MySqlUtils.java"},"region":{"startLine":1436}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fe958bdff31ca5a97ce443e18428ff58963451567a97f1358f3b9dc005867a8"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SchemaResolveVisitorFactory: ClassTooLong \u2014 1514 significant lines (blank, comment-only and punctuation-only lines excluded), 31 methods. The bar is 400 significant lines; this is 1114 over it, 3.79\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":"core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"59b66bd034d6a6b5bbafb6357adde5a64d05b13c92356b6651eb37bf6381065d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SQLUtils: ClassTooLong \u2014 1512 significant lines (blank, comment-only and punctuation-only lines excluded), 127 methods. The bar is 400 significant lines; this is 1112 over it, 3.78\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":"core/src/main/java/com/alibaba/druid/sql/SQLUtils.java"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0cc432fa0020a7c2e1ebf9d862333c5a24a65e7a21860a9ccf1be29f3d6f531"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: filter/FilterAdapter.java: FileTooLong \u2014 1874 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: FilterAdapter (38-2891). The bar is 500 significant lines; this is 1374 over it, 3.75\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":"core/src/main/java/com/alibaba/druid/filter/FilterAdapter.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"084a0d815ec75de95478af8c975942c65cad6a1395ae7f5b1a406460ac49407d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SQLColumnDefinition: TooManyMethods \u2014 112 methods. The bar is 30 methods; this is 82 over it, 3.73\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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLColumnDefinition.java"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1e2a05e01cf2e925dede98c72a9597c421ab008b0d4ce485b50dfb4b3d9143a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OdpsStatementParser.parseStatementListDialect: MethodTooLong \u2014 parseStatementListDialect runs 373 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 273 over it, 3.73\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsStatementParser.java"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecef9deafad32339e3a64424a40f51557681a301a09ad4c2426acb6fb05cd65b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MySqlUtils: ClassTooLong \u2014 1491 significant lines (blank, comment-only and punctuation-only lines excluded), 27 methods. The bar is 400 significant lines; this is 1091 over it, 3.73\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":"core/src/main/java/com/alibaba/druid/util/MySqlUtils.java"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a21a8f703a8074115f9f180710393224ca95b8ca637dce16144f26fd11c1763"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MySqlCreateTableParser.parseCreateTable: MethodTooLong \u2014 parseCreateTable runs 352 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 252 over it, 3.52\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"dade977d5d6c5e1251637ce36d4b8e1ac065105bf8d283314d6488c818482083"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DruidAbstractDataSource: ClassTooLong \u2014 1392 significant lines (blank, comment-only and punctuation-only lines excluded), 262 methods. The bar is 400 significant lines; this is 992 over it, 3.48\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":"core/src/main/java/com/alibaba/druid/pool/DruidAbstractDataSource.java"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"abbbd579959c9cd7ff75555258c7cb84ac0a980d478f6dda088acb14323a7deb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: parser/SQLSelectParser.java: FileTooLong \u2014 1735 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: SQLSelectParser (33-2554). The bar is 500 significant lines; this is 1235 over it, 3.47\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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eb2151e03366bc1200bd16294bc00060df664be99ba4901f577f9ed8820473b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MySqlUtils.parseDate: MethodTooLong \u2014 parseDate runs 347 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 247 over it, 3.47\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/util/MySqlUtils.java"},"region":{"startLine":978}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb5432ae2ce3085cb58c4437e6102b8a82b39e3db7b5dc84d3bd5933b00b818b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LogFilter: TooManyMethods \u2014 104 methods. The bar is 30 methods; this is 74 over it, 3.47\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":"core/src/main/java/com/alibaba/druid/filter/logging/LogFilter.java"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ee0a9250fa891827523c7864d30f96da67db650701268da6003522d7c6baf40"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: spi/WallVisitorUtils.java: FileTooLong \u2014 1732 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1232 over it, 3.46\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":"core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c383c311d59571fc63f4d44b82bb11ecac4d6f2bdeae521303bdd42c8f38bb03"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DruidDataSourceStatValue: TooManyMethods \u2014 101 methods. The bar is 30 methods; this is 71 over it, 3.37\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":"core/src/main/java/com/alibaba/druid/pool/DruidDataSourceStatValue.java"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebd0b5a65459b69dffa4751a55ba625c49739ab10382d105902a17da4de8f98a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SQLEvalVisitorUtils: ClassTooLong \u2014 1334 significant lines (blank, comment-only and punctuation-only lines excluded), 52 methods. The bar is 400 significant lines; this is 934 over it, 3.34\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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b35fdb170ad8d65acdd02044e60498034e268401a130fe60dcf1f3ce2f070d8"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DruidDataSourceC3P0Adapter: TooManyMethods \u2014 100 methods. The bar is 30 methods; this is 70 over it, 3.33\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":"core/src/main/java/com/alibaba/druid/pool/DruidDataSourceC3P0Adapter.java"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a826f0dff17c262e885e544f7a27d985daeb2186c0c76b9db3bbf7cfbfecf11"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: JdbcSqlStatValue: TooManyMethods \u2014 99 methods. The bar is 30 methods; this is 69 over it, 3.30\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":"core/src/main/java/com/alibaba/druid/stat/JdbcSqlStatValue.java"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b4fab5ee99df2fe4c53587decfc4f1c7f1bcf987a3343f49f740a5cc8eda831"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WebAppStat: TooManyMethods \u2014 99 methods. The bar is 30 methods; this is 69 over it, 3.30\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":"core/src/main/java/com/alibaba/druid/support/http/stat/WebAppStat.java"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2825d7c6bae851a7d7c87c61ca2a16d731e6283fa804cf35a1138b602f0bc04"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CalciteMySqlNodeVisitor: ClassTooLong \u2014 1312 significant lines (blank, comment-only and punctuation-only lines excluded), 72 methods. The bar is 400 significant lines; this is 912 over it, 3.28\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":"core/src/main/java/com/alibaba/druid/support/calcite/CalciteMySqlNodeVisitor.java"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"6666e97f1fb128334c7bc3b9297d2cb2522b1d3dff1c8ed14ca8b188aa95389a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OdpsCreateTableParser.parseCreateTable: MethodTooLong \u2014 parseCreateTable runs 319 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 219 over it, 3.19\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsCreateTableParser.java"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"08671ff79dd685e0a04b264d71b122e852627e06b49c303aa032285e36d86b3a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: sql/SQLUtils.java: FileTooLong \u2014 1588 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: SQLUtils (95-2609). The bar is 500 significant lines; this is 1088 over it, 3.18\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":"core/src/main/java/com/alibaba/druid/sql/SQLUtils.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd8b2869a76f2531a58cbbe4222e75e01e093f47e76c3fd09781f389c4b324ea"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DruidPooledConnection: TooManyMethods \u2014 95 methods. The bar is 30 methods; this is 65 over it, 3.17\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":"core/src/main/java/com/alibaba/druid/pool/DruidPooledConnection.java"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5e97591fe9e3fa078039289b502267befb1297b0d948c45bc86a95195763c7a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SQLASTVisitor: ClassTooLong \u2014 1263 significant lines (blank, comment-only and punctuation-only lines excluded), 792 methods. The bar is 400 significant lines; this is 863 over it, 3.16\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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTVisitor.java"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"10142523c6abcbd720087aa5afa505f5b88228a134586a824b2e11515643d8f7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: parser/OracleExprParser.java: FileTooLong \u2014 1578 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: OracleExprParser (40-2184). The bar is 500 significant lines; this is 1078 over it, 3.16\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5eb859113f3c6295c263e6d3887e980d6f5794e602378d12fcc776df155073f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: visitor/OscarOutputVisitor.java: FileTooLong \u2014 1566 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: OscarOutputVisitor (40-2397). The bar is 500 significant lines; this is 1066 over it, 3.13\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"57633192e580b2d31378e5cf72c9afd7f625ccb772f3d37ec98db932646bcd40"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: repository/SchemaResolveVisitorFactory.java: FileTooLong \u2014 1548 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: SchemaResolveVisitorFactory (53-2466). The bar is 500 significant lines; this is 1048 over it, 3.10\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":"core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a11f751f8d886225a5030be61e459189c713ad30f98b2330a8d1bb272e4f6a8d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: util/MySqlUtils.java: FileTooLong \u2014 1507 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: MySqlUtils (36-1995). The bar is 500 significant lines; this is 1007 over it, 3.01\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":"core/src/main/java/com/alibaba/druid/util/MySqlUtils.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b1098fde07c76ca280a93971ccbe3220fde4d41b5e835f5dd147870265578d3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SQLEvalVisitorUtils.visit: MethodTooLong \u2014 visit runs 296 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 196 over it, 2.96\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"6805d46d7b65b31855686cc21ee7513b46dfabffb21e81e558544755e7ba45c7"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ResultSetProxyImpl: ClassTooLong \u2014 1168 significant lines (blank, comment-only and punctuation-only lines excluded), 219 methods. The bar is 400 significant lines; this is 768 over it, 2.92\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":"core/src/main/java/com/alibaba/druid/proxy/jdbc/ResultSetProxyImpl.java"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"810bff0ff52d6de17e42bc2bee433fe596e476d3c1ebe7c1ae92bab1b266dc36"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: OdpsStatementParser: ClassTooLong \u2014 1168 significant lines (blank, comment-only and punctuation-only lines excluded), 32 methods. The bar is 400 significant lines; this is 768 over it, 2.92\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":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsStatementParser.java"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ac602d799b749d5f7e2e417784c6ef95eb375afc9dfe801d9c26f8a761015a2"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MySqlExprParser.primary: MethodTooLong \u2014 primary runs 291 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 191 over it, 2.91\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java"},"region":{"startLine":915}}}],"partialFingerprints":{"codehealthFindingId/v1":"378558f9784d578984fd753733df457d5057fface3d68119cfa5d38333127b4c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DruidPooledResultSet: ClassTooLong \u2014 1160 significant lines (blank, comment-only and punctuation-only lines excluded), 194 methods. The bar is 400 significant lines; this is 760 over it, 2.90\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":"core/src/main/java/com/alibaba/druid/pool/DruidPooledResultSet.java"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ee17833b292eca4b453e1b49ab7de60db9e2efbf9d29cac8303097d4af17610"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MySqlCreateTableParser.parseOptions: MethodTooLong \u2014 parseOptions runs 287 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 187 over it, 2.87\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java"},"region":{"startLine":628}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd77f431b438fee270204f6ea8d0c49d332e04cb421527780657b42f282691b5"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: HighAvailableDataSource: TooManyMethods \u2014 86 methods. The bar is 30 methods; this is 56 over it, 2.87\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":"core/src/main/java/com/alibaba/druid/pool/ha/HighAvailableDataSource.java"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3edbbda52921cbe89bfedc4e6427b565503df4a06d1b8e6144e7529f2d38183"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SQLCreateMaterializedViewStatement: TooManyMethods \u2014 86 methods. The bar is 30 methods; this is 56 over it, 2.87\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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateMaterializedViewStatement.java"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7ec864cd64d9923a3d44ee232130540a58325c19108864959d51724af6dba7e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: pool/DruidAbstractDataSource.java: FileTooLong \u2014 1430 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: DruidAbstractDataSource (63-2389). The bar is 500 significant lines; this is 930 over it, 2.86\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":"core/src/main/java/com/alibaba/druid/pool/DruidAbstractDataSource.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e05547c23ad8eece8a5a1ae88dedb97a0968dd99bed8cb4281ef420980783039"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SQLStatementParser.parseStatementList: MethodTooLong \u2014 parseStatementList runs 285 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 185 over it, 2.85\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7818b7ddd6f0ed70d48724f99e849c6bb2903ed155c8a87748d3237db7d6013"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: JdbcSqlStat: TooManyMethods \u2014 85 methods. The bar is 30 methods; this is 55 over it, 2.83\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":"core/src/main/java/com/alibaba/druid/stat/JdbcSqlStat.java"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"d092f419c9937c8b9eae134a8dd01d673c650eace8c4492b9e8e8e67e5fa8a7c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MySqlCreateTableParser: ClassTooLong \u2014 1126 significant lines (blank, comment-only and punctuation-only lines excluded), 14 methods. The bar is 400 significant lines; this is 726 over it, 2.82\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e7a2da8b01a86fe75814471dc3ce5c7202900f8a4b510d56c88df3d757d07c5"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WallFilter: ClassTooLong \u2014 1111 significant lines (blank, comment-only and punctuation-only lines excluded), 161 methods. The bar is 400 significant lines; this is 711 over it, 2.78\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":"core/src/main/java/com/alibaba/druid/wall/WallFilter.java"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"27b2c86ea85e0237d22e3e4ff4b7508544150725b21d7e936c4c97f0bb8c0eaf"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OracleCreateTableParser.parseCreateTable: MethodTooLong \u2014 parseCreateTable runs 273 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 173 over it, 2.73\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleCreateTableParser.java"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"366824c37c2bfe2e6117ec8611e4dbb4c005ab245fe5ce1a7d6f174e5a418ea6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: visitor/SQLEvalVisitorUtils.java: FileTooLong \u2014 1361 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: SQLEvalVisitorUtils (47-2167). The bar is 500 significant lines; this is 861 over it, 2.72\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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f34e012bbfde35197d1bab8b657200d086afeb940a7df6b1bf9fab6d0c607cd"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: StatFilter: TooManyMethods \u2014 80 methods. The bar is 30 methods; this is 50 over it, 2.67\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":"core/src/main/java/com/alibaba/druid/filter/stat/StatFilter.java"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"97c29fc0955f682c5786622a71b05e67494af7180ed0fbe3a448fe3248bc79cb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: calcite/CalciteMySqlNodeVisitor.java: FileTooLong \u2014 1333 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: CalciteMySqlNodeVisitor (25-1844). The bar is 500 significant lines; this is 833 over it, 2.67\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":"core/src/main/java/com/alibaba/druid/support/calcite/CalciteMySqlNodeVisitor.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5873f3112289bc70093eac0701542f7fb7f3f9ae0a36a6ecbc2f15acab79f83e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Lexer.scanSQLType: MethodTooLong \u2014 scanSQLType runs 266 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 166 over it, 2.66\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java"},"region":{"startLine":696}}}],"partialFingerprints":{"codehealthFindingId/v1":"692455d6190c2339ac032383cc415b7331e005988177f8c15cf960b6e010b4a9"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PreparedStatementProxyImpl: TooManyMethods \u2014 79 methods. The bar is 30 methods; this is 49 over it, 2.63\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":"core/src/main/java/com/alibaba/druid/proxy/jdbc/PreparedStatementProxyImpl.java"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f014c69c6d4cb0b1b1ff0bbd38d9d64b35530e42b093b00fbf601088390bebe"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WallVisitorUtils: TooManyMethods \u2014 77 methods. The bar is 30 methods; this is 47 over it, 2.57\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":"core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"c652eca22af64d85b32398ebbbb1cdca2852934f20c0e01847d80f61dc008d4d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: visitor/SQLASTVisitor.java: FileTooLong \u2014 1282 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: SQLASTVisitor (40-2925). The bar is 500 significant lines; this is 782 over it, 2.56\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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTVisitor.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"da70a8b501931bac88a4d385b35230996d3f271599e315bcac5e9ad53f3c4f91"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PGSQLStatementParser: ClassTooLong \u2014 1024 significant lines (blank, comment-only and punctuation-only lines excluded), 41 methods. The bar is 400 significant lines; this is 624 over it, 2.56\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":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"04404b3522f3386aeb9d1e5ff2231edd6ecfb35d15e26938b507682ef0c00423"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SQLCreateTableStatement: ClassTooLong \u2014 1008 significant lines (blank, comment-only and punctuation-only lines excluded), 152 methods. The bar is 400 significant lines; this is 608 over it, 2.52\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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateTableStatement.java"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f099ef73c3b2725f027d9e6e262a0a348c3236e2484f50f665d6d76e6bc4232"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SQLStatementParser.parsePrivilege: MethodTooLong \u2014 parsePrivilege runs 251 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 151 over it, 2.51\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":1709}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4f2412051776da85262c56a40a0b624ff1b3c3902b2dde951b0f711bb6f5147"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SQLSelectQueryBlock: ClassTooLong \u2014 1001 significant lines (blank, comment-only and punctuation-only lines excluded), 127 methods. The bar is 400 significant lines; this is 601 over it, 2.50\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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"061fff5265745c06fadda1bb2acb4219f47cce55e7dc79417451e30d0aa35ce1"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DruidPooledPreparedStatement: TooManyMethods \u2014 75 methods. The bar is 30 methods; this is 45 over it, 2.50\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":"core/src/main/java/com/alibaba/druid/pool/DruidPooledPreparedStatement.java"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"7daafb14041251d2e64c7ede33bdebe787ab1e948ca1d2a0f78723c529af869a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: FnvHash: ClassTooLong \u2014 995 significant lines (blank, comment-only and punctuation-only lines excluded), 15 methods. The bar is 400 significant lines; this is 595 over it, 2.49\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":"core/src/main/java/com/alibaba/druid/util/FnvHash.java"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cb4378a663b4909bf499a269bfb8d9bad9065128c98a473f367b6c65fd31988"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SQLTimestampExpr.check: MethodTooLong \u2014 check runs 246 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 146 over it, 2.46\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTimestampExpr.java"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"25d30b8a64db432f2470a7adfd9480f03eca79a60f3d926fd6e61333d0acce57"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SQLStatementParser.parseValueClauseNative: MethodTooLong \u2014 parseValueClauseNative runs 246 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 146 over it, 2.46\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":6057}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f3a505305d98b3e1180ae01997d4cdcf83c48bc6321cf1d5de213c41c2397dc"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CalciteMySqlNodeVisitor: TooManyMethods \u2014 72 methods. The bar is 30 methods; this is 42 over it, 2.40\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":"core/src/main/java/com/alibaba/druid/support/calcite/CalciteMySqlNodeVisitor.java"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcc5897887912ea9596908f26e11f5becc15fab59e3fb8ba43ad452f7c4f333d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: parser/OdpsStatementParser.java: FileTooLong \u2014 1193 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: OdpsStatementParser (45-1755). The bar is 500 significant lines; this is 693 over it, 2.39\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":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsStatementParser.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5df64dc308e578a71aa3475612d9f4b312d4d1cec5ae0a0db772561f1d95df03"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: jdbc/ResultSetProxyImpl.java: FileTooLong \u2014 1179 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: ResultSetProxyImpl (33-1666). The bar is 500 significant lines; this is 679 over it, 2.36\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":"core/src/main/java/com/alibaba/druid/proxy/jdbc/ResultSetProxyImpl.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b2e08707d7dfd6266949f882bc10005fe9d4fb80b7e8a7bcdf65f5148f1680f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: pool/DruidPooledResultSet.java: FileTooLong \u2014 1166 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: DruidPooledResultSet (27-1770). The bar is 500 significant lines; this is 666 over it, 2.33\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":"core/src/main/java/com/alibaba/druid/pool/DruidPooledResultSet.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bcca0529d41d37d9d343a3bebb005194b90ec53850576792ec43382528333ec"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: parser/MySqlCreateTableParser.java: FileTooLong \u2014 1142 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: MySqlCreateTableParser (35-1616). The bar is 500 significant lines; this is 642 over it, 2.28\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cfbc4407e6a160cf9374cffe0c0c4236df30c2946fd09ab7b2ba067feac6db8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: wall/WallFilter.java: FileTooLong \u2014 1135 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: WallFilter (44-1657). The bar is 500 significant lines; this is 635 over it, 2.27\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":"core/src/main/java/com/alibaba/druid/wall/WallFilter.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"44d9f26cadaa60f27d3f44e73e99dfc98c535bd901525377ed56fa007582309b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SQLUtils.acceptTableSource: MethodTooLong \u2014 acceptTableSource runs 225 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 125 over it, 2.25\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/SQLUtils.java"},"region":{"startLine":998}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2b56c47aa93113e50c291bcfe8f0b94df61ea629d70418433b1c02a15a54a7b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Lexer.nextToken: MethodTooLong \u2014 nextToken runs 220 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 120 over it, 2.20\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java"},"region":{"startLine":1252}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9a98ca3f7519d8f4d6d990feef1bf0c790b18d36a476a037aa37de3cfe39a02"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: OdpsOutputVisitor: ClassTooLong \u2014 868 significant lines (blank, comment-only and punctuation-only lines excluded), 62 methods. The bar is 400 significant lines; this is 468 over it, 2.17\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":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/visitor/OdpsOutputVisitor.java"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"7de56182ddd01e89b9aac92401e8c341ae5aa6f94aa3dbfa34b405f0635c40d0"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ConnectionProxyImpl: TooManyMethods \u2014 65 methods. The bar is 30 methods; this is 35 over it, 2.17\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":"core/src/main/java/com/alibaba/druid/proxy/jdbc/ConnectionProxyImpl.java"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fea9f259912b5680a216305ec2b22a0b1a4102e484f16d67d45d1db4b9aeeb3"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: OracleSchemaStatVisitor: TooManyMethods \u2014 65 methods. The bar is 30 methods; this is 35 over it, 2.17\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleSchemaStatVisitor.java"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ae7294c3aa39f7ab59054129a42cd69ebc378202dc68a8cb6d8379595fdb9cb"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MySqlExprParser.parseSelectItemRest: MethodTooLong \u2014 parseSelectItemRest runs 215 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 115 over it, 2.15\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f2341ad2767847f3dacf0e065b8dbde9b5d2b7e47731d3664c7d5db31e6e045"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ProxoolDataSource: TooManyMethods \u2014 64 methods. The bar is 30 methods; this is 34 over it, 2.13\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":"druid-wrapper/src/main/java/org/logicalcobwebs/proxool/ProxoolDataSource.java"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9c0cb84b216f8a6e84afef70da3368f8d4743ab6301929139e34e237e00392b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WebAppStat.computeUserAgent: MethodTooLong \u2014 computeUserAgent runs 212 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 112 over it, 2.12\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/support/http/stat/WebAppStat.java"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"21b0dfe2747b822e3ccd3488349f840f934366582dc8ff39b61f0ac5b97c29bb"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Filter: ClassTooLong \u2014 844 significant lines (blank, comment-only and punctuation-only lines excluded), 488 methods. The bar is 400 significant lines; this is 444 over it, 2.11\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":"core/src/main/java/com/alibaba/druid/filter/Filter.java"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"a67240680f64e41c41ed4c3c7b3ec88526c7a1c474e294b0ca7c0936577ab95d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: StatementProxyImpl: TooManyMethods \u2014 63 methods. The bar is 30 methods; this is 33 over it, 2.10\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":"core/src/main/java/com/alibaba/druid/proxy/jdbc/StatementProxyImpl.java"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"79b64822cd95bfbfeb3e673316275ac27a89ffe817efe35fb211bb60e44f9ecb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: parser/PGSQLStatementParser.java: FileTooLong \u2014 1040 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: PGSQLStatementParser (36-1490). The bar is 500 significant lines; this is 540 over it, 2.08\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":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dca69a817ce0e6655c911c2e24096a2599a19123693742bef87dad9cca8e6549"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: OdpsOutputVisitor: TooManyMethods \u2014 62 methods. The bar is 30 methods; this is 32 over it, 2.07\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":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/visitor/OdpsOutputVisitor.java"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9022b8f70ededa172ce83c91023600f478e96fb9b82b261049c36f21bc850d4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: statement/SQLCreateTableStatement.java: FileTooLong \u2014 1026 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: SQLCreateTableStatement (37-1747). The bar is 500 significant lines; this is 526 over it, 2.05\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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateTableStatement.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7a15083a6de3854a38b040377c625149601c65c27939fe597919e3876af1d4a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MockConnection: TooManyMethods \u2014 61 methods. The bar is 30 methods; this is 31 over it, 2.03\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":"core/src/main/java/com/alibaba/druid/mock/MockConnection.java"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"c39d3837dce885201d9e4f6343bdeb44a04605137033c787bf0b55be2196a7bc"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WallProvider: TooManyMethods \u2014 61 methods. The bar is 30 methods; this is 31 over it, 2.03\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":"core/src/main/java/com/alibaba/druid/wall/WallProvider.java"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e9a7ade2641df4d2a2c03074caaae0af3cc92c0b77c1bd356c62ccc121bd8dc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: statement/SQLSelectQueryBlock.java: FileTooLong \u2014 1014 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: SQLSelectQueryBlock (32-1725). The bar is 500 significant lines; this is 514 over it, 2.03\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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8063e4521b6f11e3101e87cc8216f812c87d8aebfe3fe1f137da2433cfd96941"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SQLStatementParser.parseValueClause: MethodTooLong \u2014 parseValueClause runs 202 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 102 over it, 2.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":6388}}}],"partialFingerprints":{"codehealthFindingId/v1":"2296cdcd8e94e38335c787cddd6fbd723b2dd0f303ca32dc96c47f1f73d2a305"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: util/FnvHash.java: FileTooLong \u2014 997 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: FnvHash (20-1185). The bar is 500 significant lines; this is 497 over it, 1.99\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":"core/src/main/java/com/alibaba/druid/util/FnvHash.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a9657c168c85fbb13998a7324000d1605c2971c1599dd78c85bffd35e836e8b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OracleStatementParser.parserParameters: MethodTooLong \u2014 parserParameters runs 199 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 99 over it, 1.99\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java"},"region":{"startLine":2005}}}],"partialFingerprints":{"codehealthFindingId/v1":"49796486e0f0b5961fc0a554045f5d61ac36cae9f3dc814e59b94cc4e1b92749"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MySqlCreateTableStatement: TooManyMethods \u2014 59 methods. The bar is 30 methods; this is 29 over it, 1.97\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlCreateTableStatement.java"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb4f3e35a26eeece9b6983d6990924ab5529c5a3e5d8402749bddb3e75f0c82f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SchemaRepository: TooManyMethods \u2014 59 methods. The bar is 30 methods; this is 29 over it, 1.97\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":"core/src/main/java/com/alibaba/druid/sql/repository/SchemaRepository.java"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"3559339438daf0eab87c9153bea58e1e020729c8e7166f4df4e425b85b6336c3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Lexer.scanOperator: MethodTooLong \u2014 scanOperator runs 194 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 94 over it, 1.94\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java"},"region":{"startLine":1527}}}],"partialFingerprints":{"codehealthFindingId/v1":"436f20412f0809abbb58e9e08bbcfad8c298b62824443cdc9e08fe69cefa6c1e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DruidPooledStatement: TooManyMethods \u2014 58 methods. The bar is 30 methods; this is 28 over it, 1.93\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":"core/src/main/java/com/alibaba/druid/pool/DruidPooledStatement.java"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e8f906f0cd6c2420da4c025362f051e721eb48c86ce716239e985b015461805"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SQLSelectParser: TooManyMethods \u2014 58 methods. The bar is 30 methods; this is 28 over it, 1.93\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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"952d5a1ddf380439bd0358a1ae12120d3d0c7e06b9bd975bf4949235597565e5"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WebAppStat: ClassTooLong \u2014 771 significant lines (blank, comment-only and punctuation-only lines excluded), 99 methods. The bar is 400 significant lines; this is 371 over it, 1.93\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":"core/src/main/java/com/alibaba/druid/support/http/stat/WebAppStat.java"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"234c04476136ccebc1fe976f686bd49955a8a1173a19004e06e6561a18a58a05"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SchemaRepository: ClassTooLong \u2014 769 significant lines (blank, comment-only and punctuation-only lines excluded), 59 methods. The bar is 400 significant lines; this is 369 over it, 1.92\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":"core/src/main/java/com/alibaba/druid/sql/repository/SchemaRepository.java"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"85d4789219578994ff53f49af399049653480dac642233c169aef68b00aee27e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SQLStatementParser.parseValueClause: MethodTooLong \u2014 parseValueClause runs 191 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 91 over it, 1.91\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":6662}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c1553149f7ffdbba6afa85a037f7bf41591ccde71d5f700565223314acd4dd8"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SQLBinaryOpExpr: TooManyMethods \u2014 57 methods. The bar is 30 methods; this is 27 over it, 1.90\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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLBinaryOpExpr.java"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d04e7ecca080d4994e3dae99729a6f8d6a107667926a35df1bbe64b6d6d6d8e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: JdbcUtils: ClassTooLong \u2014 755 significant lines (blank, comment-only and punctuation-only lines excluded), 42 methods. The bar is 400 significant lines; this is 355 over it, 1.89\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":"core/src/main/java/com/alibaba/druid/util/JdbcUtils.java"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"c955504bb221753d9643c3e81c5e3f0275d82a896834cbb6588204dff3aa30d0"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SQLParser: ClassTooLong \u2014 754 significant lines (blank, comment-only and punctuation-only lines excluded), 28 methods. The bar is 400 significant lines; this is 354 over it, 1.89\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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLParser.java"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"130281544cde566d8b5dae0818b0c3ba0bd74e228c3cb2a0326f472cab99ac53"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DruidPooledConnection: ClassTooLong \u2014 752 significant lines (blank, comment-only and punctuation-only lines excluded), 95 methods. The bar is 400 significant lines; this is 352 over it, 1.88\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":"core/src/main/java/com/alibaba/druid/pool/DruidPooledConnection.java"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"284ed3e5e4ee27e0d25eb099e4650a68cb31c078e285cf3c630a3e5beaf97513"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SQLParserUtils: ClassTooLong \u2014 751 significant lines (blank, comment-only and punctuation-only lines excluded), 32 methods. The bar is 400 significant lines; this is 351 over it, 1.88\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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLParserUtils.java"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfccd43d9f85201bf14361a98a3e386f97b0f13e835bc4554467b22bc2457c5a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: EncodingConvertFilter: TooManyMethods \u2014 56 methods. The bar is 30 methods; this is 26 over it, 1.87\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":"core/src/main/java/com/alibaba/druid/filter/encoding/EncodingConvertFilter.java"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6d9c445f982a67e9e0cad50c05ed249cb56c44fd5bf803e5254508226931b42"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DruidStatementConnection: TooManyMethods \u2014 56 methods. The bar is 30 methods; this is 26 over it, 1.87\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":"core/src/main/java/com/alibaba/druid/pool/DruidStatementConnection.java"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7b53241f6dcf4b85f43c7abc9d2e48f55222c08a837747ed3ec0fdf562573a1"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SQLCreateIndexStatement: TooManyMethods \u2014 55 methods. The bar is 30 methods; this is 25 over it, 1.83\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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateIndexStatement.java"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"eae3481536bdaeed538003060194a6274e166b88b442f9a2012a75873a354e5a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: StatementBase: TooManyMethods \u2014 55 methods. The bar is 30 methods; this is 25 over it, 1.83\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":"core/src/main/java/com/alibaba/druid/util/jdbc/StatementBase.java"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"70bc13ed55519ac7dbfd7d0b8ae72c2b7b238ff8cd53ea4af1bc63d523a665e9"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SQLAlterTableStatement: TooManyMethods \u2014 54 methods. The bar is 30 methods; this is 24 over it, 1.80\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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableStatement.java"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"22d699f4897310eac2376852eb270c0d40dbf92aa366005bea4db29301560a0c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SQLCreateViewStatement: TooManyMethods \u2014 54 methods. The bar is 30 methods; this is 24 over it, 1.80\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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateViewStatement.java"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"4feea11aa4f8718225f56060c5ae91c6798d5a2c7ca0bcb2653a32527327aaa1"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: OracleCreateIndexStatement: TooManyMethods \u2014 54 methods. The bar is 30 methods; this is 24 over it, 1.80\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleCreateIndexStatement.java"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"690ef82f9331a7e4a614e7a992fad0b8aa5dc6159e04990e7e6a558a9c337fb3"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PreparedStatementBase: TooManyMethods \u2014 54 methods. The bar is 30 methods; this is 24 over it, 1.80\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":"core/src/main/java/com/alibaba/druid/util/jdbc/PreparedStatementBase.java"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"40901da4d2763be5c08db6f9435accaf9fb32b30dd4653cc6c4d947eb71c0938"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SQLEvalVisitorUtils.visit: MethodTooLong \u2014 visit runs 180 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 80 over it, 1.80\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java"},"region":{"startLine":958}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddc3e5ae99031470e1ec8b2621bbc2971bc1b7d5d8ae5125f0c3cb39e5609338"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: OracleSelectParser: ClassTooLong \u2014 716 significant lines (blank, comment-only and punctuation-only lines excluded), 23 methods. The bar is 400 significant lines; this is 316 over it, 1.79\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleSelectParser.java"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c84a277867ba0acb76dd0961455b32607357e7b7e2a1d29788eca76bc682b0d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: visitor/OdpsOutputVisitor.java: FileTooLong \u2014 886 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: OdpsOutputVisitor (37-1333). The bar is 500 significant lines; this is 386 over it, 1.77\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":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/visitor/OdpsOutputVisitor.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d408642b8e46575902a984226de5233ffa7d7821650d57e0add7ee21e88a5c6a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OdpsStatementParser.parseShow: MethodTooLong \u2014 parseShow runs 177 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 77 over it, 1.77\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsStatementParser.java"},"region":{"startLine":961}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b6ab245e7d1784c5893582e2757a8b5ffaec06f259b6eecb89cb672519d18db"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SQLParser.alias: MethodTooLong \u2014 alias runs 177 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 77 over it, 1.77\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLParser.java"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b081b845c0e96db37ba7016cd3229f6cc00ec8d37085b8c57611c822196f72b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: JdbcSqlStat: ClassTooLong \u2014 707 significant lines (blank, comment-only and punctuation-only lines excluded), 85 methods. The bar is 400 significant lines; this is 307 over it, 1.77\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":"core/src/main/java/com/alibaba/druid/stat/JdbcSqlStat.java"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"73a3404f981775e6fb014fefee37eeaacdf25bb4172719a21618e00bf980e31a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: OracleStatementParser: TooManyMethods \u2014 53 methods. The bar is 30 methods; this is 23 over it, 1.77\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d4232f4a0eb87eaa094e44979f0f98c87d61a1bae9778cfa5aa0753deedbf0c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WebURIStatValue: TooManyMethods \u2014 53 methods. The bar is 30 methods; this is 23 over it, 1.77\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":"core/src/main/java/com/alibaba/druid/support/http/stat/WebURIStatValue.java"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a6fc87bf6b738e8cb2dc8d894a178e9dcdc9f1be4b35343044201d825c3861f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OracleExprParser.primary: MethodTooLong \u2014 primary runs 175 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 75 over it, 1.75\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"21f1eb8a5db2da439f5e9726cfa40e2bdbdbc2147e7110430e487b201adf8a85"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DruidPooledCallableStatement: ClassTooLong \u2014 697 significant lines (blank, comment-only and punctuation-only lines excluded), 117 methods. The bar is 400 significant lines; this is 297 over it, 1.74\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":"core/src/main/java/com/alibaba/druid/pool/DruidPooledCallableStatement.java"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"86d498b45ef3bf45b801666dd62a522024a469e1008684a136f4b1c96a5bd49a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SQLIndexDefinition: TooManyMethods \u2014 52 methods. The bar is 30 methods; this is 22 over it, 1.73\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":"core/src/main/java/com/alibaba/druid/sql/ast/SQLIndexDefinition.java"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3964ca82e35c1af72a918ee620664c3608134e8cdf92c6a17e6b522a90cb667"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SQLJoinTableSource: TooManyMethods \u2014 52 methods. The bar is 30 methods; this is 22 over it, 1.73\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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLJoinTableSource.java"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2af14f8a49c05546d4f35ea05ad75a149818b32347ced69984018507aee2840"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: OracleCreateTableStatement: TooManyMethods \u2014 52 methods. The bar is 30 methods; this is 22 over it, 1.73\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleCreateTableStatement.java"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e8e57a03dc4ff4f220a8bad284a98b9a92554281b53cfb6d790c6d8be4e6c3f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SQLEvalVisitorUtils: TooManyMethods \u2014 52 methods. The bar is 30 methods; this is 22 over it, 1.73\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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"847d1b01f443c9e6d1f39fc822bae2477aced2ffff32958295891a6e693c7612"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: parser/SQLParserUtils.java: FileTooLong \u2014 858 significant lines (blank, comment-only and punctuation-only lines excluded), about 88% of them inside a single declaration: SQLParserUtils (126-1199). The bar is 500 significant lines; this is 358 over it, 1.72\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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLParserUtils.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dcb690206d5a8d51915830260fdc2cfe48e919057cecc1757eae3614053a0ac"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: filter/Filter.java: FileTooLong \u2014 857 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: Filter (35-1378). The bar is 500 significant lines; this is 357 over it, 1.71\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":"core/src/main/java/com/alibaba/druid/filter/Filter.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee26c4a71c6de34eccd27c4fefb819b1015fd92772058bd901b440b6df6704f6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SQLSelectParser.queryRest: MethodTooLong \u2014 queryRest runs 171 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 71 over it, 1.71\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"4af3d0711d3c5eb345fa41ace1fffa35bedafe604e07580cc84fb5ef9c5ce5dd"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SQLServerStatementParser: ClassTooLong \u2014 682 significant lines (blank, comment-only and punctuation-only lines excluded), 35 methods. The bar is 400 significant lines; this is 282 over it, 1.71\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":"core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerStatementParser.java"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"560827c4cb3471abea08325f013ca1710c722649f14e8f1171d959387738d1ac"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: StatFilter: ClassTooLong \u2014 680 significant lines (blank, comment-only and punctuation-only lines excluded), 80 methods. The bar is 400 significant lines; this is 280 over it, 1.70\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":"core/src/main/java/com/alibaba/druid/filter/stat/StatFilter.java"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"358125e72a4d39dc472d6a871b1d8430e44c43f28f5d147f6823e3954df1d569"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SpringMethodStat: TooManyMethods \u2014 51 methods. The bar is 30 methods; this is 21 over it, 1.70\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":"core/src/main/java/com/alibaba/druid/support/spring/stat/SpringMethodStat.java"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"46a9dc1f26673ddb6fc78c941018899390dafb6024d6564160f5c1bc364d3441"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OdpsExprParser.primaryRest: MethodTooLong \u2014 primaryRest runs 170 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 70 over it, 1.70\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsExprParser.java"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"12430fd341ee930356be5eb5153e03acfdca7017a70ff74fbb3042a7ca427049"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ResultSetBase: ClassTooLong \u2014 672 significant lines (blank, comment-only and punctuation-only lines excluded), 192 methods. The bar is 400 significant lines; this is 272 over it, 1.68\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":"core/src/main/java/com/alibaba/druid/util/jdbc/ResultSetBase.java"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9d888bcb4da3f8c19c7259f129531135c6c2cd89e68f56b64a713065a415521"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MonitorDaoJdbcImpl: ClassTooLong \u2014 667 significant lines (blank, comment-only and punctuation-only lines excluded), 43 methods. The bar is 400 significant lines; this is 267 over it, 1.67\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":"core/src/main/java/com/alibaba/druid/support/monitor/dao/MonitorDaoJdbcImpl.java"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ec896c4ce6e412efd9cc5e6089a44fe6636bacb07839a3078619b4a1a0f87c1"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: FilterChain: ClassTooLong \u2014 657 significant lines (blank, comment-only and punctuation-only lines excluded), 487 methods. The bar is 400 significant lines; this is 257 over it, 1.64\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":"core/src/main/java/com/alibaba/druid/filter/FilterChain.java"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8442016f4f3186c9220816f7e923e620398f3075a074b93e1d8d86755b1064f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DruidPooledPreparedStatement: ClassTooLong \u2014 657 significant lines (blank, comment-only and punctuation-only lines excluded), 75 methods. The bar is 400 significant lines; this is 257 over it, 1.64\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":"core/src/main/java/com/alibaba/druid/pool/DruidPooledPreparedStatement.java"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"951e6d5af0a5b9e4486614e64958a28e5e4c191abe8e75b7bbb669474045dfe6"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MySqlLexer: ClassTooLong \u2014 655 significant lines (blank, comment-only and punctuation-only lines excluded), 15 methods. The bar is 400 significant lines; this is 255 over it, 1.64\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"45965fcbe0f112d36268694a3ad445be23154cf5aa75d043efc28334790ee858"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MySqlExprParser: TooManyMethods \u2014 49 methods. The bar is 30 methods; this is 19 over it, 1.63\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"3473b81094e681f2ab31c1c3751a03fc0a7a33e085f1d0850ea01c53c34338b5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TDDLHint.\u003Cinit\u003E: MethodTooLong \u2014 \u003Cinit\u003E runs 162 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 62 over it, 1.62\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/TDDLHint.java"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"d471bb93bfd98070ca4951949757068b7dcd1ad553331ce61a7cc6c27ae245bd"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HiveStatementParser.parseStatementListDialect: MethodTooLong \u2014 parseStatementListDialect runs 162 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 62 over it, 1.62\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveStatementParser.java"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"09e872fec96d6a904a3599027468c21e71a05704335ada8898686b05bec1205a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MySqlSelectParser.query: MethodTooLong \u2014 query runs 162 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 62 over it, 1.62\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectParser.java"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc9bc60f806cac1ebd4a8f3a2bb549f1e58bcc6a686e33445180f8e10516dcfe"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SQLParser.tableAliasFromOptionalKeyword: MethodTooLong \u2014 tableAliasFromOptionalKeyword runs 162 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 62 over it, 1.62\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLParser.java"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"e89ba8220365a6437a7c59edf3f0d1a721981f45290b453c1dc3907818f5631c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DruidDataSource.getConnectionInternal: MethodTooLong \u2014 getConnectionInternal runs 161 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 61 over it, 1.61\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/pool/DruidDataSource.java"},"region":{"startLine":1550}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e7557d3b567697f217d95986fc25e653d04e7aabe416708f4b3f28b1849c247"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: repository/SchemaRepository.java: FileTooLong \u2014 801 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: SchemaRepository (54-1279). The bar is 500 significant lines; this is 301 over it, 1.60\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":"core/src/main/java/com/alibaba/druid/sql/repository/SchemaRepository.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b43870307278b8eebba4835848c8979130e625d3efee4e44fc887b03c23a5e34"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SQLMethodInvokeExpr: TooManyMethods \u2014 48 methods. The bar is 30 methods; this is 18 over it, 1.60\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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLMethodInvokeExpr.java"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"65fd25d35c6abe0026c5e41e5e605f16b98ae1ba553999774267e6ae1b1d7b83"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SQLCreateFunctionStatement: TooManyMethods \u2014 48 methods. The bar is 30 methods; this is 18 over it, 1.60\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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateFunctionStatement.java"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bfdaa81052dc6787bf1dbd667560539183d4e368be01a53f7a0f0e7d732f96a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MySqlFlushStatement: TooManyMethods \u2014 48 methods. The bar is 30 methods; this is 18 over it, 1.60\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlFlushStatement.java"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0f29fd3f1b41d1fd75cd164d1ae2c16f781dd4bde979bf9deb967e5531393b3"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: JdbcDataSourceStat: TooManyMethods \u2014 48 methods. The bar is 30 methods; this is 18 over it, 1.60\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":"core/src/main/java/com/alibaba/druid/stat/JdbcDataSourceStat.java"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"5de604f6f9a32a60decdcd09a78714baeb7a1dfc795220a0e72f13ba2124fdde"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CallableStatementProxyImpl: ClassTooLong \u2014 631 significant lines (blank, comment-only and punctuation-only lines excluded), 116 methods. The bar is 400 significant lines; this is 231 over it, 1.58\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":"core/src/main/java/com/alibaba/druid/proxy/jdbc/CallableStatementProxyImpl.java"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0aa2c745ca5a9bc554c4b72c71dcb3734c002c966de2d4cc6019ea539a17c39"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: stat/WebAppStat.java: FileTooLong \u2014 787 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: WebAppStat (36-1186). The bar is 500 significant lines; this is 287 over it, 1.57\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":"core/src/main/java/com/alibaba/druid/support/http/stat/WebAppStat.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f08011d58ced812c852171891d98a60b9c0da54a69be0de518f3bf06faa6a85"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SQLParser.as: MethodTooLong \u2014 as runs 157 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 57 over it, 1.57\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLParser.java"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"d923609bcae621d4ef1d7eaae1f22b165d8bf677d4c145ef681f623007471982"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HiveCreateTableParser.parseCreateTableRest: MethodTooLong \u2014 parseCreateTableRest runs 156 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 56 over it, 1.56\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveCreateTableParser.java"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"dff90310fb0465bdae4d2b0fb0888ce5ec1c6db774e965fea10f4cae22331ea3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: pool/DruidPooledConnection.java: FileTooLong \u2014 772 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: DruidPooledConnection (43-1298). The bar is 500 significant lines; this is 272 over it, 1.54\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":"core/src/main/java/com/alibaba/druid/pool/DruidPooledConnection.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c92e44e746970cea05dec6a9e6a5fa0838a5f413308c60faddae0a2ac8de28b5"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PGASTVisitorAdapter: TooManyMethods \u2014 46 methods. The bar is 30 methods; this is 16 over it, 1.53\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":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGASTVisitorAdapter.java"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea2f5db47d304ea20d5e3c67ad4aae2aa3eb566f7b41e6e028526e05ef2b5835"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WebURIStat: TooManyMethods \u2014 46 methods. The bar is 30 methods; this is 16 over it, 1.53\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":"core/src/main/java/com/alibaba/druid/support/http/stat/WebURIStat.java"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"db59f0911de7a99764d953488e10f869c50574f0ed243b8c76d2e1a69ae4da53"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: util/JdbcUtils.java: FileTooLong \u2014 766 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: JdbcUtils (34-1060). The bar is 500 significant lines; this is 266 over it, 1.53\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":"core/src/main/java/com/alibaba/druid/util/JdbcUtils.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8063348ce4ffa92862c546206453a5faae8e5129632fb985b7e2c96981f30e1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CalciteMySqlNodeVisitor.visit: MethodTooLong \u2014 visit runs 153 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 53 over it, 1.53\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/support/calcite/CalciteMySqlNodeVisitor.java"},"region":{"startLine":1008}}}],"partialFingerprints":{"codehealthFindingId/v1":"49e9ed4909c29486065b370bc67724824f0e28e174dca5f4382c50bcb4bb210a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: parser/SQLParser.java: FileTooLong \u2014 761 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: SQLParser (27-970). The bar is 500 significant lines; this is 261 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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLParser.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9da96e166586d7bccefbe7c3f71bfcfa44fb2a1e3330dcd06661725ef82f1252"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SQLStatementParser.parseStatementListNonStandard: MethodTooLong \u2014 parseStatementListNonStandard runs 152 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 52 over it, 1.52\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7cb1f4d12301e6f1e31f858a6b2a7a11dbd1c67582ddbb30cfdd199f4f1a509"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MonitorClient: TooManyMethods \u2014 45 methods. The bar is 30 methods; this is 15 over it, 1.50\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":"core/src/main/java/com/alibaba/druid/support/monitor/MonitorClient.java"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"a968a3dfdb4fc9f30a9fc59c819b483796d86da0f8e24a5a487b1a322722abcb"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: JdbcUtils.getDriverClassName: MethodTooLong \u2014 getDriverClassName runs 150 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 50 over it, 1.50\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/util/JdbcUtils.java"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"dee8efbdeabc5f7d220fd0186e62d9902fcad3ed6835a09e2fa6855f985f9cb1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MySqlCreateTableParser.partitionClauseRest: MethodTooLong \u2014 partitionClauseRest runs 149 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 49 over it, 1.49\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java"},"region":{"startLine":1248}}}],"partialFingerprints":{"codehealthFindingId/v1":"891dc198edddf8d00a2591921b7d185abf42bbcecc43f3e75845182858899fe4"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OracleStatementParser.parserAlter: MethodTooLong \u2014 parserAlter runs 149 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 49 over it, 1.49\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java"},"region":{"startLine":1299}}}],"partialFingerprints":{"codehealthFindingId/v1":"e677c7f3dc43a6888152494f8abb333bf8104a74f5d29dcb3e1692606c6281eb"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DruidDataSourceFactory.config: MethodTooLong \u2014 config runs 148 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 48 over it, 1.48\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/pool/DruidDataSourceFactory.java"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f74a9fe22c5253cedc6c08ff325f808fcb332062a276e7442e6554ea483939c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OracleExprParser.primaryRest: MethodTooLong \u2014 primaryRest runs 148 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 48 over it, 1.48\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"bca98d1bfc23948a269d64d075f88f993e49555655f5e585438613cb41aad204"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SpringMethodStatValue: TooManyMethods \u2014 44 methods. The bar is 30 methods; this is 14 over it, 1.47\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":"core/src/main/java/com/alibaba/druid/support/spring/stat/SpringMethodStatValue.java"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee282b30100320cdaf72864349f64a889e2bedf25a19dd8aeb87f08285ef5959"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: OdpsExprParser: ClassTooLong \u2014 586 significant lines (blank, comment-only and punctuation-only lines excluded), 31 methods. The bar is 400 significant lines; this is 186 over it, 1.47\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":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsExprParser.java"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc8762f9d2c48b0259a9d8ce2c8a2e0c2f0b66bfd9fe4e0be1d2172f9f1c85f8"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: LogFilter: ClassTooLong \u2014 582 significant lines (blank, comment-only and punctuation-only lines excluded), 104 methods. The bar is 400 significant lines; this is 182 over it, 1.46\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":"core/src/main/java/com/alibaba/druid/filter/logging/LogFilter.java"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5e006cfa121dbc7d9c83d0fc2b3573393f0025051e2054168165ee8dd0cb7b3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: parser/OracleSelectParser.java: FileTooLong \u2014 726 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: OracleSelectParser (29-1127). The bar is 500 significant lines; this is 226 over it, 1.45\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleSelectParser.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2bcfd78b0e35c6f027b1aa403fc9cca64bad44f8853dd8789eafdbdaee5ac9f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SchemaResolveVisitorFactory.resolve: MethodTooLong \u2014 resolve runs 145 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 45 over it, 1.45\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java"},"region":{"startLine":1401}}}],"partialFingerprints":{"codehealthFindingId/v1":"6575c7e840fdb8ee89d9f3c0fcd24a911233a43c8867743b65f866220a953d50"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MySqlLexer.scanComment: MethodTooLong \u2014 scanComment runs 144 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 44 over it, 1.44\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java"},"region":{"startLine":726}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4270d67cb19a1608a4eabf1932753679f7caefb6b77ee6564af225b9bcb5954"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: stat/JdbcSqlStat.java: FileTooLong \u2014 719 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: JdbcSqlStat (33-1078). The bar is 500 significant lines; this is 219 over it, 1.44\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":"core/src/main/java/com/alibaba/druid/stat/JdbcSqlStat.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ec45085f1eb0533c8c2c0e9c9f514cc7caac9695d1599ffed1158d9721e23f2"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SQLExprTableSource: TooManyMethods \u2014 43 methods. The bar is 30 methods; this is 13 over it, 1.43\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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLExprTableSource.java"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ccf65aeb829b8a751b10610fa0a21f1f1dc7273e894fc5749a878ca37145478"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MySqlTableIndex: TooManyMethods \u2014 43 methods. The bar is 30 methods; this is 13 over it, 1.43\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlTableIndex.java"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"42ad22d22d395eed5874d80bc79bee14d78deb22ed43c1fe3d21da2375ce65cb"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MonitorDaoJdbcImpl: TooManyMethods \u2014 43 methods. The bar is 30 methods; this is 13 over it, 1.43\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":"core/src/main/java/com/alibaba/druid/support/monitor/dao/MonitorDaoJdbcImpl.java"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d433c848b461a8c07a7b90a9f5e4ebab7e00a6bb7de9830292fb482512ab622"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DatabaseMetaDataProxyImpl: ClassTooLong \u2014 573 significant lines (blank, comment-only and punctuation-only lines excluded), 177 methods. The bar is 400 significant lines; this is 173 over it, 1.43\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":"core/src/main/java/com/alibaba/druid/proxy/jdbc/DatabaseMetaDataProxyImpl.java"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bea0efe375325af4e323f337762efba4fba0f62d1fc030c5b5bfb70d52839d1"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MySqlSelectParser: ClassTooLong \u2014 572 significant lines (blank, comment-only and punctuation-only lines excluded), 16 methods. The bar is 400 significant lines; this is 172 over it, 1.43\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectParser.java"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"378d54e5a6a10719d8bd13e8cc474acf3b8f20596a1cc73cbce21f4e61cbb3bd"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PGExprParser.primaryRest: MethodTooLong \u2014 primaryRest runs 143 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 43 over it, 1.43\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGExprParser.java"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a4d2c305c639a7515727ff10feb345bb8a5b3108ee1a846eaa2f8231ad19744"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: stat/StatFilter.java: FileTooLong \u2014 705 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: StatFilter (47-1136). The bar is 500 significant lines; this is 205 over it, 1.41\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":"core/src/main/java/com/alibaba/druid/filter/stat/StatFilter.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"262dbe9b331ec25e9c9183c1b4b3801c3353bcbd4f531d8f2db71d91e349a78f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SQLASTOutputVisitor.visit: MethodTooLong \u2014 visit runs 141 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 41 over it, 1.41\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":10478}}}],"partialFingerprints":{"codehealthFindingId/v1":"92b7330b07e6bda897a6f3afcdbe089343860bf129aca795583d70eacbf8fe1a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: pool/DruidPooledCallableStatement.java: FileTooLong \u2014 704 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: DruidPooledCallableStatement (29-1078). The bar is 500 significant lines; this is 204 over it, 1.41\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":"core/src/main/java/com/alibaba/druid/pool/DruidPooledCallableStatement.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"511ffbf40e720883bec5c2956794b135acfdd0bfb105fdfb9ae378cf363f61c2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: dao/MonitorDaoJdbcImpl.java: FileTooLong \u2014 701 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: MonitorDaoJdbcImpl (54-1062). The bar is 500 significant lines; this is 201 over it, 1.40\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":"core/src/main/java/com/alibaba/druid/support/monitor/dao/MonitorDaoJdbcImpl.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1850c344576cff033dbe0452a4ef4722a318432bf86dcdd04a7ff70584eafc83"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DruidConnectionHolder: TooManyMethods \u2014 42 methods. The bar is 30 methods; this is 12 over it, 1.40\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":"core/src/main/java/com/alibaba/druid/pool/DruidConnectionHolder.java"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"433eb35e33fb9e4477ef9bdc76d7cccd9746a9e906c9e83db5fb2a194bd23af7"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SQLPropertyExpr: TooManyMethods \u2014 42 methods. The bar is 30 methods; this is 12 over it, 1.40\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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLPropertyExpr.java"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b3028be2269d4e0eb1c137b9b18a32da99acae5534a12a16e7d793d5deaf15c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: JdbcUtils: TooManyMethods \u2014 42 methods. The bar is 30 methods; this is 12 over it, 1.40\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":"core/src/main/java/com/alibaba/druid/util/JdbcUtils.java"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"e71ada06eab0dd72a6207689d8bda0631e656f3def7964cfccad8a5640314e6f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OracleExprParser.parseAggregateExpr: MethodTooLong \u2014 parseAggregateExpr runs 140 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 40 over it, 1.40\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java"},"region":{"startLine":777}}}],"partialFingerprints":{"codehealthFindingId/v1":"af4eb853a58de08da3e690edaf18d09176c01987ceb02cba5d1de9b23d8e6f07"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: parser/SQLServerStatementParser.java: FileTooLong \u2014 695 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: SQLServerStatementParser (33-1070). The bar is 500 significant lines; this is 195 over it, 1.39\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":"core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerStatementParser.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e66a53843fb269b98834b578b1d93cf36b21915de2a112ea638826487440c0e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SchemaResolveVisitorFactory.resolveIdent: MethodTooLong \u2014 resolveIdent runs 139 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 39 over it, 1.39\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java"},"region":{"startLine":1029}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa3e1128c776b0c857ae1140b66fccc51e62858d9314a67de43a5baf34e72f00"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PreparedStatementProxyImpl: ClassTooLong \u2014 551 significant lines (blank, comment-only and punctuation-only lines excluded), 79 methods. The bar is 400 significant lines; this is 151 over it, 1.38\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":"core/src/main/java/com/alibaba/druid/proxy/jdbc/PreparedStatementProxyImpl.java"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"b764b511d2daf8c9f0f91384def59a11c92b353363d4a32df76b93805f405d6f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: FilterEventAdapter: TooManyMethods \u2014 41 methods. The bar is 30 methods; this is 11 over it, 1.37\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":"core/src/main/java/com/alibaba/druid/filter/FilterEventAdapter.java"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf8893df4a9c1be4a53cab14d1948e159d9be533b3cfd79b95eaa53906231372"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SQLCreateSequenceStatement: TooManyMethods \u2014 41 methods. The bar is 30 methods; this is 11 over it, 1.37\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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateSequenceStatement.java"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0909c8d6669622a0506cfae83a93dea33cf3eac5d0139b7b3157971be424df9"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PGSQLStatementParser: TooManyMethods \u2014 41 methods. The bar is 30 methods; this is 11 over it, 1.37\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":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffe3d6cff9ce2f8c601dece7a55b2a3a6a0139ac298bb8a8eeeaa2c5f2cf5a77"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WebSessionStat: TooManyMethods \u2014 41 methods. The bar is 30 methods; this is 11 over it, 1.37\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":"core/src/main/java/com/alibaba/druid/support/http/stat/WebSessionStat.java"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"06ef914e54fce167d6b9629d741353675babbbfd52abb82570294b05422b24cb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: jdbc/ResultSetBase.java: FileTooLong \u2014 680 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: ResultSetBase (26-1173). The bar is 500 significant lines; this is 180 over it, 1.36\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":"core/src/main/java/com/alibaba/druid/util/jdbc/ResultSetBase.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4a1d4ad59535867e4bf04051b599dd7a4908cb580f5fc1fb72473e88b5f2938"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DruidDataSource.shrink: MethodTooLong \u2014 shrink runs 136 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 36 over it, 1.36\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/pool/DruidDataSource.java"},"region":{"startLine":3076}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9676c24bd225dba47b3bed42785754ca5ceb3d0f9d6430a789463b109be39b3"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MySqlASTVisitor: ClassTooLong \u2014 541 significant lines (blank, comment-only and punctuation-only lines excluded), 354 methods. The bar is 400 significant lines; this is 141 over it, 1.35\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlASTVisitor.java"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"232f0cd14e08c7260f42e26aeb1626c0dde1b39cd92d7bb89a13915feb9729c7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MySqlExprParser.parseColumnRest: MethodTooLong \u2014 parseColumnRest runs 135 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 35 over it, 1.35\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java"},"region":{"startLine":1784}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfa879c0a07c1d5ba8dccaa44f6ba4fbf237e622ed424e2e2b3c478bf6a44e99"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DruidPooledStatement: ClassTooLong \u2014 539 significant lines (blank, comment-only and punctuation-only lines excluded), 58 methods. The bar is 400 significant lines; this is 139 over it, 1.35\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":"core/src/main/java/com/alibaba/druid/pool/DruidPooledStatement.java"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"735cfc0c1923bbcabbb484b34e4deb709c9d351cdec4f397cd76a921efe4a126"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SnowflakeStatementParser: ClassTooLong \u2014 539 significant lines (blank, comment-only and punctuation-only lines excluded), 39 methods. The bar is 400 significant lines; this is 139 over it, 1.35\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":"core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeStatementParser.java"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"62feff10bc17a1f7bcc43ec53ca10def80a5d9d60321327ff74b43237d964b35"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MySqlSchemaStatVisitor: ClassTooLong \u2014 536 significant lines (blank, comment-only and punctuation-only lines excluded), 151 methods. The bar is 400 significant lines; this is 136 over it, 1.34\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlSchemaStatVisitor.java"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"22af3da90efdc3890bf85ab796afe63e8ddfd95baaef864dfb85a95bfe9f9322"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: filter/FilterChain.java: FileTooLong \u2014 670 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: FilterChain (35-1192). The bar is 500 significant lines; this is 170 over it, 1.34\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":"core/src/main/java/com/alibaba/druid/filter/FilterChain.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d935584aeb2d84c3223a7307495bd660b1e67b4fecb3c5d8e802d6347f33277c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OracleStatementParser.parseCreateIndex: MethodTooLong \u2014 parseCreateIndex runs 134 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 34 over it, 1.34\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java"},"region":{"startLine":2556}}}],"partialFingerprints":{"codehealthFindingId/v1":"f261eb8f66930967e4ce5cd69384c008a86829d05d0c1bb141bf3a73e92974bb"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OscarExprParser.primaryRest: MethodTooLong \u2014 primaryRest runs 134 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 34 over it, 1.34\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarExprParser.java"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"0072fe478062950d645fd45c5a60fc7f8a2b93eb19eea1ae5bbeda4a2f67adf1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PGSelectParser.query: MethodTooLong \u2014 query runs 134 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 34 over it, 1.34\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSelectParser.java"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d31be53c21eb7fc28149f2b5caeed895037e3647811eb2ea95eeead5c500818"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: pool/DruidPooledPreparedStatement.java: FileTooLong \u2014 669 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: DruidPooledPreparedStatement (34-1077). The bar is 500 significant lines; this is 169 over it, 1.34\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":"core/src/main/java/com/alibaba/druid/pool/DruidPooledPreparedStatement.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"13965ef2344dfb7eef4098299251712109a2112b8183f4c0402edf2cf6e793dc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: parser/MySqlLexer.java: FileTooLong \u2014 667 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: MySqlLexer (32-987). The bar is 500 significant lines; this is 167 over it, 1.33\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3adcf57bf020ad3db9bfc7eed3b5b2ba7f667526fdb5622c7c75025c02b0d54a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SQLAlterTableAddIndex: TooManyMethods \u2014 40 methods. The bar is 30 methods; this is 10 over it, 1.33\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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableAddIndex.java"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"32af83945a105b1b1cbf95122a4a24af0a7c66726cf37e547697c626edd74667"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SQLAlterTableAlterIndex: TooManyMethods \u2014 40 methods. The bar is 30 methods; this is 10 over it, 1.33\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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableAlterIndex.java"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"509a687e39ff3d9d1402a1da384048b4d7efa5ba9be2002e36e3c7b5561f5079"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SQLSelect: TooManyMethods \u2014 40 methods. The bar is 30 methods; this is 10 over it, 1.33\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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelect.java"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"a179e426a95f31e0934807d3cf430d923be40faaf62ae2ab3fc82caa9a1085d4"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WebSessionStatValue: TooManyMethods \u2014 40 methods. The bar is 30 methods; this is 10 over it, 1.33\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":"core/src/main/java/com/alibaba/druid/support/http/stat/WebSessionStatValue.java"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b118324d2d7c9ee8b9d2d2c233470fb99608fb5b5c20c77f0b9612f29b0f018"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ColumnMetaData: TooManyMethods \u2014 40 methods. The bar is 30 methods; this is 10 over it, 1.33\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":"core/src/main/java/com/alibaba/druid/util/jdbc/ResultSetMetaDataBase.java"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"6289f1ebc677795cf099e9ea189c1a0c508c6a665307ff6d233fb8652caf7424"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OdpsSelectParser.query: MethodTooLong \u2014 query runs 133 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 33 over it, 1.33\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsSelectParser.java"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"99b69f6430bd68578a7a1f64eea4b5089cf5b1bd8835ce67b957a65ae5fb2c37"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DruidDataSource.init: MethodTooLong \u2014 init runs 132 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 32 over it, 1.32\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/pool/DruidDataSource.java"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c9b3c176178d4d91a6de8b1a6bc8cd88d0918b8c5cc06aba10234f402cab343"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OracleStatementParser.parseAlterTable: MethodTooLong \u2014 parseAlterTable runs 132 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 32 over it, 1.32\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java"},"region":{"startLine":1585}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4b7685b162de6a1f93e418f607541d1d435aae8280ace7e25d50c21a01d6ca7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OscarSelectParser.query: MethodTooLong \u2014 query runs 131 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 31 over it, 1.31\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarSelectParser.java"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c5e5140040ab593facf8afbb9a7dc775a81c74c03a27544ee5c04f7fbec7519"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SQLASTOutputVisitor.visit: MethodTooLong \u2014 visit runs 131 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 31 over it, 1.31\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":1522}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed96e4c288176003e977b9c3c1b9aaf4d09c780ff26e1d91e45b6d8a381a504e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WallProvider: ClassTooLong \u2014 521 significant lines (blank, comment-only and punctuation-only lines excluded), 61 methods. The bar is 400 significant lines; this is 121 over it, 1.30\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":"core/src/main/java/com/alibaba/druid/wall/WallProvider.java"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"8699347df4a458410873e45061586cf7e41ed64797530c4dd6173b7fa0ee4050"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SQLAlterSequenceStatement: TooManyMethods \u2014 39 methods. The bar is 30 methods; this is 9 over it, 1.30\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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterSequenceStatement.java"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1d0e47d264967beab52453fce1ce7120a28b255c4b8b9478c8491a0db743372"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SQLAlterViewStatement: TooManyMethods \u2014 39 methods. The bar is 30 methods; this is 9 over it, 1.30\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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterViewStatement.java"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"16795f2072e515d5df47e5dc9205ad618209ade739100e0468b1dd516e35608c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: OracleExprParser: TooManyMethods \u2014 39 methods. The bar is 30 methods; this is 9 over it, 1.30\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e69b1aeb110351dbeaf4a131d8b54c0dacb6f7140c5f3bfa3b7abdded46a3e4"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SnowflakeStatementParser: TooManyMethods \u2014 39 methods. The bar is 30 methods; this is 9 over it, 1.30\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":"core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeStatementParser.java"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"3288c4e6d7e90f890c7e0d7f036448f1af878a35ea35c66bfc3288dae9b5a01b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DataSourceProxyImpl.getCompositeData: MethodTooLong \u2014 getCompositeData runs 130 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 30 over it, 1.30\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/proxy/jdbc/DataSourceProxyImpl.java"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"371ea685d4915ee6a32e7067f1fbb029e854c020eb0ddecfe9c0b7f9d3213280"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SQLParserUtils.splitAndRemoveComment: MethodTooLong \u2014 splitAndRemoveComment runs 130 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 30 over it, 1.30\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLParserUtils.java"},"region":{"startLine":802}}}],"partialFingerprints":{"codehealthFindingId/v1":"d386de524096a55aa1d00bfcf60d43ee6592db2f93e5343cd547acdaa9092f9d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SQLBinaryOpExpr: ClassTooLong \u2014 519 significant lines (blank, comment-only and punctuation-only lines excluded), 57 methods. The bar is 400 significant lines; this is 119 over it, 1.30\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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLBinaryOpExpr.java"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7000de6b323225292ff643786d8390e23e13a1d7437fd922ae71e16e98bc292"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SQLServerOutputVisitor: ClassTooLong \u2014 512 significant lines (blank, comment-only and punctuation-only lines excluded), 33 methods. The bar is 400 significant lines; this is 112 over it, 1.28\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":"core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/visitor/SQLServerOutputVisitor.java"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"37a06ace6f212de747445137b3e263a31de826b9caa7f088df4077aed631e050"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DmSelectParser.query: MethodTooLong \u2014 query runs 128 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 28 over it, 1.28\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmSelectParser.java"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5a7772398f7007cd4a946e13cbee32b0ff2b8c9d875adcb96f73762f605173b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SQLASTOutputVisitor.visit: MethodTooLong \u2014 visit runs 128 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 28 over it, 1.28\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":4187}}}],"partialFingerprints":{"codehealthFindingId/v1":"6437e7ad33ce1d3aae7b3bb6ecac0f457f7451c3727224aa20e063e941e65922"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: jdbc/CallableStatementProxyImpl.java: FileTooLong \u2014 639 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: CallableStatementProxyImpl (30-895). The bar is 500 significant lines; this is 139 over it, 1.28\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":"core/src/main/java/com/alibaba/druid/proxy/jdbc/CallableStatementProxyImpl.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5fe44e6ad98b9e74033d660e8a1c36eff1d2228e9449fee0a426581cbd8b776"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SQLIdentifierExpr: TooManyMethods \u2014 38 methods. The bar is 30 methods; this is 8 over it, 1.27\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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLIdentifierExpr.java"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"a77530a100490fbe641e1954df5d315cac4065b0cb45b865e7801c247daaa0b8"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SQLCreateDatabaseStatement: TooManyMethods \u2014 38 methods. The bar is 30 methods; this is 8 over it, 1.27\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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateDatabaseStatement.java"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"a02554840def0e72a6811e3b590bcf5c95aca1e2a34a85ef72b688219e1aac89"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SQLDropTableStatement: TooManyMethods \u2014 38 methods. The bar is 30 methods; this is 8 over it, 1.27\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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDropTableStatement.java"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"0de9ca7183e90393eb73e44d23fb428392c132c87f8f74ef48aaa05b39d8ea95"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: JdbcConnectionStat: TooManyMethods \u2014 38 methods. The bar is 30 methods; this is 8 over it, 1.27\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":"core/src/main/java/com/alibaba/druid/stat/JdbcConnectionStat.java"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"57712e3e097d7c70ba09cac92935fe53db2e2edcdb6869d8c38a2e017eab7351"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WallTableStatValue: TooManyMethods \u2014 38 methods. The bar is 30 methods; this is 8 over it, 1.27\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":"core/src/main/java/com/alibaba/druid/wall/WallTableStatValue.java"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"d394fef7b7653fdf1cbb7ef9a582d90a0497406d80068b48b404e88c7ec77da4"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PagerUtils: ClassTooLong \u2014 504 significant lines (blank, comment-only and punctuation-only lines excluded), 19 methods. The bar is 400 significant lines; this is 104 over it, 1.26\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":"core/src/main/java/com/alibaba/druid/sql/PagerUtils.java"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"08c546fb05ffe0d317452915acd700d774a8346b44026ae95f58c3b6dd6bcdfd"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: JdbcUtils.getDbTypeRaw: MethodTooLong \u2014 getDbTypeRaw runs 126 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 26 over it, 1.26\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/util/JdbcUtils.java"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb6b1b824eec676fc897c82f75414c395b57fa54fa1e0ae65669500417408d8d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SQLStatementParser.parseDrop: MethodTooLong \u2014 parseDrop runs 125 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 25 over it, 1.25\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":841}}}],"partialFingerprints":{"codehealthFindingId/v1":"0282f9747218c63bb31aa8d6a6dc1fc97176298da3f0227be17c67633059fbb7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SQLStatementParser.parseCreate: MethodTooLong \u2014 parseCreate runs 125 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 25 over it, 1.25\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":4096}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac528a30b2512dcdcae788a0b3df88031b66fa25636075085ec594a47a8473ea"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CalciteMySqlNodeVisitor.visit: MethodTooLong \u2014 visit runs 125 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 25 over it, 1.25\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/support/calcite/CalciteMySqlNodeVisitor.java"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"df3e6184722d93b5b175a09b2bf2c1bc0e8a36f79395d89fd707b93ea7034a87"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WallConfig: ClassTooLong \u2014 496 significant lines (blank, comment-only and punctuation-only lines excluded), 166 methods. The bar is 400 significant lines; this is 96 over it, 1.24\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":"core/src/main/java/com/alibaba/druid/wall/WallConfig.java"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"09cfd31238404f2bf8ad890a7189025573df5bbd0695935d9b3cb7e5085be850"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PrestoStatementParser.parseStatementListDialect: MethodTooLong \u2014 parseStatementListDialect runs 124 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 24 over it, 1.24\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/presto/parser/PrestoStatementParser.java"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"afecb8ce814f1591d8b16503d3e55508326d062b760c3fcfd538fd6417829646"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SQLDataTypeImpl: TooManyMethods \u2014 37 methods. The bar is 30 methods; this is 7 over it, 1.23\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":"core/src/main/java/com/alibaba/druid/sql/ast/SQLDataTypeImpl.java"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"254187ffd96c512a2dbf457a606a2f37ca7ef7023185f193544571b4c8caf995"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MySqlLexer.scanIdentifier: MethodTooLong \u2014 scanIdentifier runs 122 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 22 over it, 1.22\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"5372aad5d45ed21476301f2e95d78087fcb81860957412dc52e8fa8e6775dce4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: parser/OdpsExprParser.java: FileTooLong \u2014 606 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: OdpsExprParser (39-846). The bar is 500 significant lines; this is 106 over it, 1.21\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":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsExprParser.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bde35024e44da556f63c0583aa06ae096e71c863fc892f2f08579552824d6fc"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SQLColumnDefinition: ClassTooLong \u2014 484 significant lines (blank, comment-only and punctuation-only lines excluded), 112 methods. The bar is 400 significant lines; this is 84 over it, 1.21\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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLColumnDefinition.java"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"c84146308a524a741016888ef2e73bbd0c335393c20f2479988a1c8e898dbc9a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PGExprParser: ClassTooLong \u2014 484 significant lines (blank, comment-only and punctuation-only lines excluded), 27 methods. The bar is 400 significant lines; this is 84 over it, 1.21\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":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGExprParser.java"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"17c0386f34520bbaf544a8449002b5bd2a53007f0f702b2ec18c8a2cbbadbe93"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SQLUpdateStatement: TooManyMethods \u2014 36 methods. The bar is 30 methods; this is 6 over it, 1.20\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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLUpdateStatement.java"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e8db72b65ff02e0f6cc1b1f9712974ef00824942a5e53e4141b1407fac43357"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MySqlLoadDataInFileStatement: TooManyMethods \u2014 36 methods. The bar is 30 methods; this is 6 over it, 1.20\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlLoadDataInFileStatement.java"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"133b77c87c6d09b5d79e49d2bbbde4fdc1068c2074f7beb2484e4149955f372b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: HiveOutputVisitor: ClassTooLong \u2014 480 significant lines (blank, comment-only and punctuation-only lines excluded), 29 methods. The bar is 400 significant lines; this is 80 over it, 1.20\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":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/visitor/HiveOutputVisitor.java"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2b4d17cea586387c9338298e7915c8ca0fdfa9909e2bdc5ec566f20c4395daf"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: logging/LogFilter.java: FileTooLong \u2014 597 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: LogFilter (37-974). The bar is 500 significant lines; this is 97 over it, 1.19\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":"core/src/main/java/com/alibaba/druid/filter/logging/LogFilter.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d91d2e71185f87a38f47a44e5d7f60df351c52085873176ef18089f97fad5e53"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MySqlExprParser.parseIndexOptions: MethodTooLong \u2014 parseIndexOptions runs 119 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 19 over it, 1.19\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"da900215bbfedf2d2804a263da787f70a7a50abd3211b2c6822c65b81c5bf9ea"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SQLDataTypeImpl.jdbcType: MethodTooLong \u2014 jdbcType runs 118 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 18 over it, 1.18\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/SQLDataTypeImpl.java"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5f699f39c5c6c73edf8425c5cfdc9c2cfb2d2cf8b7d444b7685912eebb4a79f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HiveLexer.scanString: MethodTooLong \u2014 scanString runs 118 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 18 over it, 1.18\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveLexer.java"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e8a9be2a75b3bd33a87b50e8cc4426a12ebafa5e8b1f8b068855fef4a097121"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MySqlLexer.scanString: MethodTooLong \u2014 scanString runs 118 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 18 over it, 1.18\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"caa824d2cc819fdb7b37ff0ff04125b676bc4fc4bbd2bc7dbc89163cda65c249"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MySqlOutputVisitor.visit: MethodTooLong \u2014 visit runs 118 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 18 over it, 1.18\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"77b16f2903fcb448ef3c0362466f9042e8b78879304740141bc19fb1f9896e55"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: JdbcStatManager.getDataSourceCompositeType: MethodTooLong \u2014 getDataSourceCompositeType runs 118 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 18 over it, 1.18\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/stat/JdbcStatManager.java"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3b03f2d6d0a2aa5e295afb6cf702e6cc88b89d258d24106ab2a465f69cd9f55"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: parser/MySqlSelectParser.java: FileTooLong \u2014 585 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: MySqlSelectParser (32-886). The bar is 500 significant lines; this is 85 over it, 1.17\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectParser.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"04282700aed1d3fc21f4263469120cee440f69d093c6b0c25984798dcfe3e10b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MySqlExprParser.parseTableOptions: MethodTooLong \u2014 parseTableOptions runs 117 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 17 over it, 1.17\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java"},"region":{"startLine":2512}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7573d6d54334fdbacaa590538b916c6a01b7eeee2c6941273a1201af145b919"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OracleExprParser.parseDataType: MethodTooLong \u2014 parseDataType runs 117 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 17 over it, 1.17\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e5723478c1051cb8251af0cd6d9be5ebe46c4deb26590b7cb5f99b11f928d8d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SQLASTOutputVisitor.visitInternal: MethodTooLong \u2014 visitInternal runs 117 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 17 over it, 1.17\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":703}}}],"partialFingerprints":{"codehealthFindingId/v1":"025ab003a56c888120edce773f47b633795c2147598d2e95bfea22ce32bbe843"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SQLOver: TooManyMethods \u2014 35 methods. The bar is 30 methods; this is 5 over it, 1.17\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":"core/src/main/java/com/alibaba/druid/sql/ast/SQLOver.java"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f20fe7fd279ade0220550a0d09802a20cbd4c7594f3c062b74a0b5c0bc4a314"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SQLServerStatementParser: TooManyMethods \u2014 35 methods. The bar is 30 methods; this is 5 over it, 1.17\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":"core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerStatementParser.java"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"697ef9249765bdcd570e539d5e7326869b819f8b61cf1a9cab13556ec71d2f3b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TableStat: TooManyMethods \u2014 35 methods. The bar is 30 methods; this is 5 over it, 1.17\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":"core/src/main/java/com/alibaba/druid/stat/TableStat.java"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"f286d0444054d60f89b6e87afdafa555b69fd79d2ffeb5ef498c5b5a87f06fc0"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Utils: TooManyMethods \u2014 35 methods. The bar is 30 methods; this is 5 over it, 1.17\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":"core/src/main/java/com/alibaba/druid/util/Utils.java"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"f135afdbb34043c5028286f2bac61966148cadc191697d7d6bf842d5fc867a0f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: jdbc/DatabaseMetaDataProxyImpl.java: FileTooLong \u2014 575 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: DatabaseMetaDataProxyImpl (23-950). The bar is 500 significant lines; this is 75 over it, 1.15\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":"core/src/main/java/com/alibaba/druid/proxy/jdbc/DatabaseMetaDataProxyImpl.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"de04aec03dd371f38823bce7d7e2b136288bc6a80c8f91f872446c8d20937099"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SQLJoinTableSource: ClassTooLong \u2014 455 significant lines (blank, comment-only and punctuation-only lines excluded), 52 methods. The bar is 400 significant lines; this is 55 over it, 1.14\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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLJoinTableSource.java"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1f8e81bd2dd331b89c37d36b7dd0e8bdc714415497f77d687eb9fae4e91a13b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MockDriver: TooManyMethods \u2014 34 methods. The bar is 30 methods; this is 4 over it, 1.13\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":"core/src/main/java/com/alibaba/druid/mock/MockDriver.java"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"27bad6ce1e98ffa6c8e0687b907e7c6bcf0420b39ed944f35272f251f13169a6"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SQLAggregateExpr: TooManyMethods \u2014 34 methods. The bar is 30 methods; this is 4 over it, 1.13\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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLAggregateExpr.java"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6855a02b3a5d3a8d524353f6478233477e0e88e51be512c1e6da9895b6afbbb"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SQLCreateProcedureStatement: TooManyMethods \u2014 34 methods. The bar is 30 methods; this is 4 over it, 1.13\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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateProcedureStatement.java"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3fd610bff1a18cc0ab0b8b2f3d8c73247899cb544d99fbfe355885dd877e716"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SQLCreateTriggerStatement: TooManyMethods \u2014 34 methods. The bar is 30 methods; this is 4 over it, 1.13\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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateTriggerStatement.java"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ca3929195f060e50b4fe53ef82100896f8f034bd9a96e248c4fe50cf9b8fbb7"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: OraclePartitionSingle: TooManyMethods \u2014 34 methods. The bar is 30 methods; this is 4 over it, 1.13\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/OraclePartitionSingle.java"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"b68e4adfacd4629ad95dc932a24f48295a930f314b84467b636ec577c5db6966"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: OracleCreateTypeStatement: TooManyMethods \u2014 34 methods. The bar is 30 methods; this is 4 over it, 1.13\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleCreateTypeStatement.java"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"eebbffeff712aead4b99c5b4370dd655c6899a96987500be37d5c0ed02956059"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WallSqlTableStat: TooManyMethods \u2014 34 methods. The bar is 30 methods; this is 4 over it, 1.13\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":"core/src/main/java/com/alibaba/druid/wall/WallSqlTableStat.java"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed29f3652e98d06a0dd0b5ae0d84decb67c206f8eaa4d0617ac9291414ca74b7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WallProvider.checkInternal: MethodTooLong \u2014 checkInternal runs 113 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/wall/WallProvider.java"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"2221bcd7a3149c3441a42719d467a21c176a53f9fc53a67fa23c03e37f66a054"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: jdbc/PreparedStatementProxyImpl.java: FileTooLong \u2014 563 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: PreparedStatementProxyImpl (34-895). The bar is 500 significant lines; this is 63 over it, 1.13\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":"core/src/main/java/com/alibaba/druid/proxy/jdbc/PreparedStatementProxyImpl.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f27cb17ac9a5ef82dbc3bff90209264ad4ee57263600a5429d9559ba419db61f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WebAppStatValue: ClassTooLong \u2014 450 significant lines (blank, comment-only and punctuation-only lines excluded), 128 methods. The bar is 400 significant lines; this is 50 over it, 1.13\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":"core/src/main/java/com/alibaba/druid/support/http/stat/WebAppStatValue.java"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"952673c9f30760c4c53d603d6bf3c17c2ea46b6c73cf552169e4ac746fd9b0e5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Lexer.scanAlias: MethodTooLong \u2014 scanAlias runs 112 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 12 over it, 1.12\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java"},"region":{"startLine":2089}}}],"partialFingerprints":{"codehealthFindingId/v1":"9073292303a22af503988abbc31f92f0747d94a52ec664d02c4489586a378656"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: OracleCreateTableParser: ClassTooLong \u2014 447 significant lines (blank, comment-only and punctuation-only lines excluded), 9 methods. The bar is 400 significant lines; this is 47 over it, 1.12\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleCreateTableParser.java"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5cbbda851e575a50dc6d982978da9cb565caa4f53a7adb6adbee691cb2516a1"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: OscarStatementParser: ClassTooLong \u2014 444 significant lines (blank, comment-only and punctuation-only lines excluded), 22 methods. The bar is 400 significant lines; this is 44 over it, 1.11\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"21c58bc18fe6656919f8bf821535505cbecacd09440a8494b6a1ddb728d8bfb2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: visitor/MySqlSchemaStatVisitor.java: FileTooLong \u2014 555 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: MySqlSchemaStatVisitor (37-926). The bar is 500 significant lines; this is 55 over it, 1.11\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlSchemaStatVisitor.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ede7ebcf683fe623c90b1f18f7d24bff32cfb42d5a0d743bde54039c39c9783"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MySqlShowColumnOutpuVisitor.visit: MethodTooLong \u2014 visit runs 111 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 11 over it, 1.11\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlShowColumnOutpuVisitor.java"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fd15f3106e0ab150ffb2e4762ee1e4f5471229a01c1ce7c768aae133af2113d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SQLTruncateStatement: TooManyMethods \u2014 33 methods. The bar is 30 methods; this is 3 over it, 1.10\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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLTruncateStatement.java"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a58de4ce44440b15faef466fbb0676e25d1a3b57551635c7c56bf50c0bd0bb2"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BigQueryOutputVisitor: TooManyMethods \u2014 33 methods. The bar is 30 methods; this is 3 over it, 1.10\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":"core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryOutputVisitor.java"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9a2df9052499426afd1b042333f196b54ad76e3a7db7ac46dbe948ebcf9bc96"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SQLServerOutputVisitor: TooManyMethods \u2014 33 methods. The bar is 30 methods; this is 3 over it, 1.10\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":"core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/visitor/SQLServerOutputVisitor.java"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed322e363a53ed2c60458a776b0a2d9c477cb69f08ed58c3a08ab652a9d44fdf"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WebRequestStat: TooManyMethods \u2014 33 methods. The bar is 30 methods; this is 3 over it, 1.10\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":"core/src/main/java/com/alibaba/druid/support/http/stat/WebRequestStat.java"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0fc91727368e97169170b3e4017c0bf9bfa1775a2aa6d5a23c7034b78f5f525"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: visitor/MySqlASTVisitor.java: FileTooLong \u2014 550 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: MySqlASTVisitor (29-1284). The bar is 500 significant lines; this is 50 over it, 1.10\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlASTVisitor.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"511757d16fab365a2ec55dd724981932b079b8bd951b69c8c6dd0628890fb2d9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: pool/DruidPooledStatement.java: FileTooLong \u2014 549 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: DruidPooledStatement (32-890). The bar is 500 significant lines; this is 49 over it, 1.10\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":"core/src/main/java/com/alibaba/druid/pool/DruidPooledStatement.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0666c34c30a4d79019ab28e518e904b5928110caf60c0b752794b62af6b44df"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: snowflake/SnowflakeStatementParser.java: FileTooLong \u2014 549 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: SnowflakeStatementParser (14-839). The bar is 500 significant lines; this is 49 over it, 1.10\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":"core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeStatementParser.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"274f1901b543b3f304d5ddd5e3d9ddf61a66a44815040598b7464025cf0dafc9"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: EncodingConvertFilter: ClassTooLong \u2014 437 significant lines (blank, comment-only and punctuation-only lines excluded), 56 methods. The bar is 400 significant lines; this is 37 over it, 1.09\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":"core/src/main/java/com/alibaba/druid/filter/encoding/EncodingConvertFilter.java"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e68c6bdd80536a32beaf876798caed9c37dea055e6617298e6f85253248c619"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OracleRowNumToLimit.visit: MethodTooLong \u2014 visit runs 109 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 9 over it, 1.09\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleRowNumToLimit.java"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"889b6cbc9f1010d7365b9f7c8e66dc37717f7c55ed3f3ba6a3bb63880c672299"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: wall/WallProvider.java: FileTooLong \u2014 544 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: WallProvider (43-897). The bar is 500 significant lines; this is 44 over it, 1.09\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":"core/src/main/java/com/alibaba/druid/wall/WallProvider.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3edb0914e7a904ead29a1051c1b32b6850537e6e1f1dfbb1bcb014d7b0b39ba"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: JdbcSqlStatValue: ClassTooLong \u2014 434 significant lines (blank, comment-only and punctuation-only lines excluded), 99 methods. The bar is 400 significant lines; this is 34 over it, 1.09\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":"core/src/main/java/com/alibaba/druid/stat/JdbcSqlStatValue.java"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"d06b7bd43e9ea6c29eb4daecff91480a59f1de397be1db8949b274be8881019c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DruidDataSource.recycle: MethodTooLong \u2014 recycle runs 108 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 8 over it, 1.08\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/pool/DruidDataSource.java"},"region":{"startLine":1901}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0a4e8cf5fb0ec483d48c6c1792d03313bab3b475fd19fda159e2c93b7e8f4ee"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SQLObjectImpl: TooManyMethods \u2014 32 methods. The bar is 30 methods; this is 2 over it, 1.07\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":"core/src/main/java/com/alibaba/druid/sql/ast/SQLObjectImpl.java"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"30969d3383973bd7c22cb1fab74bdec07d115b86eb1940b57bc6ebfa38d35709"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: OdpsStatementParser: TooManyMethods \u2014 32 methods. The bar is 30 methods; this is 2 over it, 1.07\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":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsStatementParser.java"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"f89dfa010bf7c7b3fe138f27233d48cbd584fa6fe25be7fc58c8f488c0c27a1e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SQLParserUtils: TooManyMethods \u2014 32 methods. The bar is 30 methods; this is 2 over it, 1.07\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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLParserUtils.java"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e67432bc6b648158d5702eec3fcfe3e4cfa1c62cce0aee7d0c51d498475a46c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SqlMapClientImplWrapper: TooManyMethods \u2014 32 methods. The bar is 30 methods; this is 2 over it, 1.07\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":"core/src/main/java/com/alibaba/druid/support/ibatis/SqlMapClientImplWrapper.java"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"66c57610c0ba3429953206d21f57da271b978e0612c0ab4139a6c904b5fc6f5b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: expr/SQLBinaryOpExpr.java: FileTooLong \u2014 532 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: SQLBinaryOpExpr (32-906). The bar is 500 significant lines; this is 32 over it, 1.06\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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLBinaryOpExpr.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a00c946ca032eb663cf80e7410410c1e837cecc3bd208dd7aa21f37364834a9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: visitor/SQLServerOutputVisitor.java: FileTooLong \u2014 530 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: SQLServerOutputVisitor (37-786). The bar is 500 significant lines; this is 30 over it, 1.06\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":"core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/visitor/SQLServerOutputVisitor.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd2ca971e45f106eefbcf75a644e11735a128ce7634983e35d5b2981d7191af5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OracleSelectParser.parsePivot: MethodTooLong \u2014 parsePivot runs 106 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 6 over it, 1.06\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleSelectParser.java"},"region":{"startLine":966}}}],"partialFingerprints":{"codehealthFindingId/v1":"69c2d39efbae983aaa098249f9fc2cfecb18c861f021ca1bb500391f27917bda"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DruidDataSourceStatManager.getDruidDataSourceCompositeType: MethodTooLong \u2014 getDruidDataSourceCompositeType runs 106 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 6 over it, 1.06\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/stat/DruidDataSourceStatManager.java"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ad31b5c4c9cca207b5660c5070a7184f216187cb23153a7518f4172f0431c39"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DruidAbstractDataSource.createPhysicalConnection: MethodTooLong \u2014 createPhysicalConnection runs 105 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 5 over it, 1.05\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/pool/DruidAbstractDataSource.java"},"region":{"startLine":1704}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fa5f58a51a7a93ef9e575864c28563b962e42510b487bc7a5af6237cf053c15"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Lexer.scanNumber: MethodTooLong \u2014 scanNumber runs 105 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 5 over it, 1.05\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java"},"region":{"startLine":2852}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d337a267ad16533ea7318b5bb1f77a0205047c5447db1794f9e3481c22a175f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: sql/PagerUtils.java: FileTooLong \u2014 520 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: PagerUtils (35-809). The bar is 500 significant lines; this is 20 over it, 1.04\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":"core/src/main/java/com/alibaba/druid/sql/PagerUtils.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b97d17bbb97d325a168f56e74e34293c5f1ba5b5dd18e74ced7c53732a94332"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GaussDbStatementParser.parseInsert: MethodTooLong \u2014 parseInsert runs 104 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 4 over it, 1.04\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/parser/GaussDbStatementParser.java"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"deb6d905d9e8f0b7fd07ef6bbf72fb97f80f77f19ae37aaf5479148839bcce02"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RandomDataSourceSelector: TooManyMethods \u2014 31 methods. The bar is 30 methods; this is 1 over it, 1.03\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":"core/src/main/java/com/alibaba/druid/pool/ha/selector/RandomDataSourceSelector.java"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"10cc8d9f99e912099a63abfe7f73d46a7af596e2b717b46a7bb821db67f0f520"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SQLDeleteStatement: TooManyMethods \u2014 31 methods. The bar is 30 methods; this is 1 over it, 1.03\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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDeleteStatement.java"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"493030585e44f7415a9147b53e8daf7b6638f930117637d876a1c0e01b03ef49"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SQLInsertInto: TooManyMethods \u2014 31 methods. The bar is 30 methods; this is 1 over it, 1.03\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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLInsertInto.java"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"da24c2491b04c21ed8fe72dba3b1a50cde01f5a18210d79172bba395bb3a7b63"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: OdpsExprParser: TooManyMethods \u2014 31 methods. The bar is 30 methods; this is 1 over it, 1.03\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":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsExprParser.java"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"6af9321b65225a405c7b5503f189a0611ef4245f55a041868bf1cbb7bf86689d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SchemaResolveVisitorFactory: TooManyMethods \u2014 31 methods. The bar is 30 methods; this is 1 over it, 1.03\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":"core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2f86a110b0f0983b923824da330d8741f3e4d7048a7787661808b05756a56bf"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MySqlOutputVisitor.visit: MethodTooLong \u2014 visit runs 103 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":1103}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b3b58b16b10c1bb7e403178d2dbd0adaa2f1259694e50187b8d502f115cd273"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OracleStatementParser.parseCreatePackage: MethodTooLong \u2014 parseCreatePackage runs 103 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java"},"region":{"startLine":2891}}}],"partialFingerprints":{"codehealthFindingId/v1":"305cedf195c457c7ef028aa1be1a1fbf4040f456e31625eea133a83586adbe33"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SQLStatementParser.parseCreateMaterializedView: MethodTooLong \u2014 parseCreateMaterializedView runs 103 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":4345}}}],"partialFingerprints":{"codehealthFindingId/v1":"69d57797c52283b944dde607ff90db8379eee3cddc9633796dbdc9437d6bade9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CalciteMySqlNodeVisitor.visit: MethodTooLong \u2014 visit runs 103 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/support/calcite/CalciteMySqlNodeVisitor.java"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"88f59be1bd355131071c0167f0174e32633f21fd0305f73a655318c5afaec8c9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SQLSelectParser.parseTableSource: MethodTooLong \u2014 parseTableSource runs 102 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java"},"region":{"startLine":1219}}}],"partialFingerprints":{"codehealthFindingId/v1":"1945bba9e3120dcbb1bde30ecbf40dd3f094c90f3c61517a0c8224e3b27c1f09"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SQLStatementParser.parseTruncate: MethodTooLong \u2014 parseTruncate runs 102 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":3674}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5207cd70475e6fd70a139b9515f5528cae644e7672ed4db662209f50dcf420d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MonitorDaoJdbcImpl.load: MethodTooLong \u2014 load runs 102 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/support/monitor/dao/MonitorDaoJdbcImpl.java"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e8f7c6b0646ff8e44097703203c0060c84ff5cc24a745189c402240d4c62c26"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SQLSelectParser.parseGroupBy: MethodTooLong \u2014 parseGroupBy runs 101 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java"},"region":{"startLine":893}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b7ae04d0ff26c1750b73230a150e051382847085833f2300ba46fb663423ea1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SQLStatementParser.parseCreateView: MethodTooLong \u2014 parseCreateView runs 101 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":5002}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d4b8c3d22076bb0e4499f14ee6e1c0ab91f78cbba9fd554e8363b5290d634e3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: visitor/HiveOutputVisitor.java: FileTooLong \u2014 504 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: HiveOutputVisitor (43-741). The bar is 500 significant lines; this is 4 over it, 1.01\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":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/visitor/HiveOutputVisitor.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a6ea97fcd18258509c9506429e0c7684b7b7c16d274631d9e0d8e24f64075ad"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: wall/WallConfig.java: FileTooLong \u2014 504 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: WallConfig (28-988). The bar is 500 significant lines; this is 4 over it, 1.01\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":"core/src/main/java/com/alibaba/druid/wall/WallConfig.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7b932556d3cbc968640fdb77294144b8f5612e852c251650d0f111afb40117b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: parser/PGExprParser.java: FileTooLong \u2014 502 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: PGExprParser (37-683). The bar is 500 significant lines; this is 2 over it, 1.00\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":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGExprParser.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bb121c363b461077ae4c3c88f2f45a2f6e6b6c19256ba74de393afb360bb1d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 39 shared lines): core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryLexer.java:174-315 | core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryLexer.java:341-476 | core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveLexer.java:120-276 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java:488-642 | core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java:1799-1900 | core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java:1902-2024 \u2014 These 6 members are variants of one another: a block of 39 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryLexer.java"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef8239fab8bed12911780d1d6baa1729f63fe713e34dea21216d8ffd263bc192"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 46 shared lines): core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveLexer.java:120-276 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java:488-642 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarLexer.java:99-188 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGLexer.java:103-192 \u2014 These 4 members are variants of one another: a block of 46 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveLexer.java"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff7caf58b84a340e30cc106b19edb263a3b796caf368eb3c0087064625f76fe2"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 28 shared lines): core/src/main/java/com/alibaba/druid/support/http/ResourceServlet.java:68-123 | core/src/main/java/com/alibaba/druid/support/http/StatViewFilter.java:42-108 | core/src/main/java/com/alibaba/druid/support/jakarta/ResourceServlet.java:55-110 | core/src/main/java/com/alibaba/druid/support/jakarta/StatViewFilter.java:41-107 \u2014 These 4 members are variants of one another: a block of 28 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/support/http/ResourceServlet.java"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7015ecfd14067b417db931bceb7c11f6313b3008437afb48e7f9f4ceeae8c43"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 22 shared lines): core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2StatementParser.java:144-187 | core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmStatementParser.java:220-255 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java:453-488 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java:951-1008 \u2014 These 4 members are variants of one another: a block of 22 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2StatementParser.java"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"4144a73608cd5084185f600c82d3884d955da99ac8f4590e041f8b639457ac8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 20 shared lines): core/src/main/java/com/alibaba/druid/sql/dialect/athena/parser/AthenaCreateTableParser.java:28-117 | core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveCreateTableParser.java:127-355 | core/src/main/java/com/alibaba/druid/sql/dialect/impala/parser/ImpalaCreateTableParser.java:32-175 | core/src/main/java/com/alibaba/druid/sql/dialect/supersql/parser/SuperSqlCreateTableParser.java:16-44 \u2014 These 4 members are variants of one another: a block of 20 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/athena/parser/AthenaCreateTableParser.java"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b9e703848ee630a14578856461410261b8fdaac8d29cda54381c8604db8b3d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 76 shared lines): core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmSelectParser.java:29-228 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarSelectParser.java:49-249 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSelectParser.java:49-254 \u2014 These 3 members are variants of one another: a block of 76 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 3 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmSelectParser.java"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"86e394a55c8178b1399c70a8e6feb3e662e5cd00d24f19598879b01bf2744e30"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 54 shared lines): core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:6062-6386 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:6388-6660 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:6667-6924 \u2014 These 3 members are variants of one another: a block of 54 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 3 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":6062}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eb4fbd646937439f2956167d6b951cb3a018cadcd3a0ef7fb995c7b4ec5a75c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 26 shared lines): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:74-112 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:2134-2165 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:2627-2658 \u2014 These 3 members are variants of one another: a block of 26 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 3 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeb01dc78e020572ceaf1e5235ca1abf19370d39e11125b159d56550cbb622f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 19 shared lines): core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java:425-509 | core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java:511-564 | core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java:566-643 \u2014 These 3 members are variants of one another: a block of 19 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 3 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d3387bc5ced491e78d4c49524b428d8f00e424a87e55d85ce568bdd67c1a3c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 16 shared lines): core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveLexer.java:278-421 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleLexer.java:253-350 | core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerLexer.java:77-175 \u2014 These 3 members are variants of one another: a block of 16 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 3 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveLexer.java"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e180386f51cf8953355a144c518d10c6706afc4311b6a0753f7596168e15cc2"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (86 shared lines): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleSelectParser.java:966-1126 | core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java:2431-2553 \u2014 These two members are variants of one another: 86 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleSelectParser.java"},"region":{"startLine":966}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea918d097fd01392df6ac5d3bd8f08d7dc863ada0a3012bab31f64f33cd33408"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (70 shared lines): core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveExprParser.java:119-202 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java:564-840 \u2014 These two members are variants of one another: 70 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":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveExprParser.java"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"719286b452ccd4632f0dbcb7344d7c466fa56e887a4bc4f480acc07d32166603"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (67 shared lines): core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:4345-4482 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:7587-7699 \u2014 These two members are variants of one another: 67 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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":4345}}}],"partialFingerprints":{"codehealthFindingId/v1":"32deb652f9a5c4dc9277500b6d2c4101c3650bb7741af56814328456301107d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (65 shared lines): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:1186-1272 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:1566-1649 \u2014 These two members are variants of one another: 65 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":1186}}}],"partialFingerprints":{"codehealthFindingId/v1":"8084a0395f6ecb3f79a2ec62e15a8cbb124a21fb231bd1902560058dbbb4df41"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (64 shared lines): core/src/main/java/com/alibaba/druid/util/StringUtils.java:143-240 | core/src/main/java/com/alibaba/druid/util/StringUtils.java:242-342 \u2014 These two members are variants of one another: 64 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":"core/src/main/java/com/alibaba/druid/util/StringUtils.java"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"f03c834959a37c2726f058403f1138e12e48cbe1765c8a80bd689c77f781cf18"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (54 shared lines): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java:738-810 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlSelectQueryBlock.java:249-326 \u2014 These two members are variants of one another: 54 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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java"},"region":{"startLine":738}}}],"partialFingerprints":{"codehealthFindingId/v1":"c22f7c159c0199f32b3e51147b04bb5ce9c0a04b13e4c696f089ca2e798c4d2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (53 shared lines): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java:2005-2268 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java:818-882 \u2014 These two members are variants of one another: 53 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java"},"region":{"startLine":2005}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0f1ea9814fe69551b7a44a4c375ea23c01bc0d529c1df48d9f710d9ca11b14b"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (52 shared lines): core/src/main/java/com/alibaba/druid/sql/parser/SQLParserUtils.java:693-800 | core/src/main/java/com/alibaba/druid/sql/parser/SQLParserUtils.java:802-982 \u2014 These two members are variants of one another: 52 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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLParserUtils.java"},"region":{"startLine":693}}}],"partialFingerprints":{"codehealthFindingId/v1":"c61556222b3689432b91941b52432ae3aae1b9f2e93a07b282b7114f7af4739b"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (48 shared lines): core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:6934-7047 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:7049-7125 \u2014 These two members are variants of one another: 48 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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":6934}}}],"partialFingerprints":{"codehealthFindingId/v1":"d19430e23561908f88b44ef1f88d04cd8a9a3399109fa5c8b78b31ae59b9d04a"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (43 shared lines): core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:4728-4841 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:7356-7461 \u2014 These two members are variants of one another: 43 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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":4728}}}],"partialFingerprints":{"codehealthFindingId/v1":"5499d862c843849b010c2f8a2df7b3069ed015c6fa9ef6a4687dbc77b3b58575"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (38 shared lines): core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmCreateTableParser.java:23-76 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGCreateTableParser.java:64-124 \u2014 These two members are variants of one another: 38 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\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":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmCreateTableParser.java"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"33a9ac872cac9776c79cd37a8cced7a20b2169532d61ef2441706ed663134579"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (38 shared lines): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:91-564 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:9231-9396 \u2014 These two members are variants of one another: 38 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce6d1e255254c2bf1676831107601e8dabc2b8c28e81a50a3415adf839febc4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (37 shared lines): core/src/main/java/com/alibaba/druid/sql/dialect/spark/parser/SparkExprParser.java:164-220 | core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:6448-6537 \u2014 These two members are variants of one another: 37 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":"core/src/main/java/com/alibaba/druid/sql/dialect/spark/parser/SparkExprParser.java"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"88f695ebbe7ad0239f44b289a7124daef8723da536bd14a6bc494a79081c961c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (17 shared lines): core/src/main/java/com/alibaba/druid/sql/SQLUtils.java:444-515 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:11950-12010 \u2014 These two members are variants of one another: 17 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":"core/src/main/java/com/alibaba/druid/sql/SQLUtils.java"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"da7d116327147d178a913eec8d9fb389d499b3421c8e1f12eae62d511b723e15"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (87 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:2270-2370 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:7870-7968 \u2014 These two members are one piece of code written twice and then edited apart: 87 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":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java"},"region":{"startLine":2270}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e93c11b57b95813b9c51976419a004f244bba3b6cbea44be16a467bb7440212"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (86 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:1668-1753 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:2058-2143 \u2014 These two members are one piece of code written twice and then edited apart: 86 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":1668}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dcf16e53fb5e2cd75312cfce8f5450457e8862bc01edcdadeaf4810a249b13c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (47 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/visitor/CKOutputVisitor.java:239-285 | core/src/main/java/com/alibaba/druid/sql/dialect/hologres/visitor/HologresOutputVisitor.java:61-107 \u2014 These two members are one piece of code written twice and then edited apart: 47 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":"core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/visitor/CKOutputVisitor.java"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"3af823c33a0a2a47b96c0bdc9b93a16269d60c45360ee35cf4488614d0f3f1b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (74 corresponding lines): core/src/main/java/com/alibaba/druid/pool/vendor/OceanBaseOracleExceptionSorter.java:24-117 | core/src/main/java/com/alibaba/druid/pool/vendor/OracleExceptionSorter.java:41-132 \u2014 These two members are one piece of code written twice and then edited apart: 74 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":"core/src/main/java/com/alibaba/druid/pool/vendor/OceanBaseOracleExceptionSorter.java"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"a89fbdb823049305884712d15948bf6633798c39e775e6c91f081c2f26799c7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:1367-1449 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:2065-2109 \u2014 These two members are one piece of code written twice and then edited apart: 33 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":1367}}}],"partialFingerprints":{"codehealthFindingId/v1":"78b90496afeca3952a1731db00ee7743a9dd2825ebd07435229a025e9579efb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (44 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:764-807 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:1144-1187 \u2014 These two members are one piece of code written twice and then edited apart: 44 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":764}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c18b17d8c698539b720c50de6a6be187f7b59ba824eb1e93adb6370df50fa02"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLDateExpr.java:288-310 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTimestampNTZExpr.java:314-336 \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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLDateExpr.java"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cd14da2435743c169490172058a43afb4832e4d3789200f4fb4bfa3756e134d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java:1176-1215 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java:1284-1341 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java"},"region":{"startLine":1176}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec78b2f01046a98ff7b4c1b9d4bdf8f5bcfe49eb685f960aaff0b78579c9d427"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:3810-3853 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:6390-6426 \u2014 These two members are one piece of code written twice and then edited apart: 17 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":3810}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e737d05c5e5048e44e3f4cea324aac016baaa568fc348c5e1f65e74fd4bfcc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (13 members, 50\u002B identical tokens): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:1643-1671 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:2764-2792 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:2795-2814 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:2900-2934 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:2937-2964 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:3208-3227 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:3230-3249 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:3252-3271 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:3274-3293 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:3296-3315 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:3347-3366 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:3369-3388 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:3391-3418 \u2014 These 13 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 13 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 13 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":1643}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddafc657699879b76ca59d161002f1c684650154441782eb5edc5c1b3efe3bc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (10 members, 50\u002B identical tokens): core/src/main/java/com/alibaba/druid/sql/visitor/functions/Ascii.java:28-51 | core/src/main/java/com/alibaba/druid/sql/visitor/functions/Bin.java:27-46 | core/src/main/java/com/alibaba/druid/sql/visitor/functions/BitLength.java:27-44 | core/src/main/java/com/alibaba/druid/sql/visitor/functions/Lcase.java:30-48 | core/src/main/java/com/alibaba/druid/sql/visitor/functions/Length.java:30-47 | core/src/main/java/com/alibaba/druid/sql/visitor/functions/Ltrim.java:27-55 | core/src/main/java/com/alibaba/druid/sql/visitor/functions/OneParamFunctions.java:33-85 | core/src/main/java/com/alibaba/druid/sql/visitor/functions/Reverse.java:27-48 | core/src/main/java/com/alibaba/druid/sql/visitor/functions/Trim.java:27-43 | core/src/main/java/com/alibaba/druid/sql/visitor/functions/Ucase.java:30-47 \u2014 These 10 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 10 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 10 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/functions/Ascii.java"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d788a456fc201ce028153c2ee6dac88597456ee83e826b98e984e9a02ef0b35"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (9 members, 50\u002B identical tokens): core/src/main/java/com/alibaba/druid/filter/FilterEventAdapter.java:178-197 | core/src/main/java/com/alibaba/druid/filter/FilterEventAdapter.java:201-220 | core/src/main/java/com/alibaba/druid/filter/FilterEventAdapter.java:224-243 | core/src/main/java/com/alibaba/druid/filter/FilterEventAdapter.java:247-266 | core/src/main/java/com/alibaba/druid/filter/FilterEventAdapter.java:292-314 | core/src/main/java/com/alibaba/druid/filter/FilterEventAdapter.java:317-336 | core/src/main/java/com/alibaba/druid/filter/FilterEventAdapter.java:340-359 | core/src/main/java/com/alibaba/druid/filter/FilterEventAdapter.java:363-382 | core/src/main/java/com/alibaba/druid/filter/FilterEventAdapter.java:386-405 \u2014 These 9 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 9 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 9 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/filter/FilterEventAdapter.java"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c03a3ee826419a596c55829e4e621ea8d675930019293dcadd479470274eb52"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (9 members, 50\u002B identical tokens): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:1830-1846 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:1849-1865 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:1881-1897 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:1776-1792 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:1795-1811 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:1814-1830 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:2166-2182 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:2185-2201 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:2204-2220 \u2014 These 9 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 9 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 9 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":1830}}}],"partialFingerprints":{"codehealthFindingId/v1":"73e3a79732c2ad857ce3140e5a373e33fa1ab9f99826ae10f5c0c4bf68ef9477"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): core/src/main/java/com/alibaba/druid/sql/SQLUtils.java:905-948 | core/src/main/java/com/alibaba/druid/sql/SQLUtils.java:953-996 | core/src/main/java/com/alibaba/druid/sql/SQLUtils.java:1001-1351 | core/src/main/java/com/alibaba/druid/sql/SQLUtils.java:1356-1426 | core/src/main/java/com/alibaba/druid/sql/SQLUtils.java:1431-1496 | core/src/main/java/com/alibaba/druid/sql/SQLUtils.java:1501-1598 | core/src/main/java/com/alibaba/druid/sql/SQLUtils.java:1603-1734 \u2014 These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/SQLUtils.java"},"region":{"startLine":905}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c265b918dfaaead0f7baa39f6f1277bf0d4dd6c13916862616be55b407757b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): core/src/main/java/com/alibaba/druid/filter/stat/StatFilter.java:829-841 | core/src/main/java/com/alibaba/druid/filter/stat/StatFilter.java:847-859 | core/src/main/java/com/alibaba/druid/filter/stat/StatFilter.java:863-875 | core/src/main/java/com/alibaba/druid/filter/stat/StatFilter.java:880-892 | core/src/main/java/com/alibaba/druid/filter/stat/StatFilter.java:898-910 | core/src/main/java/com/alibaba/druid/filter/stat/StatFilter.java:914-926 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/filter/stat/StatFilter.java"},"region":{"startLine":829}}}],"partialFingerprints":{"codehealthFindingId/v1":"3913581ae3392aea7fa7176bc9aa2e9b3753a11b8a5d30c8b8cd0b6fa8fcfa37"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLLateralViewTableSource.java:114-147 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLUnionQueryTableSource.java:73-89 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLValuesTableSource.java:87-117 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlUpdateTableSource.java:55-73 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/ast/stmt/OscarFunctionTableSource.java:59-83 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/ast/stmt/PGFunctionTableSource.java:59-83 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLLateralViewTableSource.java"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"7961c683f0f72bf1ab01228a078ce8087a65b4836e89368f282095b5c8cd8df3"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/parser/CKExprParser.java:92-103 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java:1360-1508 | core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsExprParser.java:537-767 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarExprParser.java:234-406 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGExprParser.java:422-608 | core/src/main/java/com/alibaba/druid/sql/dialect/spark/parser/SparkExprParser.java:58-86 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/parser/CKExprParser.java"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"606780d6e0686ba538078f2d85dbb7b6a928ba181f760075cd704871f889abd2"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:5200-5326 | core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsExprParser.java:205-222 | core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:1291-1331 | core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:4855-5080 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:2783-2856 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:5002-5151 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":5200}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e1e0fe584d72c042e3bdd50561dc190068016bac10de1a9ef32eedb23f60616"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:2519-2556 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:2627-2746 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:1449-1486 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:1549-1652 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:1826-1863 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:1926-2029 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":2519}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eb360f0b00555e60976f36cdd4bf05b4203a985a22f38f4d443bf849ece7e65"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): core/src/main/java/com/alibaba/druid/wall/WallFilter.java:325-338 | core/src/main/java/com/alibaba/druid/wall/WallFilter.java:342-355 | core/src/main/java/com/alibaba/druid/wall/WallFilter.java:360-374 | core/src/main/java/com/alibaba/druid/wall/WallFilter.java:379-393 | core/src/main/java/com/alibaba/druid/wall/WallFilter.java:397-410 | core/src/main/java/com/alibaba/druid/wall/WallFilter.java:414-427 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/wall/WallFilter.java"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"67ad2e92b7d555a9f4269b6f9be3a826073c1dfb8c1f646fbab1dd9eaffb3350"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): core/src/main/java/com/alibaba/druid/filter/encoding/EncodingConvertFilter.java:69-87 | core/src/main/java/com/alibaba/druid/filter/encoding/EncodingConvertFilter.java:93-111 | core/src/main/java/com/alibaba/druid/filter/encoding/EncodingConvertFilter.java:115-133 | core/src/main/java/com/alibaba/druid/filter/encoding/EncodingConvertFilter.java:138-156 | core/src/main/java/com/alibaba/druid/filter/encoding/EncodingConvertFilter.java:162-180 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/filter/encoding/EncodingConvertFilter.java"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"4723a6f6e41c71fb1201e576ff1895ad039749195dc0121be1ca5251091f095d"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLUnionQuery.java:232-277 | core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java:2403-2465 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:4187-4369 | core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java:3097-3154 | core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java:2254-2375 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLUnionQuery.java"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"666d743edda17b4ba382ece5a4d9da76d875fb2238aeb3a58fd1b8832f039e78"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): core/src/main/java/com/alibaba/druid/sql/dialect/athena/visitor/AthenaOutputVisitor.java:21-40 | core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/visitor/CKOutputVisitor.java:112-134 | core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/visitor/GaussDbOutputVisitor.java:33-75 | core/src/main/java/com/alibaba/druid/sql/dialect/starrocks/visitor/StarRocksOutputVisitor.java:103-118 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:4022-4059 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/athena/visitor/AthenaOutputVisitor.java"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"665e351fbc05b3d4a308ee8a7ab3df44f8a7d30adaa3e19c4ceb71226c3f0864"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): core/src/main/java/com/alibaba/druid/sql/dialect/blink/vsitor/BlinkOutputVisitor.java:46-84 | core/src/main/java/com/alibaba/druid/sql/dialect/h2/visitor/H2OutputVisitor.java:130-179 | core/src/main/java/com/alibaba/druid/sql/dialect/hive/visitor/HiveOutputVisitor.java:707-740 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:3949-3965 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:11486-11516 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/blink/vsitor/BlinkOutputVisitor.java"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"5af2286796343c3e1fc71c151c664ec73a5117b30ba61ccf94d572c7f6ae6cd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:8221-8296 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:8301-8378 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java:989-1129 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java:2796-2885 | core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerStatementParser.java:681-741 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":8221}}}],"partialFingerprints":{"codehealthFindingId/v1":"97f08a4f007359316828cd890c022c9273a95448ad07fe37af2ffcd01756bc85"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:561-606 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:228-268 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:1918-1963 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:208-254 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:2411-2456 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"89b8917cfa7019cbee7c94eded4776158c48fcd2bbc5a6fdd1ca56931c096d2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:1455-1470 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:2208-2223 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:2701-2716 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:7750-7765 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:7768-7790 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":1455}}}],"partialFingerprints":{"codehealthFindingId/v1":"f60f258fd3bfccaa27b1494d2e3f766c4080e84fcbef16f8f1dfc88fb7f0052d"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): core/src/main/java/com/alibaba/druid/filter/stat/StatFilter.java:930-940 | core/src/main/java/com/alibaba/druid/filter/stat/StatFilter.java:944-954 | core/src/main/java/com/alibaba/druid/filter/stat/StatFilter.java:958-968 | core/src/main/java/com/alibaba/druid/filter/stat/StatFilter.java:973-983 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/filter/stat/StatFilter.java"},"region":{"startLine":930}}}],"partialFingerprints":{"codehealthFindingId/v1":"89d6007fb81275dbbddbcd32d55073738acf6c851266b7bb9874e21fac2cbc91"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLAggregateExpr.java:180-212 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLMethodInvokeExpr.java:235-267 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLMethodInvokeExpr.java:280-312 | core/src/main/java/com/alibaba/druid/sql/dialect/odps/ast/OdpsNewExpr.java:34-61 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLAggregateExpr.java"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b047fd40d5436715c4ad1797d3afec9ba6602df1a9b0036e2b89ca113ed5b61"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): core/src/main/java/com/alibaba/druid/sql/dialect/blink/parser/BlinkCreateTableParser.java:38-138 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:91-564 | core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsCreateTableParser.java:39-479 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:4651-4722 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/blink/parser/BlinkCreateTableParser.java"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"961e1092ca53f765e11043ee7adf9a76d5fd28353ce4701564a5e4ba8b0d0c46"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmExprParser.java:100-180 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java:535-742 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java:994-1083 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarExprParser.java:152-232 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmExprParser.java"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"d90279b749f890805eaff44affae0822302af156bff18cd4ecfbf8e3aa16cc6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmExprParser.java:183-235 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java:535-742 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarExprParser.java:234-406 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGExprParser.java:422-608 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmExprParser.java"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"518c5b2c795c9b47ce70ff878df46160fdbd289c4d51e4b0b6eababe67d65933"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmLexer.java:145-177 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarLexer.java:205-242 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGLexer.java:209-246 | core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java:2246-2375 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmLexer.java"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"87c3e8adb1585ddbfe3fb9a071f35680fb07add542bf9fc198d7864a9b7dc25b"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmStatementParser.java:75-123 | core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/parser/GaussDbStatementParser.java:45-199 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java:97-224 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java:99-231 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmStatementParser.java"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"07de7906347b8360211c0f5184cc18c20bab928d1c9c83a6f49e78047cdeec73"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): core/src/main/java/com/alibaba/druid/sql/dialect/hive/visitor/HiveOutputVisitor.java:61-115 | core/src/main/java/com/alibaba/druid/sql/dialect/hive/visitor/HiveOutputVisitor.java:161-226 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:1103-1265 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:1451-1538 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/visitor/HiveOutputVisitor.java"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"adde26468d87ad839c9c5b0283e4c8104daec01a10b705c4314aeccca9a1c627"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:604-690 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:5328-5376 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:5401-5444 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:5446-5488 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"2847e92709140983af81353759bc4d76e84d88235acab15ac848e55416681bb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:1046-1690 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:1925-1962 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:2497-4005 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:4057-4108 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":1046}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ba1e6333ce696d87d152c6f025a2d87a13fbdc7ce031cc7f330b66293e188c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java:305-497 | core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:464-902 | core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:2308-2492 | core/src/main/java/com/alibaba/druid/sql/parser/SQLParser.java:671-857 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"acef8c5452da49b130346f28bd55d995890ca519e86920cdbfc282e87fcd6457"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:1880-1915 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:2373-2408 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:12179-12207 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:12210-12246 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":1880}}}],"partialFingerprints":{"codehealthFindingId/v1":"5328698712d74906e89a128782199c0dfaa3b22090a6e4de9fe6edd0d986da57"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeStatementParser.java:567-597 | core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeStatementParser.java:740-761 | core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeStatementParser.java:771-799 | core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeStatementParser.java:810-829 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeStatementParser.java"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"b67d317779336a443fc2574542a2836f6b34b940b7dd9cfa53ce35052aa07c99"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java:374-412 | core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java:414-452 | core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java:454-494 | core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java:613-633 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"5db3ac343db25d4640f0ad0b01e1c8245bc9bf688e82851ffdb91bdf35ef27fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:2860-2883 | core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:2910-2933 | core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:2935-2958 | core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:2960-2983 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":2860}}}],"partialFingerprints":{"codehealthFindingId/v1":"4322961d04d68370f059353073bd61d93a00fd19bd68d6bc1886337e195abdfc"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:1171-1191 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:1193-1213 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:1241-1261 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:1263-1300 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":1171}}}],"partialFingerprints":{"codehealthFindingId/v1":"144dbe1547ae99d3d4c9b9a72fdf884abfb2a37f4b2080e81113369fb9c90976"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:8599-8625 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:8628-8647 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:8650-8669 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:8672-8708 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":8599}}}],"partialFingerprints":{"codehealthFindingId/v1":"947b9707078ce58fa1586ef6dd290a3621f7a507a07af11c4232c5cecccb361c"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java:245-351 | core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java:1378-1523 | core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java:1529-1667 | core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java:1747-1828 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"53385941b4e1c1e893ddd82e4cfe24895fd836191c3d39b2123a47d73eba1100"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): core/src/main/java/com/alibaba/druid/support/http/ResourceServlet.java:305-370 | core/src/main/java/com/alibaba/druid/support/http/StatViewServlet.java:205-233 | core/src/main/java/com/alibaba/druid/support/jakarta/ResourceServlet.java:285-351 | core/src/main/java/com/alibaba/druid/support/jakarta/StatViewServlet.java:205-233 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/support/http/ResourceServlet.java"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b3488e204db905239ce25d774d53a292b6324a1435be1a897ca56e44bf07f15"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): core/src/main/java/com/alibaba/druid/support/http/stat/WebAppStatUtils.java:45-58 | core/src/main/java/com/alibaba/druid/support/http/stat/WebAppStatUtils.java:61-74 | core/src/main/java/com/alibaba/druid/support/spring/stat/SpringStatUtils.java:29-42 | core/src/main/java/com/alibaba/druid/util/DruidDataSourceUtils.java:195-208 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/support/http/stat/WebAppStatUtils.java"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c2cc1d554cc1ab7037e6e371ff5f80fb65a4a3b5099fa66aa9bec461521b284"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): core/src/main/java/com/alibaba/druid/support/monitor/dao/MonitorDaoJdbcImpl.java:422-450 | core/src/main/java/com/alibaba/druid/support/monitor/dao/MonitorDaoJdbcImpl.java:840-864 | core/src/main/java/com/alibaba/druid/support/monitor/dao/MonitorDaoJdbcImpl.java:921-946 | core/src/main/java/com/alibaba/druid/support/monitor/dao/MonitorDaoJdbcImpl.java:973-1000 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/support/monitor/dao/MonitorDaoJdbcImpl.java"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"d86e37f5b3292b4d4a3ee39b7a4de8d95e8cb43260f6d302301d9f53a301e604"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java:1782-1819 | core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java:1821-1862 | core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java:1948-1999 | core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java:2138-2155 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java"},"region":{"startLine":1782}}}],"partialFingerprints":{"codehealthFindingId/v1":"76d67293b90ccdc7a94de9cdbb17f8b0a9d045eb80b9c2dc6f30ce51b857a968"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (186 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveStatementParser.java:121-360 | core/src/main/java/com/alibaba/druid/sql/dialect/presto/parser/PrestoStatementParser.java:290-475 \u2014 These two members are one piece of code written twice and then edited apart: 186 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":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveStatementParser.java"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ea183a7cc7095e3c9df4aa41c3e4eb020fd4304f8012130634779ebd506de1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (131 corresponding lines): core/src/main/java/com/alibaba/druid/util/JdbcUtils.java:395-560 | core/src/main/java/com/alibaba/druid/util/JdbcUtils.java:562-692 \u2014 These two members are one piece of code written twice and then edited apart: 131 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":"core/src/main/java/com/alibaba/druid/util/JdbcUtils.java"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"b57752107b156dd6ddfd1c3446ff6ad1e2e3d7eee27ff36a256c5fda5d6cb65c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (130 corresponding lines): core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java:2585-2715 | core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java:2721-2850 \u2014 These two members are one piece of code written twice and then edited apart: 130 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":"core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java"},"region":{"startLine":2585}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ad3482d57dca6801c8085b858600e44d2042f7244c8957cedaee6db82b797b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (100 corresponding lines): core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:8737-8845 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:8848-8947 \u2014 These two members are one piece of code written twice and then edited apart: 100 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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":8737}}}],"partialFingerprints":{"codehealthFindingId/v1":"f82fdfc6ed60f85c5b50a8dda0255c4eb82f44756d7683a702a968ad8c4f18da"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (78 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java:813-893 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java:924-1001 \u2014 These two members are one piece of code written twice and then edited apart: 78 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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java"},"region":{"startLine":813}}}],"partialFingerprints":{"codehealthFindingId/v1":"173ab564ce2ce747bb251f4a94e1f3eac126dcfa24ee0fd49bc9980cf5b58696"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (75 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java:514-588 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java:1034-1118 \u2014 These two members are one piece of code written twice and then edited apart: 75 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"3737be53a4b6017a6f8d66301ce54d7e7a142d5dd341e5b782834af12829517e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (93 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java:590-682 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java:1120-1220 \u2014 These two members are one piece of code written twice and then edited apart: 93 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"147202155f681d011cec89fd10362fa6f7049eb66f34ac760ecce97d26a476e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (82 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:5570-5663 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:5665-5746 \u2014 These two members are one piece of code written twice and then edited apart: 82 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":5570}}}],"partialFingerprints":{"codehealthFindingId/v1":"2658904883ce9047979d9394beb3780cfe06a22a63b42e83ff6b8c004762a749"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (77 corresponding lines): core/src/main/java/com/alibaba/druid/stat/DruidStatService.java:78-175 | druid-admin/src/main/java/com/alibaba/druid/admin/service/MonitorStatService.java:150-226 \u2014 These two members are one piece of code written twice and then edited apart: 77 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":"core/src/main/java/com/alibaba/druid/stat/DruidStatService.java"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9834f6d36cfce8022c1c18d7ea973dedc37f2f0813beffc96862dc5f976a122"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (99 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java:1382-1480 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java:1482-1584 \u2014 These two members are one piece of code written twice and then edited apart: 99 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java"},"region":{"startLine":1382}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0afc16aaec7dcf7816704e53dbabdd2ae44b5e7758911e83476f472c56c3576"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 77\u002B corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectParser.java:683-785 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSelectParser.java:327-417 | core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java:1522-1598 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 77 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectParser.java"},"region":{"startLine":683}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fc878b619c79ed69070a5315a4b747ca240fcd1f9211c45af26705fb474ce58"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (78 corresponding lines): core/src/main/java/com/alibaba/druid/sql/PagerUtils.java:213-290 | core/src/main/java/com/alibaba/druid/sql/PagerUtils.java:292-370 \u2014 These two members are one piece of code written twice and then edited apart: 78 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":"core/src/main/java/com/alibaba/druid/sql/PagerUtils.java"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7cf3de40a873618ea7a926dc0926983f54c18830ed78a7e97b5d77d2aaa6736"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (94 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmOutputVisitor.java:72-165 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:90-198 \u2014 These two members are one piece of code written twice and then edited apart: 94 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":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmOutputVisitor.java"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"c09d571fdc3c06a7e90faa5d5c99018a2383a48f79741940363dd376f0bdccdb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (74 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryOutputVisitor.java:280-357 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:2058-2131 \u2014 These two members are one piece of code written twice and then edited apart: 74 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":"core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryOutputVisitor.java"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"033328bf2cd257c1058a6d1248af820bbc885f5b657999281c4a0d900cf2cdcc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (56 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:2938-2996 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:8080-8135 \u2014 These two members are one piece of code written twice and then edited apart: 56 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":2938}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7ec8b470b31c01d08a447a740dfe270d450b64c46d6a2c8a149a84d0b81fc81"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (70 corresponding lines): core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:5516-5585 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:5588-5665 \u2014 These two members are one piece of code written twice and then edited apart: 70 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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":5516}}}],"partialFingerprints":{"codehealthFindingId/v1":"885575dcfb889b34c1365171c930c243dcde03aa24b678a56c4f535df83a484b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (46 corresponding lines): core/src/main/java/com/alibaba/druid/support/http/stat/WebURIStat.java:452-500 | core/src/main/java/com/alibaba/druid/support/spring/stat/SpringMethodStat.java:88-133 \u2014 These two members are one piece of code written twice and then edited apart: 46 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":"core/src/main/java/com/alibaba/druid/support/http/stat/WebURIStat.java"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"da500d63ae116c423ce96ceadb29726cbe4d32dfbd4bcaf752ab9656ca60c72b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 60\u002B corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:2441-2500 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:1370-1429 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:1747-1806 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 60 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":2441}}}],"partialFingerprints":{"codehealthFindingId/v1":"c49916adee2d189718bb2a171154dbc4fc8ce9d22d01ac6cce51212b4430f07d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): druid-admin/src/main/java/com/alibaba/druid/admin/service/MonitorStatService.java:67-103 | druid-admin/src/main/java/com/alibaba/druid/admin/service/MonitorStatService.java:111-147 \u2014 These two members are one piece of code written twice and then edited apart: 37 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":"druid-admin/src/main/java/com/alibaba/druid/admin/service/MonitorStatService.java"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"853722c18a5c9730e2fd02a8ea3db9b578da83704d7eabc1bc1ebf3cec544818"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (43 corresponding lines): core/src/main/java/com/alibaba/druid/support/http/stat/WebURIStatValue.java:345-390 | core/src/main/java/com/alibaba/druid/support/spring/stat/SpringMethodStatValue.java:309-351 \u2014 These two members are one piece of code written twice and then edited apart: 43 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/support/http/stat/WebURIStatValue.java"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"e44924e91162b3aa7d18ce1c7afb250904fff64b1685c7d3b00a70d50781069c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (58 corresponding lines): core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:3527-3606 | core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:3642-3699 \u2014 These two members are one piece of code written twice and then edited apart: 58 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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":3527}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c3d5ff8c7f0d2c05dee112401e7b1ff9156b60e0b71a000398e5fe98a7ada33"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (59 corresponding lines): core/src/main/java/com/alibaba/druid/sql/repository/SchemaRepository.java:545-603 | core/src/main/java/com/alibaba/druid/sql/repository/SchemaRepository.java:605-663 \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":"core/src/main/java/com/alibaba/druid/sql/repository/SchemaRepository.java"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"eba4c032ba2c3e27877ffe9c840418cdc00ffa5d64d64b2ec05c25dc29ecf559"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java:316-369 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java:441-506 \u2014 These two members are one piece of code written twice and then edited apart: 54 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"6540a82f6ab671fbae15d1f0b16e94c0ecdc23df49bbcd8839cf57454a875b60"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (49 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeExprParser.java:304-352 | core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:6340-6401 \u2014 These two members are one piece of code written twice and then edited apart: 49 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeExprParser.java"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d24743ddf3dea59e4b91e31cbf37a2e31a4456b63ee1f05251e942a41cc8f48"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (47 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java:2222-2280 | core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:5115-5161 \u2014 These two members are one piece of code written twice and then edited apart: 47 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java"},"region":{"startLine":2222}}}],"partialFingerprints":{"codehealthFindingId/v1":"30fe56f30ad33a367790a0457cd8741d017526e35334ec718647d63413d651b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (51 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarCreateTableParser.java:21-71 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGCreateTableParser.java:64-124 \u2014 These two members are one piece of code written twice and then edited apart: 51 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarCreateTableParser.java"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ab167090a55d5ad92779f4791a2350cd2f0cab2c4c60d10eb12437364365d4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (61 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java:144-213 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java:215-275 \u2014 These two members are one piece of code written twice and then edited apart: 61 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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"d09bde066c85e81c5348fff5b1740d9a4b3805aa0589e7e64d83fc1814bd3350"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 58\u002B corresponding lines): core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java:1690-1747 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java:1757-1816 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java:1826-1896 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 58 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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java"},"region":{"startLine":1690}}}],"partialFingerprints":{"codehealthFindingId/v1":"8066336bc324fdc16689cb60c7dcf9804838517bbe2f023e7a0488a89c481d67"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (45 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java:1765-1812 | core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerStatementParser.java:1016-1060 \u2014 These two members are one piece of code written twice and then edited apart: 45 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java"},"region":{"startLine":1765}}}],"partialFingerprints":{"codehealthFindingId/v1":"34f11bc510e3d4279c1cb40cd7e903b8232362b67bd83a8b5390eacc1c891b31"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (45 corresponding lines): core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:7493-7537 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:7539-7585 \u2014 These two members are one piece of code written twice and then edited apart: 45 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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":7493}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3c1d9e08c25ef730c4512a2e3de3d8c5bc73cdace44957fde50886fe1bbf108"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): core/src/main/java/com/alibaba/druid/sql/visitor/functions/Lpad.java:29-71 | core/src/main/java/com/alibaba/druid/sql/visitor/functions/Rpad.java:33-73 \u2014 These two members are one piece of code written twice and then edited apart: 41 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":"core/src/main/java/com/alibaba/druid/sql/visitor/functions/Lpad.java"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"35468c11fc7b682727623f3cd916e1bbf17cc6262b8b301d0c6d07f5b5452929"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 54\u002B corresponding lines): core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java:1898-1967 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java:1969-2039 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java:2041-2094 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 54 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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java"},"region":{"startLine":1898}}}],"partialFingerprints":{"codehealthFindingId/v1":"e450a9fd9d54a1281c60a145566b08bd5d91fe2858a78a24adaf200a7f7d82bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/parser/GaussDbExprParser.java:174-212 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGExprParser.java:349-385 \u2014 These two members are one piece of code written twice and then edited apart: 37 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":"core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/parser/GaussDbExprParser.java"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"b19825da7cff64dc3409446199ba81af686ee04059bda759cf078883f546c0e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (45 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlCreateTableStatement.java:367-411 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlCreateTableStatement.java:413-463 \u2014 These two members are one piece of code written twice and then edited apart: 45 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlCreateTableStatement.java"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"947d71511038ee4210669ba3d33fa7ce1d975a0e6972419ab21c222afba5b0ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 50\u002B corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDeleteStatement.java:253-302 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java:1496-1546 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLUpdateStatement.java:321-370 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 50 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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDeleteStatement.java"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"58936c11797ea0ecd1323c501ef5c9b8f8b54db31dabdd7dec06bcde4e27f3de"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (44 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/visitor/CKOutputVisitor.java:239-285 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:7229-7272 \u2014 These two members are one piece of code written twice and then edited apart: 44 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/visitor/CKOutputVisitor.java"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c67d5f15430d822522b34ee6f29830a66bf8ea4038d62d051b32bf1335fdae6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (47 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/doris/parser/DorisCreateTableParser.java:20-68 | core/src/main/java/com/alibaba/druid/sql/dialect/starrocks/parser/StarRocksCreateTableParser.java:178-224 \u2014 These two members are one piece of code written twice and then edited apart: 47 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":"core/src/main/java/com/alibaba/druid/sql/dialect/doris/parser/DorisCreateTableParser.java"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"57688e985e4ca6ba2c1a1d3ce9f19e688ae2073c5c971da97f1d26afdf5c33ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): core/src/main/java/com/alibaba/druid/util/Utils.java:466-491 | core/src/main/java/com/alibaba/druid/util/Utils.java:493-520 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/util/Utils.java"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"45806e2b4a9a6d648ffc006b1615f2e6e6038af869a55ccdb53a4ccf4074a690"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (49 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:4921-4970 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:5170-5218 \u2014 These two members are one piece of code written twice and then edited apart: 49 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":4921}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bcc56b3ae13bbb8529e0b1cd2b7ed039b5db061408bcd76855f128d4e081fe9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:5490-5528 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:5530-5568 \u2014 These two members are one piece of code written twice and then edited apart: 39 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":5490}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f835cc0534032dbb136855bdb6ae5018052e591f10d5f4cd9bd1d8421c834ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:1211-1246 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGCreateTableParser.java:125-160 \u2014 These two members are one piece of code written twice and then edited apart: 36 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java"},"region":{"startLine":1211}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6fbd744d3353406d609a39a3360d789beb488616c8769bcbe17412dd446fb35"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLUpdateStatement.java:373-402 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleUpdateStatement.java:129-161 \u2014 These two members are one piece of code written twice and then edited apart: 30 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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLUpdateStatement.java"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"8155ebeac51f73f4be5dcdcde4695ef1b9067a68e4985e67d221f2bdb4e9ba7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectIntoParser.java:301-333 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectParser.java:833-874 \u2014 These two members are one piece of code written twice and then edited apart: 33 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectIntoParser.java"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cbcc6bcb7c870d33e69526c59fb6ff2cccb8be73e20c9a04501dc7a103eafad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:5263-5298 | core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:5308-5347 \u2014 These two members are one piece of code written twice and then edited apart: 36 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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":5263}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f606258d288e61034ab45cc621ad8ee47c71c7281f2ee54e3e714a8c7a7701e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlHintStatement.java:58-96 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlHintStatement.java:98-142 \u2014 These two members are one piece of code written twice and then edited apart: 39 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlHintStatement.java"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cc802de1649ed6ac777d2a635ecb2cb9f348c7ffff33e995edc7c00f4d45cf0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 35\u002B corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:965-999 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:1087-1121 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:1467-1501 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 35 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":965}}}],"partialFingerprints":{"codehealthFindingId/v1":"56212a7bf5946c62c0b0debdc2b64b3ffff62d319b4d149a2ce919f0a30e000b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 35\u002B corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:1490-1524 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:2243-2277 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:2736-2770 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 35 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":1490}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ea8da720d6617c77dbf286c817ce608029bc091a5ea59c6f3d8696014965ad2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (50 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleSelectParser.java:246-305 | core/src/main/java/com/alibaba/druid/sql/dialect/redshift/parser/RedshiftSelectParser.java:27-76 \u2014 These two members are one piece of code written twice and then edited apart: 50 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleSelectParser.java"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"80b5808d5230f33e29b10d067cbdff6a5b2095c7f1b0a58e796be8700f856fef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/hive/visitor/HiveOutputVisitor.java:452-505 | core/src/main/java/com/alibaba/druid/sql/dialect/odps/visitor/OdpsOutputVisitor.java:746-784 \u2014 These two members are one piece of code written twice and then edited apart: 39 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":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/visitor/HiveOutputVisitor.java"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"42256883632f68fde0680c9a2a047859345eb8bfa4f823dfa77150213b59ebd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/hologres/parser/HologresCreateTableParser.java:19-50 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGCreateTableParser.java:33-62 \u2014 These two members are one piece of code written twice and then edited apart: 30 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":"core/src/main/java/com/alibaba/druid/sql/dialect/hologres/parser/HologresCreateTableParser.java"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"260c907892676a08f1c3eb407a80a0c2f18db6708b009fcc79d281a32929f094"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:822-852 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:1202-1232 \u2014 These two members are one piece of code written twice and then edited apart: 31 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":822}}}],"partialFingerprints":{"codehealthFindingId/v1":"629488dbee0c61b0896c25e81fe1a945eae92622762cfb27cb7d63d447b53c85"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 37\u002B corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmStatementParser.java:36-72 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java:59-95 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java:61-97 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 37 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":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmStatementParser.java"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"17ec76ddd88f914d88f138f81b3ac4419bce2cfedfce4b42184b8da353a93716"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmOutputVisitor.java:222-259 | core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/visitor/SQLServerOutputVisitor.java:138-182 \u2014 These two members are one piece of code written twice and then edited apart: 38 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":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmOutputVisitor.java"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"515171ca7316e327e746b0679696625ab883ac99f00ac8f89892b074c2ac2bbb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelect.java:396-410 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlSelectQueryBlock.java:221-236 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelect.java"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ad4050bafa80663d4ce7615326850c937fa9f0a5e1a0f3b1e2cd4687f299380"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (46 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmLexer.java:97-142 | core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java:1747-1797 \u2014 These two members are one piece of code written twice and then edited apart: 46 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":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmLexer.java"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"93a47de5d1b9380dccfd733fbf1488162f096aad89d036034546ca85b9c24dc9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 26\u002B corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmOutputVisitor.java:41-69 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:63-88 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:74-103 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 26 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":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmOutputVisitor.java"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"4128fefa7e9eb055089401059c05deaace0bd0fe539af52de3f4831d82a503ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:503-535 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:537-569 \u2014 These two members are one piece of code written twice and then edited apart: 33 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"d76cb9f0d4c65bfb994b638b455d90d3f702dac30c57cefdc80757d6edef59f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): core/src/main/java/com/alibaba/druid/sql/PagerUtils.java:118-147 | core/src/main/java/com/alibaba/druid/sql/PagerUtils.java:450-479 \u2014 These two members are one piece of code written twice and then edited apart: 30 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":"core/src/main/java/com/alibaba/druid/sql/PagerUtils.java"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a94c874759d9a4ca66b9343939c8296e195b5e82a39bef068604c6367dd527d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLBinaryExpr.java:44-73 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java:691-720 \u2014 These two members are one piece of code written twice and then edited apart: 30 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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLBinaryExpr.java"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"54fe8e147f3601df3f0c5a2b485c3c94af54b613d2606a362c6912e3883cb226"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:5321-5355 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:3820-3865 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":5321}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c4e4ab98a06ddcc00b144e69dd2f028e1e7c744c5e70a46ff2bf24d94a34c9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/parser/CKExprParser.java:136-176 | core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:4551-4595 \u2014 These two members are one piece of code written twice and then edited apart: 41 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":"core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/parser/CKExprParser.java"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfb654c068bf560d1216de6252b93c0ca271b07e7360775184636c77bea4e825"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:508-550 | core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/visitor/SQLServerOutputVisitor.java:281-311 \u2014 These two members are one piece of code written twice and then edited apart: 31 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"55bed9cabcfbe60948dc16e3d38868c014539f16341a96288da76551057baf2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): core/src/main/java/com/alibaba/druid/sql/visitor/functions/Greatest.java:49-72 | core/src/main/java/com/alibaba/druid/sql/visitor/functions/Least.java:49-72 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/sql/visitor/functions/Greatest.java"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"609661c108aa773ce435bde8dfd8f1a9716781ac52093a6fdef5ddaab519d8a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarSelectParser.java:260-291 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSelectParser.java:294-325 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarSelectParser.java"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"223e0eb27029367143eb00ac0cb863991daa5ca977909b068ce6c26a0f2824c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/parser/GaussDbCreateTableParser.java:129-156 | core/src/main/java/com/alibaba/druid/sql/dialect/impala/parser/ImpalaCreateTableParser.java:177-212 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/parser/GaussDbCreateTableParser.java"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"366fd8fcedf82b34ac9599dfadbae5d022575e65c00e75a67e01ff0bdcf6751b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:2816-2853 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:3166-3206 \u2014 These two members are one piece of code written twice and then edited apart: 38 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":2816}}}],"partialFingerprints":{"codehealthFindingId/v1":"37d6df6be19eca7006c378c4369b0e6365c98eafdd02ddb65778c1f6f17b4bda"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): core/src/main/java/com/alibaba/druid/filter/logging/LogFilter.java:588-612 | core/src/main/java/com/alibaba/druid/filter/logging/LogFilter.java:790-818 \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":"core/src/main/java/com/alibaba/druid/filter/logging/LogFilter.java"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae1ec3972d0775f19602764692a1885283f73f2c61940fb3c56d8c25774ead80"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryOutputVisitor.java:395-423 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:7723-7747 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryOutputVisitor.java"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"7506400a1f124835f0cfaca69e60fc5974231a071986beb52ba2bcc4a0524b09"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): core/src/main/java/com/alibaba/druid/pool/DruidAbstractDataSource.java:1209-1233 | core/src/main/java/com/alibaba/druid/pool/ha/HighAvailableDataSource.java:251-279 \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":"core/src/main/java/com/alibaba/druid/pool/DruidAbstractDataSource.java"},"region":{"startLine":1209}}}],"partialFingerprints":{"codehealthFindingId/v1":"6645c7ee4e2fc481153a197aa89cf664dcdc7273e669349811c592db6cf49756"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:1849-1877 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:2239-2267 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":1849}}}],"partialFingerprints":{"codehealthFindingId/v1":"39dfafe9d4a494ca31d8108ba81ce0efb2b42e5eeba6d251391be381bc0fcd78"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:1765-1795 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:3264-3290 \u2014 These two members are one piece of code written twice and then edited apart: 27 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":1765}}}],"partialFingerprints":{"codehealthFindingId/v1":"091b5ffce56ab7311810affb032a83d8c58d85066b8ad0860322856ef4f7cb7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:1451-1482 | core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:1484-1511 \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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":1451}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c4b981134ea75b6e01e48c275ebc7444ba7d296066257c4ae6c3c1f1bb5f029"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 24\u002B corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java:1343-1368 | core/src/main/java/com/alibaba/druid/sql/dialect/redshift/parser/RedshiftExprParser.java:110-133 | core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:5090-5113 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 24 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java"},"region":{"startLine":1343}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d14950df0f8fad6b197e35f0dabcd26ad8dfb2721300c470e6d9b56845311da"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryOutputVisitor.java:489-520 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:12457-12497 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryOutputVisitor.java"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"dee758b2506c4e25146eb7e8cd78300038501fb2d53a43496234da8f643ff7e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 27\u002B corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:856-882 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:952-978 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:1332-1358 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 27 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":856}}}],"partialFingerprints":{"codehealthFindingId/v1":"16cd6558188f79835184491f4ec2d8d36689c405e1ab60c192dee300f8beabfa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2ExprParser.java:158-183 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java:744-775 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2ExprParser.java"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a223b953a52f55d49dcb313c64556ed6d6977a91cc12b9af2da94bf22d51bd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2StatementParser.java:110-138 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java:403-439 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2StatementParser.java"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"c63b822747814f387f47cea87b5fe7aa53c53ab9ebd9ec266e786619170297bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 31\u002B corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:1601-1633 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:2823-2853 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:7178-7210 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:10246-10281 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 31 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":1601}}}],"partialFingerprints":{"codehealthFindingId/v1":"11bfb1a2cfc640935ba71ecbd33e07bff50b63973da484fd88288b8dd3213975"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/SQLDataTypeImpl.java:483-500 | core/src/main/java/com/alibaba/druid/sql/ast/SQLDataTypeImpl.java:503-525 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/sql/ast/SQLDataTypeImpl.java"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5cca1bb1b5cfe2e24922fc64a46a660569339bda249d239de6a10bdf5ba5789"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/redshift/parser/RedshiftCreateTableParser.java:20-49 | core/src/main/java/com/alibaba/druid/sql/parser/SQLCreateTableParser.java:41-75 \u2014 These two members are one piece of code written twice and then edited apart: 30 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":"core/src/main/java/com/alibaba/druid/sql/dialect/redshift/parser/RedshiftCreateTableParser.java"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"e71aa098d5f1d7682a93eb89cbc38b9a606fc48519b9332b6f6b44d36b9f431f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): core/src/main/java/com/alibaba/druid/support/monitor/dao/MonitorDaoJdbcImpl.java:876-909 | core/src/main/java/com/alibaba/druid/support/monitor/dao/MonitorDaoJdbcImpl.java:1002-1045 \u2014 These two members are one piece of code written twice and then edited apart: 34 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":"core/src/main/java/com/alibaba/druid/support/monitor/dao/MonitorDaoJdbcImpl.java"},"region":{"startLine":876}}}],"partialFingerprints":{"codehealthFindingId/v1":"2084b7d7ae45a0c8c83a609a0d81c70e3e939eb7cfc3a157b9034ed36aa0de04"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): core/src/main/java/com/alibaba/druid/support/monitor/MonitorClient.java:223-262 | core/src/main/java/com/alibaba/druid/support/monitor/MonitorClient.java:302-338 \u2014 These two members are one piece of code written twice and then edited apart: 37 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":"core/src/main/java/com/alibaba/druid/support/monitor/MonitorClient.java"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9575f65a54034a8c015805b9a1cab44a4a793d2ec95c43fab0dd6873bd56b33"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectIntoParser.java:275-299 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectParser.java:807-831 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectIntoParser.java"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd61e91cc894464fd780c1fb073bb82253d50da19d045a8d297c66869e41ee38"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): core/src/main/java/com/alibaba/druid/wall/spi/MySqlWallVisitor.java:142-170 | core/src/main/java/com/alibaba/druid/wall/spi/SQLServerWallVisitor.java:80-105 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/wall/spi/MySqlWallVisitor.java"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"13f4a2ac3b4bde165d587ec03737dbbdb7cbb2696cf59d9f5b4f31aa8b0ef9ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2StatementParser.java:190-224 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:4960-4991 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2StatementParser.java"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea56e089b3fcd23fe4152bef6f3e67f6682f8abacfc3cd3a177e29e942a6f26a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): core/src/main/java/com/alibaba/druid/support/opds/udf/ExportConditionColumns.java:32-61 | core/src/main/java/com/alibaba/druid/support/opds/udf/ExportTables.java:37-72 \u2014 These two members are one piece of code written twice and then edited apart: 30 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":"core/src/main/java/com/alibaba/druid/support/opds/udf/ExportConditionColumns.java"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"15ddac679267e1370472ec37d58b29b0a294ff231ad404fd8ee961f229c01dbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): core/src/main/java/com/alibaba/druid/util/MySqlUtils.java:307-335 | core/src/main/java/com/alibaba/druid/util/OracleUtils.java:295-324 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/util/MySqlUtils.java"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c0838615b854948c66542cac0edff92696a1a8968c63a5889a594549d8f1b3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java:1615-1652 | core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java:1654-1682 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java"},"region":{"startLine":1615}}}],"partialFingerprints":{"codehealthFindingId/v1":"0063a8ffdb869cf11e8c861318a700d314581d2931da8f042bc9fee2d96677db"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 22\u002B corresponding lines): core/src/main/java/com/alibaba/druid/sql/visitor/functions/Instr.java:27-48 | core/src/main/java/com/alibaba/druid/sql/visitor/functions/Left.java:28-54 | core/src/main/java/com/alibaba/druid/sql/visitor/functions/Right.java:28-53 \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":"core/src/main/java/com/alibaba/druid/sql/visitor/functions/Instr.java"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d799a984c20797eaed23dd719a2f70771944dbef1962e7301f9dd1e536123cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): core/src/main/java/com/alibaba/druid/support/http/StatViewFilter.java:113-133 | core/src/main/java/com/alibaba/druid/support/jakarta/StatViewFilter.java:112-132 \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":"core/src/main/java/com/alibaba/druid/support/http/StatViewFilter.java"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ac46825e269365ef0858d7fc8b71884bd62c79eda2b9be73bc2c3d8270261e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/visitor/GaussDbOutputVisitor.java:456-483 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:10690-10712 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/visitor/GaussDbOutputVisitor.java"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd737d3812b40e71afb32383c6be0710e7bd6f2c9f8d57fe519f5b27fb9fed30"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): core/src/main/java/com/alibaba/druid/stat/JdbcSqlStat.java:485-512 | core/src/main/java/com/alibaba/druid/stat/JdbcSqlStat.java:623-649 \u2014 These two members are one piece of code written twice and then edited apart: 27 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":"core/src/main/java/com/alibaba/druid/stat/JdbcSqlStat.java"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dec22217689281cfcccfd23e308ca756e52a8087f211f9f96d370ce87d2a027"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLCaseExpr.java:178-204 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLCaseStatement.java:153-179 \u2014 These two members are one piece of code written twice and then edited apart: 27 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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLCaseExpr.java"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4de7dcf3211d84f4495a4f4b5959854881debfe6c95eda501d85c31a35bf41d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 30\u002B corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java:285-314 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java:369-401 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:3494-3527 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 30 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"3522811ec73b83bcee392a968369c32be181ae8fa0e4e3140d7a2f169c77bfc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): core/src/main/java/com/alibaba/druid/support/http/stat/WebURIStat.java:264-284 | core/src/main/java/com/alibaba/druid/support/spring/stat/SpringMethodStat.java:216-236 \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":"core/src/main/java/com/alibaba/druid/support/http/stat/WebURIStat.java"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ecbe6e2617ea5e4b9c8fed05164bde732c85edeceb40eb26785c165b16df6ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): core/src/main/java/com/alibaba/druid/stat/TableStat.java:300-333 | core/src/main/java/com/alibaba/druid/stat/TableStat.java:378-404 \u2014 These two members are one piece of code written twice and then edited apart: 27 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":"core/src/main/java/com/alibaba/druid/stat/TableStat.java"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2fdca0186c7567c5607bc6e41882cc64789da4b3cccc5b1a556ce849457f552"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/SQLPivot.java:53-77 | core/src/main/java/com/alibaba/druid/sql/ast/SQLUnpivot.java:52-76 \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":"core/src/main/java/com/alibaba/druid/sql/ast/SQLPivot.java"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"b56d32339a175f0c4758fd399f2d5e4cb152c5bd5ba6094ace2ab975afa576ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateDatabaseStatement.java:237-262 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDropDatabaseStatement.java:106-131 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateDatabaseStatement.java"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ce5913c5cfcd0070ae97ef4e6ffd23b78cf19716f9245a51cebfcad9ddacf98"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateTableStatement.java:923-944 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateTableStatement.java:1134-1153 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateTableStatement.java"},"region":{"startLine":923}}}],"partialFingerprints":{"codehealthFindingId/v1":"88b6151196ddf64848216c57f6b373e5ea9f8c2b74f99ab4c96b6d0836932ba5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (8 members, 29\u002B corresponding lines): core/src/main/java/com/alibaba/druid/pool/DruidPooledConnection.java:355-383 | core/src/main/java/com/alibaba/druid/pool/DruidPooledConnection.java:392-422 | core/src/main/java/com/alibaba/druid/pool/DruidPooledConnection.java:426-457 | core/src/main/java/com/alibaba/druid/pool/DruidPooledConnection.java:460-488 | core/src/main/java/com/alibaba/druid/pool/DruidPooledConnection.java:491-519 | core/src/main/java/com/alibaba/druid/pool/DruidPooledConnection.java:522-550 | core/src/main/java/com/alibaba/druid/pool/DruidPooledConnection.java:587-618 | core/src/main/java/com/alibaba/druid/pool/DruidPooledConnection.java:621-650 \u2014 These 8 members are one piece of code written 8 times and then edited apart: every two of them correspond over at least 29 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 8 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/pool/DruidPooledConnection.java"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f6ac567afc168fdc81b318794c814497726b79bedc83c527125d8736b8d2ef6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 27\u002B corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLArrayExpr.java:122-148 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLContainsExpr.java:123-152 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLInListExpr.java:167-196 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLInSubQueryExpr.java:126-158 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectOrderByItem.java:110-139 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 27 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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLArrayExpr.java"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdd31407b6b74af436bb6f8d09da142c24cc45b9f2497f70d0e6d93040cc2cf7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:1689-1713 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:3421-3445 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":1689}}}],"partialFingerprints":{"codehealthFindingId/v1":"2698ea8f8d2ad372b2893a6d67860427074c6fec2c2b71c4a123d3f67937f08f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/SQLPartitionSingle.java:109-138 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/OraclePartitionSingle.java:181-210 \u2014 These two members are one piece of code written twice and then edited apart: 30 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":"core/src/main/java/com/alibaba/druid/sql/ast/SQLPartitionSingle.java"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"6edbd84d555555bcfacfd1ebd5a484da2502a71050328d81642f03bb688b51fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:4146-4173 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:5879-5908 \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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":4146}}}],"partialFingerprints":{"codehealthFindingId/v1":"b88a79be4900a0fd842545d8774e8770ca36cd3a2a2314eacb169fed7da1ff59"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java:1319-1352 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java:1355-1384 \u2014 These two members are one piece of code written twice and then edited apart: 30 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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java"},"region":{"startLine":1319}}}],"partialFingerprints":{"codehealthFindingId/v1":"df839c81e63f72fb836d6dd152c072bed0bb20d8b84124e44573c2980e39ec62"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java:2364-2392 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleUpdateParser.java:72-102 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java"},"region":{"startLine":2364}}}],"partialFingerprints":{"codehealthFindingId/v1":"799dfd2e34924197204a7f17ab3d8016bf62516427c5d31da65c61a5ec6da755"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLUnique.java:193-209 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlTableIndex.java:138-153 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLUnique.java"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"60cd686a9bb635a28e5d73c9f41790086a501680f86c6e8df367be8a13778c95"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 23\u002B corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/parser/GaussDbCreateTableParser.java:158-181 | core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/parser/GaussDbCreateTableParser.java:183-208 | core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/parser/GaussDbCreateTableParser.java:259-281 | core/src/main/java/com/alibaba/druid/sql/dialect/impala/parser/ImpalaCreateTableParser.java:214-240 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 23 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":"core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/parser/GaussDbCreateTableParser.java"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"96d4443f8dbe6dd760bf350659c8e70c49fe49b39d6aa38e17d802f849e75ea5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java:1549-1571 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java:1573-1595 \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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java"},"region":{"startLine":1549}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bbd43b0e5836d288786d267054de7223a4de8d0dd0b77081123f3a5e721e3f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveStatementParser.java:481-504 | core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveStatementParser.java:523-554 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveStatementParser.java"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"b568166b1dbb069aa4c699005f4feecd708435cd63644697175462376b13ec97"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 22\u002B corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:1028-1049 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:1150-1171 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:1530-1551 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":1028}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e01b47f7f4e4c252063f1a9fd40d7575988b41a30b44a483a2633bb39cdf880"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java:265-283 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java:347-365 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b3a094b4860ff076486824dc3ef3bb8afb31331ef4da7b0c80aa7b25f4e1c0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java:1498-1530 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java:1532-1558 \u2014 These two members are one piece of code written twice and then edited apart: 27 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java"},"region":{"startLine":1498}}}],"partialFingerprints":{"codehealthFindingId/v1":"2182d062ca25c2eb5c6e3d149248f3e6a5fdc92400db93bc1833e4d4b59a9cb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 10\u002B corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLAggregateExpr.java:278-287 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLUnionQuery.java:323-332 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLUpdateStatement.java:405-414 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleUpdateStatement.java:164-174 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 10 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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLAggregateExpr.java"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4b15460ca87efe760e7b2f1458c8ddd6942d094f803aa09888df7d0aff6e82b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): core/src/main/java/com/alibaba/druid/support/http/stat/WebAppStat.java:484-499 | core/src/main/java/com/alibaba/druid/support/http/stat/WebAppStat.java:501-522 | core/src/main/java/com/alibaba/druid/support/spring/stat/SpringStat.java:66-81 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 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":"core/src/main/java/com/alibaba/druid/support/http/stat/WebAppStat.java"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebd9b839c46abaf6fb5b86b2f4aa14bc6d4b73733df1e528fef56ec7bb8a67b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/SQLIndexOptions.java:109-123 | core/src/main/java/com/alibaba/druid/sql/ast/SQLIndexOptions.java:129-143 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/sql/ast/SQLIndexOptions.java"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f566a368d60ed5eba91d164ebf3d70bb8c16c6bf9adbe419e1d25d8289a3f59"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): core/src/main/java/com/alibaba/druid/filter/FilterChainImpl.java:1350-1374 | core/src/main/java/com/alibaba/druid/filter/FilterChainImpl.java:1404-1428 \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":"core/src/main/java/com/alibaba/druid/filter/FilterChainImpl.java"},"region":{"startLine":1350}}}],"partialFingerprints":{"codehealthFindingId/v1":"e449b0fc1c84a0bec508b8aca4d4118202d368b56a390853a880ea2801a507e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/redshift/visitor/RedshiftOutputVisitor.java:23-50 | core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/visitor/SQLServerOutputVisitor.java:53-80 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/redshift/visitor/RedshiftOutputVisitor.java"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"06dfe5f6a18d123cf5a936889ae3da2a2a45dd11cf7edf718d36ea5708227aa0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/SQLOver.java:54-85 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlInsertStatement.java:133-169 \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":"core/src/main/java/com/alibaba/druid/sql/ast/SQLOver.java"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5090cf871f1b611e60a089e4992cb535858002b58a8b1cd937880b656896fbb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2ExprParser.java:185-211 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGExprParser.java:631-653 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2ExprParser.java"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bda42089c8b65a24cea424faf1d4754997a9b6202edff7a018b3bcb0461e573"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarSelectParser.java:293-311 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSelectParser.java:419-437 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarSelectParser.java"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"646fe1103dcd3bb623a2b0bd6c3511102436ed43e15c233fa080701cb5331839"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveCreateTableParser.java:357-384 | core/src/main/java/com/alibaba/druid/sql/parser/SQLCreateTableParser.java:257-278 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveCreateTableParser.java"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3718fd275f5f62e3b842727781acdea4d0328952026d2632078111df1d2a1e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 25\u002B corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLLoopStatement.java:64-90 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleExitStatement.java:58-82 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OraclePipeRowStatement.java:41-66 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 25 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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLLoopStatement.java"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"76e0c52bbd886979f6dfd1b96f904e3a6c4a9bc8fdb493d758efa17912a9cef5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): core/src/main/java/com/alibaba/druid/filter/FilterChainImpl.java:2154-2172 | core/src/main/java/com/alibaba/druid/filter/FilterChainImpl.java:2214-2232 \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":"core/src/main/java/com/alibaba/druid/filter/FilterChainImpl.java"},"region":{"startLine":2154}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d56815cf558f5066a5e9eca83fce3d74451c49d9ce95e1670a3b3a0e7244139"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 19\u002B corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:2505-2523 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:2631-2650 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:2878-2897 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":2505}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e5f13c8c13745f600c99d87bb10bf108d73bfbb295deb9a08384c75715e0eda"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): core/src/main/java/com/alibaba/druid/pool/PoolableWrapper.java:35-66 | core/src/main/java/com/alibaba/druid/pool/PoolableWrapper.java:70-102 \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":"core/src/main/java/com/alibaba/druid/pool/PoolableWrapper.java"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9f0c2e89d63e61eef916d63411e051e40fc316a39506d8a3482adde62b2128e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeLexer.java:184-216 | core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java:2377-2407 \u2014 These two members are one piece of code written twice and then edited apart: 31 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":"core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeLexer.java"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecd8416f5d38e643c9e773b25d9d7a5ed44c9f1294532527daf344f01912d63d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:3529-3550 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:3686-3702 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:3705-3719 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 15 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":3529}}}],"partialFingerprints":{"codehealthFindingId/v1":"26cb34bdf35f0cad916e523a37ff164161a6d4e9ec1624bf2add8e97f4517441"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/transform/NameResolveVisitor.java:137-159 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/transform/NameResolveVisitor.java:168-191 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/transform/NameResolveVisitor.java"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcd4f1069f00aaaa3385b7e59d361f863c71c9ce2288dbf98f474409a4af46e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 16\u002B corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/odps/ast/OdpsSelectQueryBlock.java:57-75 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleSelectQueryBlock.java:88-105 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/ast/stmt/OscarSelectQueryBlock.java:42-58 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/ast/stmt/PGSelectQueryBlock.java:62-77 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 16 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":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/ast/OdpsSelectQueryBlock.java"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c90517c5b59c953ba7688fd8754341931f580e92eff4e38493844b3ccc297ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:1064-1082 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:1275-1288 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:1652-1665 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":1064}}}],"partialFingerprints":{"codehealthFindingId/v1":"284ca85db38388755922579a3ec476a7d4a1d6587d0aaba23d39b81dc8ac0a01"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): core/src/main/java/com/alibaba/druid/wall/WallProvider.java:159-184 | core/src/main/java/com/alibaba/druid/wall/WallProvider.java:186-207 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/wall/WallProvider.java"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cd020fbc7f24d62080e76d482927744a2e11fa93b1df2396ac103f38eeb4d60"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): core/src/main/java/com/alibaba/druid/filter/FilterChainImpl.java:1323-1347 | core/src/main/java/com/alibaba/druid/filter/FilterChainImpl.java:1377-1401 \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":"core/src/main/java/com/alibaba/druid/filter/FilterChainImpl.java"},"region":{"startLine":1323}}}],"partialFingerprints":{"codehealthFindingId/v1":"46e1747e2ebaef6fad1c6058570472fa3ec5678cb5a165f5bbefe0c07b96bda7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 12\u002B corresponding lines): core/src/main/java/com/alibaba/druid/filter/encoding/EncodingConvertFilter.java:433-444 | core/src/main/java/com/alibaba/druid/filter/encoding/EncodingConvertFilter.java:448-460 | core/src/main/java/com/alibaba/druid/filter/encoding/EncodingConvertFilter.java:464-477 | core/src/main/java/com/alibaba/druid/filter/encoding/EncodingConvertFilter.java:557-568 | core/src/main/java/com/alibaba/druid/filter/encoding/EncodingConvertFilter.java:572-584 | core/src/main/java/com/alibaba/druid/filter/encoding/EncodingConvertFilter.java:588-600 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 12 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":"core/src/main/java/com/alibaba/druid/filter/encoding/EncodingConvertFilter.java"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c37e318876a0cbf1f992db46abe01829c57fd735c11d60159f5d6180c5ec50d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryStatementParser.java:328-346 | core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerStatementParser.java:555-580 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryStatementParser.java"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"d95efd70c82aeb5aa164c611e599bb61e2ea7de55ecf02123a1c779982bc80f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/parser/GaussDbCreateTableParser.java:215-227 | core/src/main/java/com/alibaba/druid/sql/dialect/teradata/parser/TDCreateTableParser.java:62-74 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/parser/GaussDbCreateTableParser.java"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8eff05f5a37cc783606310fde7debe50e691a50cf203eeb2fa83808ffae476b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:5514-5536 | core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:5538-5558 \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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":5514}}}],"partialFingerprints":{"codehealthFindingId/v1":"c74082253e1114a718adc1cadcc440314cc8cacef5d24bb18c80daf9ee781054"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:2915-2931 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:2933-2950 \u2014 These two members are one piece of code written twice and then edited apart: 17 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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":2915}}}],"partialFingerprints":{"codehealthFindingId/v1":"4389559869072534116898b67ff87649720040afb8765c15222c291271be9ae4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:7817-7841 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:7843-7867 \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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":7817}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a9db74b8553fa7ec7faac8406b6510b790256f35271340d75e76c682f50a7a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLBinaryOpExpr.java:49-72 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLBinaryOpExpr.java:74-99 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLBinaryOpExpr.java"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"48bd124c20317dcdefb357850c57f31181005b48da6fb633302a7651b9fbfd72"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 19\u002B corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLMergeStatement.java:251-269 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLUnnestTableSource.java:110-130 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLValuesTableSource.java:120-138 \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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLMergeStatement.java"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7beb4dc2184515a6de2b34b74cdfaccc1bd46d98e297e44cfb9c570e7b91d1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLTableSourceImpl.java:202-219 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleSelectJoin.java:61-81 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLTableSourceImpl.java"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a4916106b082a08984a825b87a5c8c8b2be5e4b63aa59237c714502fb99a537"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:2420-2435 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:2736-2755 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":2420}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdb1c8e27951922c840b7e9be74ddd22c36c2e4250d629939ad83651d398745c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): core/src/main/java/com/alibaba/druid/stat/JdbcConnectionStat.java:201-233 | core/src/main/java/com/alibaba/druid/stat/JdbcResultSetStat.java:112-138 \u2014 These two members are one piece of code written twice and then edited apart: 27 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":"core/src/main/java/com/alibaba/druid/stat/JdbcConnectionStat.java"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b7847873b321e87292c08e3ed4a8cd7ffd09e408086ba9d113cce744a01ca16"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): druid-spring-boot-3-starter/src/main/java/com/alibaba/druid/spring/boot3/autoconfigure/DruidDataSourceWrapper.java:36-52 | druid-spring-boot-4-starter/src/main/java/com/alibaba/druid/spring/boot4/autoconfigure/DruidDataSourceWrapper.java:36-52 | druid-spring-boot-starter/src/main/java/com/alibaba/druid/spring/boot/autoconfigure/DruidDataSourceWrapper.java:36-52 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 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":"druid-spring-boot-3-starter/src/main/java/com/alibaba/druid/spring/boot3/autoconfigure/DruidDataSourceWrapper.java"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb9bbcfee02e7820e43d01cd4c28d568933cae5191526ea2f5252097f90679da"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLExtractExpr.java:95-117 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLIntervalExpr.java:109-131 \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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLExtractExpr.java"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"054464566a069005f940215235dd60e9c4a098d9355a71cd64d6af330942e856"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 20\u002B corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTimestampExpr.java:76-95 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTimestampExpr.java:97-116 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTimestampExpr.java:118-137 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTimestampExpr.java:139-158 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTimestampExpr.java"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"e41225ed873d9111cd8f6eb0f4dc27d16cdba3a02057594b4f53d07721f25784"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 15\u002B corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:1473-1487 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:2226-2240 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:2719-2733 | core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/visitor/SQLServerOutputVisitor.java:591-606 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 15 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":1473}}}],"partialFingerprints":{"codehealthFindingId/v1":"7656cb7de3f66d4a429d8f406341f2ec0fb38adedcfc6d6a9e1a1cd64e51eb41"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/athena/parser/AthenaCreateTableParser.java:124-149 | core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerSelectParser.java:202-220 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/athena/parser/AthenaCreateTableParser.java"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"70bbde1b3095a043b4f6db7dfe166e1f518e1968aae7df9e241b95c47c44f8cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:4238-4254 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:4257-4271 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":4238}}}],"partialFingerprints":{"codehealthFindingId/v1":"68f2f371c645ab5b4c2caec27041a0c8b5a6e436327d04f98a53cab4d2aa4fa5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLAggregateExpr.java:367-391 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLMethodInvokeExpr.java:400-429 \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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLAggregateExpr.java"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac56f8fc7f267cfcfe9fac9229838b7a8a34b1e4de80df4b17a635a2f7a9d929"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerStatementParser.java:533-553 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:1485-1503 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerStatementParser.java"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd8df87827ded2f17a7a1a969b28a2fc3034b7e5703bbb55e0e3776ff3f92616"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/visitor/GaussDbOutputVisitor.java:419-444 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:3083-3102 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/visitor/GaussDbOutputVisitor.java"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7397ce74497ebf7787ef7d8d105a6264357ba8560dcbe7505c2c01227f84207"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): core/src/main/java/com/alibaba/druid/sql/parser/SQLParserUtils.java:354-376 | core/src/main/java/com/alibaba/druid/sql/parser/SQLParserUtils.java:378-395 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLParserUtils.java"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"00ba38c93d9062aae19cc46d0554ea35fb20a996253443c4cb257bfd5f00f83f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): core/src/main/java/com/alibaba/druid/util/Utils.java:70-95 | core/src/main/java/com/alibaba/druid/util/Utils.java:97-117 \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":"core/src/main/java/com/alibaba/druid/util/Utils.java"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd171b59e671d02690ea1b0b89f52e7111021bdd4e18334fb8cd03c8d0efc432"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): core/src/main/java/com/alibaba/druid/mock/MockDriver.java:124-145 | core/src/main/java/com/alibaba/druid/proxy/DruidDriver.java:85-113 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/mock/MockDriver.java"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9f029bacfcfd83bd96aa2cfe660b7955f2e8db9fb0045127b90643fd09fc289"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateViewStatement.java:257-279 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLUpdateStatement.java:205-232 \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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateViewStatement.java"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a99d30e81260a31937eaefa02996df563fbdcd0f18847af980f61af9e86b3fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 20\u002B corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLAllExpr.java:79-98 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLAnyExpr.java:82-101 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLExistsExpr.java:87-109 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLQueryExpr.java:76-95 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLSomeExpr.java:78-97 \u2014 These 5 members are one piece of code written 5 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 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLAllExpr.java"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"f77db29bce74f391f27f8f7900bb22f9a1b2e7a5ea014eeb65ec489ca90df4c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLBinaryExpr.java:109-128 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTextLiteralExpr.java:50-69 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLBinaryExpr.java"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c1447e2ef1d2b636ff31c1f8e2657dc8d9240573648d39e667c9fdf149f610e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 20\u002B corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLNotExpr.java:83-102 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLUnaryExpr.java:92-114 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/expr/OracleOuterExpr.java:94-113 \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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLNotExpr.java"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb7c0999149454e68a627d06f407abea9b8d2ecfac1c0a82d72f4380d570823e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): core/src/main/java/com/alibaba/druid/pool/DruidPooledStatement.java:674-692 | core/src/main/java/com/alibaba/druid/pool/DruidPooledStatement.java:812-830 \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":"core/src/main/java/com/alibaba/druid/pool/DruidPooledStatement.java"},"region":{"startLine":674}}}],"partialFingerprints":{"codehealthFindingId/v1":"07332ce1752d3228d5319658de9cd2eb2a2e4fd403f67262fdc0bfdf6bc90766"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 18\u002B corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLDbLinkExpr.java:118-139 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLMethodInvokeExpr.java:106-123 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLPropertyExpr.java:108-128 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 18 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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLDbLinkExpr.java"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"15b0a744fb537a92a1079c76af8c8cc5f4624682f0091b270d3e7d3803bc50c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerStatementParser.java:786-805 | core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerStatementParser.java:863-882 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerStatementParser.java"},"region":{"startLine":786}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce1dd8714170498acb41ca6e5ac87c20c32ece488ae3d6d75b39938bfb6cb59d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): core/src/main/java/com/alibaba/druid/sql/PagerUtils.java:544-573 | core/src/main/java/com/alibaba/druid/sql/parser/SQLParserUtils.java:424-455 \u2014 These two members are one piece of code written twice and then edited apart: 30 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":"core/src/main/java/com/alibaba/druid/sql/PagerUtils.java"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"37835042119136b6bac72ee691baf332d1496d089f25783010907cb9c08b4a2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLCastExpr.java:99-116 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectItem.java:95-118 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/expr/OracleIsOfTypeExpr.java:33-47 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 15 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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLCastExpr.java"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2d98d50feb399e7d08318c53985b96520fac7c047b664cc3ce11d03de11a2a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAssignItem.java:34-48 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLUpdateSetItem.java:131-145 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAssignItem.java"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a257ab45a9888e533f608f4156305939aa2933b4222e87933d4e7de4c27584d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): core/src/main/java/com/alibaba/druid/support/http/stat/WebSessionStat.java:208-228 | core/src/main/java/com/alibaba/druid/support/http/stat/WebURIStat.java:151-173 \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":"core/src/main/java/com/alibaba/druid/support/http/stat/WebSessionStat.java"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"7270924cd12b08bdbb0939854c524d2b07105eda5c3ed7f369e4499e60a6eecf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/SQLObjectImpl.java:166-182 | core/src/main/java/com/alibaba/druid/sql/ast/SQLObjectImpl.java:211-226 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/sql/ast/SQLObjectImpl.java"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"921aa01e74dbf53447bb412e25fad0d3d98e60d2cf85b3b332a7305231bffc2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:1101-1120 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:1122-1139 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":1101}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b5e2d5e86f0fe74c4868a1c9cf30f556314dc47fc5ed30a15007411543d9b24"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): core/src/main/java/com/alibaba/druid/support/http/stat/WebAppStat.java:354-367 | core/src/main/java/com/alibaba/druid/support/http/stat/WebSessionStat.java:239-251 \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":"core/src/main/java/com/alibaba/druid/support/http/stat/WebAppStat.java"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"a616561ab6ed191393eedace6fe2bde11e5e983b7c0c5d53574d86b0cefad0bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 20\u002B corresponding lines): core/src/main/java/com/alibaba/druid/filter/FilterEventAdapter.java:269-288 | core/src/main/java/com/alibaba/druid/filter/FilterEventAdapter.java:430-451 | core/src/main/java/com/alibaba/druid/filter/FilterEventAdapter.java:455-478 | core/src/main/java/com/alibaba/druid/filter/FilterEventAdapter.java:482-501 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/filter/FilterEventAdapter.java"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"a42d2e28dd36a8f2fb94c734380cda48f507bd822227565ba67b3c3f08cb4450"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): core/src/main/java/com/alibaba/druid/pool/DruidPooledPreparedStatement.java:203-230 | core/src/main/java/com/alibaba/druid/pool/DruidPooledStatement.java:292-317 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/pool/DruidPooledPreparedStatement.java"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"46515c7c6de16561d60d9a84e2c5a7ab3fb5d34c723171e7cb3f53ee06730421"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlSchemaStatVisitor.java:99-119 | core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java:2920-2941 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlSchemaStatVisitor.java"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"40296dae21928836e22e01909b7a2503c845a5a47888b1f3e037d481bbaa72cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLBlockStatement.java:127-149 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLIfStatement.java:30-48 \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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLBlockStatement.java"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"baa0572e235aef073ee089215324722dc4494889e87b84be29a673bc356768f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 20\u002B corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGSchemaStatVisitor.java:45-69 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGSchemaStatVisitor.java:72-95 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGSchemaStatVisitor.java:111-130 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGSchemaStatVisitor.java"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c6b0e1770bee6ad24295bb8326f8bf3bfac88851e1d12916c1588ddcb8932f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): core/src/main/java/com/alibaba/druid/sql/PagerUtils.java:36-51 | core/src/main/java/com/alibaba/druid/sql/PagerUtils.java:53-69 | core/src/main/java/com/alibaba/druid/sql/PagerUtils.java:71-89 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 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":"core/src/main/java/com/alibaba/druid/sql/PagerUtils.java"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"355f9011ae5a08ffb37e43f0ea0893d67bd748f8b6961965e9b0b8f2b7dc6348"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLIdentifierExpr.java:157-173 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLPropertyExpr.java:284-300 \u2014 These two members are one piece of code written twice and then edited apart: 17 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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLIdentifierExpr.java"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f7deed408a5ba43d42f376407e3d4c195ac1cdb5e755543c2f5a45f4dc83024"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/parser/CKSelectParser.java:157-173 | core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java:1050-1063 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/parser/CKSelectParser.java"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3f3468def7cac79bcb2d4b477563cf147a995d213fe7d273fc85e1e8f428d30"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:4491-4509 | core/src/main/java/com/alibaba/druid/sql/dialect/presto/parser/PrestoStatementParser.java:494-507 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":4491}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea1d592833daeae57b82ed4e753dc94fb18a92cf656711f4b2d45ecf89918860"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:7127-7149 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:7841-7857 \u2014 These two members are one piece of code written twice and then edited apart: 17 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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":7127}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9fa38b8575f209dae3a0bb65a4a6ba44232b795fc52ff945602105807f217fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): core/src/main/java/com/alibaba/druid/sql/visitor/ExportParameterVisitorUtils.java:37-65 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java:108-135 \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":"core/src/main/java/com/alibaba/druid/sql/visitor/ExportParameterVisitorUtils.java"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef702cc1ad86047258923aef2fa5b9fbef156960ab030e3793ad36eda8dc2b96"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): core/src/main/java/com/alibaba/druid/wall/WallFilter.java:431-444 | core/src/main/java/com/alibaba/druid/wall/WallFilter.java:449-463 | core/src/main/java/com/alibaba/druid/wall/WallFilter.java:468-482 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 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":"core/src/main/java/com/alibaba/druid/wall/WallFilter.java"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeedd6a5221f66223a8b7c34dfd2e5a36866feb2b3194fd2d74443c0539c830a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLBetweenExpr.java:124-132 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLInSubQueryExpr.java:115-123 \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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLBetweenExpr.java"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"581baf4e546d15205ad49d607b0228b14edcdd215f089b2afaa95035cf8b4505"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectOrderByItem.java:188-200 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectOrderByItem.java:202-214 \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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectOrderByItem.java"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"11047a4ef59658f23997fce7eb8d6a11585146895294dd910366c43712d7cfd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:1070-1081 | core/src/main/java/com/alibaba/druid/support/calcite/CalciteMySqlNodeVisitor.java:242-255 \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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":1070}}}],"partialFingerprints":{"codehealthFindingId/v1":"96b1bdd5ad47a8eaf04479bf984bbf11a2a8c86e7dd25d0c89afd2f58f729e7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 13\u002B corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateTableStatement.java:1079-1091 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateTableStatement.java:1093-1105 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateTableStatement.java:1107-1119 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateTableStatement.java:1120-1132 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateTableStatement.java"},"region":{"startLine":1079}}}],"partialFingerprints":{"codehealthFindingId/v1":"0afb5e2c8d1f2bd8cdf2e2e420dd5a37610bb4d1de17b5e6a3666956d2ce7985"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryOutputVisitor.java:226-246 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:1260-1273 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryOutputVisitor.java"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fec1f7274e350d94874f4eb233f09bc2683f602063e89a915d1decfd5941b29"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 18\u002B corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:8664-8689 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java:964-981 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:790-810 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 18 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":8664}}}],"partialFingerprints":{"codehealthFindingId/v1":"1457d04150143a212528dcc2b5a56aec86500d0e13d1d4187ab47952a7b359ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:1807-1824 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:1871-1888 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":1807}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c83503476804139dca5b0c0ad4a798b4128079926953361fa2b07f4a8983137"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleRowNumToLimit.java:450-464 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleRowNumToLimit.java:488-502 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleRowNumToLimit.java"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"9731879a2affcdba89934d070db0570913cf5ab5f82d11ca75a764b3cddc9585"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): core/src/main/java/com/alibaba/druid/util/Utils.java:213-229 | core/src/main/java/com/alibaba/druid/util/Utils.java:231-247 \u2014 These two members are one piece of code written twice and then edited apart: 17 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":"core/src/main/java/com/alibaba/druid/util/Utils.java"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"24c16abfcc2ccf3faab1b9498c1ac38b48950df853d2a7c02ef3e24711dd1111"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryLexer.java:328-338 | core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java:2409-2422 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryLexer.java"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"0df256ce28e5672e89e39872cf74b4d90dbe078cd2bd624eabea6b9c7f0879e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryStatementParser.java:306-321 | core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeStatementParser.java:130-150 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryStatementParser.java"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"db4adc7c739118e4b77e6bf8242429e1511ab763b0a0afec0a34a54a24bf0472"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): core/src/main/java/com/alibaba/druid/stat/DruidDataSourceStatManager.java:248-261 | core/src/main/java/com/alibaba/druid/stat/JdbcDataSourceStat.java:256-269 | core/src/main/java/com/alibaba/druid/stat/JdbcDataSourceStat.java:305-318 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 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":"core/src/main/java/com/alibaba/druid/stat/DruidDataSourceStatManager.java"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"09e8895d6d3d5476d7fff8c5acb0a6299749ae7c43c6fcb7f9c1cf813ec03e40"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (7 members, 14\u002B corresponding lines): core/src/main/java/com/alibaba/druid/support/http/stat/WebAppStatUtils.java:29-42 | core/src/main/java/com/alibaba/druid/support/http/stat/WebAppStatUtils.java:77-90 | core/src/main/java/com/alibaba/druid/support/http/stat/WebAppStatUtils.java:93-106 | core/src/main/java/com/alibaba/druid/support/spring/stat/SpringStatUtils.java:45-58 | core/src/main/java/com/alibaba/druid/util/DruidDataSourceUtils.java:131-144 | core/src/main/java/com/alibaba/druid/util/DruidDataSourceUtils.java:147-160 | core/src/main/java/com/alibaba/druid/util/JdbcSqlStatUtils.java:34-47 \u2014 These 7 members are one piece of code written 7 times and then edited apart: every two of them correspond over at least 14 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 7 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/support/http/stat/WebAppStatUtils.java"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed94b1ba0f3a63815a79fefeae87f248118cc3db007104fb578aa29497701743"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:2533-2546 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:2686-2698 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":2533}}}],"partialFingerprints":{"codehealthFindingId/v1":"97f22abe2442d99f75fa15fedd019ad8e47e29830c533a78fa6d64b9028e4373"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:4298-4308 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:4311-4324 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":4298}}}],"partialFingerprints":{"codehealthFindingId/v1":"f294f4d574b5906c932444504594d88552b9b907c5bfdbb2ca6f45e91169a848"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): core/src/main/java/com/alibaba/druid/util/DruidDataSourceUtils.java:41-54 | core/src/main/java/com/alibaba/druid/util/DruidDataSourceUtils.java:71-84 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/util/DruidDataSourceUtils.java"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bde1bdf802e69142728c2e929c3afc1d9afb898d0832d94500d2888cc08d038"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): core/src/main/java/com/alibaba/druid/util/DruidDataSourceUtils.java:163-176 | core/src/main/java/com/alibaba/druid/util/DruidDataSourceUtils.java:179-192 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/util/DruidDataSourceUtils.java"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"36a9112a64ba34fe6270e68d6c5dde77f9416291c20d3ba20362d21e72a1b764"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveCreateTableParser.java:402-416 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:2378-2393 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveCreateTableParser.java"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8ee2f0fc88fe41a45e6b2791e8a43bf2908553a072d66529aec8ee6661283f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:2693-2708 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:2710-2725 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":2693}}}],"partialFingerprints":{"codehealthFindingId/v1":"20af090b37454de449bc73d1dffc98f2c9a73ac3ef14f32de5f38b93a82a1dc2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:3159-3174 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:11904-11919 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":3159}}}],"partialFingerprints":{"codehealthFindingId/v1":"202ed374289bcbfc85cc0845205600eeccf350b8dccfc2df78229dcf6e292422"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:3425-3443 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:3653-3672 \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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":3425}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1a30b34c074ec9cc109d773a40b1ceb64648eebb816a23dd2a72b5719dd5dbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): core/src/main/java/com/alibaba/druid/sql/visitor/functions/IfNull.java:31-48 | core/src/main/java/com/alibaba/druid/sql/visitor/functions/Isnull.java:29-45 \u2014 These two members are one piece of code written twice and then edited apart: 17 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":"core/src/main/java/com/alibaba/druid/sql/visitor/functions/IfNull.java"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"b341e8875a1fb4826a41b3c45a2001fcfb425ca0d3b8c2a2bd81e405a0c52d02"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:1287-1303 | core/src/main/java/com/alibaba/druid/sql/dialect/starrocks/visitor/StarRocksOutputVisitor.java:373-389 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:8246-8262 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":1287}}}],"partialFingerprints":{"codehealthFindingId/v1":"eee433ea70b19e39c8783072e6d9c7a834cc6fb5f5a79576d7616c39156227da"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:1322-1337 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:1359-1378 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":1322}}}],"partialFingerprints":{"codehealthFindingId/v1":"6082acce1ff041f5c3942cc7c787c31e3bd1f92d4ef2a685b5fb117c0abaa098"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java:2221-2236 | core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java:564-581 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java"},"region":{"startLine":2221}}}],"partialFingerprints":{"codehealthFindingId/v1":"90636f62b93f03abaabfe7f1f5f480f652616a84f6da1e19328751dbe0524f85"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleInsertStatement.java:83-94 | core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/ast/stmt/SQLServerInsertStatement.java:58-69 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleInsertStatement.java"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"04ee3894493cc461a966fbeb806efbb2b3693176a2e6442e3101bbf5f165a307"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): core/src/main/java/com/alibaba/druid/sql/visitor/functions/Greatest.java:31-47 | core/src/main/java/com/alibaba/druid/sql/visitor/functions/Least.java:31-47 \u2014 These two members are one piece of code written twice and then edited apart: 17 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":"core/src/main/java/com/alibaba/druid/sql/visitor/functions/Greatest.java"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a0b9e3806fa26ac197f84dbdfbe97842685a9b131df952e6359ffdcab2b7b1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): core/src/main/java/com/alibaba/druid/filter/logging/LogFilter.java:505-516 | core/src/main/java/com/alibaba/druid/filter/logging/LogFilter.java:553-564 | core/src/main/java/com/alibaba/druid/filter/logging/LogFilter.java:575-586 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 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":"core/src/main/java/com/alibaba/druid/filter/logging/LogFilter.java"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"253d30c65c12bb756686b4114835f142545977545e3f8bc646e2a3012173e2c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): core/src/main/java/com/alibaba/druid/support/http/stat/WebAppStat.java:469-482 | core/src/main/java/com/alibaba/druid/support/spring/stat/SpringStat.java:50-64 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/support/http/stat/WebAppStat.java"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"fba0d1cc28991224b638a19bd8ae7e3ce82eb40e2f3567be099fc28fb5582bd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLMatchAgainstExpr.java:50-65 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLWithSubqueryClause.java:151-165 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLMatchAgainstExpr.java"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"218950a6105b1f147ebe5d8d1487701742d4df68b2274c5ce09b931ac8220b13"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/doris/visitor/DorisOutputVisitor.java:27-38 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:2582-2591 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/doris/visitor/DorisOutputVisitor.java"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"f814606683ce635efa75c9abf6d14dd5f58a2f58fc8dc82685b786c2f9dafb7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSetStatement.java:137-152 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/clause/OracleReturningClause.java:62-78 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSetStatement.java"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd856eba62942270d8f581c86947e79702bb9eacb6bb7204c913696d6472884d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSubqueryTableSource.java:92-106 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleSelectSubqueryTableSource.java:76-93 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSubqueryTableSource.java"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"26627021ea81b5e812b4cfb15a1ed4587e2df4413fee1786257abba7fbd5a143"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlCreateAddLogFileGroupStatement.java:130-142 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlCreateTableSpaceStatement.java:37-52 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlCreateAddLogFileGroupStatement.java"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"97a781f90f2b338d3719391c3018336f8ab23b3299adcea8bc0e371c7cbcbad1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java:490-503 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java:1010-1023 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"24fd6d9131d33653be9c92d2a3ea309f7c11d872b5c9ff051208569cbf30273c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): core/src/main/java/com/alibaba/druid/sql/visitor/functions/Lcase.java:50-62 | core/src/main/java/com/alibaba/druid/sql/visitor/functions/Length.java:49-61 | core/src/main/java/com/alibaba/druid/sql/visitor/functions/Ucase.java:49-61 \u2014 These 3 members are one piece of code written 3 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 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/functions/Lcase.java"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"b27678c0e6a2535855bce1fd9801eecde11de827604c47661fdf218c95a030cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): core/src/main/java/com/alibaba/druid/support/opds/udf/SqlFormat.java:21-35 | core/src/main/java/com/alibaba/druid/support/opds/udf/SqlSyntaxCheck.java:21-39 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/support/opds/udf/SqlFormat.java"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeafecbc1f855680d8486ec8d38eaddca5a757f25aacbfdc4e860247b3bd7b0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLContainsExpr.java:159-174 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLInListExpr.java:203-222 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLContainsExpr.java"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"4906fe265fa359d3c328eb5c7df64a0af38866df70b99bf524fe582be947de2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:8903-8914 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:8922-8934 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":8903}}}],"partialFingerprints":{"codehealthFindingId/v1":"983ca594d2873ae8ee6df08c6ad42df8016f3acd45632ee73fd19a07f1455d9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 15\u002B corresponding lines): core/src/main/java/com/alibaba/druid/filter/FilterChainImpl.java:291-306 | core/src/main/java/com/alibaba/druid/filter/FilterChainImpl.java:496-510 | core/src/main/java/com/alibaba/druid/filter/FilterChainImpl.java:518-539 | core/src/main/java/com/alibaba/druid/filter/FilterChainImpl.java:584-599 | core/src/main/java/com/alibaba/druid/filter/FilterChainImpl.java:607-626 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 15 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":"core/src/main/java/com/alibaba/druid/filter/FilterChainImpl.java"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a6e9f2294fd6d23ed9b7e63fbff548bbf3093694233d31ba9b607132b87d49a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/SQLObjectImpl.java:185-199 | core/src/main/java/com/alibaba/druid/sql/ast/SQLObjectImpl.java:229-244 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateTableStatement.java:460-471 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 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":"core/src/main/java/com/alibaba/druid/sql/ast/SQLObjectImpl.java"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"74c438a6fe126d92e3280ef5b133804eaa1abbb3d3e5f0a99554e01edc03d5c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLExprTableSource.java:358-376 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLExprTableSource.java:463-487 \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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLExprTableSource.java"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"d379c355d269b15eec146e0e3c33ee43e4d25fc36b259ca51fa01fe3123c93a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 18\u002B corresponding lines): core/src/main/java/com/alibaba/druid/pool/DruidPooledStatement.java:207-224 | core/src/main/java/com/alibaba/druid/pool/DruidPooledStatement.java:226-247 | core/src/main/java/com/alibaba/druid/pool/DruidPooledStatement.java:249-266 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 18 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":"core/src/main/java/com/alibaba/druid/pool/DruidPooledStatement.java"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fdb8fa9a88a0f3ca081c8471c7b21b1fbd84395e494c48801df20612ed5f75e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLGroupingSetExpr.java:102-120 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLVariantRefExpr.java:123-142 \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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLGroupingSetExpr.java"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b461bd0606e7d2218286b669024acbf3fa96fa6a7b4f689cdfc5252f788b23a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java:900-914 | core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:5845-5858 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java"},"region":{"startLine":900}}}],"partialFingerprints":{"codehealthFindingId/v1":"e24dbe9ed34b0620cdc4767259e2cd0b62887d5787904ffd06c739adc8704d31"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 20\u002B corresponding lines): core/src/main/java/com/alibaba/druid/support/json/JSONWriter.java:291-310 | core/src/main/java/com/alibaba/druid/support/json/JSONWriter.java:312-333 | core/src/main/java/com/alibaba/druid/support/json/JSONWriter.java:335-356 \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":"core/src/main/java/com/alibaba/druid/support/json/JSONWriter.java"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c20874532a247cf24825a63e0e6c5a165284176ce7ec18e650d04c3177f2954"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): core/src/main/java/com/alibaba/druid/util/FnvHash.java:54-71 | core/src/main/java/com/alibaba/druid/util/FnvHash.java:73-90 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/util/FnvHash.java"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"aed3b06240edd7e9fb44ac646cf78fadd1b631b374c0b77551a9b078dc7d8bb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 15\u002B corresponding lines): core/src/main/java/com/alibaba/druid/sql/SQLUtils.java:1736-1754 | core/src/main/java/com/alibaba/druid/sql/builder/impl/SQLDeleteBuilderImpl.java:41-55 | core/src/main/java/com/alibaba/druid/sql/builder/impl/SQLSelectBuilderImpl.java:39-53 | core/src/main/java/com/alibaba/druid/sql/builder/impl/SQLUpdateBuilderImpl.java:44-58 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 15 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":"core/src/main/java/com/alibaba/druid/sql/SQLUtils.java"},"region":{"startLine":1736}}}],"partialFingerprints":{"codehealthFindingId/v1":"58c5268ba1e3189f1519cd6d81ca099f7f439f0f978e988889db6d8d68393646"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLAggregateExpr.java:215-228 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLUpdateStatement.java:234-250 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLAggregateExpr.java"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf1a7db119f8b3be1f4c0faf12bc917db03a782951e0fb2f977151d6b4f96273"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/databricks/parser/DatabricksCreateTableParser.java:31-39 | core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveCreateTableParser.java:93-101 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/databricks/parser/DatabricksCreateTableParser.java"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"594f979ee60d6adc438995c08c88513a91343e9b4ca31d59af2aa2214d22bab9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/db2/ast/stmt/DB2CreateTableStatement.java:111-122 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleCreateTableStatement.java:309-320 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleMultiInsertStatement.java:183-194 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 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":"core/src/main/java/com/alibaba/druid/sql/dialect/db2/ast/stmt/DB2CreateTableStatement.java"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e52aa02c0f2f8fd438d0bb715f2557712b322d2cff1d6e8f8c5cad72cc8503f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): core/src/main/java/com/alibaba/druid/sql/repository/SchemaRepository.java:1108-1122 | core/src/main/java/com/alibaba/druid/sql/repository/SchemaRepository.java:1142-1152 | core/src/main/java/com/alibaba/druid/sql/repository/SchemaRepository.java:1154-1163 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 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":"core/src/main/java/com/alibaba/druid/sql/repository/SchemaRepository.java"},"region":{"startLine":1108}}}],"partialFingerprints":{"codehealthFindingId/v1":"85ec5e857d6fc180e011dac68d8d72107c7d4a623f3b890891d04cb184304aa1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): core/src/main/java/com/alibaba/druid/stat/JdbcDataSourceStat.java:435-446 | core/src/main/java/com/alibaba/druid/stat/JdbcDataSourceStat.java:448-459 \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":"core/src/main/java/com/alibaba/druid/stat/JdbcDataSourceStat.java"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5268d04f5774717367d975e28dc1db032d58ae85c4b399136185876862edd7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 12\u002B corresponding lines): core/src/main/java/com/alibaba/druid/filter/FilterChainImpl.java:2877-2890 | core/src/main/java/com/alibaba/druid/filter/FilterChainImpl.java:3013-3026 | core/src/main/java/com/alibaba/druid/filter/FilterChainImpl.java:3137-3148 | core/src/main/java/com/alibaba/druid/filter/FilterChainImpl.java:3236-3247 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 12 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":"core/src/main/java/com/alibaba/druid/filter/FilterChainImpl.java"},"region":{"startLine":2877}}}],"partialFingerprints":{"codehealthFindingId/v1":"0481d0f7ea681d956bd2109eec28dd0019ef6aca1a68bd697ca69c905df46ea1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): core/src/main/java/com/alibaba/druid/pool/DruidDataSource.java:3760-3773 | core/src/main/java/com/alibaba/druid/pool/DruidDataSource.java:3776-3789 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/pool/DruidDataSource.java"},"region":{"startLine":3760}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4c5cc2f05e8d58cd27737c1f15a3de65e0c21991edb2c54d7ca02cfe57f370b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): core/src/main/java/com/alibaba/druid/pool/DruidPooledConnection.java:655-671 | core/src/main/java/com/alibaba/druid/pool/DruidPooledConnection.java:675-691 | core/src/main/java/com/alibaba/druid/pool/DruidPooledConnection.java:694-710 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 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":"core/src/main/java/com/alibaba/druid/pool/DruidPooledConnection.java"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3eebb8f5327ba7f22322f1ad0663a06ff457f66ff4ddeaffa050266b8efcc22"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/db2/ast/stmt/DB2CreateSchemaStatement.java:59-71 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/ast/stmt/PGCreateSchemaStatement.java:82-95 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/db2/ast/stmt/DB2CreateSchemaStatement.java"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"890f7d161d70018287c2271976b7ebee5692d97877466bc86ef618f5c97d8962"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:2005-2018 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:2021-2035 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":2005}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1b235597fbdbf2edc5c9c18162750f4c392e7acdd2d1b81bf49de491e8b4c29"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/redshift/visitor/RedshiftOutputVisitor.java:144-156 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:3676-3692 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/redshift/visitor/RedshiftOutputVisitor.java"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"a250db643c77d0d238745eab0112057285d9e1fed4a200049bd41480b7cf2c9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): core/src/main/java/com/alibaba/druid/sql/repository/SchemaRepository.java:1233-1247 | core/src/main/java/com/alibaba/druid/sql/repository/SchemaRepository.java:1249-1266 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/sql/repository/SchemaRepository.java"},"region":{"startLine":1233}}}],"partialFingerprints":{"codehealthFindingId/v1":"63c0c649b5f33f045e2a9a74c1cdafbb2a21c70a5a97d833e56da6ced562fd6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): core/src/main/java/com/alibaba/druid/support/http/stat/WebAppStatUtils.java:108-120 | core/src/main/java/com/alibaba/druid/support/spring/stat/SpringStatUtils.java:60-72 \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":"core/src/main/java/com/alibaba/druid/support/http/stat/WebAppStatUtils.java"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0554db227a9135270c1774a0920d9e4b591d2c148e4d5188a5474a2bb18dece"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLUnionQuery.java:79-91 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLUnionQuery.java:104-120 \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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLUnionQuery.java"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0a3bce1b7cb86969102d49d23a17236e209c1c0f85965a01e76cf00d015ed4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryExprParser.java:382-387 | core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryExprParser.java:389-397 | core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveExprParser.java:398-403 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 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":"core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryExprParser.java"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9df8be079b40ad8f3be81b350f4221ea21d2169499aca24896d864320828392"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java:3393-3410 | core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java:3412-3427 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java"},"region":{"startLine":3393}}}],"partialFingerprints":{"codehealthFindingId/v1":"553ecfecdde28e21a3fbcc253eb2d8dd3d443ae551d1f3a2b48826d3fd8cd94a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): core/src/main/java/com/alibaba/druid/wall/WallFilter.java:697-716 | core/src/main/java/com/alibaba/druid/wall/WallFilter.java:733-747 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/wall/WallFilter.java"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fb9082a4e6eb53b78c490eff96b2df7b4765cb0e1be11d47803a323d37aa9ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): core/src/main/java/com/alibaba/druid/wall/WallVisitor.java:182-191 | core/src/main/java/com/alibaba/druid/wall/spi/OracleWallVisitor.java:39-47 \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":"core/src/main/java/com/alibaba/druid/wall/WallVisitor.java"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e6e08bdeb8c1d312c633fd9fb1bb72cdaa0d06aefe84c7c7b69cdd0c94d8468"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLColumnReference.java:60-80 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleSupplementalLogGrp.java:73-85 | core/src/main/java/com/alibaba/druid/sql/dialect/starrocks/ast/StarRocksIndexDefinition.java:72-85 \u2014 These 3 members are one piece of code written 3 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 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLColumnReference.java"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee4514a5a7da581466d23baba67ccf0d2bf3c79739e30912e11a09fc5b73570b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectStatement.java:98-109 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSubqueryTableSource.java:149-160 \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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectStatement.java"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"32a12f5abf2ffd94096171ffe35cab00311f261278125bf8716abc7d3d2ab64a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 12\u002B corresponding lines): core/src/main/java/com/alibaba/druid/support/http/stat/WebAppStatManager.java:63-74 | core/src/main/java/com/alibaba/druid/support/http/stat/WebAppStatManager.java:76-87 | core/src/main/java/com/alibaba/druid/support/http/stat/WebAppStatManager.java:89-100 | core/src/main/java/com/alibaba/druid/support/spring/stat/SpringStatManager.java:69-82 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 12 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":"core/src/main/java/com/alibaba/druid/support/http/stat/WebAppStatManager.java"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"b855b4a66f85439255b1d4d3a4659abc5539007ad84d6215b16c12f961d205a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): core/src/main/java/com/alibaba/druid/pool/DruidAbstractDataSource.java:1396-1405 | core/src/main/java/com/alibaba/druid/proxy/jdbc/DataSourceProxyImpl.java:131-140 \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":"core/src/main/java/com/alibaba/druid/pool/DruidAbstractDataSource.java"},"region":{"startLine":1396}}}],"partialFingerprints":{"codehealthFindingId/v1":"f31cb2926a83616b3643e1ebe0a43b639da745d8e9606bc456006f3454185199"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (7 members, 15\u002B corresponding lines): core/src/main/java/com/alibaba/druid/util/FnvHash.java:137-151 | core/src/main/java/com/alibaba/druid/util/FnvHash.java:153-167 | core/src/main/java/com/alibaba/druid/util/FnvHash.java:169-183 | core/src/main/java/com/alibaba/druid/util/FnvHash.java:185-199 | core/src/main/java/com/alibaba/druid/util/FnvHash.java:236-250 | core/src/main/java/com/alibaba/druid/util/FnvHash.java:252-269 | core/src/main/java/com/alibaba/druid/util/StringUtils.java:126-141 \u2014 These 7 members are one piece of code written 7 times and then edited apart: every two of them correspond over at least 15 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 7 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/util/FnvHash.java"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e7b7024c1b83259d0795fabda29a9bf31aab481a4f25b38d32a18356acbd0a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): core/src/main/java/com/alibaba/druid/filter/FilterChainImpl.java:246-264 | core/src/main/java/com/alibaba/druid/filter/FilterChainImpl.java:270-284 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/filter/FilterChainImpl.java"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"94a07a252a4fa5c84c55210f260fac3c00051448904c585b4337649cac42637d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/SQLIndexDefinition.java:312-330 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLContainsExpr.java:85-101 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLInListExpr.java:129-145 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 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":"core/src/main/java/com/alibaba/druid/sql/ast/SQLIndexDefinition.java"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac748b33e3ac4095989142d897680ec66c839b934d7ec91dd47ac10f6ec18743"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 11\u002B corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLListExpr.java:61-71 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCharacterDataType.java:101-112 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDropViewStatement.java:80-90 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLWithSubqueryClause.java:77-87 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 11 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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLListExpr.java"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4665d4f8302f7a6db24b0406dba15708374d99e1b5e27745548e3362943f04e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateTriggerStatement.java:68-84 | core/src/main/java/com/alibaba/druid/sql/dialect/presto/ast/stmt/PrestoPrepareStatement.java:91-103 \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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateTriggerStatement.java"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"dca0618eb6b34d777be8df1e02564397c8592b5691d8c142f54a73b8b5661b96"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDeleteStatement.java:148-164 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLUnionQuery.java:134-153 \u2014 These two members are one piece of code written twice and then edited apart: 17 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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDeleteStatement.java"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"58f92ab1051233c99379db1de9320c28d6a47512314ad5f1b88e5587569ee011"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLForeignKeyImpl.java:110-118 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/MysqlForeignKey.java:52-62 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleForeignKey.java:40-51 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLForeignKeyImpl.java"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb6a2a452b43260a4ea16787b49d4219dcfc82f47ba8c1d0c034f77255635b6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): core/src/main/java/com/alibaba/druid/sql/parser/SQLParserUtils.java:473-489 | core/src/main/java/com/alibaba/druid/sql/parser/SQLParserUtils.java:491-507 | core/src/main/java/com/alibaba/druid/sql/parser/SQLParserUtils.java:509-525 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLParserUtils.java"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a667c289702de757b99aca6ac8973449d81a4a15da0b29d3ebbf03a9b4d04cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 17\u002B corresponding lines): core/src/main/java/com/alibaba/druid/util/HiveUtils.java:9-25 | core/src/main/java/com/alibaba/druid/util/MySqlUtils.java:233-249 | core/src/main/java/com/alibaba/druid/util/OracleUtils.java:172-188 | core/src/main/java/com/alibaba/druid/util/OracleUtils.java:192-208 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 17 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":"core/src/main/java/com/alibaba/druid/util/HiveUtils.java"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ee636ff432633b38633aa27c24a90fdd817e8738543650bac5e370fb9545262"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLArrayExpr.java:47-61 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLContainsExpr.java:43-55 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLInListExpr.java:57-69 \u2014 These 3 members are one piece of code written 3 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 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLArrayExpr.java"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c6a58175f662d9b98af272232d4de40c72f9a186fb2da887a2416c20c1259ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLShowColumnsStatement.java:90-105 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleLockTableStatement.java:93-105 \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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLShowColumnsStatement.java"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"9acbe1096e28cba34a1d742386646d2d24a7ecf90005da142ad83edc86b6faf3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLUnique.java:143-157 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/transform/FromSubqueryResolver.java:83-94 \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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLUnique.java"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"06eb153f491b6326b6ea4278aa4a5ef826eb0cefbb0f314b21ceadf6ffa8163c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): core/src/main/java/com/alibaba/druid/filter/FilterChainImpl.java:3508-3520 | core/src/main/java/com/alibaba/druid/filter/FilterChainImpl.java:4794-4806 \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":"core/src/main/java/com/alibaba/druid/filter/FilterChainImpl.java"},"region":{"startLine":3508}}}],"partialFingerprints":{"codehealthFindingId/v1":"c23994b58628e2f59f3aa7a6bbe39a477215d0f8090dbf93620fa93659dd700d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): core/src/main/java/com/alibaba/druid/filter/FilterChainImpl.java:3631-3643 | core/src/main/java/com/alibaba/druid/filter/FilterChainImpl.java:4631-4643 \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":"core/src/main/java/com/alibaba/druid/filter/FilterChainImpl.java"},"region":{"startLine":3631}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c3bbafd2a5b38b9625ba8c75d9cd8ec32d9eceadce9769edc35a041b5ec0f2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): core/src/main/java/com/alibaba/druid/filter/encoding/EncodingConvertFilter.java:213-225 | core/src/main/java/com/alibaba/druid/filter/encoding/EncodingConvertFilter.java:227-239 \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":"core/src/main/java/com/alibaba/druid/filter/encoding/EncodingConvertFilter.java"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c09252a6c39cb576b3765f98ecb9644a43f70849e34db6c5a583c6265b1701a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 12\u002B corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLExceptionStatement.java:67-78 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLIfStatement.java:172-185 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLWhileStatement.java:78-91 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleCreatePackageStatement.java:51-67 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 12 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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLExceptionStatement.java"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7ba031e884e8d67b909b84dcb8f871184f102a36950ac81d1cf1927d52f9b92"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:8836-8845 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:8850-8863 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":8836}}}],"partialFingerprints":{"codehealthFindingId/v1":"968aeea47bdca3011fcad62f9b345e86bc6b1d7879ab5df7d14c4ea91cecc850"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): core/src/main/java/com/alibaba/druid/sql/builder/impl/SQLSelectBuilderImpl.java:127-140 | core/src/main/java/com/alibaba/druid/sql/builder/impl/SQLSelectBuilderImpl.java:143-156 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/sql/builder/impl/SQLSelectBuilderImpl.java"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"50439b202cb3577fff7a43a6f533aa6bce3cae051d7545075a51352e6feb56c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:850-858 | core/src/main/java/com/alibaba/druid/sql/dialect/presto/visitor/PrestoOutputVisitor.java:189-197 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":850}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f448b5a5ce0b7a50cea95afb2ecd376c2becc245295860e84d31b7ba96a6289"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:2996-3008 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:3079-3089 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":2996}}}],"partialFingerprints":{"codehealthFindingId/v1":"49a7c4b973471832566fc762833e8604164e88437d40530be563e5db8856042b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:5308-5319 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:1083-1092 | core/src/main/java/com/alibaba/druid/support/calcite/CalciteMySqlNodeVisitor.java:870-879 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":5308}}}],"partialFingerprints":{"codehealthFindingId/v1":"75dc9d18429aec834b4598edeb3be0e66174677893495a8383eff21a6c699698"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleSelectJoin.java:48-58 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleSelectSubqueryTableSource.java:46-55 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleSelectJoin.java"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3fa3806474187d376def880c9e0dd1dff221598b229e5e9f825cab971036143"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): core/src/main/java/com/alibaba/druid/pool/DruidPooledConnection.java:720-738 | core/src/main/java/com/alibaba/druid/pool/DruidPooledConnection.java:900-917 | core/src/main/java/com/alibaba/druid/pool/DruidPooledConnection.java:945-961 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 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":"core/src/main/java/com/alibaba/druid/pool/DruidPooledConnection.java"},"region":{"startLine":720}}}],"partialFingerprints":{"codehealthFindingId/v1":"14b68942acaa13c69ba111c5de93aa9f986b0d25d9cd03266abf6a3ded6d11f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): core/src/main/java/com/alibaba/druid/pool/DruidPooledConnection.java:793-812 | core/src/main/java/com/alibaba/druid/pool/DruidPooledConnection.java:827-842 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/pool/DruidPooledConnection.java"},"region":{"startLine":793}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c2a37c673ebf6d943f9241de5813127053708b37a83f9c8b1469128b91d490a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/SQLPartitionSingle.java:96-106 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/OraclePartitionSingle.java:212-224 \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":"core/src/main/java/com/alibaba/druid/sql/ast/SQLPartitionSingle.java"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"59f033dc0c26ae34cbd87cdc009cd04a8599ae332044a09b71a331d592cc7cbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 7\u002B corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLArrayExpr.java:113-119 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLContainsExpr.java:113-120 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLInListExpr.java:157-164 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLUnaryExpr.java:83-89 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectOrderByItem.java:100-107 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/expr/MySqlOrderingExpr.java:119-125 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 7 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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLArrayExpr.java"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e310727c18a7ce1eaefb02b810f53b1b951a0620f1071e0ade53a289c7d468d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLBinaryOpExpr.java:170-177 | core/src/main/java/com/alibaba/druid/stat/TableStat.java:290-297 | core/src/main/java/com/alibaba/druid/stat/TableStat.java:369-375 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLBinaryOpExpr.java"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ccaf089e17a6d0c760e1065b7fc503c57709dbd8f986a60c61462313f62117d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLBinaryOpExprGroup.java:69-78 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectGroupByClause.java:42-57 \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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLBinaryOpExprGroup.java"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b16140e8a9b9168fbc6456f961a1777d664a9398805890f28b88c6b0adeaa50"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLCaseExpr.java:169-175 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLCaseExpr.java:234-241 \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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLCaseExpr.java"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"99d921305112e1e8fc10d70d6d0fa5077f0ab9a481f8039a561dbbdd3e2e511a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 12\u002B corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableStatement.java:223-235 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateDatabaseStatement.java:222-235 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateIndexStatement.java:66-77 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDropDatabaseStatement.java:91-104 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 12 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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableStatement.java"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"23bf364a4802d76236caee17505c9741292ec21de2b830da7fb1b614fb52b3de"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:2351-2364 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:2366-2379 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":2351}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3c40ca9d9b39a780aaff3acd574063a30258e772e4274f3088f4515625e9a2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): core/src/main/java/com/alibaba/druid/stat/JdbcStatementStat.java:84-100 | core/src/main/java/com/alibaba/druid/support/http/stat/WebAppStat.java:238-255 | core/src/main/java/com/alibaba/druid/support/spring/stat/SpringMethodStat.java:181-200 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 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":"core/src/main/java/com/alibaba/druid/stat/JdbcStatementStat.java"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"e31b6ff35f5add8bd68c8429688319b317ac45360980e5718ac3336d96696978"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): druid-admin/src/main/java/com/alibaba/druid/admin/service/MonitorStatService.java:315-321 | druid-admin/src/main/java/com/alibaba/druid/admin/service/MonitorStatService.java:323-329 \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":"druid-admin/src/main/java/com/alibaba/druid/admin/service/MonitorStatService.java"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"864f5d916d3501f8bb771efdd8dd140567ee1ca3b24e00274d792ca2f3b51dbf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): core/src/main/java/com/alibaba/druid/sql/SQLUtils.java:2120-2138 | core/src/main/java/com/alibaba/druid/sql/SQLUtils.java:2140-2155 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/sql/SQLUtils.java"},"region":{"startLine":2120}}}],"partialFingerprints":{"codehealthFindingId/v1":"7836a43919b7b1d71bcf1a1db38bbba3e4113303c531df5004e6bd2b58480961"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLArrayExpr.java:151-163 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLValuesExpr.java:59-68 \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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLArrayExpr.java"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2165d5ae639e940dc63f65790f153d48959a6f63a207348240ff520bcc5a5f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 9\u002B corresponding lines): core/src/main/java/com/alibaba/druid/sql/SQLUtils.java:301-310 | core/src/main/java/com/alibaba/druid/sql/SQLUtils.java:312-321 | core/src/main/java/com/alibaba/druid/sql/SQLUtils.java:323-332 | core/src/main/java/com/alibaba/druid/sql/SQLUtils.java:334-343 | core/src/main/java/com/alibaba/druid/sql/SQLUtils.java:345-354 | core/src/main/java/com/alibaba/druid/sql/SQLUtils.java:680-688 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 9 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":"core/src/main/java/com/alibaba/druid/sql/SQLUtils.java"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"f180f34a28232aeb3a621361dba302591079db53d14345dc8bfc2e402d6fab63"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLCastExpr.java:80-91 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLInSubQueryExpr.java:96-108 \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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLCastExpr.java"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fab35ed9e0e81a513a15a4a9446d03cb865df20ce31a324cc44560045e4b027"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 7\u002B corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLExtractExpr.java:86-92 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLIntervalExpr.java:100-106 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTimestampExpr.java:198-205 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/ast/expr/PGAttrExpr.java:86-93 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 7 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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLExtractExpr.java"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"77096ff01752912136b07448577caa55e01bf1d292ee12753ef4226504f5f26c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLExprTableSource.java:146-161 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLTableSourceImpl.java:164-178 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLExprTableSource.java"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"d53d02bc8591f888d05cc6e23d6364658a6bc4b8eb91b8fc96f1f297672735a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleUpdateStatement.java:63-73 | core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/ast/stmt/SQLServerUpdateStatement.java:67-77 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleUpdateStatement.java"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1b89459ffbe8af62b549a5fa66a24d992cf681dfc61678dfb91f76134af1275"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:371-380 | core/src/main/java/com/alibaba/druid/sql/parser/SQLParser.java:920-930 \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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"d18513929b88fcbbc44d59f52a669c0ac013eb50ed90abfdd3215cb061cce8b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:5667-5681 | core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java:2370-2386 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":5667}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1450f448f8c75f17ed3a172f0a91a17c8d4d9751d4dc50bca35f168c5e86783"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 12\u002B corresponding lines): core/src/main/java/com/alibaba/druid/support/opds/udf/SqlParams.java:21-34 | core/src/main/java/com/alibaba/druid/support/opds/udf/SqlParamsFill.java:20-32 | core/src/main/java/com/alibaba/druid/support/opds/udf/SqlPattern.java:17-28 | core/src/main/java/com/alibaba/druid/support/opds/udf/SqlPatternHash.java:17-28 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 12 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":"core/src/main/java/com/alibaba/druid/support/opds/udf/SqlParams.java"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d119d90ffca6a9215ae8006a2fac78842e6e4aea21ded48d60581c856221dac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLCastExpr.java:130-140 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/ast/expr/PGTypeCastExpr.java:53-63 \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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLCastExpr.java"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"47f85f894d480d321a51bd5b77a749b7bb24d0ee31b923c54f47e641004afc22"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:3730-3741 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:10344-10356 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:10359-10371 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":3730}}}],"partialFingerprints":{"codehealthFindingId/v1":"4929028a51749fe3d6dc4d2bbe993094a08eb6eb5002e0d7c48cc30d35624725"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): core/src/main/java/com/alibaba/druid/wall/WallFilter.java:605-618 | core/src/main/java/com/alibaba/druid/wall/WallFilter.java:621-634 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/wall/WallFilter.java"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"3daa8596cd6d5592289e90589d0f0c0f9d73d22ce5085484ce46b3226d6296a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): core/src/main/java/com/alibaba/druid/wall/WallVisitor.java:240-250 | core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java:116-125 \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":"core/src/main/java/com/alibaba/druid/wall/WallVisitor.java"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"86723d89d127f185e5e2ca9cc37ff677535f38bdb5471b5d1df2e962d463070d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/ast/CKAlterTableUpdateStatement.java:43-54 | core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/ast/CKCreateTableStatement.java:73-87 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/ast/CKAlterTableUpdateStatement.java"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"10700ca9f28e570dc85728f7ef5646a3efb643eeeab2ea19f64ad0e7de580d9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleFunctionDataType.java:57-72 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleProcedureDataType.java:43-55 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleFunctionDataType.java"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"95d235ebd2356baa5c2795258fc9f30c2f17fc5c43272991290ed377e32737db"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/visitor/SQLServerOutputVisitor.java:367-378 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:6637-6649 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/visitor/SQLServerOutputVisitor.java"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"78dfed657f8bb82371170db07367d27335251b90ca2e9f98171d37e26e487425"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:4936-4954 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:8033-8046 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":4936}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba183bfb8e2dee2b36e6775447d831105e2d60f1b89b98a9ba5508d6c43add71"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLCaseStatement.java:130-141 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLCaseExpr.java:155-166 \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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLCaseStatement.java"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"45438ae9d4a2a92b0814a68d58600c3719fb75e5edd4dcc91ac0c554322b7322"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): core/src/main/java/com/alibaba/druid/pool/DruidPooledPreparedStatement.java:543-559 | core/src/main/java/com/alibaba/druid/pool/DruidPooledStatement.java:787-802 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"core/src/main/java/com/alibaba/druid/pool/DruidPooledPreparedStatement.java"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"80d116da72b7ad60cdc9bda49bc0036b9e71f4b1d427ccc85b477a2c08058093"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterViewStatement.java:225-233 | core/src/main/java/com/alibaba/druid/sql/dialect/dm/ast/stmt/DmInsertStatement.java:22-30 | core/src/main/java/com/alibaba/druid/sql/dialect/dm/ast/stmt/DmUpdateStatement.java:22-32 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterViewStatement.java"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"45539dd434c4052fe0dd6d3dec704bbdb769f72269feea4bfc48c73a26cb6fb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLColumnDefinition.java:305-313 | core/src/main/java/com/alibaba/druid/sql/dialect/hive/stmt/HiveCreateFunctionStatement.java:28-36 \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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLColumnDefinition.java"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d9e354894191b26787a829e15a779a58bbd8fa19d9984f1fbc4176005a89fa5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateFunctionStatement.java:97-106 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateProcedureStatement.java:55-64 \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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateFunctionStatement.java"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd7b8d62ad2be35db58b4110e2e5dd6300a61298402a7807a95eb8cd08d0bf13"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/ast/stmt/PGCopyStatement.java:106-116 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCopyFromStatement.java:21-30 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/ast/stmt/PGCopyStatement.java"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"18c86feadd753c1ae7f24bd38fca5d1bdc89dd913ed7f90fa0736a61f7bc9048"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): core/src/main/java/com/alibaba/druid/stat/JdbcConnectionStat.java:96-114 | core/src/main/java/com/alibaba/druid/stat/JdbcConnectionStat.java:116-134 | core/src/main/java/com/alibaba/druid/stat/JdbcConnectionStat.java:144-159 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 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":"core/src/main/java/com/alibaba/druid/stat/JdbcConnectionStat.java"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ff8e4ad8acd6a20bcbb6c2150599c815255ce1bf34715e785ab484c3c0249f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): core/src/main/java/com/alibaba/druid/support/json/JSONWriter.java:218-234 | core/src/main/java/com/alibaba/druid/support/json/JSONWriter.java:236-254 \u2014 These two members are one piece of code written twice and then edited apart: 17 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":"core/src/main/java/com/alibaba/druid/support/json/JSONWriter.java"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"97b77674082c992cade95b2587a7a6c085a1a2ae4405015a4672aea5d746dae7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java:2189-2196 | core/src/main/java/com/alibaba/druid/sql/parser/SQLParser.java:68-75 \u2014 These two members are one piece of code written twice and then edited apart: 8 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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java"},"region":{"startLine":2189}}}],"partialFingerprints":{"codehealthFindingId/v1":"3718157947dbe0f0021615f20881ac84558e5d34591ea74ac23f54ab297ec4f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLCaseExpr.java:93-103 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLCaseStatement.java:85-93 \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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLCaseExpr.java"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fd7411a6638f756a1dad95433392ad6c7841ea7f7bbaa50407fc5a451d7b81a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateTableStatement.java:446-457 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLInsertStatement.java:64-75 \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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateTableStatement.java"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"a20ab21972918fd757a30ed9fc6bf33a55aae0ecab369fb0fbdc8ac4e08dd8d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/SQLPartitionByHash.java:52-67 | core/src/main/java/com/alibaba/druid/sql/ast/SQLPartitionByList.java:41-53 \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":"core/src/main/java/com/alibaba/druid/sql/ast/SQLPartitionByHash.java"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"58455c61cabdc7c3cae70ac7523942d27400a44a04130997f61ab7ff150759c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/impala/parser/ImpalaStatementParser.java:47-57 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:1505-1515 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/impala/parser/ImpalaStatementParser.java"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8df2f8d647d61e2a93d4db7c7153f808faa8fe384742f16bf0978837f0046fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleCreateTableParser.java:532-543 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java:1894-1905 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleCreateTableParser.java"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d50bb57551606cde44f8061440ec3405a94807b25f9693902b7fdbcd707f98a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): core/src/main/java/com/alibaba/druid/support/http/stat/WebAppStatManager.java:102-113 | core/src/main/java/com/alibaba/druid/support/spring/stat/SpringStatManager.java:84-95 \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":"core/src/main/java/com/alibaba/druid/support/http/stat/WebAppStatManager.java"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdb4573d1155ee644c590b3a573b53a428b8b7b944ad8215fde9650a8d8897d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): core/src/main/java/com/alibaba/druid/pool/ha/selector/RandomDataSourceRecoverThread.java:82-93 | core/src/main/java/com/alibaba/druid/pool/ha/selector/RandomDataSourceValidateThread.java:269-281 \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":"core/src/main/java/com/alibaba/druid/pool/ha/selector/RandomDataSourceRecoverThread.java"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"58f0ca1eb648a3a78682831db3028132e686fd707db094ddf9592f96c9938e2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): core/src/main/java/com/alibaba/druid/proxy/jdbc/PreparedStatementProxyImpl.java:150-161 | core/src/main/java/com/alibaba/druid/proxy/jdbc/StatementProxyImpl.java:135-146 \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":"core/src/main/java/com/alibaba/druid/proxy/jdbc/PreparedStatementProxyImpl.java"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"38cfb43b6472bd786b2e92bbc9b8e2a585cb032f6005b691ea18cdadd89adb8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): core/src/main/java/com/alibaba/druid/proxy/jdbc/PreparedStatementProxyImpl.java:182-195 | core/src/main/java/com/alibaba/druid/proxy/jdbc/StatementProxyImpl.java:223-234 \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":"core/src/main/java/com/alibaba/druid/proxy/jdbc/PreparedStatementProxyImpl.java"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b99fbb8f6dd0fa9f22e7d150d7b34c9d0ea81216a397fe52cbf371ab5033dfa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/parser/CKExprParser.java:81-90 | core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerExprParser.java:77-86 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/parser/CKExprParser.java"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f93290723956c4bc025f5f548d717c1e32ba55db11dedbdea5fc9efac25f1cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLJoinTableSource.java:120-128 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java:532-541 \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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLJoinTableSource.java"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"f124ecfe6319b4fbc57dc5248e08993049e46a634a982d2d03c0025924729ad5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLReplaceStatement.java:152-160 | core/src/main/java/com/alibaba/druid/sql/dialect/hive/ast/HiveInsert.java:91-99 | core/src/main/java/com/alibaba/druid/sql/dialect/hive/ast/HiveInsertStatement.java:51-60 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLReplaceStatement.java"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea4066e39d0cd27d01fef464173d5619c6718b87df7a68a9d5610dadbec6856a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlAlterLogFileGroupStatement.java:30-38 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlAlterTablespaceStatement.java:32-40 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlAlterLogFileGroupStatement.java"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"e900630cf53e3db8e7cfc74cb2bd11daf44da4af335af29200a3e1e5094b339f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java:394-404 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java:884-895 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"23b87b208b588072de4b2dd58dcd534f391285bf109f69de0800df442b99d4c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): core/src/main/java/com/alibaba/druid/proxy/jdbc/ResultSetMetaDataProxyImpl.java:207-216 | core/src/main/java/com/alibaba/druid/proxy/jdbc/ResultSetProxyImpl.java:102-111 | core/src/main/java/com/alibaba/druid/proxy/jdbc/StatementProxyImpl.java:57-66 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 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":"core/src/main/java/com/alibaba/druid/proxy/jdbc/ResultSetMetaDataProxyImpl.java"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"7082a9d90fcd74e47c18512b6c7eb0213672f4ca97411ed6964841c92ef6bec7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLColumnDefault.java:41-57 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLConstraintImpl.java:132-143 \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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLColumnDefault.java"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"3407f8528d477d3ebe8a4153132b729fa1f672e8bcd89631c7e9c9f647a39133"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLExprTableSource.java:268-277 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLLateralViewTableSource.java:41-49 \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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLExprTableSource.java"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2a6b50a74b8dfc243ee5b70b991deb02b91979a66d6d929ca5d4ebed2b8838f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryLexer.java:136-145 | core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveLexer.java:109-117 | core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeLexer.java:167-176 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 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":"core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryLexer.java"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ed4f6b918b47a8d4e66f609fc6ffd9dd2b9dea2195becce685998aea8b8708c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleSelectTableReference.java:78-87 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLTableSourceImpl.java:254-261 \u2014 These two members are one piece of code written twice and then edited apart: 8 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleSelectTableReference.java"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"673753031506b7335751d753a7fc1c1932fbc1fb8ed76839ecc58fe39e8c77c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/SQLPartitionValue.java:69-79 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLBinaryOpExprGroup.java:81-91 \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":"core/src/main/java/com/alibaba/druid/sql/ast/SQLPartitionValue.java"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e3f9a90c60ca5ffce04b546d90dfbbb8d173c99d78db23bfbe759e75769c887"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCallStatement.java:73-80 | core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/ast/stmt/SQLServerExecStatement.java:55-62 \u2014 These two members are one piece of code written twice and then edited apart: 8 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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCallStatement.java"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0ccded693b4d2e52cfe9f89f24de6e58eb5d5a8f16af18214af1ff4536b9461"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLUnique.java:98-105 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleCreateIndexStatement.java:119-128 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OraclePrimaryKey.java:39-47 \u2014 These 3 members are one piece of code written 3 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 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLUnique.java"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f5c3ffff3334660cc8f061842975b942b2b42c196f5e32e021d54fd678b075d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/odps/ast/OdpsReadStatement.java:34-42 | core/src/main/java/com/alibaba/druid/sql/dialect/odps/ast/OdpsUndoTableStatement.java:40-47 \u2014 These two members are one piece of code written twice and then edited apart: 8 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":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/ast/OdpsReadStatement.java"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"e42a3323f29cc91f498faafcc7ef828341a2b7d068ef29f52bb5063a086481bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): core/src/main/java/com/alibaba/druid/pool/vendor/MSSQLValidConnectionChecker.java:37-47 | core/src/main/java/com/alibaba/druid/pool/vendor/OracleValidConnectionChecker.java:56-68 | core/src/main/java/com/alibaba/druid/pool/vendor/PGValidConnectionChecker.java:39-49 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 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":"core/src/main/java/com/alibaba/druid/pool/vendor/MSSQLValidConnectionChecker.java"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae95de3e79d9b65e352edc192041b2d15235988f7b21ee17f535add590642185"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlAlterTableChangeColumn.java:35-44 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlAlterTableModifyColumn.java:33-41 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlAlterTableChangeColumn.java"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"01ce5275255837bb33ab60567b5921ef29be854c9fa7bdd7312900e16733add1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/SQLDeclareItem.java:51-63 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLShowCreateTableStatement.java:66-76 \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":"core/src/main/java/com/alibaba/druid/sql/ast/SQLDeclareItem.java"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d457f45db34aa4a2d588df67ace7f1989bc43543c708d473a03f9aa87d5d2be"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/SQLPartitionBatch.java:35-42 | core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/ast/GaussDbPartitionValue.java:84-93 \u2014 These two members are one piece of code written twice and then edited apart: 8 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":"core/src/main/java/com/alibaba/druid/sql/ast/SQLPartitionBatch.java"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ea6a0082255528e1f0b165d2d831558b3c6d7cd7001e730b798119876b27d6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLAliasedExpr.java:143-147 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/expr/OracleIsOfTypeExpr.java:50-54 \u2014 These two members are one piece of code written twice and then edited apart: 5 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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLAliasedExpr.java"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"47c0cbc2aa69bedcfcbcc23a1433a42ef08b441d14198292b1cac63b5334e6bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAssignItem.java:51-55 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLUpdateSetItem.java:148-152 \u2014 These two members are one piece of code written twice and then edited apart: 5 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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAssignItem.java"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"95d5021e2dad1d032539393ed44cf6c0e1ebac337f6a2609fbb80dd6ef3a8761"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLExportTableStatement.java:58-66 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLImportTableStatement.java:63-72 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleLockTableStatement.java:84-91 \u2014 These 3 members are one piece of code written 3 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 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLExportTableStatement.java"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"c79c78ba4a6c4c5195b60ac59705ab6d5d6978ab805a50f48f60c012bf25eedc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 8\u002B corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLShowColumnsStatement.java:80-88 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLShowDatabasesStatement.java:69-76 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlShowEventsStatement.java:50-57 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlShowTableStatusStatement.java:55-63 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLShowColumnsStatement.java"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfc7bf9797f248fc5481465bb12b3b7ce81b2692e2e529b5f71c2a64aa195dc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlShowBinLogEventsStatement.java:27-34 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlShowRelayLogEventsStatement.java:51-58 \u2014 These two members are one piece of code written twice and then edited apart: 8 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlShowBinLogEventsStatement.java"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ddc6825cc3174322c39a0104f50ab013655fafc54c78e889dfe5ae86bfe748d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleCreateTableStatement.java:413-420 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleUsingIndexClause.java:47-54 \u2014 These two members are one piece of code written twice and then edited apart: 8 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleCreateTableStatement.java"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0097d34d046f266bcb0afa6ed000ea39ed8f8db728afb0e69aa213c70d1dd50"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLErrorLoggingClause.java:29-36 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLMergeStatement.java:33-42 \u2014 These two members are one piece of code written twice and then edited apart: 8 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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLErrorLoggingClause.java"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"255e03ff085c711cb2b1e218745bb2dcd87f04eb71eb61d280c1104a716b5fa1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/hive/ast/HiveInsert.java:80-89 | core/src/main/java/com/alibaba/druid/sql/dialect/hive/ast/HiveMultiInsertStatement.java:62-70 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/ast/HiveInsert.java"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"8da2f88964e1a674dc6c78c12c66cfa8229756087fd185c8080986aef08c823d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 8\u002B corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/hive/ast/HiveInsertStatement.java:40-49 | core/src/main/java/com/alibaba/druid/sql/dialect/hive/ast/HiveMultiInsertStatement.java:72-79 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/ast/stmt/OscarDeleteStatement.java:59-68 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/ast/stmt/PGDeleteStatement.java:75-85 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/ast/HiveInsertStatement.java"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bc6a0a194a1d21fe1321436a604d14e9af442e6be7e9ea91ae8b99019f793c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlRaftLeaderTransferStatement.java:29-37 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlRaftMemberChangeStatement.java:29-36 \u2014 These two members are one piece of code written twice and then edited apart: 8 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlRaftLeaderTransferStatement.java"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7115c6747ed797cdba38b0cc4d3802302a9153a2d9be7efce04951a0730e266"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 7\u002B corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlPartitionByKey.java:28-34 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlStatementImpl.java:32-38 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlSubPartitionByKey.java:32-38 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlSubPartitionByList.java:34-40 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlSubPartitionByValue.java:33-39 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 7 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlPartitionByKey.java"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce80eb599aa26c7d29bd4ada5973499be8fcabbb90abef0efd52a9e0ec43ea4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/sqlite/visitor/SQLiteOutputVisitor.java:66-73 | core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/visitor/SQLServerOutputVisitor.java:496-504 \u2014 These two members are one piece of code written twice and then edited apart: 8 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":"core/src/main/java/com/alibaba/druid/sql/dialect/sqlite/visitor/SQLiteOutputVisitor.java"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5ebead0fb2a71f8fdef864cf52db6a40f71b00d1a5f78c94e0e8d173b1ae1c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLExtractExpr.java:34-41 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLIntervalExpr.java:38-45 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLSizeExpr.java:83-92 \u2014 These 3 members are one piece of code written 3 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 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLExtractExpr.java"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"b422bea8e7e1e3630958ab48842f3d2c383efb3327ec8220301bcb7861edf379"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLArchiveTableStatement.java:34-43 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLBuildTableStatement.java:30-36 \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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLArchiveTableStatement.java"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"846649d7d3540d23df1b7b62f11b8c831419d8621b513a5682fb9deea6771c93"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectOrderByItem.java:169-178 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/expr/MySqlOrderingExpr.java:39-46 \u2014 These two members are one piece of code written twice and then edited apart: 8 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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectOrderByItem.java"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"59722c467b61d39f21e2407941a16dac3d20a7546d7193277840a2b53fd92a8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:2390-2396 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:2883-2892 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":2390}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2b2927996622ffb06bde8c01ff8c83c9ddf499838f9388e4543199f0b3e99ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLIdentifierExpr.java:64-72 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLPropertyExpr.java:148-157 \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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLIdentifierExpr.java"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"249f46610d6c2aa5f66d2089a0b81a651bca9420231b416c813286a0bb1e17af"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLBackupStatement.java:32-40 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLRestoreStatement.java:31-38 \u2014 These two members are one piece of code written twice and then edited apart: 8 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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLBackupStatement.java"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"f08eed3a89ef782b8cf77bd14e993d290f06b42e9eddbbee8f4a3099a0278c99"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerStatementParser.java:270-279 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:3820-3829 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerStatementParser.java"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"69ddebe4cccd43371f4dc93e50c2efded400a0ee2e87a5d3f17a83f2399ac644"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java:1207-1211 | core/src/main/java/com/alibaba/druid/util/JdbcUtils.java:859-864 \u2014 These two members are one piece of code written twice and then edited apart: 5 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":"core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java"},"region":{"startLine":1207}}}],"partialFingerprints":{"codehealthFindingId/v1":"2001b56935272a12f273ba988855c504c40bc54cd2b923b14f39ba3256420b5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterFunctionStatement.java:100-107 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlCreateExternalCatalogStatement.java:72-78 \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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterFunctionStatement.java"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7537ce471395597ea08768ec98362d9f6e3c54407a54371c504dc1c61620ebe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlAlterServerStatement.java:51-57 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleCreateDatabaseDbLinkStatement.java:103-111 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlAlterServerStatement.java"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"78a71ef06a96278029a03ef0c2ea11dd5003bb1deed448e8884cf9817f70a4c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlExportParameterVisitor.java:95-102 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleExportParameterVisitor.java:86-93 \u2014 These two members are one piece of code written twice and then edited apart: 8 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlExportParameterVisitor.java"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"e714f7a0032346479c7cdc0b41c08634dc3dbaf2e1378141ef042f0334fa3520"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlExportParameterVisitor.java:105-112 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleExportParameterVisitor.java:96-102 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlExportParameterVisitor.java"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c4f312591a7410fa6a3bfa57d2572dbbc11b66d8b2770c3fdb067e5b1a52684"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): core/src/main/java/com/alibaba/druid/wall/spi/MySqlWallVisitor.java:133-140 | core/src/main/java/com/alibaba/druid/wall/spi/SQLServerWallVisitor.java:107-113 \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":"core/src/main/java/com/alibaba/druid/wall/spi/MySqlWallVisitor.java"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"42c2049bc748437fafb6de903dd9fd4b090a826c2631251ea508d711e43d6521"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): core/src/main/java/com/alibaba/druid/proxy/jdbc/WrapperProxyImpl.java:101-106 | core/src/main/java/com/alibaba/druid/sql/ast/SQLObjectImpl.java:153-159 \u2014 These two members are one piece of code written twice and then edited apart: 6 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":"core/src/main/java/com/alibaba/druid/proxy/jdbc/WrapperProxyImpl.java"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"0faefa7934cd6c92d4cc286ce49e91b71927a724b1875d12b34fc413e0515ff7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 7\u002B corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/SQLSubPartitionByList.java:24-30 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableAlterColumn.java:40-47 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableRenameColumn.java:30-36 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlAlterTableAlterColumn.java:31-37 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 7 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":"core/src/main/java/com/alibaba/druid/sql/ast/SQLSubPartitionByList.java"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dae35523f1aafbcffd5c9077c45f9e3d14714a53be5b8e70435da5bb97c6099"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableAddPartition.java:74-81 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableExchangePartition.java:35-41 \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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableAddPartition.java"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"176aca91b4f993b32011772adca2b69b1b646e498f80a4921c5725c1822a74ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableDropSubpartition.java:33-39 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableSubpartitionLifecycle.java:33-39 \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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableDropSubpartition.java"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"d373652dfe4b94480d40df36ebe550d1a921d029b6d2fcf65e3ecc9e26b1522e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 7\u002B corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTablePartitionSetProperties.java:43-50 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableRenamePartition.java:47-53 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/clause/PartitionExtensionClause.java:51-57 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleAlterTableSplitPartition.java:92-98 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 7 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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTablePartitionSetProperties.java"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd0713a6fd3fecf253a6b754af9101591760ea45cf5b52fd303ca911b9a9a44c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCloneTableStatement.java:108-114 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSyncMetaStatement.java:16-22 \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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCloneTableStatement.java"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"efbb63c0c9cf5ab0fd3cb918388503ce581ffb12ed2dc0b6314cc7d19e614e17"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateUserStatement.java:73-79 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlCreateUserStatement.java:116-123 | core/src/main/java/com/alibaba/druid/sql/dialect/odps/ast/OdpsShowGrantsStmt.java:35-41 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateUserStatement.java"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e80289c273989bb32353d36996e073409bb743bfdb1fa829f722052a83a4341"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLExceptionStatement.java:59-65 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleMultiInsertStatement.java:144-150 \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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLExceptionStatement.java"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ff94a2f7948e3a7f38fed5a840ed145089decf45c2e87b593e3953ea4cf1c71"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLFetchStatement.java:31-37 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLOpenStatement.java:59-66 \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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLFetchStatement.java"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"c336b703a70a5cb25fcb7a8527bbe7a016a09db3b40948fb5366b2bcf03659dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLPurgeLogsStatement.java:39-45 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLRollbackStatement.java:44-51 \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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLPurgeLogsStatement.java"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6d6e937504d17b512fdd1d7bc1dc441866c81d5cbf65193ddd75e8352ca73c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLShowTablesStatement.java:78-84 | core/src/main/java/com/alibaba/druid/sql/dialect/sqlite/ast/SQLiteAttachStatement.java:47-53 \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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLShowTablesStatement.java"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4124e804699e4c5a8d441f92d5bce2ae06740f7a6f04768c645e3810aebe5bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlAlterTableAlterFullTextIndex.java:31-37 | core/src/main/java/com/alibaba/druid/sql/dialect/starrocks/ast/StarRocksIndexDefinition.java:62-69 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlAlterTableAlterFullTextIndex.java"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7384b4e8a1902a3024265f26235963fd6431051a947b21c73c34d77f5c85e9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlExecuteStatement.java:42-48 | core/src/main/java/com/alibaba/druid/sql/dialect/starrocks/ast/statement/StarRocksCreateTableStatement.java:49-56 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlExecuteStatement.java"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"2821c56fea23fe7c1c712bb85add5e70d8c3fefbfe675ea893a6c1ae37439918"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/clause/OracleReturningClause.java:53-59 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/clause/SearchClause.java:68-74 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleMultiInsertStatement.java:113-119 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/clause/OracleReturningClause.java"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"00576dad8f8f3f949bce8cddc308200e90cbfd487221eb7b35597816e567227b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): core/src/main/java/com/alibaba/druid/proxy/jdbc/ConnectionProxyImpl.java:518-524 | core/src/main/java/com/alibaba/druid/proxy/jdbc/ResultSetProxyImpl.java:1597-1603 \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":"core/src/main/java/com/alibaba/druid/proxy/jdbc/ConnectionProxyImpl.java"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2e85a0560989101d3c48bf3a78503e9d705e172873ac0bfc3cafd934edacf9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateDatabaseStatement.java:198-208 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDropTableSpaceStatement.java:56-66 \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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateDatabaseStatement.java"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"54b0b652790e36c2808fa4c10b55e5b22d8c160a25e094d3e8a2f88ca2779a9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): core/src/main/java/com/alibaba/druid/pool/DruidPooledCallableStatement.java:491-497 | core/src/main/java/com/alibaba/druid/pool/DruidPooledPreparedStatement.java:790-798 \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":"core/src/main/java/com/alibaba/druid/pool/DruidPooledCallableStatement.java"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7f0f21c87f15a476a023a0be7d2a6eef5dacd9f7aa34296e1bbf68a0172f1ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (7 members, 7\u002B corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/SQLArgument.java:36-46 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLFlashbackExpr.java:82-89 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLNotExpr.java:104-110 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLExprHint.java:53-59 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLReturnStatement.java:57-63 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/expr/OracleAnalyticWindowing.java:66-73 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/expr/OracleOuterExpr.java:38-44 \u2014 These 7 members are one piece of code written 7 times and then edited apart: every two of them correspond over at least 7 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 7 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/SQLArgument.java"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8941929cde3fcc553dc49172857cb2362dc8a49a5d53f2406293b86f23b0c12"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 7\u002B corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLAllExpr.java:36-42 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLAnyExpr.java:39-45 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLExistsExpr.java:111-120 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLSomeExpr.java:39-45 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 7 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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLAllExpr.java"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"87dbf8040741afb217f5e0382d34e167f86a357e4e679d5f147a9ebbda195465"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:2559-2564 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:10192-10197 \u2014 These two members are one piece of code written twice and then edited apart: 6 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":2559}}}],"partialFingerprints":{"codehealthFindingId/v1":"d53b69f8bc9cddb8b0b92c1ed3ed6ce7dad577254671f6cfa555b848a7d151ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): core/src/main/java/com/alibaba/druid/stat/DruidStatService.java:177-180 | druid-admin/src/main/java/com/alibaba/druid/admin/service/MonitorStatService.java:254-257 \u2014 These two members are one piece of code written twice and then edited apart: 4 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":"core/src/main/java/com/alibaba/druid/stat/DruidStatService.java"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"987541247a13281e1d657fd536e92499a254f7804544e0f5c11f0ba07ce9b0d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): core/src/main/java/com/alibaba/druid/stat/DruidStatService.java:199-202 | druid-admin/src/main/java/com/alibaba/druid/admin/service/MonitorStatService.java:298-301 \u2014 These two members are one piece of code written twice and then edited apart: 4 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":"core/src/main/java/com/alibaba/druid/stat/DruidStatService.java"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"816c004063889f824e794102a04833b09362d30f2b6d9c705d17da1a694555ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): core/src/main/java/com/alibaba/druid/stat/DruidStatService.java:204-207 | druid-admin/src/main/java/com/alibaba/druid/admin/service/MonitorStatService.java:303-306 \u2014 These two members are one piece of code written twice and then edited apart: 4 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":"core/src/main/java/com/alibaba/druid/stat/DruidStatService.java"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"3752d44511c33f5d81d7ce778b6534e924fe8ceca6c65de894a5cd7ac32df3e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectItem.java:152-159 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLTableAliasCollectVisitor.java:106-112 \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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectItem.java"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1b81e5e096c7bb227b38b693993b1822f28f535b9b95fc6ff4e6d5c1f21d600"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): core/src/main/java/com/alibaba/druid/sql/dialect/h2/visitor/H2OutputVisitor.java:338-344 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:479-485 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/h2/visitor/H2OutputVisitor.java"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f5c538a157213d511b5ca51edc4f8d4dff03a5152c1fae941e325443d3b8d68"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): core/src/main/java/com/alibaba/druid/support/http/stat/WebAppStat.java:292-300 | core/src/main/java/com/alibaba/druid/support/monitor/dao/MonitorDaoJdbcImpl.java:746-752 \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":"core/src/main/java/com/alibaba/druid/support/http/stat/WebAppStat.java"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b3c8b7358bef1c24c681d29c769396ba252948be778ebfb27830fda1fad827f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (110 lines \u00D7 2): core/src/main/java/com/alibaba/druid/support/http/WebStatFilter.java:67-176 | core/src/main/java/com/alibaba/druid/support/jakarta/WebStatFilter.java:66-175 \u2014 \u0060core/src/main/java/com/alibaba/druid/support/http/WebStatFilter.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/support/jakarta/WebStatFilter.java\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 7 separate duplicated blocks between them, totalling at least 261 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: \u0060HttpServletRequest\u0060 names \u0060jakarta.servlet.http.HttpServletRequest\u0060 in one and \u0060javax.servlet.http.HttpServletRequest\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, 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":"core/src/main/java/com/alibaba/druid/support/http/WebStatFilter.java"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"36034da71805364a7c8cbdb8eb5d47988baaa49cfc439c9cf2dd29b51b55c547"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (126 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLDateExpr.java:161-286 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTimestampNTZExpr.java:187-312 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLDateExpr.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTimestampNTZExpr.java\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 262 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLDateExpr.java"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"26632eef0e71679290ea473249f5d2de94a10ccd176cc5b7f6b095d399e3249e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (95 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:2281-2375 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:2774-2868 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 99 separate duplicated blocks between them, totalling at least 1839 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":2281}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cbe4e2d4e402bd1669bb2db53c378237eab8b2c5f6141a4ce0f3f02eb819db3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (88 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java:2628-2715 | core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java:2763-2850 \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 \u0060core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java:2628\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":"core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java"},"region":{"startLine":2628}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fdb2a7c2687f280b0981740a3bc1f74bc1af022cf4ec0140c940fdf21aca71a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (86 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:2279-2364 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:7875-7960 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:2279\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:7961\u0060 calls \u0060isNotNull\u0060, \u0060print0\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:2366\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":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java"},"region":{"startLine":2279}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cc4c106a7a6b694966836d5691db02b0dc04472b6e9f61163f61b3597628ba7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (84 lines \u00D7 2): core/src/main/java/com/alibaba/druid/support/http/WebStatFilter.java:202-285 | core/src/main/java/com/alibaba/druid/support/jakarta/WebStatFilter.java:201-284 \u2014 \u0060core/src/main/java/com/alibaba/druid/support/http/WebStatFilter.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/support/jakarta/WebStatFilter.java\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 7 separate duplicated blocks between them, totalling at least 261 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/support/http/WebStatFilter.java:202\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":"core/src/main/java/com/alibaba/druid/support/http/WebStatFilter.java"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"d868e03f2bd101da28a9db6dd19f3136988f29205b188d08c8a506825b406080"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (78 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2ExprParser.java:214-291 | core/src/main/java/com/alibaba/druid/sql/dialect/h2/parser/H2ExprParser.java:95-172 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2ExprParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/h2/parser/H2ExprParser.java\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 94 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2ExprParser.java"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"41bc2c7bf38472c5a21c0990f5ec8dfcd2af5c0b7e09c74c87c409c9750007fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (76 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java:1405-1480 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java:1509-1584 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java:1405\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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java"},"region":{"startLine":1405}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aa0ec0cd9278fc2bcb7d08c62f4e546a4b4f0620cc68579822f6c76c3c401a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (71 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:8755-8825 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:8864-8934 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060SQLCreateSequenceStatement\u0060 in one and \u0060SQLAlterSequenceStatement\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:8752\u0060 calls \u0060print0\u0060, \u0060getName\u0060, \u0060accept\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:8862\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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":8755}}}],"partialFingerprints":{"codehealthFindingId/v1":"b162bd5fcd7a994a48763f6f65b1baa24751862e6cdeb217b71bb7a33c212732"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (83\u201385 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveStatementParser.java:276-360 | core/src/main/java/com/alibaba/druid/sql/dialect/presto/parser/PrestoStatementParser.java:393-475 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveStatementParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/presto/parser/PrestoStatementParser.java\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 247 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveStatementParser.java:276\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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveStatementParser.java"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"1faa9e530752dbbdd7d7c2ea5e758522e30497068bee2f6fcc2407038423e31c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (66 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:5598-5663 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:5681-5746 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:5598\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":5598}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0db37fb37bde09ffbce6c3ca19b06bd245334a59d9f1dc5cbdc15642c0e724a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (66 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarLexer.java:100-165 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGLexer.java:104-169 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarLexer.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGLexer.java\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 217 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarLexer.java:100\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarLexer.java"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9e3a43ddbd436de9cf1754ab033f298510cd328dd58a2d8f773e2078ef4d611"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (72 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmExprParser.java:101-172 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java:995-1066 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarExprParser.java:153-224 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmExprParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarExprParser.java\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 203 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmExprParser.java:101\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":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmExprParser.java"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"e03e7664ee120990b8dd080617369d300b7f2045872fa78c2b37d9c89673536a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (63 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveStatementParser.java:207-269 | core/src/main/java/com/alibaba/druid/sql/dialect/presto/parser/PrestoStatementParser.java:311-373 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveStatementParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/presto/parser/PrestoStatementParser.java\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 247 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveStatementParser.java:207\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":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveStatementParser.java"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"50300ded2e163c9ec10b99d5924e85d209f20d3206439d627d07bbbe72b97a3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (63 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarExprParser.java:341-403 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGExprParser.java:543-605 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarExprParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGExprParser.java\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 294 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarExprParser.java:341\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarExprParser.java"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"96b7be47f713f2f6ff3d71bf70dbdea16b5745bdcc7ee42d79d109e196a8d451"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (78 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java:147-224 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java:154-231 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 578 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java:147\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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b97bee6b8e39855277f2ec03b9c51ba25d1c6a351af55774d2d923cfbd6a9b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (56 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveStatementParser.java:64-119 | core/src/main/java/com/alibaba/druid/sql/dialect/presto/parser/PrestoStatementParser.java:232-287 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveStatementParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/presto/parser/PrestoStatementParser.java\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 247 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveStatementParser.java"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc6c70a0f218374b05d6395f40c0192fb2e156f5eabc2010ee9ab7ab5c998c39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (55 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarExprParser.java:287-341 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGExprParser.java:482-536 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarExprParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGExprParser.java\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 294 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarExprParser.java:287\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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarExprParser.java"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"33561f3297921be01663a82b7e404953d0ffd7c029318a3e564975a7a53dccbf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (49 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:1987-2035 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:2480-2528 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 99 separate duplicated blocks between them, totalling at least 1839 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":1987}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fa6818bd8a50249ec9cf3898e7180114409bd1328c676e0633729e24aa8a7f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (49 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:617-665 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:9816-9864 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:617\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":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fe299a0eb2eacecaa3cc78ccd647dd25ffc75e3f692afbb671f2a799b6572b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (48 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:4262-4309 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:4335-4382 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:4384\u0060 calls \u0060identifierEquals\u0060, \u0060nextToken\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:4311\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":4262}}}],"partialFingerprints":{"codehealthFindingId/v1":"7100a055500a6205ed53608f46165d59763e49385498e226d704c10807e2eded"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (48 lines \u00D7 2): core/src/main/java/com/alibaba/druid/stat/DruidStatService.java:212-259 | druid-admin/src/main/java/com/alibaba/druid/admin/service/MonitorStatService.java:471-518 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/stat/DruidStatService.java\u0060 and \u0060druid-admin/src/main/java/com/alibaba/druid/admin/service/MonitorStatService.java\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 108 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/stat/DruidStatService.java"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"1233faf2ed9a3d2421d3631158e7570b3fb12d1562fd665391ec1b997c7f33f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (46 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:2455-2500 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:1384-1429 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:1761-1806 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 1096 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:2455\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":2455}}}],"partialFingerprints":{"codehealthFindingId/v1":"6640565b6fa1b88f570e95d2c0ce4c65e5e01956b81ff3c7dfb5e0c588ae5791"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40\u201346 lines \u00D7 2): core/src/main/java/com/alibaba/druid/pool/vendor/OceanBaseOracleExceptionSorter.java:67-106 | core/src/main/java/com/alibaba/druid/pool/vendor/OracleExceptionSorter.java:84-129 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/pool/vendor/OceanBaseOracleExceptionSorter.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/pool/vendor/OracleExceptionSorter.java\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 98 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/pool/vendor/OceanBaseOracleExceptionSorter.java:67\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":"core/src/main/java/com/alibaba/druid/pool/vendor/OceanBaseOracleExceptionSorter.java"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"20626dce2b342766403fa012295f1fc9eeb62ad60ce5ef41ed5f6afad7821c02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (44\u201345 lines \u00D7 5): core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryLexer.java:197-240 | core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryLexer.java:364-408 | core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveLexer.java:123-167 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java:491-535 | core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java:1802-1846 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryLexer.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveLexer.java\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 176 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryLexer.java:197\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java:1799\u0060 calls \u0060scanString2\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryLexer.java:360\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":"core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryLexer.java"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"a86450307d1ff9aaae893a36bd4d5bac410c5083dfebed291457eb3934f6216d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (45 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:562-606 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:1919-1963 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:2412-2456 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 1096 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"5956ef2b3453537c93f4e9a7cc1cd74122c0523672183328295946145a0708e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (44 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:2383-2426 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:1311-1354 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:1688-1731 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 1096 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":2383}}}],"partialFingerprints":{"codehealthFindingId/v1":"89353c0dfd580aa6a665a99db8bd060b027ffcc3a03c4973fab7cb49812b8bd0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (44 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLDateTimeExpr.java:94-137 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTimeExpr.java:106-149 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLDateTimeExpr.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTimeExpr.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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLDateTimeExpr.java"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"72aee94982400823a7caf2307e5392a27dd5bd88ee98f1c9de1445c2c06e8cc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (44 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java:320-363 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java:445-488 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 578 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java:320\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"e883b58e35ca61767ce6f941da39e57f0c9abfb3d6753506b2c1de12e1c50ec0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectParser.java:727-769 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSelectParser.java:369-411 | core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java:1555-1597 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \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 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectParser.java:727\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectParser.java:725\u0060 calls \u0060setRows\u0060, \u0060token\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java:1554\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectParser.java"},"region":{"startLine":727}}}],"partialFingerprints":{"codehealthFindingId/v1":"158470a89a567e5e9788f2d80a5949a59613bf27bcd38c27605d5d5da6da21bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:1669-1710 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:2059-2100 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 99 separate duplicated blocks between them, totalling at least 1839 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:1669\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":1669}}}],"partialFingerprints":{"codehealthFindingId/v1":"5532a5a8226301bc2bc05b4c0a05c77855bdcfe8c609978f84042bbeb57e5e2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:1663-1703 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:1704-1744 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:2094-2134 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 1096 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:1663\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":1663}}}],"partialFingerprints":{"codehealthFindingId/v1":"16323c97923c0af9f2a0ec7bbd396f3343b3619239788a67da30e5357e39dafc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java:642-682 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java:1180-1220 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 578 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java:642\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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"97a920ae819c18a8b383b17e4aad629961f636a26b3786f254f121fb5227d8ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39\u201341 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:7499-7537 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:7545-7585 \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 \u0060core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:7499\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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":7499}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bd7c91173b30b1b982d6e95f54cae88ba1df08184d9b4ab1bbde0be1dcf8133"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:294-333 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:299-338 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 99 separate duplicated blocks between them, totalling at least 1839 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060OscarInsertStatement\u0060 in one and \u0060PGInsertStatement\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:298\u0060 calls \u0060printOnConflict\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:292\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"f187e908b0c80b10911e53066eb97913b52c7aacdca179645a61584f41527e5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDeleteStatement.java:265-302 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java:1509-1546 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLUpdateStatement.java:333-370 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDeleteStatement.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 65 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDeleteStatement.java:265\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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDeleteStatement.java"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"949423ba74129131e27addf9ea8fcb524810abd47bea0bea37674ff63a87e000"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/phoenix/parser/PhoenixStatementParser.java:39-76 | core/src/main/java/com/alibaba/druid/sql/dialect/presto/parser/PrestoStatementParser.java:95-132 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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":"core/src/main/java/com/alibaba/druid/sql/dialect/phoenix/parser/PhoenixStatementParser.java"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"7318f93d7d9981b1a5724a49cccd67886048dcd2e387cfaeb13b46f9b6f71d50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 2): core/src/main/java/com/alibaba/druid/support/http/AbstractWebStatImpl.java:87-124 | core/src/main/java/com/alibaba/druid/support/jakarta/AbstractWebStatImpl.java:86-123 \u2014 \u0060core/src/main/java/com/alibaba/druid/support/http/AbstractWebStatImpl.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/support/jakarta/AbstractWebStatImpl.java\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 5 separate duplicated blocks between them, totalling at least 117 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: \u0060HttpServletRequest\u0060 names \u0060jakarta.servlet.http.HttpServletRequest\u0060 in one and \u0060javax.servlet.http.HttpServletRequest\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, 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":"core/src/main/java/com/alibaba/druid/support/http/AbstractWebStatImpl.java"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"fda0919db72696806d4de6b0ddf1905abff79ed6ce51bba94d9f10149fb1091e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:2629-2665 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:1551-1587 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:1928-1964 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 1096 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:2629\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:2666\u0060 calls \u0060getParameters\u0060, \u0060size\u0060, \u0060equals\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:1588\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":2629}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d35f140b24507b7ca6f067d87e63476dbaef0f600aa9de2435461c675d3f731"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2): core/src/main/java/com/alibaba/druid/support/http/StatViewServlet.java:167-203 | core/src/main/java/com/alibaba/druid/support/jakarta/StatViewServlet.java:167-203 \u2014 \u0060core/src/main/java/com/alibaba/druid/support/http/StatViewServlet.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/support/jakarta/StatViewServlet.java\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 7 separate duplicated blocks between them, totalling at least 136 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/support/http/StatViewServlet.java"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"385e15e2f1067911a46ba9e245face27c319754b3f1cb19cbfc3220fa6de2c3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:927-962 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:1049-1084 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:1429-1464 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 1096 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":927}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dcb823635e636b91abd113cc99bd8c66355223482eefdcb1812736c6126cf61"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:2521-2556 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:1451-1486 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:1828-1863 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 1096 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:2521\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":2521}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f6a2df4771158bdc15bdc3571744bf6064fa42335eace9bff4c82c9cc0bb7ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35\u201336 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java:854-888 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java:964-999 \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 \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java:854\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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java"},"region":{"startLine":854}}}],"partialFingerprints":{"codehealthFindingId/v1":"621f0f66483dc91e6f6698d9cd42d72bc36d5cf3f3123f2d61ded07de9c37ab3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryOutputVisitor.java:281-316 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:2059-2094 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 148 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:2096\u0060 calls \u0060visitAggregateRest\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryOutputVisitor.java:318\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryOutputVisitor.java"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"cad5913642c7afcee831ec7f53f4291c0d0b0596f7ed0f00d8e0a71c62de90f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java:2320-2355 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java:2411-2446 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java:2320\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java"},"region":{"startLine":2320}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc2b82f2df00f93de70b0b7bd81df0bfbf683574ae5201b04b27bd34632a488b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarExprParser.java:92-127 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGExprParser.java:272-307 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarExprParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGExprParser.java\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 294 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarExprParser.java:92\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarExprParser.java"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea39f568c506ff568f58f8932664dcc0283b4f7bf9c3f580f1503e94f922defa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java:515-550 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java:1035-1070 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 578 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java:515\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"02934ebbc2bb2d65617b9ed8d7360fdcf295cb148928b4db5a5172c2360b476e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java:2586-2621 | core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java:2722-2757 \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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java"},"region":{"startLine":2586}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f74fae5358c0917d49a97e2754aa0e239149fc16d3428f39030be96a02fbbb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34\u201335 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmExprParser.java:185-218 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarExprParser.java:257-291 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGExprParser.java:452-486 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmExprParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarExprParser.java\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 203 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmExprParser.java:185\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":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmExprParser.java"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"c279f3791ade98b9f14381c8dcb725bc6c070aa4ad5031093c5d04ae3d31117b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveLexer.java:179-213 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java:547-581 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveLexer.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 238 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveLexer.java:179\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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveLexer.java"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e81f15c28478e947a64145e123a4ab8e4eb0df0887f05dcf29dd1e8d8c09271"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34\u201335 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleSelectParser.java:1039-1073 | core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java:2492-2525 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleSelectParser.java:1039\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleSelectParser.java"},"region":{"startLine":1039}}}],"partialFingerprints":{"codehealthFindingId/v1":"edca85604a2f352f34778d1476a33e602dc8827fc8d204d6189229ca6c971a17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:1221-1255 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:1601-1635 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 99 separate duplicated blocks between them, totalling at least 1839 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:1221\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":1221}}}],"partialFingerprints":{"codehealthFindingId/v1":"54735a23bd4ac3f50a1d0c94ad277b58d4f2518e09547f14422f7ec280330365"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:1679-1713 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:1747-1781 \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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":1679}}}],"partialFingerprints":{"codehealthFindingId/v1":"9838da7861d12774490c31ac4ea2041228865fbb6c02a92545d32274ecae822a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java:596-629 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java:1126-1159 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 578 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java:596\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"9969b3570331d41e9d85ce39c38e9a148e0919d016a36b522d6f6642ec73a679"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:6353-6386 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:6891-6924 \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 \u0060core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:6353\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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":6353}}}],"partialFingerprints":{"codehealthFindingId/v1":"840b5395e62b5aa64b2955f696b5a6fd10fca41e1408d22156d25178d684f1b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): core/src/main/java/com/alibaba/druid/support/http/ResourceServlet.java:337-370 | core/src/main/java/com/alibaba/druid/support/jakarta/ResourceServlet.java:318-351 \u2014 \u0060core/src/main/java/com/alibaba/druid/support/http/ResourceServlet.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/support/jakarta/ResourceServlet.java\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 12 separate duplicated blocks between them, totalling at least 238 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/support/http/ResourceServlet.java:337\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":"core/src/main/java/com/alibaba/druid/support/http/ResourceServlet.java"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"18123ff0b85a3bda7f9e3ed1ba9a3f6bbc43b31702472d11e8417d6686b18211"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveCreateTableParser.java:317-349 | core/src/main/java/com/alibaba/druid/sql/dialect/impala/parser/ImpalaCreateTableParser.java:140-172 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveCreateTableParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/impala/parser/ImpalaCreateTableParser.java\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 81 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveCreateTableParser.java:317\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":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveCreateTableParser.java"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc660b2665b42864c632855b5e3368320c263eabc6a098fa010b19da47217763"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32\u201333 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:930-962 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:7524-7555 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java"},"region":{"startLine":930}}}],"partialFingerprints":{"codehealthFindingId/v1":"442f44d36db14060d804c42c750ec2646c119a300d544e9de85ce7ff0dcbc46c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): core/src/main/java/com/alibaba/druid/support/http/AbstractWebStatImpl.java:168-200 | core/src/main/java/com/alibaba/druid/support/jakarta/AbstractWebStatImpl.java:167-199 \u2014 \u0060core/src/main/java/com/alibaba/druid/support/http/AbstractWebStatImpl.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/support/jakarta/AbstractWebStatImpl.java\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 5 separate duplicated blocks between them, totalling at least 117 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: \u0060Cookie\u0060 names \u0060jakarta.servlet.http.Cookie\u0060 in one and \u0060javax.servlet.http.Cookie\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, 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":"core/src/main/java/com/alibaba/druid/support/http/AbstractWebStatImpl.java"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"425b38ef142a3ec342be0ac16edd61cfcbb497c1a2bceaca1d67f64bb7a472a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (53 lines \u00D7 2): core/src/main/java/com/alibaba/druid/support/http/StatViewFilter.java:43-95 | core/src/main/java/com/alibaba/druid/support/jakarta/StatViewFilter.java:42-94 \u2014 \u0060core/src/main/java/com/alibaba/druid/support/http/StatViewFilter.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/support/jakarta/StatViewFilter.java\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 5 separate duplicated blocks between them, totalling at least 103 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/support/http/StatViewFilter.java:43\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":"core/src/main/java/com/alibaba/druid/support/http/StatViewFilter.java"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a809e72dbdbff4a00ce94b00cc988312f5fc0b2e3f4437857a26a1a63c3ad38"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): core/src/main/java/com/alibaba/druid/util/MySqlUtils.java:1006-1038 | core/src/main/java/com/alibaba/druid/util/MySqlUtils.java:1459-1491 \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 \u0060core/src/main/java/com/alibaba/druid/util/MySqlUtils.java:1006\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":"core/src/main/java/com/alibaba/druid/util/MySqlUtils.java"},"region":{"startLine":1006}}}],"partialFingerprints":{"codehealthFindingId/v1":"080712f902b02053672e6fd9d4a79418179486da4760e56444df656f68aa3269"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmStatementParser.java:41-72 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java:64-95 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java:66-97 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmStatementParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 279 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmStatementParser.java:41\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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmStatementParser.java"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b8054362336a47d1e1c44d11160742cb0d1838a8ee8ad16017c014d15918d59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:2668-2699 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:1588-1619 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:1965-1996 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 1096 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:2668\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":2668}}}],"partialFingerprints":{"codehealthFindingId/v1":"4692ca294816dccc0672b5049095f8c8dd863fb00eca8680344a0c27e02a220d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31\u201332 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryLexer.java:254-285 | core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryLexer.java:420-450 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryLexer.java:254\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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryLexer.java"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"a680989cd726b2b3a15d02a6a75883f6144cd9ac1169e2b4e3ea5ab2bd0b3241"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:5497-5528 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:5537-5568 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:5497\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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:5496\u0060 calls \u0060SQLAlterProcedureStatement\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:5536\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":5497}}}],"partialFingerprints":{"codehealthFindingId/v1":"940e718e0f9f3f3fe7d8ad5b48390398c54c33eb1f053e2b5e57b83f28d593a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:1397-1429 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:2074-2106 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060MySqlLoadDataInFileStatement\u0060 in one and \u0060MySqlOutFileExpr\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":1397}}}],"partialFingerprints":{"codehealthFindingId/v1":"e80db43cc1a0e01577b5b1714532ff68e41656942d19553c955848f1bb2bd10f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:229-260 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:209-240 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 99 separate duplicated blocks between them, totalling at least 1839 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060OscarDeleteStatement\u0060 in one and \u0060PGDeleteStatement\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"0491827eb876b120294aa6bf959e514b446bef46fbc1824552d600763d1409bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:593-624 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:970-1001 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 99 separate duplicated blocks between them, totalling at least 1839 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":593}}}],"partialFingerprints":{"codehealthFindingId/v1":"45e7900783b798a59d86e9ea4fbcb758b3e5c9e3021ff5b525ba7b4b076fa72c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): core/src/main/java/com/alibaba/druid/util/StringUtils.java:179-210 | core/src/main/java/com/alibaba/druid/util/StringUtils.java:278-309 \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 \u0060core/src/main/java/com/alibaba/druid/util/StringUtils.java:179\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":"core/src/main/java/com/alibaba/druid/util/StringUtils.java"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"37b0a64c644c9f89df7ff5a080f6a2b0297528ada1014600934f8a424f99c674"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:5691-5721 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:2966-2996 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:8105-8135 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \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 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:5691\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060MysqlPartitionSingle\u0060 in one and \u0060OraclePartitionSingle\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:2964\u0060 calls \u0060printOracleSegmentAttributes\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:8103\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":5691}}}],"partialFingerprints":{"codehealthFindingId/v1":"16ff66fb671b68b4b415b2cdf3b8cd3b2c5f45c15939e1ba37378f7efd7f73e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2StatementParser.java:76-107 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java:314-345 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2StatementParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 67 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2StatementParser.java:76\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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2StatementParser.java"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bdfc903752cb320245d5b8671e4f138ee1c99899adc23606ec8e843583ba2aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsSelectParser.java:204-234 | core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java:829-859 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsSelectParser.java:200\u0060 calls \u0060identifierEquals\u0060, \u0060setZOrderBy\u0060, \u0060parseZOrderBy\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java:826\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":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsSelectParser.java"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"82ca4c92adf0dd641cef869784dfeeeb79a5097a6a2c0a5e690d24bfe96f4730"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java:1388-1418 | core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java:1761-1791 \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 \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java:1388\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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java"},"region":{"startLine":1388}}}],"partialFingerprints":{"codehealthFindingId/v1":"13f8d819d75a122341ffba16f0d634084150ccb6c3aa789cc253290dfa8a8154"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/visitor/functions/Lpad.java:30-60 | core/src/main/java/com/alibaba/druid/sql/visitor/functions/Rpad.java:34-64 \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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/visitor/functions/Lpad.java:61\u0060 calls \u0060length\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/visitor/functions/Rpad.java:65\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":"core/src/main/java/com/alibaba/druid/sql/visitor/functions/Lpad.java"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a96bff029f7dcef5556cc3fed3de59b7b66741c8725a3dca6c1f68ebe633b2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java:823-852 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java:936-965 \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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java"},"region":{"startLine":823}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ba1671a34728c561f173a32f635fcd2feca53eeb7fd2e36449b837e76f3bd8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:2343-2372 | core/src/main/java/com/alibaba/druid/sql/parser/SQLParser.java:704-733 \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 \u0060core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:2343\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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":2343}}}],"partialFingerprints":{"codehealthFindingId/v1":"5adc75239bf51f82f2dfe6dca36063b234ba012133a00df8f55ae1ce6f411361"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): core/src/main/java/com/alibaba/druid/stat/DruidStatService.java:146-175 | druid-admin/src/main/java/com/alibaba/druid/admin/service/MonitorStatService.java:197-226 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/stat/DruidStatService.java\u0060 and \u0060druid-admin/src/main/java/com/alibaba/druid/admin/service/MonitorStatService.java\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 108 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/stat/DruidStatService.java:146\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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/stat/DruidStatService.java"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9034631f1cf78cc7e5c43d706ee787c452bb117622f3354897ab3af4ae68a15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): core/src/main/java/com/alibaba/druid/support/http/ResourceServlet.java:306-335 | core/src/main/java/com/alibaba/druid/support/jakarta/ResourceServlet.java:286-315 \u2014 \u0060core/src/main/java/com/alibaba/druid/support/http/ResourceServlet.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/support/jakarta/ResourceServlet.java\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 12 separate duplicated blocks between them, totalling at least 238 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/support/http/ResourceServlet.java:306\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":"core/src/main/java/com/alibaba/druid/support/http/ResourceServlet.java"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"c431871351844fb6487cf348eeee6925c7c1c437b3a61ada43e45fca91ce3022"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): core/src/main/java/com/alibaba/druid/util/DruidWebUtils.java:24-54 | core/src/main/java/com/alibaba/druid/util/DruidWebUtils.java:57-87 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060request\u0060 to \u0060HttpServletRequest\u0060 in one and \u0060jakarta.servlet.http.HttpServletRequest\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":"core/src/main/java/com/alibaba/druid/util/DruidWebUtils.java"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"b852c50d4935de829e1c822ac29d378039f7e9e333cc5d52699ca1ae5571ead6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 4): core/src/main/java/com/alibaba/druid/sql/SQLUtils.java:1061-1089 | core/src/main/java/com/alibaba/druid/sql/SQLUtils.java:1135-1163 | core/src/main/java/com/alibaba/druid/sql/SQLUtils.java:1217-1245 | core/src/main/java/com/alibaba/druid/sql/SQLUtils.java:1315-1343 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \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 \u0060core/src/main/java/com/alibaba/druid/sql/SQLUtils.java:1061\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060SQLUnnestTableSource\u0060 in one and \u0060SQLUnionQueryTableSource\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":"core/src/main/java/com/alibaba/druid/sql/SQLUtils.java"},"region":{"startLine":1061}}}],"partialFingerprints":{"codehealthFindingId/v1":"104f0c71d3d15543879e886af812b624f425a50c4ee85897fe6ae6496124de9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java:231-259 | core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java:293-321 | core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java:345-373 \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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"74f2ad7362303c23e9a362fa6156a94d7146886d213ddd67a4beb42d7d1d061b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): core/src/main/java/com/alibaba/druid/pool/DruidDataSource.java:2627-2655 | core/src/main/java/com/alibaba/druid/pool/DruidDataSource.java:2659-2687 \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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/pool/DruidDataSource.java"},"region":{"startLine":2627}}}],"partialFingerprints":{"codehealthFindingId/v1":"02e783f4bde4ef7165917a86d7dc06119e008dabf5f1347c5640e9571c5487bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201329 lines \u00D7 2): core/src/main/java/com/alibaba/druid/pool/vendor/MySqlExceptionSorter.java:35-63 | core/src/main/java/com/alibaba/druid/pool/vendor/OceanBaseOracleExceptionSorter.java:30-51 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/pool/vendor/MySqlExceptionSorter.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/pool/vendor/OceanBaseOracleExceptionSorter.java\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 81 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/pool/vendor/MySqlExceptionSorter.java:35\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":"core/src/main/java/com/alibaba/druid/pool/vendor/MySqlExceptionSorter.java"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe5c4f0a6ebdb536dc40211b1b485fa88ae61a6a2bf7e898437af48a16439fbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveExprParser.java:170-198 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java:643-671 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveExprParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 109 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveExprParser.java:170\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveExprParser.java"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a268fcbd7674a2aebae6b858de395b9dc4ad9ed5949b216509108bbce971127"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarLexer.java:210-238 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGLexer.java:214-242 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarLexer.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGLexer.java\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 217 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarLexer.java"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0bf75257bf0376a86963ab2fe3a43c1e19bbc51647178dff7d04be59696fc49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/sqlite/parser/SQLiteLexer.java:51-79 | core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerLexer.java:178-206 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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":"core/src/main/java/com/alibaba/druid/sql/dialect/sqlite/parser/SQLiteLexer.java"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"473f464b573ebfec2c8cbc6e006398043618c0b495dbbc6dee90390543a822a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:682-709 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:2079-2106 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:2572-2599 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 1096 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":682}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b7f5e9bb3cde07c3129c21c774c8221eceb85028ac9aa9cec62360ef25d3115"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:1491-1518 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:2244-2271 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:2737-2764 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 1096 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:1491\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":1491}}}],"partialFingerprints":{"codehealthFindingId/v1":"98876cdad91af126c3998977adc61b3e720542efa96150cfcde4f3e4ffc228d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/SQLUtils.java:1643-1670 | core/src/main/java/com/alibaba/druid/sql/SQLUtils.java:1680-1707 \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 \u0060core/src/main/java/com/alibaba/druid/sql/SQLUtils.java:1643\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060OdpsSelectQueryBlock\u0060 in one and \u0060SQLCreateTableStatement\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":"core/src/main/java/com/alibaba/druid/sql/SQLUtils.java"},"region":{"startLine":1643}}}],"partialFingerprints":{"codehealthFindingId/v1":"a197d8c7cc0de80c19f06b53b2a12cc0ebe54a8901c9067d178bb69c5388c1a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveStatementParser.java:122-149 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:1542-1569 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveStatementParser.java:122\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":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveStatementParser.java"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"e63e1437d5136886abc4c97b3e4cac03234bb0c69834bce679c763e8a202a390"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:1368-1395 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:1717-1744 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060MySqlLoadDataInFileStatement\u0060 in one and \u0060MySqlLoadXmlStatement\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":1368}}}],"partialFingerprints":{"codehealthFindingId/v1":"2230eddb74abca3049e4742d348413678394c75cb0af151079d679dfaad537dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarSelectParser.java:74-101 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSelectParser.java:73-100 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarSelectParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSelectParser.java\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 217 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarSelectParser.java"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ee7c404bd5972818caa60885f04a0085a3941adfd3c4bf25b98d359fa7a04ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/repository/SchemaRepository.java:570-597 | core/src/main/java/com/alibaba/druid/sql/repository/SchemaRepository.java:630-657 \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 \u0060core/src/main/java/com/alibaba/druid/sql/repository/SchemaRepository.java:570\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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/repository/SchemaRepository.java"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a7bdf859822d452094678fcf193523ecdd3d4c8b8e2dc278ad2e336a11835e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:9327-9354 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:9474-9501 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060SQLAlterMaterializedViewStatement\u0060 in one and \u0060SQLCreateMaterializedViewStatement\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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":9327}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5f8e293bc9fc70c45796d8022bd0b03ce67f94b1f5851ebd8449c6a353e1aeb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): core/src/main/java/com/alibaba/druid/support/http/AbstractWebStatImpl.java:138-165 | core/src/main/java/com/alibaba/druid/support/jakarta/AbstractWebStatImpl.java:137-164 \u2014 \u0060core/src/main/java/com/alibaba/druid/support/http/AbstractWebStatImpl.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/support/jakarta/AbstractWebStatImpl.java\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 5 separate duplicated blocks between them, totalling at least 117 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: \u0060Cookie\u0060 names \u0060jakarta.servlet.http.Cookie\u0060 in one and \u0060javax.servlet.http.Cookie\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, 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":"core/src/main/java/com/alibaba/druid/support/http/AbstractWebStatImpl.java"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"9323fa1c6296b6abbcf3194371a0be589e8926151bf81d2448429d2090726f96"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): core/src/main/java/com/alibaba/druid/support/http/ResourceServlet.java:193-220 | core/src/main/java/com/alibaba/druid/support/jakarta/ResourceServlet.java:180-207 \u2014 \u0060core/src/main/java/com/alibaba/druid/support/http/ResourceServlet.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/support/jakarta/ResourceServlet.java\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 12 separate duplicated blocks between them, totalling at least 238 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: \u0060HttpServletResponse\u0060 names \u0060jakarta.servlet.http.HttpServletResponse\u0060 in one and \u0060javax.servlet.http.HttpServletResponse\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, 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":"core/src/main/java/com/alibaba/druid/support/http/ResourceServlet.java"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"e83af4515b13862ff11ae13dcba6bcb1856b3d7302636ef3e42fb482968bee16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): core/src/main/java/com/alibaba/druid/support/http/StatViewServlet.java:72-99 | core/src/main/java/com/alibaba/druid/support/jakarta/StatViewServlet.java:72-99 \u2014 \u0060core/src/main/java/com/alibaba/druid/support/http/StatViewServlet.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/support/jakarta/StatViewServlet.java\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 7 separate duplicated blocks between them, totalling at least 136 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: \u0060ServletException\u0060 names \u0060jakarta.servlet.ServletException\u0060 in one and \u0060javax.servlet.ServletException\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, 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":"core/src/main/java/com/alibaba/druid/support/http/StatViewServlet.java"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b05861f2565096720aebf4bf14dc790b9f218e998963ea02dbd7a0958238745"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): core/src/main/java/com/alibaba/druid/support/http/StatViewServlet.java:206-233 | core/src/main/java/com/alibaba/druid/support/jakarta/StatViewServlet.java:206-233 \u2014 \u0060core/src/main/java/com/alibaba/druid/support/http/StatViewServlet.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/support/jakarta/StatViewServlet.java\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 7 separate duplicated blocks between them, totalling at least 136 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: \u0060HttpServletRequest\u0060 names \u0060jakarta.servlet.http.HttpServletRequest\u0060 in one and \u0060javax.servlet.http.HttpServletRequest\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, 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":"core/src/main/java/com/alibaba/druid/support/http/StatViewServlet.java"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7c3fda04db8970c4753772d672ed16fc1bb2e75c0a2f31ab655e202060f598f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 4): core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmLexer.java:109-135 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarLexer.java:155-181 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGLexer.java:159-185 | core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java:1760-1786 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmLexer.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarLexer.java\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 89 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmLexer.java:109\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":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmLexer.java"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"e492d3523902ee560ebf9da2f268a5fce411c654f356c3802ebb7b4e8854705e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 4): core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveLexer.java:185-211 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java:553-579 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarLexer.java:121-147 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGLexer.java:125-151 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveLexer.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 238 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveLexer.java:185\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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java:582\u0060 calls \u0060putChar\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveLexer.java:214\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":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveLexer.java"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"169198dd117385ac9426342e8f77c3e0c7a533fd86f797bbaac0fa9413a48212"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 4): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java:463-489 | core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:554-580 | core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:2335-2361 | core/src/main/java/com/alibaba/druid/sql/parser/SQLParser.java:696-722 \u2014 there are 4 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java:463\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b7e2a34ad4fdf71f35ddf3ba23c00191b68844cdfbb9170e1c20f2c46b97709"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201327 lines \u00D7 3): core/src/main/java/com/alibaba/druid/pool/vendor/MySqlExceptionSorter.java:41-67 | core/src/main/java/com/alibaba/druid/pool/vendor/OceanBaseOracleExceptionSorter.java:67-88 | core/src/main/java/com/alibaba/druid/pool/vendor/OracleExceptionSorter.java:84-107 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/pool/vendor/MySqlExceptionSorter.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/pool/vendor/OceanBaseOracleExceptionSorter.java\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 81 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/pool/vendor/MySqlExceptionSorter.java:41\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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/pool/vendor/MySqlExceptionSorter.java"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fbf3ac3d1f9f125e5b33893f77a600377526b91c19d653e7f274906c0638520"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201327 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLDateExpr.java:170-195 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTimestampExpr.java:269-295 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTimestampNTZExpr.java:196-221 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLDateExpr.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTimestampExpr.java\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 54 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLDateExpr.java"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fb0be7e6fe81969a1d83c5ae820951ee60656c5998afabb862dbd6eb45f1eb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveExprParser.java:138-164 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java:596-622 | core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:5795-5821 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveExprParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 109 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveExprParser.java:138\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveExprParser.java"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c70f9c3e0d24dffc4d531755a16a3a493ce0371886318eb3d9ae84426dfd3d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:497-523 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:765-791 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:1145-1171 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 1096 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"4861332a0f622026b1190ca4e570a9bf356e6489b21c87f963acc29de526b4f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): core/src/main/java/com/alibaba/druid/pool/DruidDataSource.java:1190-1216 | core/src/main/java/com/alibaba/druid/pool/DruidDataSource.java:1219-1245 \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":"core/src/main/java/com/alibaba/druid/pool/DruidDataSource.java"},"region":{"startLine":1190}}}],"partialFingerprints":{"codehealthFindingId/v1":"17441e1cb2abd9c148ed8724d3e9d7b81c45911b715b1283864645cbdf049724"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:826-852 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:1206-1232 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 99 separate duplicated blocks between them, totalling at least 1839 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:826\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":826}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fe513a2b41bcf52cca37424416f0607b2fae5e173072509df8b9cc2642ae3d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/parser/SQLParserUtils.java:991-1017 | core/src/main/java/com/alibaba/druid/sql/parser/SQLParserUtils.java:1047-1073 \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 \u0060core/src/main/java/com/alibaba/druid/sql/parser/SQLParserUtils.java:991\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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLParserUtils.java"},"region":{"startLine":991}}}],"partialFingerprints":{"codehealthFindingId/v1":"73ffffcff5a4349d227d7b01e28c2059728daf017ee2658413f222b2c6e001c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:75-100 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:2135-2160 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:2628-2653 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 1096 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2de725c7a4f348746fe9fbe3a7757b4b122a18a755e3bf3642a941d0e4935b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/athena/parser/AthenaCreateTableParser.java:52-77 | core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveCreateTableParser.java:180-205 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/athena/parser/AthenaCreateTableParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveCreateTableParser.java\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 95 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/athena/parser/AthenaCreateTableParser.java:52\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":"core/src/main/java/com/alibaba/druid/sql/dialect/athena/parser/AthenaCreateTableParser.java"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"397d8d2d36c36e3dc0bfbee61e02317df6880b31185a10f85ea124c00e035439"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201326 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmExprParser.java:74-97 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarExprParser.java:125-150 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmExprParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarExprParser.java\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 203 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmExprParser.java:74\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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmExprParser.java"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"cafd4797270e64a79751ec86a0e69ae5b75abd8ecd15bd1eae6df9c3a662e2ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java:2735-2760 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:7390-7415 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java:2735\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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java"},"region":{"startLine":2735}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cd1ae5ca7ce215067936a08c22c4f02c64353f1dd5a3a29146df83244cf9ce8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarCreateTableParser.java:40-65 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGCreateTableParser.java:90-115 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarCreateTableParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGCreateTableParser.java\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 98 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarCreateTableParser.java:40\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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarCreateTableParser.java"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2d42e28758e35ffe6a4169266f1dd6423c471d8f25f2523715caaedcbeac358"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarSelectParser.java:224-249 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSelectParser.java:229-254 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarSelectParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSelectParser.java\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 217 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarSelectParser.java:224\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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSelectParser.java:228\u0060 calls \u0060nextToken\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarSelectParser.java:223\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarSelectParser.java"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8b468e833ce37bc923225c2a36ea533b19c8693aed56f55b57dd004093ad366"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201326 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:4404-4429 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:7643-7666 \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 \u0060core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:4404\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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":4404}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a97f1a989cde5a3b2789fafd25b5665805cb30da8e90a5389d375b63699e412"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201326 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:12014-12038 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:12042-12067 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060SQLCreateResourceGroupStatement\u0060 in one and \u0060SQLAlterResourceGroupStatement\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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":12014}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1e6c774d0dda28fd950a9441818114dba04d8e2df1e8f1e7524aa96b803e351"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): core/src/main/java/com/alibaba/druid/support/http/ResourceServlet.java:273-298 | core/src/main/java/com/alibaba/druid/support/jakarta/ResourceServlet.java:253-278 \u2014 \u0060core/src/main/java/com/alibaba/druid/support/http/ResourceServlet.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/support/jakarta/ResourceServlet.java\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 12 separate duplicated blocks between them, totalling at least 238 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/support/http/ResourceServlet.java"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca4d4de73e0e12b042a7f2b188afbfa4d19a191c151df41140612b85819d67d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 3): core/src/main/java/com/alibaba/druid/pool/DruidPooledConnection.java:464-488 | core/src/main/java/com/alibaba/druid/pool/DruidPooledConnection.java:495-519 | core/src/main/java/com/alibaba/druid/pool/DruidPooledConnection.java:526-550 \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 \u0060core/src/main/java/com/alibaba/druid/pool/DruidPooledConnection.java:464\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/pool/DruidPooledConnection.java"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb844ac03d566116d334fb0a35915010219a6e3826c1292416e8b46386806432"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/visitor/CKOutputVisitor.java:240-264 | core/src/main/java/com/alibaba/druid/sql/dialect/hologres/visitor/HologresOutputVisitor.java:62-86 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:7230-7254 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/visitor/CKOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/hologres/visitor/HologresOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/visitor/CKOutputVisitor.java:240\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":"core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/visitor/CKOutputVisitor.java"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"3007114718150c8e301149a256e0b21ed94d712775ffa3d834d80915152261e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectParser.java:701-725 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSelectParser.java:343-367 | core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java:1531-1555 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \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 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectParser.java:701\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectParser.java"},"region":{"startLine":701}}}],"partialFingerprints":{"codehealthFindingId/v1":"81b011bdf53a2fd4a6d8ad3adc449ee5dcf131968106659ceb4ed3b52ba80eb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:975-999 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:1097-1121 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:1477-1501 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 1096 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:975\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060InsertIntoClause\u0060 in one and \u0060OracleMultiInsertStatement.InsertIntoClause\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":975}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4b1859148b5506a6bad149b2b554514da2c57a453f61830a746faf524e7197b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java:785-809 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlSelectQueryBlock.java:288-312 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java"},"region":{"startLine":785}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a7506d511c87f7a3130d0ea6d5cd9f4f9ec5e6de81de77e9706baec4c108560"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/parser/GaussDbStatementParser.java:157-181 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:4862-4886 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/parser/GaussDbStatementParser.java:157\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":"core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/parser/GaussDbStatementParser.java"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b57911cd0fb934253bc5ff585d4da9d7676e22fcdb55ed4f8a09e59766e2766"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java:157-181 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java:914-938 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java:157\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"875a0c3508fabc270ec5cf0c099927ad98718e6564ac75cb1a234f9b16bd800e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201325 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/parser/SQLParserUtils.java:733-757 | core/src/main/java/com/alibaba/druid/sql/parser/SQLParserUtils.java:899-922 \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 \u0060core/src/main/java/com/alibaba/druid/sql/parser/SQLParserUtils.java:733\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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLParserUtils.java"},"region":{"startLine":733}}}],"partialFingerprints":{"codehealthFindingId/v1":"665dcfe4a9cbf0fd5a81f40e90986272337f45f09ca1d3b2cb9a470807ee03c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:6326-6350 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:6864-6888 \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 \u0060core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:6326\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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":6326}}}],"partialFingerprints":{"codehealthFindingId/v1":"974b31a7ae119225ebb5222d08b00577f8c6db43e91a73e4c627a7027830f713"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java:1097-1121 | core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java:1190-1214 \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":"core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java"},"region":{"startLine":1097}}}],"partialFingerprints":{"codehealthFindingId/v1":"32d92a26c9b7b5a755844b63da9be8a56945d5259bc957711934b8d789cd7114"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java:2084-2108 | core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java:2111-2135 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060SQLCreateFunctionStatement\u0060 in one and \u0060SQLCreateProcedureStatement\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":"core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java"},"region":{"startLine":2084}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7ca35ef4f760911968d2414ca9d7c98c6d15a29250dccf0c48d06441fc6122e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 4): core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryLexer.java:245-268 | core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryLexer.java:411-434 | core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveLexer.java:170-193 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java:538-561 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryLexer.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveLexer.java\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 176 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryLexer.java:245\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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryLexer.java"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"972fc27f7e8eee2896c3803e8c822196eb1e8ada36c8db8e2ac4e970aac820fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:5353-5376 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:5421-5444 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:5465-5488 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:5353\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":5353}}}],"partialFingerprints":{"codehealthFindingId/v1":"3401b16e6e80bf31086931ea872ec0eebd697a1a80129c27d7c6f7970f86964f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:2714-2737 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:1626-1649 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:2003-2026 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 1096 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:2714\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":2714}}}],"partialFingerprints":{"codehealthFindingId/v1":"bed49f91f41a7ecd966e70aee6c847e84672a67d2461c599524b65e163c77a50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): core/src/main/java/com/alibaba/druid/pool/DruidAbstractDataSource.java:1210-1233 | core/src/main/java/com/alibaba/druid/pool/ha/HighAvailableDataSource.java:256-279 \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 \u0060core/src/main/java/com/alibaba/druid/pool/ha/HighAvailableDataSource.java:256\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":"core/src/main/java/com/alibaba/druid/pool/DruidAbstractDataSource.java"},"region":{"startLine":1210}}}],"partialFingerprints":{"codehealthFindingId/v1":"528bd9e08c9ae02afafa760bfb83531f006b5a7ff7cf792f0a1979a6d5db3bf4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/h2/visitor/H2OutputVisitor.java:69-92 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:1515-1538 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/h2/visitor/H2OutputVisitor.java:69\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/h2/visitor/H2OutputVisitor.java"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"eafdb322bbe5a4a4539c21ff9b8d65e247079ad8f24be23a34064c914d647beb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/hive/visitor/HiveOutputVisitor.java:453-476 | core/src/main/java/com/alibaba/druid/sql/dialect/odps/visitor/OdpsOutputVisitor.java:747-770 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/hive/visitor/HiveOutputVisitor.java:453\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":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/visitor/HiveOutputVisitor.java"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa866f0aa1e93cd554d7089e465032d421afc52e888d56186cf046a569083074"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201324 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlCreateTableStatement.java:390-411 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlCreateTableStatement.java:440-463 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlCreateTableStatement.java:390\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlCreateTableStatement.java"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"a054a53cba5b8611e8114dac7769e12ca35daeea0dc8d8d36281015d7fadf192"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:1223-1246 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGCreateTableParser.java:137-160 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:1223\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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java"},"region":{"startLine":1223}}}],"partialFingerprints":{"codehealthFindingId/v1":"f48300bf80095ea50077585537f79868ea0d3dcd63bef3e07cb870b82848ffe7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java:2357-2380 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java:2448-2471 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java:2357\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java"},"region":{"startLine":2357}}}],"partialFingerprints":{"codehealthFindingId/v1":"88bc29603d429f8367757fee8caa1c07de1a95611e7ba658166deaca7f2aa579"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectIntoParser.java:302-325 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectParser.java:834-857 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectIntoParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectParser.java\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 45 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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 after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectParser.java:858\u0060 calls \u0060token\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectIntoParser.java:326\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectIntoParser.java"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"da391c53f16003fb4871835babc14d5cf1777462bc859c5c6f71fa7910125cb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:3997-4020 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:10986-11009 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:3997\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060MySqlAnalyzeStatement\u0060 in one and \u0060SQLAnalyzeTableStatement\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":3997}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b3ee7f365366e7f524ce5f7d30cc9e424bf5657fd6d37fcb79df7dd5ff65434"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/odps/visitor/OdpsOutputVisitor.java:1076-1099 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:6691-6714 \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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/visitor/OdpsOutputVisitor.java"},"region":{"startLine":1076}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe4ffa9e215072fa5f1f3dda33e5a8f385251eb57ba79af87e4084d2a491f893"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:202-225 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:182-205 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 99 separate duplicated blocks between them, totalling at least 1839 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"ead87bebf2ae150394a2fa811a1a6aa30c81b281f6a20373143b166883ef8f30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java:375-398 | core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java:415-438 \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 \u0060core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java:375\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":"core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e1c52eba0389f305ef5e4a1871e7e0daf6ff5b911e4afd476815ff2731414d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java:1500-1523 | core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java:1644-1667 \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 \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java:1500\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java"},"region":{"startLine":1500}}}],"partialFingerprints":{"codehealthFindingId/v1":"24e878268a149e21f2852a12c502da5a6520f4c73e94568732663262c52d5225"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): core/src/main/java/com/alibaba/druid/stat/DruidStatService.java:376-399 | druid-admin/src/main/java/com/alibaba/druid/admin/service/MonitorStatService.java:444-467 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/stat/DruidStatService.java\u0060 and \u0060druid-admin/src/main/java/com/alibaba/druid/admin/service/MonitorStatService.java\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 108 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/stat/DruidStatService.java"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e07feeb9bc43907e8a826221368f7181aac404f9ff0f032bca19ebadf8c0793"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): core/src/main/java/com/alibaba/druid/util/MySqlUtils.java:1097-1120 | core/src/main/java/com/alibaba/druid/util/MySqlUtils.java:1550-1573 \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 \u0060core/src/main/java/com/alibaba/druid/util/MySqlUtils.java:1097\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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/util/MySqlUtils.java"},"region":{"startLine":1097}}}],"partialFingerprints":{"codehealthFindingId/v1":"cee4f9948c86723d4e0b50778f1d49de14e64429111cccd45786ee43bbb1a225"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 5): core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryLexer.java:398-420 | core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveLexer.java:157-179 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java:525-547 | core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java:1836-1858 | core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java:1957-1979 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryLexer.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveLexer.java\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 176 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryLexer.java:398\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryLexer.java"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"601163cc2fcba1d554775169b9c4c39a1dd2221d66906a9d89072a4abf0f26cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 5): core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryLexer.java:454-476 | core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveLexer.java:254-276 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java:620-642 | core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java:1878-1900 | core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java:2002-2024 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryLexer.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveLexer.java\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 176 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryLexer.java:454\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":"core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryLexer.java"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"eef1d7245999d251bf96604faf7e688d6c88c539d4fb43d6ac677c24f6827cb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 4): core/src/main/java/com/alibaba/druid/sql/SQLUtils.java:1021-1043 | core/src/main/java/com/alibaba/druid/sql/SQLUtils.java:1095-1117 | core/src/main/java/com/alibaba/druid/sql/SQLUtils.java:1177-1199 | core/src/main/java/com/alibaba/druid/sql/SQLUtils.java:1275-1297 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \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 \u0060core/src/main/java/com/alibaba/druid/sql/SQLUtils.java:1021\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/SQLUtils.java"},"region":{"startLine":1021}}}],"partialFingerprints":{"codehealthFindingId/v1":"a378826790f89af55465c14455c9d5b0545518b80ee4b7821eae693316611373"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 4): core/src/main/java/com/alibaba/druid/sql/SQLUtils.java:1045-1067 | core/src/main/java/com/alibaba/druid/sql/SQLUtils.java:1119-1141 | core/src/main/java/com/alibaba/druid/sql/SQLUtils.java:1201-1223 | core/src/main/java/com/alibaba/druid/sql/SQLUtils.java:1291-1313 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \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 \u0060core/src/main/java/com/alibaba/druid/sql/SQLUtils.java:1045\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060SQLUnionQueryTableSource\u0060 in one and \u0060SQLSubqueryTableSource\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":"core/src/main/java/com/alibaba/druid/sql/SQLUtils.java"},"region":{"startLine":1045}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ff511ca75ddabdf85e909f5dbbd4162d4a0fdc05961be2fe9e1200e727b8291"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201323 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmSelectParser.java:86-108 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarSelectParser.java:143-159 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSelectParser.java:136-152 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmSelectParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarSelectParser.java\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 109 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmSelectParser.java:86\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmSelectParser.java:84\u0060 calls \u0060parseHierachical\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarSelectParser.java:141\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmSelectParser.java"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8481b3cf5f30a157fe39ab582a32327fb0619d59f0ed9588795f63ca08037cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201323 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmStatementParser.java:95-116 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java:124-145 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java:126-148 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmStatementParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 279 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmStatementParser.java:95\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":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmStatementParser.java"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"70e8fba601cd8539e039183e65f3a8a421905fe2a867babfb6d8204f27e0af46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:5624-5646 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:2939-2961 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:8081-8103 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \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 3 times. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060MysqlPartitionSingle\u0060 in one and \u0060OraclePartitionSingle\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:2964\u0060 calls \u0060printOracleSegmentAttributes\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:8105\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":5624}}}],"partialFingerprints":{"codehealthFindingId/v1":"174b3659a005c2d8aed0a1bbf98627bbfa2d4b4afb3c2a39ce1a86f625fe8eae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:860-882 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:956-978 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:1336-1358 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 1096 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:860\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060ModelRulesClause\u0060 in one and \u0060ModelClause.ModelRulesClause\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":860}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdac9b49ad52c66572ca2a272751d846f5d9e7b0d00d1f3286bdd944f7010ccf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:1003-1025 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:1125-1147 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:1505-1527 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 1096 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":1003}}}],"partialFingerprints":{"codehealthFindingId/v1":"86675a6cad800b787499a7db366df387cc2dcdede730b7df0827c46a540f4647"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/PagerUtils.java:125-147 | core/src/main/java/com/alibaba/druid/sql/PagerUtils.java:457-479 \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 \u0060core/src/main/java/com/alibaba/druid/sql/PagerUtils.java:125\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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060queryBlock\u0060 to \u0060SQLUnionQuery\u0060 in one and \u0060SQLSelectQueryBlock\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":"core/src/main/java/com/alibaba/druid/sql/PagerUtils.java"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"92b437e1c15f1c493f45e1aacf1006034f5247be366352b2d49eb4fd41d6b68d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterViewStatement.java:253-275 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateViewStatement.java:396-418 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterViewStatement.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateViewStatement.java\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 61 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterViewStatement.java"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a0da06f2e053ca88b63de0c98c6fe8fd0c12a183784e819f4bd0569eb06d483"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201323 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java:192-214 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java:216-237 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java:192\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d8c681611098bf5f836dfb356d2cb52e9d1e0f67593cf7bf73863306d3110ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:1011-1033 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:1391-1413 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 99 separate duplicated blocks between them, totalling at least 1839 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":1011}}}],"partialFingerprints":{"codehealthFindingId/v1":"63dff2656e50fca4d901731339e987bd077ec26c960ea387261fb886517c8d51"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/spark/parser/SparkExprParser.java:198-220 | core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:6515-6537 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/spark/parser/SparkExprParser.java:198\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/spark/parser/SparkExprParser.java"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5377ae81f7488fc5cd76fb0b729115cc8061a17762f2d9bf0096e07db14817e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java:439-461 | core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java:534-556 \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":"core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c034d82270080977c7b6b2dd369cdb576003bc9bda52a61f08b2e642767fe8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:5519-5541 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:5594-5616 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060SQLAlterViewStatement\u0060 in one and \u0060SQLCreateViewStatement\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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":5519}}}],"partialFingerprints":{"codehealthFindingId/v1":"712db08f34945ae9331fd14ac6dedaf1aaec2ec1f14507fdfd34af656b04f0b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 4): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleSelectParser.java:991-1012 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleSelectParser.java:1068-1089 | core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java:2456-2477 | core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java:2520-2541 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleSelectParser.java"},"region":{"startLine":991}}}],"partialFingerprints":{"codehealthFindingId/v1":"68af09fd285f8ad0866931a085bf64a1898db97e713d2620820238c0e2dd8a88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 4): core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:2862-2883 | core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:2912-2933 | core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:2937-2958 | core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:2962-2983 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \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 \u0060core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:2862\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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":2862}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab7507f9b7a6a6f9305b3dc45272087c4b9652637423350348a25a70aee8e4e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201322 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmSelectParser.java:161-182 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarSelectParser.java:190-209 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSelectParser.java:183-202 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmSelectParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarSelectParser.java\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 109 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmSelectParser.java:161\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSelectParser.java:182\u0060 calls \u0060nextToken\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmSelectParser.java:159\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmSelectParser.java"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f6cbeedc8a0f885fbadff66b1e69f2ea94754597c272a20b7d3e8d5d0df39f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java:2770-2791 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:4794-4815 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:7437-7458 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java:2770\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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java"},"region":{"startLine":2770}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ef4ed8839291e89c36a024d2c367f30f25ac72c628050470d8717d548fd7535"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:2568-2589 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:1490-1511 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:1867-1888 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 1096 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":2568}}}],"partialFingerprints":{"codehealthFindingId/v1":"720c1bcded78deceef10c581182e7bfe3f9abd1e9ca94fe94529e1e533631aeb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java:388-409 | core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java:428-449 | core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java:470-491 \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 \u0060core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java:388\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":"core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"566720e90b026af7a32f87d20f41761ebaa86a359965d0f346d8373dcc7c9549"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/h2/parser/H2StatementParser.java:94-115 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:4818-4839 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/h2/parser/H2StatementParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/h2/parser/H2StatementParser.java"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cbae9075856410b95077c51d31c8a5d9cb5a05dfb9c43ecbcd3536f8b9a4917"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:506-527 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:540-561 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2ee62e613a8574e231760399a6914713efd7f16dffebc071fb28c8f7a3e6b3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleLexer.java:254-275 | core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerLexer.java:78-99 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleLexer.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerLexer.java\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 75 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleLexer.java:254\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleLexer.java"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"b539e8644533e1acca5877c6ec8fb74acedc9f4f1ff3e97a666db4fbc3d28249"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleLexer.java:319-340 | core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerLexer.java:139-160 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleLexer.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerLexer.java\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 75 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleLexer.java"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"2201ded207141f958f57eddeb4c513c9b69d311f09bcb9de590b617ddf6f032a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java:2148-2169 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java:826-847 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java"},"region":{"startLine":2148}}}],"partialFingerprints":{"codehealthFindingId/v1":"2919055d9c1f0dce518286656e57d66addf4da6b9fcf12ee2322787287088ff9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (49 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:351-399 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:348-396 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 99 separate duplicated blocks between them, totalling at least 1839 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060OscarUpdateStatement\u0060 in one and \u0060PGUpdateStatement\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"33f61a65fd35703c9234d111dc6f5b480bdfbfc8c9ebceafb7db5c0296c4cca9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:1570-1591 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:2010-2031 \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 \u0060core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:1570\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:2033\u0060 calls \u0060identifierEquals\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:1593\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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":1570}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e42a7d6f1da608eacf336284c28cc00ad19257a3a29b09037b1d6ea4d73d24d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:4370-4391 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:7612-7633 \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 \u0060core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:4370\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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":4370}}}],"partialFingerprints":{"codehealthFindingId/v1":"31c0b2e9bba9e3990e8ff6d278510f97a71c6b52dce612798d4424af771ee0d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:7026-7047 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:7104-7125 \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 \u0060core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:7026\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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":7026}}}],"partialFingerprints":{"codehealthFindingId/v1":"87cdabbf886445b179cf71d4dfeb799eb7b1a6aafd0ba85b14f7d7e481872b98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42 lines \u00D7 2): core/src/main/java/com/alibaba/druid/support/http/ResourceServlet.java:69-110 | core/src/main/java/com/alibaba/druid/support/jakarta/ResourceServlet.java:56-97 \u2014 \u0060core/src/main/java/com/alibaba/druid/support/http/ResourceServlet.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/support/jakarta/ResourceServlet.java\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 12 separate duplicated blocks between them, totalling at least 238 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/support/http/ResourceServlet.java:69\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":"core/src/main/java/com/alibaba/druid/support/http/ResourceServlet.java"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"1846bf8ad563850a9d1a8409cce5448cb7fb2964bd6463b983aeffc094d92dea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 5): core/src/main/java/com/alibaba/druid/sql/dialect/athena/parser/AthenaCreateTableParser.java:41-61 | core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveCreateTableParser.java:169-189 | core/src/main/java/com/alibaba/druid/sql/dialect/impala/parser/ImpalaCreateTableParser.java:41-61 | core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsCreateTableParser.java:263-283 | core/src/main/java/com/alibaba/druid/sql/dialect/supersql/parser/SuperSqlCreateTableParser.java:22-41 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/athena/parser/AthenaCreateTableParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveCreateTableParser.java\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 95 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/athena/parser/AthenaCreateTableParser.java:41\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":"core/src/main/java/com/alibaba/druid/sql/dialect/athena/parser/AthenaCreateTableParser.java"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"7893052daa4c107f3dd2d75f583884aeb11cdf840aa2f366ee626bdfd6ff5f45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLMethodInvokeExpr.java:240-260 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLMethodInvokeExpr.java:285-305 | core/src/main/java/com/alibaba/druid/sql/dialect/odps/ast/OdpsNewExpr.java:36-56 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060visitor\u0060 to \u0060SQLASTVisitor\u0060 in one and \u0060OracleASTVisitor\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLMethodInvokeExpr.java:238\u0060 calls \u0060acceptChild\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/odps/ast/OdpsNewExpr.java:35\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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLMethodInvokeExpr.java"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"4322cfedc8c9abe109fa2c2d26645ea0fa464bb5050c661609d9be266d24c2ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/athena/parser/AthenaCreateTableParser.java:127-147 | core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveCreateTableParser.java:104-124 | core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsStatementParser.java:1581-1601 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/athena/parser/AthenaCreateTableParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveCreateTableParser.java\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 95 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/athena/parser/AthenaCreateTableParser.java"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"c277a0bc1ba209b5bb3fad2b3b07a3ff8d209d150c36325367223c1dd62c33e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 3): druid-spring-boot-3-starter/src/main/java/com/alibaba/druid/spring/boot3/autoconfigure/stat/DruidStatViewServletConfiguration.java:35-57 | druid-spring-boot-4-starter/src/main/java/com/alibaba/druid/spring/boot4/autoconfigure/stat/DruidStatViewServletConfiguration.java:35-57 | druid-spring-boot-starter/src/main/java/com/alibaba/druid/spring/boot/autoconfigure/stat/DruidStatViewServletConfiguration.java:35-57 \u2014 before extracting anything, compare \u0060druid-spring-boot-3-starter/src/main/java/com/alibaba/druid/spring/boot3/autoconfigure/stat/DruidStatViewServletConfiguration.java\u0060 and \u0060druid-spring-boot-4-starter/src/main/java/com/alibaba/druid/spring/boot4/autoconfigure/stat/DruidStatViewServletConfiguration.java\u0060 as WHOLE FILES: 95% 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 1 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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. Note first that the copies are not typed on the same thing: \u0060DruidStatProperties\u0060 names \u0060com.alibaba.druid.spring.boot.autoconfigure.properties.DruidStatProperties\u0060 in one and \u0060com.alibaba.druid.spring.boot3.autoconfigure.properties.DruidStatProperties\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, 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":"druid-spring-boot-3-starter/src/main/java/com/alibaba/druid/spring/boot3/autoconfigure/stat/DruidStatViewServletConfiguration.java"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a2d722cdec650893b0c687e546287b72fccbe420f91fc49d03272a297837008"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLAliasedExpr.java:85-105 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLTableSourceImpl.java:57-77 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLAliasedExpr.java"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ec061f3550f02b55349fdade8345d490813d182749e918d334720968e48b3d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java:2248-2268 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java:862-882 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java:2248\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java"},"region":{"startLine":2248}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ca8493c5fee7da4ab97ed0c140b05c6714b0fc5507dc02a588154f9e13dbb5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:100-120 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:120-140 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 99 separate duplicated blocks between them, totalling at least 1839 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060OscarSelectQueryBlock\u0060 in one and \u0060PGSelectQueryBlock\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"8efc03c14c27cd17a34a6757a51fe5c7c42390805a6e92232c916cd5df45cb90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201321 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java:1276-1296 | core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java:1674-1692 \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 \u0060core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java:1276\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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java"},"region":{"startLine":1276}}}],"partialFingerprints":{"codehealthFindingId/v1":"84bf589b5cf5e660c7e9d3a4bafaa9b5cd49b265d303eef0a9c4277266c3df36"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:4455-4475 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:7669-7689 \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 \u0060core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:4455\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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":4455}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9e3a9fdaf3690eb363234dbecf5180937f1326cc3b99f4bf6c9dcf477e7c4a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/repository/SchemaRepository.java:548-568 | core/src/main/java/com/alibaba/druid/sql/repository/SchemaRepository.java:608-628 \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 \u0060core/src/main/java/com/alibaba/druid/sql/repository/SchemaRepository.java:548\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/repository/SchemaRepository.java"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"1226b58ad0f809c31e9a10561f1ef606710497c1c2f08625f60304a61edddf6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:908-928 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:987-1007 \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 \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:908\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":908}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa800f6497cf1301c38b545398736348c2990faf5cfce162ad291f4ea37d1395"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:11226-11246 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:11252-11272 \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 \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:11226\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060SQLShowQueryTaskStatement\u0060 in one and \u0060SQLShowOutlinesStatement\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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":11226}}}],"partialFingerprints":{"codehealthFindingId/v1":"172e6f57b68a60cd913a7cca616dba0969b10e2630f005310f3412d562522d1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 6): core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryLexer.java:285-304 | core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryLexer.java:450-469 | core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveLexer.java:250-269 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java:616-635 | core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java:1874-1893 | core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java:1998-2017 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryLexer.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveLexer.java\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 176 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryLexer.java:285\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":"core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryLexer.java"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"8911bdf6d5c3897b213234f9f48d2ad3b1b58c58f4b9020db0d0d396aa6b0367"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 4): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:1896-1915 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:2389-2408 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:12187-12207 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:12226-12246 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 99 separate duplicated blocks between them, totalling at least 1839 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:1896\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060SQLUnpivot\u0060 in one and \u0060SQLPivot\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":1896}}}],"partialFingerprints":{"codehealthFindingId/v1":"304713ec74d423ca4b9e1995160ae76cfe2508ab0feb89a20fd31ee9575930d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:482-501 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:516-535 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:550-569 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:482\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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7d862031005b1415a32a27301fbae8b3f7ea5ed53806a07ff0b20e1b13b8717"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java:1337-1356 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java:1360-1379 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java:1383-1402 \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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java"},"region":{"startLine":1337}}}],"partialFingerprints":{"codehealthFindingId/v1":"882f1f1f7f34ddbb28bff7abe37c772885c39f28b047ed97d6d91ae29bef487d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201320 lines \u00D7 3): core/src/main/java/com/alibaba/druid/stat/JdbcSqlStat.java:737-756 | core/src/main/java/com/alibaba/druid/support/http/stat/WebURIStat.java:267-284 | core/src/main/java/com/alibaba/druid/support/spring/stat/SpringMethodStat.java:219-236 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \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 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/support/http/stat/WebURIStat.java:267\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":"core/src/main/java/com/alibaba/druid/stat/JdbcSqlStat.java"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"4596ab1e51c0e212572b807f8f52468e611a2b5a33fef6634e840ef35d279528"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): core/src/main/java/com/alibaba/druid/pool/vendor/MySqlExceptionSorter.java:41-65 | core/src/main/java/com/alibaba/druid/pool/vendor/OracleExceptionSorter.java:49-68 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/pool/vendor/MySqlExceptionSorter.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/pool/vendor/OracleExceptionSorter.java\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 77 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/pool/vendor/MySqlExceptionSorter.java:41\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060core/src/main/java/com/alibaba/druid/pool/vendor/OracleExceptionSorter.java:46\u0060 calls \u0060abs\u0060, \u0060getErrorCode\u0060 and \u0060core/src/main/java/com/alibaba/druid/pool/vendor/MySqlExceptionSorter.java:37\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":"core/src/main/java/com/alibaba/druid/pool/vendor/MySqlExceptionSorter.java"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"5da4f0c9d2d7e931867b4b3169736deb3859c11bd4ac5acd6ba7ea68afdadf46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/SQLDataTypeImpl.java:325-344 | core/src/main/java/com/alibaba/druid/sql/ast/SQLDataTypeImpl.java:373-392 \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 \u0060core/src/main/java/com/alibaba/druid/sql/ast/SQLDataTypeImpl.java:325\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/SQLDataTypeImpl.java"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"24f61d688632626ef82d77fac1e39ce740df91cd5e844a8661fcdbc9310bf942"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableAddIndex.java:38-57 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableAlterIndex.java:38-57 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableAddIndex.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableAlterIndex.java\u0060 as WHOLE FILES: 97% 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 1 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableAddIndex.java"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a50e48069ea552001cd2507cf807c86407501f2c2550a60925b125437fa3d17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveExprParser.java:85-104 | core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsExprParser.java:789-808 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveExprParser.java"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5b4f4d4783a46e38f06a8d52c48cad023fcde961ea3219b21b44294fc9d5533"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:813-831 | core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsCreateTableParser.java:302-321 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:813\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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java"},"region":{"startLine":813}}}],"partialFingerprints":{"codehealthFindingId/v1":"601fc8e26df945d9d1b0b47bf9cc8ed1463f2193fc56a094da9894af6ded4e95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleCreateTableParser.java:216-235 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java:2691-2710 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleCreateTableParser.java:216\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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleCreateTableParser.java"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"b95531070e7cff41f96326fb676b9fb52b0a31b96b3f8497ca43bf3ada883964"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java:900-919 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java:924-942 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java:900\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java"},"region":{"startLine":900}}}],"partialFingerprints":{"codehealthFindingId/v1":"188efdc9e5f0da703b00b50d0f099b5a715d1ef63bccf10894fbabaf6794d84e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java:1349-1368 | core/src/main/java/com/alibaba/druid/sql/dialect/redshift/parser/RedshiftExprParser.java:114-133 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java:1349\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java"},"region":{"startLine":1349}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfcfae2affdf44cb356a7a81e695804496925f990a848e2dc8964b8f93614072"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:1850-1869 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:2240-2259 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 99 separate duplicated blocks between them, totalling at least 1839 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":1850}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c795ba4f0b4e0ae03c90bd3b26832d14c6f0410b0c1331092d64ff7901362d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201320 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/starrocks/visitor/StarRocksOutputVisitor.java:254-273 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:3539-3556 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/starrocks/visitor/StarRocksOutputVisitor.java"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"e221a723a16d5ff920a76c828d35cf6afac7a7462d40521eb8a74903157d88ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:4986-5005 | core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:5031-5049 \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 \u0060core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:4986\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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":4986}}}],"partialFingerprints":{"codehealthFindingId/v1":"added331d23d5a409a332431d638c9d519d298295786faca9a4b2d74ab308ee7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/parser/SQLParserUtils.java:781-800 | core/src/main/java/com/alibaba/druid/sql/parser/SQLParserUtils.java:963-982 \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 \u0060core/src/main/java/com/alibaba/druid/sql/parser/SQLParserUtils.java:781\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLParserUtils.java"},"region":{"startLine":781}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a540d0bd6809f12bdf21812debfd267b61396dc6dbbfb8a7916e653b5486d79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:3876-3895 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:6972-6991 \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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":3876}}}],"partialFingerprints":{"codehealthFindingId/v1":"3acbf79652005f3e8dd3b928e2de1beb37278779864e330e39e90913b0a8c31f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201320 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java:1689-1706 | core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java:1709-1728 \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 \u0060core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java:1709\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":"core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java"},"region":{"startLine":1689}}}],"partialFingerprints":{"codehealthFindingId/v1":"60e99d85d8733a603a050a0134fd0435a972716cd3a80f3e079027bb4764c5e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): core/src/main/java/com/alibaba/druid/support/ibatis/SpringIbatisBeanNameAutoProxyCreator.java:45-64 | core/src/main/java/com/alibaba/druid/support/ibatis/SpringIbatisBeanTypeAutoProxyCreator.java:67-86 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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":"core/src/main/java/com/alibaba/druid/support/ibatis/SpringIbatisBeanNameAutoProxyCreator.java"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"f289e3595121a832ae98c9dd437050eff7c672da65d08529ee0022b0d9fbeb98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): core/src/main/java/com/alibaba/druid/util/StringUtils.java:214-233 | core/src/main/java/com/alibaba/druid/util/StringUtils.java:312-331 \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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/util/StringUtils.java"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c58ca1630d12570e2771c2e14adf1079560d9c071447c4a479740d884208557"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 10): core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryLexer.java:281-299 | core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryLexer.java:446-464 | core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmLexer.java:112-130 | core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveLexer.java:246-264 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java:612-630 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarLexer.java:158-176 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGLexer.java:162-180 | core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java:1763-1781 | core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java:1870-1888 | core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java:1994-2012 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryLexer.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveLexer.java\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 176 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryLexer.java:281\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java:1992\u0060 calls \u0060String\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryLexer.java:280\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":"core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryLexer.java"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"52718de22a5aab1fe2432f141a14c7ede72e06e5646a190763a52d8fcf49af09"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 4): core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmLexer.java:159-177 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarLexer.java:224-242 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGLexer.java:228-246 | core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java:2356-2375 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmLexer.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarLexer.java\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 89 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmLexer.java:159\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":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmLexer.java"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"97bd780b2303c65e5d653f4d65c22785a9d32a5344dfa73466d8b4ca52905dd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201319 lines \u00D7 3): core/src/main/java/com/alibaba/druid/filter/FilterChainImpl.java:565-577 | core/src/main/java/com/alibaba/druid/filter/FilterChainImpl.java:633-651 | core/src/main/java/com/alibaba/druid/filter/FilterChainImpl.java:656-668 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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":"core/src/main/java/com/alibaba/druid/filter/FilterChainImpl.java"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"46f9fc0440770da260a89355fa97f054884575721dc807acf7f8924f8ee195a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): core/src/main/java/com/alibaba/druid/pool/vendor/MySqlExceptionSorter.java:39-63 | core/src/main/java/com/alibaba/druid/pool/vendor/OceanBaseOracleExceptionSorter.java:33-51 | core/src/main/java/com/alibaba/druid/pool/vendor/OracleExceptionSorter.java:48-67 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/pool/vendor/MySqlExceptionSorter.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/pool/vendor/OceanBaseOracleExceptionSorter.java\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 81 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/pool/vendor/MySqlExceptionSorter.java:39\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060core/src/main/java/com/alibaba/druid/pool/vendor/OracleExceptionSorter.java:46\u0060 calls \u0060abs\u0060, \u0060getErrorCode\u0060 and \u0060core/src/main/java/com/alibaba/druid/pool/vendor/MySqlExceptionSorter.java:37\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":"core/src/main/java/com/alibaba/druid/pool/vendor/MySqlExceptionSorter.java"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ede320f6894abf177e80e88ef7820dafbca5b85ada7887e48e7eeeaaac2912a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLDateExpr.java:250-268 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTimestampExpr.java:361-379 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTimestampNTZExpr.java:276-294 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLDateExpr.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTimestampExpr.java\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 54 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLDateExpr.java:250\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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLDateExpr.java"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"857e84f93ad31fc957d4d6410d4724e86f39ec76502d5ee5da6923ccd3ca3fc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:2606-2624 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:1528-1546 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:1905-1923 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 1096 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":2606}}}],"partialFingerprints":{"codehealthFindingId/v1":"96e5e11b31c093289b9b4a72b86cf0bddf6f8991d9bb439c044788b6272b46ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): core/src/main/java/com/alibaba/druid/filter/FilterChainImpl.java:1324-1342 | core/src/main/java/com/alibaba/druid/filter/FilterChainImpl.java:1378-1396 \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 \u0060core/src/main/java/com/alibaba/druid/filter/FilterChainImpl.java:1324\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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/filter/FilterChainImpl.java"},"region":{"startLine":1324}}}],"partialFingerprints":{"codehealthFindingId/v1":"7711cb57f322b3916252103ff42954655dfbbd27b79f6536b8c7cc9f9a999418"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLContainsExpr.java:134-152 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLInListExpr.java:178-196 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLContainsExpr.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLInListExpr.java\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLContainsExpr.java:134\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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLContainsExpr.java"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b9dfe87d08b1e312b0fe9881fbf4bd63b666d531fe5a09b8a2587a6b62c6b4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLDateExpr.java:135-153 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTimestampNTZExpr.java:119-137 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLDateExpr.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTimestampNTZExpr.java\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 262 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLDateExpr.java"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"12729f87a60c35c549196b31256a4d9a3e667dbb86dce475985692edd80d4f9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java:761-779 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlSelectQueryBlock.java:262-280 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java"},"region":{"startLine":761}}}],"partialFingerprints":{"codehealthFindingId/v1":"072a75b7c2fb37f5a2b3491a48289fbd78a68fe62dd79c50d724efe69afe4145"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201319 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/parser/GaussDbCreateTableParser.java:130-146 | core/src/main/java/com/alibaba/druid/sql/dialect/impala/parser/ImpalaCreateTableParser.java:178-196 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/parser/GaussDbCreateTableParser.java:130\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":"core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/parser/GaussDbCreateTableParser.java"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0301528e497009238fefc9f2f0465c1c3f3159277613aa2c360c50c5963149f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/parser/GaussDbExprParser.java:190-208 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGExprParser.java:361-378 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGExprParser.java:361\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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/parser/GaussDbExprParser.java"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"99355061794443a34efbc63fd416947a0359f568ce5b58783da882f0a49a0904"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveCreateTableParser.java:69-87 | core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerStatementParser.java:228-246 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveCreateTableParser.java:69\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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveCreateTableParser.java"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"b964c90017e58fc32bf8beeafb9cf5194884f9101bf242d86245d3c9f8c5c116"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveExprParser.java:264-282 | core/src/main/java/com/alibaba/druid/sql/dialect/spark/parser/SparkExprParser.java:126-144 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveExprParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/spark/parser/SparkExprParser.java\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveExprParser.java:264\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":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveExprParser.java"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c7c517df3f17eb5ac8cb710b6f5cd773a7100cff881a617b8255dde643b70d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java:989-1007 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java:1027-1045 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java:989\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java"},"region":{"startLine":989}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dae76258e9409eb4663872163f434de7395e16044f45f6990d6bfb97c4aeb8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:4171-4189 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:4632-4650 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:4171\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":4171}}}],"partialFingerprints":{"codehealthFindingId/v1":"33deadd0ba7e20eb49e64851b9a0113db451f5b0a6cee199751ec140c95d53fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:581-599 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:6931-6949 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060MySqlTableIndex\u0060 in one and \u0060SQLIndexDefinition\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"26109d156895a2473bfde7151978a90ef8a4d10a4fab8e0c045ed78f7bcec45a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/odps/visitor/OdpsOutputVisitor.java:217-235 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:466-484 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060SQLSubqueryTableSource\u0060 in one and \u0060OracleSelectSubqueryTableSource\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":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/visitor/OdpsOutputVisitor.java"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"47ba5da313f7631c78cfa0de7bfa3b517779440a24f46cf6c327ee625a818af7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java:1190-1208 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java:1310-1328 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java:1190\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java"},"region":{"startLine":1190}}}],"partialFingerprints":{"codehealthFindingId/v1":"49bb4d3ba48831a6691b7d7bfd08b51b4044beba8270c80b21fdfd0988cd3595"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java:1785-1802 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java:1833-1851 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java:1785\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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java"},"region":{"startLine":1785}}}],"partialFingerprints":{"codehealthFindingId/v1":"f99e3e6509caee22dde3e0192fbe69ce8746aa442b4c30bb1eff1f15cc2a884a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:572-590 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:949-967 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 99 separate duplicated blocks between them, totalling at least 1839 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6a02875fda1387a0c32863d593b875279b61077021a42a09ee6764fad4c83f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): core/src/main/java/com/alibaba/druid/support/http/WebStatFilter.java:179-197 | core/src/main/java/com/alibaba/druid/support/jakarta/WebStatFilter.java:178-196 \u2014 \u0060core/src/main/java/com/alibaba/druid/support/http/WebStatFilter.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/support/jakarta/WebStatFilter.java\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 7 separate duplicated blocks between them, totalling at least 261 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/support/http/WebStatFilter.java"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"eba6ef5891af80f7488e75a649b16a856ae51584b2e928ec91e496acb72c7912"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201319 lines \u00D7 2): core/src/main/java/com/alibaba/druid/util/MySqlUtils.java:1640-1658 | core/src/main/java/com/alibaba/druid/util/MySqlUtils.java:1662-1678 \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":"core/src/main/java/com/alibaba/druid/util/MySqlUtils.java"},"region":{"startLine":1640}}}],"partialFingerprints":{"codehealthFindingId/v1":"1818e5d21e9b67c42aad196c4da9cfd57df46a6df2acdd7bb37911f5b0b88867"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 7): core/src/main/java/com/alibaba/druid/sql/SQLUtils.java:906-923 | core/src/main/java/com/alibaba/druid/sql/SQLUtils.java:954-971 | core/src/main/java/com/alibaba/druid/sql/SQLUtils.java:1002-1019 | core/src/main/java/com/alibaba/druid/sql/SQLUtils.java:1357-1374 | core/src/main/java/com/alibaba/druid/sql/SQLUtils.java:1432-1449 | core/src/main/java/com/alibaba/druid/sql/SQLUtils.java:1502-1519 | core/src/main/java/com/alibaba/druid/sql/SQLUtils.java:1604-1621 \u2014 all 7 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 \u0060core/src/main/java/com/alibaba/druid/sql/SQLUtils.java:906\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":"core/src/main/java/com/alibaba/druid/sql/SQLUtils.java"},"region":{"startLine":906}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2615db2cbb25108a5858f36598d0590b70b8c97c0bf03ce8768134af7ed52a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 4): core/src/main/java/com/alibaba/druid/sql/dialect/hive/visitor/HiveOutputVisitor.java:84-101 | core/src/main/java/com/alibaba/druid/sql/dialect/hive/visitor/HiveOutputVisitor.java:185-202 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:1174-1191 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:1495-1512 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/visitor/HiveOutputVisitor.java"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbf1564b3446906b3db9cc9c30760c3ea6f9c1a343c1b636968622764a6df975"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmStatementParser.java:299-316 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java:623-640 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java:1153-1170 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmStatementParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 279 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmStatementParser.java:299\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":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmStatementParser.java"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"21405a106b69d691249ca4d4c90e5607e2801bba9ef6ab5bcc95654eb3a8409a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:610-627 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:1967-1984 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:2460-2477 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 1096 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cc1a61f81bdaa06c2b5ac59688433d4c1b6c9e360783711b6c2b3efd380de7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:2758-2775 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:2176-2193 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:2669-2686 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 1096 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":2758}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a3ced0c740c2bcc7f854e48780a4df1d76f2b967ba94fef0c60da8261612f78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): core/src/main/java/com/alibaba/druid/util/MySqlUtils.java:252-269 | core/src/main/java/com/alibaba/druid/util/OracleUtils.java:231-248 | core/src/main/java/com/alibaba/druid/util/PGUtils.java:35-52 \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 all 3 call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/util/OracleUtils.java:250\u0060 calls \u0060getTableDDL\u0060, \u0060asList\u0060 and \u0060core/src/main/java/com/alibaba/druid/util/MySqlUtils.java:271\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":"core/src/main/java/com/alibaba/druid/util/MySqlUtils.java"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f00429ecbde9fda08a4bef989371b6b89c58b6230668db446f31bc0501d919d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201318 lines \u00D7 3): core/src/main/java/com/alibaba/druid/util/MySqlUtils.java:1640-1657 | core/src/main/java/com/alibaba/druid/util/MySqlUtils.java:1662-1678 | core/src/main/java/com/alibaba/druid/util/MySqlUtils.java:1681-1695 \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":"core/src/main/java/com/alibaba/druid/util/MySqlUtils.java"},"region":{"startLine":1640}}}],"partialFingerprints":{"codehealthFindingId/v1":"18ef8af2ce08158a0e8046498f3c7900434e0605ffeb5868b802f93676af66f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): core/src/main/java/com/alibaba/druid/wall/WallFilter.java:515-532 | core/src/main/java/com/alibaba/druid/wall/WallFilter.java:537-554 | core/src/main/java/com/alibaba/druid/wall/WallFilter.java:559-576 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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":"core/src/main/java/com/alibaba/druid/wall/WallFilter.java"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"3352e8d751ea0f0bb97852a676905492adbbc4e294d5158ad6f4d17828dc6b64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 2): core/src/main/java/com/alibaba/druid/filter/logging/LogFilter.java:841-858 | core/src/main/java/com/alibaba/druid/filter/logging/LogFilter.java:873-888 \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 \u0060core/src/main/java/com/alibaba/druid/filter/logging/LogFilter.java:841\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":"core/src/main/java/com/alibaba/druid/filter/logging/LogFilter.java"},"region":{"startLine":841}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d3f088395a354e927cf8ce58b5f4df5f71ad5c78c4fac716884603c31bcee8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/SQLUtils.java:1471-1488 | core/src/main/java/com/alibaba/druid/sql/SQLUtils.java:1565-1582 \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 \u0060core/src/main/java/com/alibaba/druid/sql/SQLUtils.java:1471\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060SQLAggregateExpr\u0060 in one and \u0060SQLMethodInvokeExpr\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":"core/src/main/java/com/alibaba/druid/sql/SQLUtils.java"},"region":{"startLine":1471}}}],"partialFingerprints":{"codehealthFindingId/v1":"bee8569832de0d2af920d24251061536d590e264b84151b7aeebf92c2aa98519"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/SQLPivot.java:60-77 | core/src/main/java/com/alibaba/druid/sql/ast/SQLUnpivot.java:59-76 \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 \u0060core/src/main/java/com/alibaba/druid/sql/ast/SQLPivot.java:60\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/SQLPivot.java"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9b4186de239d0fcf1d7d15094e1c4cc7ad5cf1e0add47d64180828d2fd93e22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterSequenceStatement.java:54-71 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateSequenceStatement.java:73-90 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterSequenceStatement.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateSequenceStatement.java\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 40 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterSequenceStatement.java"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"29f0df198f1e0dae49fd7c9a3fdbb7586347528ba7d8fa6f6d87057a09c9f07d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLGeneratedTableSource.java:39-55 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLUnnestTableSource.java:111-128 \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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLGeneratedTableSource.java"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"8687d3b17fff03f0baffe4d6b1b7cfe1a6a736219931435a63f5a1048c54e554"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/visitor/CKOutputVisitor.java:331-348 | core/src/main/java/com/alibaba/druid/sql/dialect/hologres/visitor/HologresOutputVisitor.java:41-58 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/visitor/CKOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/hologres/visitor/HologresOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/visitor/CKOutputVisitor.java"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a03d99df056c97bd1d1d30af837f6af410eee95babef719320f167c1db87409"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveLexer.java:365-382 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleLexer.java:304-321 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveLexer.java:365\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":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveLexer.java"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc701a068cde61bdc3c1c9516d34147dec7c990fe6cfb71b39cc3a3fd151b138"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37\u201338 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:171-208 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:247-283 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:171\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b2a023cb421d3c42b45bac56968736c40e2a995ddd493d21678febf1d806c05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:3837-3853 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:6409-6426 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:3837\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060MysqlForeignKey\u0060 in one and \u0060SQLColumnReference\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":3837}}}],"partialFingerprints":{"codehealthFindingId/v1":"105ed85ee56298ba502d0b159f01475e458e63a78b2cc7e60fcbdbbd51d9f25a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:896-913 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:1276-1293 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 99 separate duplicated blocks between them, totalling at least 1839 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":896}}}],"partialFingerprints":{"codehealthFindingId/v1":"75e290e6335a994d87571d26ac6d3de118ef0ac85764667a9da0f36a852e88be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:4151-4168 | core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:4202-4219 \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 \u0060core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:4151\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":4151}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f8e209beaec1d5e2005a63816b29f08e85da67be082ef1b5a6a46213805d58c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java:1574-1591 | core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java:1842-1859 \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 \u0060core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java:1574\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":"core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java"},"region":{"startLine":1574}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f8a6a80f9a077e26b94466630a08efe2abfdbafd06089585ffbd1a2b6d74345"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:5551-5568 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:5638-5655 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060SQLAlterViewStatement\u0060 in one and \u0060SQLCreateViewStatement\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:5657\u0060 calls \u0060printCreateViewAs\u0060, \u0060isWithCheckOption\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:5570\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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":5551}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a266d2fd680d129f2f2bc3be8147d821521121a256fb6ece118e944b7f882f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java:1440-1471 | core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java:1589-1620 \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 \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java:1440\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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060SQLPropertyExpr\u0060 in one and \u0060SQLIdentifierExpr\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":"core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java"},"region":{"startLine":1440}}}],"partialFingerprints":{"codehealthFindingId/v1":"4750a55fa94ecbfa1484cf568e9af7af5c3aac17af3c3f26baf4de478b7d78f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): core/src/main/java/com/alibaba/druid/util/Utils.java:447-464 | core/src/main/java/com/alibaba/druid/util/Utils.java:474-491 \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 \u0060core/src/main/java/com/alibaba/druid/util/Utils.java:447\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060hash\u0060 to \u0060int\u0060 in one and \u0060long\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":"core/src/main/java/com/alibaba/druid/util/Utils.java"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfaa092e631f40f58e143fa76d5a33c819b15183fd0419593289ca2e7541a652"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 13): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:1655-1671 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:2776-2792 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:2798-2814 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:2918-2934 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:2948-2964 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:3211-3227 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:3233-3249 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:3255-3271 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:3277-3293 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:3299-3315 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:3350-3366 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:3372-3388 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:3402-3418 \u2014 all 13 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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:1655\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060MySqlShowDatabaseStatusStatement\u0060 in one and \u0060MySqlShowSlowStatement\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:2946\u0060 calls \u0060print0\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:2774\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":1655}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bf6f573df748694b05665a98a09e3939895155b48604bf5f5a69a64be9ccd2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201317 lines \u00D7 4): core/src/main/java/com/alibaba/druid/filter/FilterChainImpl.java:1331-1347 | core/src/main/java/com/alibaba/druid/filter/FilterChainImpl.java:1386-1401 | core/src/main/java/com/alibaba/druid/filter/FilterChainImpl.java:2161-2172 | core/src/main/java/com/alibaba/druid/filter/FilterChainImpl.java:2221-2232 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \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 \u0060core/src/main/java/com/alibaba/druid/filter/FilterChainImpl.java:1331\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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/filter/FilterChainImpl.java"},"region":{"startLine":1331}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3ae010510cb96b92bac06d1d111a4af065795d58cf56095cce6ad94ac4d0968"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 4): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:970-985 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:1092-1107 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:1472-1487 | core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/visitor/SQLServerOutputVisitor.java:324-340 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 1096 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060InsertIntoClause\u0060 in one and \u0060OracleMultiInsertStatement.InsertIntoClause\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":970}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7d282ddcc26621be72f1c1714e28b30c8cfbda720b96a5939f47412cd437217"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/SQLUtils.java:1519-1535 | core/src/main/java/com/alibaba/druid/sql/SQLUtils.java:1538-1554 | core/src/main/java/com/alibaba/druid/sql/SQLUtils.java:1557-1573 \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 \u0060core/src/main/java/com/alibaba/druid/sql/SQLUtils.java:1519\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/SQLUtils.java"},"region":{"startLine":1519}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b0095f3939acd9409ecad496fb83de0a97a3441e8a641f50f707cf972a4a73f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/ast/SQLPartitionSingle.java:112-128 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/MysqlPartitionSingle.java:86-102 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/OraclePartitionSingle.java:184-200 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \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 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/SQLPartitionSingle.java"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ad5a71e7973172aa0b80e8bc20c4a975c24245e19152ca1f501d007372d5056"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateMaterializedViewStatement.java:436-452 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateTableStatement.java:1574-1590 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateTableStatement.java:1614-1630 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateMaterializedViewStatement.java"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb9ae344ae47755742a3f5d0352951a55aa0f332bda1ed6b874d8f542789abaa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/visitor/CKOutputVisitor.java:269-285 | core/src/main/java/com/alibaba/druid/sql/dialect/hologres/visitor/HologresOutputVisitor.java:91-107 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:7256-7272 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/visitor/CKOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/hologres/visitor/HologresOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/visitor/CKOutputVisitor.java:269\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":"core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/visitor/CKOutputVisitor.java"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"d520d06430cc2cacebade8fe371d98e5ee1ab0d71ad2c694e41e9bd15e4e3ecc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmCreateTableParser.java:35-51 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarCreateTableParser.java:33-49 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGCreateTableParser.java:83-99 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmCreateTableParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarCreateTableParser.java\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 81 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmCreateTableParser.java:35\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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmCreateTableParser.java"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c11a25ccc2f9df41ab9205f7e71a45f64800b42f1e82cb5e00c6200a4af4427"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmStatementParser.java:78-93 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java:100-116 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java:102-118 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmStatementParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 279 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmStatementParser.java"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3c0bdeac19242fbb9bf0f42510900027273d7c5ac180480ca070ff8974e6775"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/parser/GaussDbStatementParser.java:132-148 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java:180-196 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java:187-203 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \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 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/parser/GaussDbStatementParser.java:132\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":"core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/parser/GaussDbStatementParser.java"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"be8bf8d52445159612fcc267db4b6f63eb150ca14f66341716fa852c92da490c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveExprParser.java:277-293 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java:1223-1239 | core/src/main/java/com/alibaba/druid/sql/dialect/spark/parser/SparkExprParser.java:139-155 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveExprParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 109 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveExprParser.java"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"377a33e99e5c1bc3dcd3c63b2afab78e489647039857dfcc5715a149f12d14c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MysqlCreateFullTextCharFilterStatement.java:66-82 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MysqlCreateFullTextTokenFilterStatement.java:65-81 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MysqlCreateFullTextTokenizerStatement.java:74-90 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MysqlCreateFullTextCharFilterStatement.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MysqlCreateFullTextTokenFilterStatement.java\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 38 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MysqlCreateFullTextCharFilterStatement.java"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fd1060d9c321fff3da0eb9c8af6f2b136b916b263e2efb4e613073d6f56e989"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201317 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:763-778 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:780-796 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:9360-9373 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java"},"region":{"startLine":763}}}],"partialFingerprints":{"codehealthFindingId/v1":"e52352e658ad0f63057e2d5f4ca66193823a0f7e67557358652fd552c50938dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:886-902 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:982-998 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:1362-1378 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 1096 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060CellAssignmentItem\u0060 in one and \u0060ModelClause.CellAssignmentItem\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":886}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b59b30ff624c75d4d1baba73d01f779cdf3755f53d8d4b4e8dc71cf2654f3f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 3): druid-spring-boot-3-starter/src/main/java/com/alibaba/druid/spring/boot3/autoconfigure/stat/DruidWebStatFilterConfiguration.java:33-55 | druid-spring-boot-4-starter/src/main/java/com/alibaba/druid/spring/boot4/autoconfigure/stat/DruidWebStatFilterConfiguration.java:33-55 | druid-spring-boot-starter/src/main/java/com/alibaba/druid/spring/boot/autoconfigure/stat/DruidWebStatFilterConfiguration.java:33-55 \u2014 before extracting anything, compare \u0060druid-spring-boot-3-starter/src/main/java/com/alibaba/druid/spring/boot3/autoconfigure/stat/DruidWebStatFilterConfiguration.java\u0060 and \u0060druid-spring-boot-4-starter/src/main/java/com/alibaba/druid/spring/boot4/autoconfigure/stat/DruidWebStatFilterConfiguration.java\u0060 as WHOLE FILES: 95% 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 1 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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. Note first that the copies are not typed on the same thing: \u0060DruidStatProperties\u0060 names \u0060com.alibaba.druid.spring.boot.autoconfigure.properties.DruidStatProperties\u0060 in one and \u0060com.alibaba.druid.spring.boot3.autoconfigure.properties.DruidStatProperties\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, 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":"druid-spring-boot-3-starter/src/main/java/com/alibaba/druid/spring/boot3/autoconfigure/stat/DruidWebStatFilterConfiguration.java"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3ca3c5d6336e7a08cda540e7a7a106d2c1e7b2d4e89660d5a7dde2d97bda94e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): core/src/main/java/com/alibaba/druid/filter/FilterChainImpl.java:3944-3960 | core/src/main/java/com/alibaba/druid/filter/FilterChainImpl.java:3986-4002 \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":"core/src/main/java/com/alibaba/druid/filter/FilterChainImpl.java"},"region":{"startLine":3944}}}],"partialFingerprints":{"codehealthFindingId/v1":"54200e18f035fe247fdf434fa1ab327e72cac0d9e7fe1637c523674e5b7e02b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): core/src/main/java/com/alibaba/druid/filter/FilterChainImpl.java:3965-3981 | core/src/main/java/com/alibaba/druid/filter/FilterChainImpl.java:4007-4023 \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":"core/src/main/java/com/alibaba/druid/filter/FilterChainImpl.java"},"region":{"startLine":3965}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a0fc94c243ceb549437eda76e6c1ea4e87a36ff6c24a294146687fcdcbad012"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): core/src/main/java/com/alibaba/druid/pool/PreparedStatementPool.java:113-129 | core/src/main/java/com/alibaba/druid/pool/PreparedStatementPool.java:144-160 \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":"core/src/main/java/com/alibaba/druid/pool/PreparedStatementPool.java"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9fa9e4dec1f238019d574ad8043f6f17ae2443ed2cad0dca7b0aa28ee065afa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLCaseExpr.java:179-195 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLCaseStatement.java:154-170 \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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLCaseExpr.java"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fcbb7afd21368d8ccae56ca820c115eed82d8734688b298ebce49878285d1aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmStatementParser.java:231-247 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java:464-480 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmStatementParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 279 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmStatementParser.java:231\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":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmStatementParser.java"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"88fdeeb4b1250ce07a24b5db3870ae0c4edb87f2f99a5ba424e52977cee782db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/visitor/GaussDbOutputVisitor.java:340-356 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:3764-3780 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060GaussDbInsertStatement\u0060 in one and \u0060SQLInsertStatement\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":"core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/visitor/GaussDbOutputVisitor.java"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"e831ed2818418e6000900c0cdeb5af60d1ca1f483b833f09ea2ebede2be9699e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveLexer.java:303-319 | core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerLexer.java:88-104 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveLexer.java:303\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":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveLexer.java"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"c125ebe68c657a0700ab79f4e67dd1a92cbb62cc6af62c3a20cff5efaa8a158f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/hive/visitor/HiveOutputVisitor.java:233-249 | core/src/main/java/com/alibaba/druid/sql/dialect/odps/visitor/OdpsOutputVisitor.java:72-88 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/odps/visitor/OdpsOutputVisitor.java:72\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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/visitor/HiveOutputVisitor.java"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ce4820f247f65e693e6a2e50ed4fe684f6040809c0a4f9ed5f53513cddbc1bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/hologres/parser/HologresCreateTableParser.java:34-50 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGCreateTableParser.java:46-62 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/hologres/parser/HologresCreateTableParser.java:34\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/hologres/parser/HologresCreateTableParser.java:33\u0060 calls \u0060setLogical\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGCreateTableParser.java:45\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/hologres/parser/HologresCreateTableParser.java"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"7612abc5235b1110fd4f29b61361963bbf39b9071dd4170e5512d0c954dc5cdf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectParser.java:789-805 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSelectParser.java:277-292 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectParser.java"},"region":{"startLine":789}}}],"partialFingerprints":{"codehealthFindingId/v1":"95a722947100442eb80c2e51b7df7e9eaa3c638166a1b400d9f510fa0d7eb909"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:4674-4690 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:6762-6776 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060SQLCreateProcedureStatement\u0060 in one and \u0060SQLDropFunctionStatement\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":4674}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a5437ec8f94c45a093d44f5b2f791f49f3981bb6c54ff54f8623898498fd26e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:4943-4959 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:5189-5205 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060MySqlCreateEventStatement\u0060 in one and \u0060MySqlAlterEventStatement\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":4943}}}],"partialFingerprints":{"codehealthFindingId/v1":"db0062911db7ff9f46b27c7be06255a62cd6982769b2c769b6c8fe7b444aa7bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleRowNumToLimit.java:154-170 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleRowNumToLimit.java:226-242 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleRowNumToLimit.java:154\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleRowNumToLimit.java"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1cc603823725e70434eae8736e52578ced88d0639255cdf5139fc29fb7e5101"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleRowNumToLimit.java:209-224 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleRowNumToLimit.java:287-303 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleRowNumToLimit.java:209\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleRowNumToLimit.java"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"34575b63e1855a3a406325442b18742eb979ff5fbfbfc3524d9d5fa7f373ffee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarSelectParser.java:164-179 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSelectParser.java:156-172 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarSelectParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSelectParser.java\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 217 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarSelectParser.java:164\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarSelectParser.java:163\u0060 calls \u0060setLimit\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSelectParser.java:154\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarSelectParser.java"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b39f75e54c4625d34e6bf60019d2e59211590214a05467fbe4b7db336b413e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java:1249-1265 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java:1338-1353 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java:1249\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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java"},"region":{"startLine":1249}}}],"partialFingerprints":{"codehealthFindingId/v1":"0aa05427d18cbcadc1316acbc0cfeab5d3d0319a58494b728d3991ffb519d5b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeLexer.java:186-202 | core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java:2379-2393 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeLexer.java:186\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":"core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeLexer.java"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"35ebd6696b501c46e9b2abdd435e301f904c7614b50de64aca19dd7139d9f831"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java:2420-2436 | core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java:3115-3131 \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 \u0060core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java:2420\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java"},"region":{"startLine":2420}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea862963dca8a6ffbade90284c53dba864f3e72ecfa341990bbff8c0f6457dbe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:8631-8647 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:8653-8669 \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 \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:8631\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060SQLMergeStatement.WhenDoNothing\u0060 in one and \u0060SQLMergeStatement.WhenDelete\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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":8631}}}],"partialFingerprints":{"codehealthFindingId/v1":"a042aeca1a4b68102823ba3bf28aac932deed77ebc34b30cc51e3291298b5ac6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): core/src/main/java/com/alibaba/druid/util/FnvHash.java:302-318 | core/src/main/java/com/alibaba/druid/util/FnvHash.java:336-352 \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 \u0060core/src/main/java/com/alibaba/druid/util/FnvHash.java:302\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":"core/src/main/java/com/alibaba/druid/util/FnvHash.java"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"5422b976039543d74efb6521053e6558717c93473490bbeffd94d7f0be29a325"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): core/src/main/java/com/alibaba/druid/wall/spi/MySqlWallVisitor.java:82-98 | core/src/main/java/com/alibaba/druid/wall/spi/MySqlWallVisitor.java:155-170 \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 \u0060core/src/main/java/com/alibaba/druid/wall/spi/MySqlWallVisitor.java:82\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060SQLPropertyExpr\u0060 in one and \u0060SQLVariantRefExpr\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060core/src/main/java/com/alibaba/druid/wall/spi/MySqlWallVisitor.java:81\u0060 calls \u0060checkVar\u0060, \u0060getParent\u0060, \u0060getName\u0060 and \u0060core/src/main/java/com/alibaba/druid/wall/spi/MySqlWallVisitor.java:153\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":"core/src/main/java/com/alibaba/druid/wall/spi/MySqlWallVisitor.java"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"9572aa2154fb087f648099a51a879c69643b7c557ea585070c4a09cae1f0719d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 9): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:1831-1846 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:1850-1865 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:1882-1897 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:1777-1792 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:1796-1811 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:1815-1830 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:2167-2182 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:2186-2201 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:2205-2220 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 1096 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060OracleAlterTriggerStatement\u0060 in one and \u0060OracleAlterSynonymStatement\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":1831}}}],"partialFingerprints":{"codehealthFindingId/v1":"3231a5b870a2db508d5d35c69ab6ff33d7244fa4da58486a0df0728a30e792ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 6): core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmExprParser.java:209-223 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java:548-563 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarExprParser.java:282-296 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarExprParser.java:308-322 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGExprParser.java:477-491 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGExprParser.java:503-517 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmExprParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarExprParser.java\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 203 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java:548\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarExprParser.java:306\u0060 calls \u0060setWithTimeZone\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java:546\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":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmExprParser.java"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"be1cfa0cd3c8cf985066053fd755a2d1349040abd63fbb3b4361403d678df7bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 6): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java:675-690 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java:709-724 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java:745-760 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java:767-782 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java:791-806 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java:815-830 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java:675\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java"},"region":{"startLine":675}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeb8027caaa9cd7ccd90c67a3d220664ca6db806d4e2b4ebdb94e5d8e1b16e2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 6): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java:1066-1081 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java:1092-1107 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java:1117-1132 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java:1142-1157 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java:1167-1182 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java:1192-1207 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java:1066\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java"},"region":{"startLine":1066}}}],"partialFingerprints":{"codehealthFindingId/v1":"a417072c6c423b0b7822967e7874446128dfbba695ef9292ac9f544fcb744a32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): core/src/main/java/com/alibaba/druid/pool/DruidPooledStatement.java:376-391 | core/src/main/java/com/alibaba/druid/pool/DruidPooledStatement.java:395-410 | core/src/main/java/com/alibaba/druid/pool/DruidPooledStatement.java:414-429 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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":"core/src/main/java/com/alibaba/druid/pool/DruidPooledStatement.java"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b5cc63075c487760fa076c2cfcca8ebbd77fbf713277363598b276719a24d58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): core/src/main/java/com/alibaba/druid/pool/DruidPooledStatement.java:433-448 | core/src/main/java/com/alibaba/druid/pool/DruidPooledStatement.java:452-467 | core/src/main/java/com/alibaba/druid/pool/DruidPooledStatement.java:471-486 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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":"core/src/main/java/com/alibaba/druid/pool/DruidPooledStatement.java"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"696e5af28b707fcdccf4f9842d03f8df304bdbab9163b61e284a298c357908d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLAnyExpr.java:104-119 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLQueryExpr.java:109-124 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLSomeExpr.java:100-115 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLAnyExpr.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLQueryExpr.java\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 31 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLAnyExpr.java"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"f674f28250c125ddae905bd3e647ae8f87846a4c03e4fad5301847aeac434411"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCheck.java:77-92 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLColumnCheck.java:76-91 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDefault.java:91-106 \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 all 3 call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCheck.java"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"8df3402807b39fec7667aa3f5033dc7e1f5be7693c2e67b26324a73e04330060"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveLexer.java:302-317 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleLexer.java:263-278 | core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerLexer.java:87-102 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \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 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveLexer.java:302\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":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveLexer.java"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"820e544e2077d9ba435dc51ec217639b9cbc08708eb3868c78e2c69840167c5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:1034-1049 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:1158-1171 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:1538-1551 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 1096 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:1034\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060ConditionalInsertClause\u0060 in one and \u0060OracleMultiInsertStatement.ConditionalInsertClause\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":1034}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e7f642d0a5a9724cddf4d78972f5f3b553b3454d48250c21f9baacb3bae7794"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): core/src/main/java/com/alibaba/druid/support/http/WebStatFilter.java:160-175 | core/src/main/java/com/alibaba/druid/support/jakarta/WebStatFilter.java:159-174 | core/src/main/java/com/alibaba/druid/support/spring/mvc/StatHandlerInterceptor.java:126-141 \u2014 \u0060core/src/main/java/com/alibaba/druid/support/http/WebStatFilter.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/support/jakarta/WebStatFilter.java\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 7 separate duplicated blocks between them, totalling at least 261 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/support/http/WebStatFilter.java:160\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":"core/src/main/java/com/alibaba/druid/support/http/WebStatFilter.java"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ff887bf8b9d463ef69799b2912fe5c480b91dd71264021b4e3914601b1f97ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): core/src/main/java/com/alibaba/druid/util/MySqlUtils.java:214-229 | core/src/main/java/com/alibaba/druid/util/OracleUtils.java:213-228 | core/src/main/java/com/alibaba/druid/util/PGUtils.java:57-72 \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 all 3 call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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":"core/src/main/java/com/alibaba/druid/util/MySqlUtils.java"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f4b2c2c7211088396cf9a116024e41509c37c4d2c4002cf963fe2dfbdd9a824"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/SQLDataTypeImpl.java:484-498 | core/src/main/java/com/alibaba/druid/sql/ast/SQLDataTypeImpl.java:504-519 \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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/ast/SQLDataTypeImpl.java"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"bab3a12a4eb01c2da892df15250f19af24adffb09d82d05da1b8e801f32bfffe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/parser/CKExprParser.java:161-176 | core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:4637-4650 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/parser/CKExprParser.java:161\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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/parser/CKExprParser.java"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c2ac5ec025d0c0a36bce51cc6a63888e262e9ec335aafe53a1670f28e1fbbd8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/parser/GaussDbExprParser.java:156-171 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java:2283-2298 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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":"core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/parser/GaussDbExprParser.java"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"e20ee3e0c5ce970dcf4e08168bef38fbe33a78e371313ecff5c9b1b37b0fcb68"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/visitor/GaussDbOutputVisitor.java:457-472 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:10691-10706 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/visitor/GaussDbOutputVisitor.java:457\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":"core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/visitor/GaussDbOutputVisitor.java"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"69281529a210d018884e753ef7e97abfd270e2f4baaa6317adcc33447a476259"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveLexer.java:398-413 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleLexer.java:333-348 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveLexer.java:398\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":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveLexer.java"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c2defeaebd63c64db6a893babb05c6f2b7f60ce3c7df0a14e049063f4832a19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/hive/visitor/HiveOutputVisitor.java:366-381 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:8485-8500 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/visitor/HiveOutputVisitor.java"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"4417584e17b784c2e06ee0a4377549a4f5ea88418a7287f6759a7d386c8caeb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:113-128 | core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsCreateTableParser.java:49-64 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"f59e3add3ac115a772b5271394bba4686e8b6b18b0c9aaae98ccd0ff3600a94a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java:225-240 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java:279-294 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java:225\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"83ed37904c1d7fa77c0f34b0db794ebae69d81b897e098a581bd978dca43f404"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:8225-8240 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:8308-8323 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":8225}}}],"partialFingerprints":{"codehealthFindingId/v1":"107499559957e2d5130e1e779696bea5864293119740540946bda98c91693ac7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:8393-8408 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java:70-85 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:8393\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":8393}}}],"partialFingerprints":{"codehealthFindingId/v1":"51d54a015b3e92a2ed8eef63606dcd74992f6713dee8cab34e22bb1d9ebe8705"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:370-385 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:8827-8842 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060SQLColumnDefinition\u0060 in one and \u0060SQLCreateSequenceStatement\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"2532af7cedebe493ad9abf2e69d380b4b6c0d8030c4e85b8a15df414076427c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:1690-1705 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:3422-3437 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060MySqlShowStatusStatement\u0060 in one and \u0060SQLShowVariantsStatement\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":1690}}}],"partialFingerprints":{"codehealthFindingId/v1":"acbc0f1e356e7bec6d43e5991836faf90bda5eaa8f127b400cf910ba91cefc5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java:1797-1812 | core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerStatementParser.java:1045-1060 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java:1797\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java"},"region":{"startLine":1797}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a86ed2d810050bdb40e83b95f14c03e99ca7ae4b32972146814a9a2f83c9395"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleSchemaStatVisitor.java:119-134 | core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java:2035-2050 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleSchemaStatVisitor.java:119\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java:2052\u0060 calls \u0060incrementDropCount\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleSchemaStatVisitor.java:135\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleSchemaStatVisitor.java"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"f33e83fbae9e451f834444b1c8bd107679cbb356a99b49047d2ed1640648b5b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/ast/stmt/OscarFunctionTableSource.java:60-75 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/ast/stmt/PGFunctionTableSource.java:60-75 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/ast/stmt/OscarFunctionTableSource.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/ast/stmt/PGFunctionTableSource.java\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/ast/stmt/OscarFunctionTableSource.java:60\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/ast/stmt/OscarFunctionTableSource.java"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"701c6d1e288bf021cc2f3275c2899afc0b1d39cd5cb8b6f4b4ce934e8a450c77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarExprParser.java:237-252 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGExprParser.java:424-439 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarExprParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGExprParser.java\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 294 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarExprParser.java:237\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarExprParser.java"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"42b3e2b1f05136a046f14e2f803ef97bfba902ea22c8117172ca0c1128866549"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:183-198 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:163-178 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 99 separate duplicated blocks between them, totalling at least 1839 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:183\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060OscarSelectQueryBlock\u0060 in one and \u0060PGSelectQueryBlock\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"678e1ede6f08432b6be62d2ad60964c79f1deef4b6d567c18f3a00554d582beb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:554-569 | core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/visitor/SQLServerOutputVisitor.java:514-529 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba8b88d2ad6b4e815e73fa9028dcc60de5b74ea7a66e003096bc05203fc51214"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java:231-246 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java:286-301 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 578 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java:231\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c0aea7aa5c9678759e3f75f601862a81f6411f3c25bdbea7e6e3c781ef9238b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/spark/parser/SparkStatementParser.java:71-86 | core/src/main/java/com/alibaba/druid/sql/dialect/spark/parser/SparkStatementParser.java:100-115 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/spark/parser/SparkStatementParser.java"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"17f0d1a62174ec1261800341f4b2087a3db9ec39f1cc19907376e4aa958524f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:5207-5221 | core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:5280-5295 \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 \u0060core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:5207\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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":5207}}}],"partialFingerprints":{"codehealthFindingId/v1":"7220d799eeb0f4a34be05832cb9de758188ead8dbc16dc90c643dbf0ca9a8f5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:5516-5531 | core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:5539-5554 \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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":5516}}}],"partialFingerprints":{"codehealthFindingId/v1":"a473c36fed5e7a84730d226cf89c65e13ebfef4e2b4613bf08cc36facd86547e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:6181-6196 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:6793-6808 \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 \u0060core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:6181\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:6791\u0060 calls \u0060getNumber\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:6180\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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":6181}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbb64298a3b93abd4963c5eb0ec6b5d006963efd4a70076e0953782a32595485"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): core/src/main/java/com/alibaba/druid/support/http/stat/WebAppStatManager.java:138-153 | core/src/main/java/com/alibaba/druid/support/spring/stat/SpringStatManager.java:52-67 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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":"core/src/main/java/com/alibaba/druid/support/http/stat/WebAppStatManager.java"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"70dcafe519fcc788b6ec5a61820cc10322dccdf22436de41d65f80fccf0a62f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): core/src/main/java/com/alibaba/druid/support/opds/udf/ExportConditionColumns.java:46-61 | core/src/main/java/com/alibaba/druid/support/opds/udf/ExportSelectListColumns.java:45-60 \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 \u0060core/src/main/java/com/alibaba/druid/support/opds/udf/ExportConditionColumns.java:46\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":"core/src/main/java/com/alibaba/druid/support/opds/udf/ExportConditionColumns.java"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2545abd0ab8c6fbea6a593deed90da0be8865027b5f0eac287320f866b5a864"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): core/src/main/java/com/alibaba/druid/util/MySqlUtils.java:1235-1250 | core/src/main/java/com/alibaba/druid/util/MySqlUtils.java:1252-1267 \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 \u0060core/src/main/java/com/alibaba/druid/util/MySqlUtils.java:1235\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/util/MySqlUtils.java"},"region":{"startLine":1235}}}],"partialFingerprints":{"codehealthFindingId/v1":"b33ed5fb5ab4e8d2511b725a2d4ee8240fd872c60b41da39017dc2569f1d4e87"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): core/src/main/java/com/alibaba/druid/util/MySqlUtils.java:1743-1758 | core/src/main/java/com/alibaba/druid/util/MySqlUtils.java:1760-1775 \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 \u0060core/src/main/java/com/alibaba/druid/util/MySqlUtils.java:1743\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/util/MySqlUtils.java"},"region":{"startLine":1743}}}],"partialFingerprints":{"codehealthFindingId/v1":"08af7bed6ca4456b616898606711549fdef2921dd812846a99dc5e534607dea9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 13): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:3005-3019 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:3422-3436 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:3445-3459 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:3468-3482 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:3491-3505 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:3514-3528 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:3593-3607 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:3636-3650 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:3660-3674 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:3705-3719 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:3728-3742 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:3756-3770 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:4029-4043 \u2014 all 13 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 after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:3772\u0060 calls \u0060setFull\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:3438\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":3005}}}],"partialFingerprints":{"codehealthFindingId/v1":"0743c66c92e0dd892c7d05312e842d31c2d96b73a79ba4c5d0d667c7073d8447"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 6): core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryLexer.java:243-257 | core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryLexer.java:409-423 | core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveLexer.java:168-182 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java:536-550 | core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java:1847-1861 | core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java:1968-1982 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryLexer.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveLexer.java\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 176 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryLexer.java:243\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":"core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryLexer.java"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"e35d21a1c08850fb1ef93be308ac5987d6d4af74a28fa254061060a86a0454bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 6): core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:6073-6087 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:6310-6324 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:6394-6408 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:6605-6619 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:6682-6696 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:6848-6862 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \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 \u0060core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:6073\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:6308\u0060 calls \u0060add\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:6604\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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":6073}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ba641fc27ab4965644c7b3c7f5db29a7042200aae6e4652b60f6dd5d7b10ce7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 5): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:1456-1470 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:2209-2223 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:2702-2716 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:7751-7765 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:7776-7790 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 1096 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:7776\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060SQLIfStatement.Else\u0060 in one and \u0060SQLIfStatement.ElseIf\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":1456}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea22ee25933dcf685c59f70103c830d7e6db54e07c80986abcacf4cbfb04d155"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java:2434-2448 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:4260-4274 | core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java:3129-3143 | core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java:2288-2302 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \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 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java:2434\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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java"},"region":{"startLine":2434}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8dbef1787c242820b530a50a31ee44df0963fadc3984338361e819acbbafb0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): core/src/main/java/com/alibaba/druid/filter/FilterEventAdapter.java:202-216 | core/src/main/java/com/alibaba/druid/filter/FilterEventAdapter.java:225-239 | core/src/main/java/com/alibaba/druid/filter/FilterEventAdapter.java:248-262 \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 \u0060core/src/main/java/com/alibaba/druid/filter/FilterEventAdapter.java:202\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":"core/src/main/java/com/alibaba/druid/filter/FilterEventAdapter.java"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"57c87e42d1d3ccc9493c1bae613ee137a7cd40adc22584c9a6c411afc2f74663"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2StatementParser.java:173-187 | core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmStatementParser.java:242-255 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java:475-488 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \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 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2StatementParser.java:173\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2StatementParser.java"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"340a5b2aae5b59e8db94b1638778b3213587f72a7a35c346a4b338cc470412fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmLexer.java:146-160 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarLexer.java:206-219 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGLexer.java:210-223 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmLexer.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarLexer.java\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 89 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarLexer.java:206\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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmLexer.java"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef9f93386ebbf79ab4110a55add73a68efa3e72906209da649891315715dc394"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmOutputVisitor.java:230-244 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:368-382 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:365-379 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 111 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmOutputVisitor.java:230\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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060DmUpdateStatement\u0060 in one and \u0060OscarUpdateStatement\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":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmOutputVisitor.java"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"405e29b1812d4fe9889b2aebef6f24143254d225781bbc06a6c88a45015a847b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/h2/visitor/H2OutputVisitor.java:165-179 | core/src/main/java/com/alibaba/druid/sql/dialect/hive/visitor/HiveOutputVisitor.java:725-739 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:11502-11516 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \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 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/h2/visitor/H2OutputVisitor.java:165\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":"core/src/main/java/com/alibaba/druid/sql/dialect/h2/visitor/H2OutputVisitor.java"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba23288de1234fccff988674c6254606eeea4249b897237e33c9a9de6b47f518"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:1177-1191 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:1216-1230 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGCreateTableParser.java:130-144 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:1177\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java"},"region":{"startLine":1177}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bc1316b759171033435a96db4607dc9fa647fc1426501624bfaf2e0dd7c272d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:291-305 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:2018-2032 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:2511-2525 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 1096 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:291\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"04e69ce8b1ff1c6c8b76faea1afb147254abededc905369b8feb7c2243dd93df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:480-494 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:1863-1877 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:2253-2267 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 1096 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:480\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"67fe091a6712e76778f01aca9ffe69f1e2516bf832c9a014d029ba80a56a8601"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:821-835 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:917-931 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:1297-1311 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 1096 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060ModelColumnClause\u0060 in one and \u0060ModelClause.ModelColumnClause\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"863a9d0eecbeb6ef0d9ff9e4399d76d48986dd7ce615bb4d8261b2918f1cde66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:1093-1107 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:9645-9659 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:9662-9676 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060OracleDatetimeExpr\u0060 in one and \u0060SQLAtTimeZoneExpr\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":1093}}}],"partialFingerprints":{"codehealthFindingId/v1":"29ed701da1e0fc68008096dbceef44e7533cfb66399a1d1183f61786b9caed19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:1642-1656 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:1689-1703 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:2079-2093 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 1096 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:1642\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":1642}}}],"partialFingerprints":{"codehealthFindingId/v1":"120c5e230f9b7959d4143e04e7e3a91fe446e025185d9eade8271d3f98191509"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:375-389 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:372-386 | core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/visitor/SQLServerOutputVisitor.java:165-179 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 99 separate duplicated blocks between them, totalling at least 1839 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060OscarUpdateStatement\u0060 in one and \u0060PGUpdateStatement\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bccd38bbf76408921a65766a976c5820b3c4710bc9c1d63217cc2731de0f695"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java:212-226 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java:334-348 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java:523-537 \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 \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"652825496ca408d3f8d73f7801d4361b638af3f22497014869ee17dd9b6d1418"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java:1550-1564 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java:1574-1588 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java:1598-1612 \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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java"},"region":{"startLine":1550}}}],"partialFingerprints":{"codehealthFindingId/v1":"f197f551cad97a9dbe6107e809f29492c08be81962c3bd641cdeb339f726c084"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): druid-spring-boot-3-starter/src/main/java/com/alibaba/druid/spring/boot3/autoconfigure/DruidDataSourceWrapper.java:38-52 | druid-spring-boot-4-starter/src/main/java/com/alibaba/druid/spring/boot4/autoconfigure/DruidDataSourceWrapper.java:38-52 | druid-spring-boot-starter/src/main/java/com/alibaba/druid/spring/boot/autoconfigure/DruidDataSourceWrapper.java:38-52 \u2014 before extracting anything, compare \u0060druid-spring-boot-3-starter/src/main/java/com/alibaba/druid/spring/boot3/autoconfigure/DruidDataSourceWrapper.java\u0060 and \u0060druid-spring-boot-4-starter/src/main/java/com/alibaba/druid/spring/boot4/autoconfigure/DruidDataSourceWrapper.java\u0060 as WHOLE FILES: 94% 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 1 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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":"druid-spring-boot-3-starter/src/main/java/com/alibaba/druid/spring/boot3/autoconfigure/DruidDataSourceWrapper.java"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec3da814df8c2820c41d8294dcbfe326e10662d753de18706119e64607bdd7e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): core/src/main/java/com/alibaba/druid/filter/FilterChainImpl.java:1358-1371 | core/src/main/java/com/alibaba/druid/filter/FilterChainImpl.java:1411-1425 \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 \u0060core/src/main/java/com/alibaba/druid/filter/FilterChainImpl.java:1411\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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/filter/FilterChainImpl.java"},"region":{"startLine":1358}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1fc7274abdf347a37a7733c278147b834dc7ff1d1e9f008a9e38b875f007fa1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201327 lines \u00D7 2): core/src/main/java/com/alibaba/druid/pool/DruidPooledConnection.java:397-422 | core/src/main/java/com/alibaba/druid/pool/DruidPooledConnection.java:431-457 \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 \u0060core/src/main/java/com/alibaba/druid/pool/DruidPooledConnection.java:397\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/pool/DruidPooledConnection.java"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"45c3f7ece8720818e79463ac6d2b1d699c571745731f0148fe94216a24ac7fc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/SQLUtils.java:1673-1687 | core/src/main/java/com/alibaba/druid/sql/SQLUtils.java:1710-1724 \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 \u0060core/src/main/java/com/alibaba/druid/sql/SQLUtils.java:1673\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":"core/src/main/java/com/alibaba/druid/sql/SQLUtils.java"},"region":{"startLine":1673}}}],"partialFingerprints":{"codehealthFindingId/v1":"20d47d8568366f3d9dd702f4afad0e8b861a03aedf2454bce36b27078443a7bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/SQLObjectImpl.java:168-182 | core/src/main/java/com/alibaba/druid/sql/ast/SQLObjectImpl.java:213-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 \u0060core/src/main/java/com/alibaba/druid/sql/ast/SQLObjectImpl.java:168\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":"core/src/main/java/com/alibaba/druid/sql/ast/SQLObjectImpl.java"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd9e711cf074e3a20f40783e8256a1eae35be8a7d2f4b748d6665e6a200a3806"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTimestampExpr.java:431-445 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTimestampExpr.java:475-489 \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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTimestampExpr.java"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"94df2e48310cd3bc7ad14db0aaf048dee1599a9038003fde6130ea7ef0a39402"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryOutputVisitor.java:403-417 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:7729-7743 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 148 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryOutputVisitor.java:403\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":"core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryOutputVisitor.java"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e533ede987f54a85245ffdd79be087e3ad12bfe9e8221151bba326b0ed9cc45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveCreateTableParser.java:370-384 | core/src/main/java/com/alibaba/druid/sql/parser/SQLCreateTableParser.java:264-278 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveCreateTableParser.java:370\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":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveCreateTableParser.java"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"64fbc09ad13ef63db8dd9bfefbdf76d43522f4dcdb8957f9df4b0a46588908d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveExprParser.java:120-133 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java:565-579 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveExprParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 109 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveExprParser.java:120\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":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveExprParser.java"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"26cb01b20dfb4266c9ffd920ab47c98a472ad650ce32e3c5a8ae4f600f36f23c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectIntoParser.java:285-299 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectParser.java:817-831 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectIntoParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectParser.java\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 45 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectIntoParser.java:285\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectIntoParser.java"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"2596f091e8f3467926567694c509a3a8e4f3439f870d8551c6425e7535de2ed9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:3818-3832 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:3845-3859 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:3835\u0060 calls \u0060setFull\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:3861\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":3818}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3bfbd5cafb5168621d3b647202d692ee3187098108a8bfc18f578bc3de9d894"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:5847-5861 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:5874-5888 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:5847\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":5847}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cc3f3624bdfeb906e7742b0d64e955a1a90fe3b10212db480fcbc460a870f38"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:8643-8657 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:1345-1357 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:8643\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":8643}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa5dc353fe71038960d8e6d5a2ba8e523ecaa3af2bd9f162b4993e0496653706"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:1576-1590 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:9239-9253 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060SQLRollbackStatement\u0060 in one and \u0060SQLCommitStatement\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":1576}}}],"partialFingerprints":{"codehealthFindingId/v1":"21163bfb48094bcfdaa83d44cc893af1e11f91e307a85e2725723d33a28099bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:1808-1822 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:1872-1886 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060DrdsRecoverDDLJob\u0060 in one and \u0060DrdsClearDDLJobCache\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":1808}}}],"partialFingerprints":{"codehealthFindingId/v1":"7abc82277bb5c35d1d609531733f9c35ba24f1107d07be5cae3e496fcec699ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsStatementParser.java:1497-1511 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:1969-1983 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsStatementParser.java:1497\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":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsStatementParser.java"},"region":{"startLine":1497}}}],"partialFingerprints":{"codehealthFindingId/v1":"7af01863904fa16897eba0414f3501f8ac7849f507a8391e5cd0d894d481fe30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/odps/visitor/OdpsOutputVisitor.java:460-474 | core/src/main/java/com/alibaba/druid/sql/dialect/odps/visitor/OdpsOutputVisitor.java:477-491 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060SQLOrderBy\u0060 in one and \u0060SQLZOrderBy\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":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/visitor/OdpsOutputVisitor.java"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d9332c932bf26cec5fd161e8445bbeff4498e9b1f6f4cdf109ce4159e05d32c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/odps/visitor/OdpsOutputVisitor.java:1145-1159 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:2201-2215 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/visitor/OdpsOutputVisitor.java"},"region":{"startLine":1145}}}],"partialFingerprints":{"codehealthFindingId/v1":"01651f33989420e72691cba0c1d97b0022bfb6a89274f61afe194ac4ab10e0b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java:400-414 | core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:1177-1191 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java:400\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c4b42e8a4cada2e4957f7d7666e45b716b0a7dd8744f58dc91987329ec644ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleLexer.java:281-295 | core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerLexer.java:105-119 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleLexer.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerLexer.java\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 75 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleLexer.java:281\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleLexer.java"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca2f236a7e770204b35f4e567fedfdd5f084058d733283ef02ddef4e4051c752"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:377-391 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:1628-1642 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 64 separate duplicated blocks between them, totalling at least 1084 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:377\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"e85b18ba4c8a2c585bf0169ff56fd0a6094f213118e4f87fbe8632071907be76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarSelectParser.java:274-288 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSelectParser.java:308-322 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarSelectParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSelectParser.java\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 217 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarSelectParser.java:274\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarSelectParser.java"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"39d6fb1fc0e96efa9470b75eaf3ce0a17fb8a8fde1bcc6e56b3249337a342c10"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:462-476 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:741-755 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 99 separate duplicated blocks between them, totalling at least 1839 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060OscarCreateSchemaStatement\u0060 in one and \u0060PGCreateSchemaStatement\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"850c2b7700c68d4773adcac8fe9b62935d364a2e0279fc6abf3e6ef4170d6d1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:509-523 | core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/visitor/SQLServerOutputVisitor.java:282-296 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:509\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ff98ddadd6fab366335cd5fc5b09fea54f58a6020c8dea32af053cd9be78416"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:1203-1217 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:1581-1595 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 99 separate duplicated blocks between them, totalling at least 1839 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:1203\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":1203}}}],"partialFingerprints":{"codehealthFindingId/v1":"7113d91560a7af022abd237954ae43aef056ea843acaadcc7048b6ad79b0cf62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:3254-3268 | core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:3360-3374 \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 \u0060core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:3254\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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":3254}}}],"partialFingerprints":{"codehealthFindingId/v1":"80ffc6940543691fd02063df48e2b8fa6038cea95d803dc008f10badf7c847c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:6942-6956 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:7056-7070 \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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":6942}}}],"partialFingerprints":{"codehealthFindingId/v1":"518bd2eb46c7effde7a8b48f299c4469314985b07e4c4eced93d719350f72e0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/repository/SchemaRepository.java:245-258 | core/src/main/java/com/alibaba/druid/sql/repository/SchemaRepository.java:268-282 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/repository/SchemaRepository.java:260\u0060 calls \u0060loadDDL\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/repository/SchemaRepository.java:284\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":"core/src/main/java/com/alibaba/druid/sql/repository/SchemaRepository.java"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eb7db833eec611ab492916b92391fce77c60d8ab1d65e746f0b943fe2cccb42"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:9419-9433 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:10529-10543 \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 \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:9419\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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":9419}}}],"partialFingerprints":{"codehealthFindingId/v1":"37dc3b89e4f44897450b918c8a07b53e6c3156be02f3460f1831f63efacbd65a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java:3202-3216 | core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java:3219-3233 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060SQLExportTableStatement\u0060 in one and \u0060SQLImportTableStatement\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":"core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java"},"region":{"startLine":3202}}}],"partialFingerprints":{"codehealthFindingId/v1":"123dca548d264760c0d9ef4cfa0a69148c723f9d208235210b52d8b4ddfdce7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/visitor/functions/Ascii.java:29-42 | core/src/main/java/com/alibaba/druid/sql/visitor/functions/OneParamFunctions.java:34-48 \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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/visitor/functions/Ascii.java"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"900bc2608e56dbe0881948c1d35b288b6b7d9b74676ae50bce4cbf795f347553"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): core/src/main/java/com/alibaba/druid/stat/JdbcSqlStat.java:635-649 | core/src/main/java/com/alibaba/druid/wall/WallTableStat.java:272-285 \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 \u0060core/src/main/java/com/alibaba/druid/stat/JdbcSqlStat.java:635\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":"core/src/main/java/com/alibaba/druid/stat/JdbcSqlStat.java"},"region":{"startLine":635}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd435636072f23094bc22cc9c765de4c18090086fc217c3d094c79a284ed94aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): core/src/main/java/com/alibaba/druid/support/http/StatViewServlet.java:108-122 | core/src/main/java/com/alibaba/druid/support/jakarta/StatViewServlet.java:108-122 \u2014 \u0060core/src/main/java/com/alibaba/druid/support/http/StatViewServlet.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/support/jakarta/StatViewServlet.java\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 7 separate duplicated blocks between them, totalling at least 136 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/support/http/StatViewServlet.java"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"44bcd43ef2219415c9335d812fc4477360ecc9d2efa6556ef6d0a1492b7be203"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): druid-admin/src/main/java/com/alibaba/druid/admin/service/MonitorStatService.java:74-88 | druid-admin/src/main/java/com/alibaba/druid/admin/service/MonitorStatService.java:118-132 \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 \u0060druid-admin/src/main/java/com/alibaba/druid/admin/service/MonitorStatService.java:74\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":"druid-admin/src/main/java/com/alibaba/druid/admin/service/MonitorStatService.java"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"28a3d388898fd1de3e1a75e022a33ec3cbb6e2d28860c0cdb1393a1c0e77638c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 8): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java:985-997 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java:1022-1035 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java:1061-1074 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java:1087-1100 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java:1113-1125 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java:1138-1150 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java:1163-1175 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java:1188-1200 \u2014 all 8 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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java:1022\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java"},"region":{"startLine":985}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f8351e21ceb17bf23ddcc36496b4b1e289867d0da16e0d59bd764265d87a17f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 6): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLLateralViewTableSource.java:134-147 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLUnionQueryTableSource.java:76-89 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLValuesTableSource.java:104-117 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlUpdateTableSource.java:60-73 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/ast/stmt/OscarFunctionTableSource.java:70-83 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/ast/stmt/PGFunctionTableSource.java:70-83 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/ast/stmt/OscarFunctionTableSource.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/ast/stmt/PGFunctionTableSource.java\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLLateralViewTableSource.java:134\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLLateralViewTableSource.java"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"42c458064f80e8744a0170211d7f62d3595bef10d9644fe3819947e8e9fe6563"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): core/src/main/java/com/alibaba/druid/sql/dialect/athena/parser/AthenaCreateTableParser.java:89-102 | core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveCreateTableParser.java:274-287 | core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsCreateTableParser.java:93-106 | core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsCreateTableParser.java:408-421 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/athena/parser/AthenaCreateTableParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveCreateTableParser.java\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 95 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/athena/parser/AthenaCreateTableParser.java"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d74cf9538cd12d4665d9dc8f452d18144f46c5c3569b491efc7ef93833b6d01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java:689-702 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java:723-736 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java:1000-1013 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java:1038-1051 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java:689\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java"},"region":{"startLine":689}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab84a5c4b8a0c3733e5f782670db9b98cc3ad1545b6c363a6cdfd36c348fa3d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): core/src/main/java/com/alibaba/druid/support/http/ResourceServlet.java:86-99 | core/src/main/java/com/alibaba/druid/support/http/StatViewFilter.java:71-84 | core/src/main/java/com/alibaba/druid/support/jakarta/ResourceServlet.java:73-86 | core/src/main/java/com/alibaba/druid/support/jakarta/StatViewFilter.java:70-83 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/support/http/ResourceServlet.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/support/http/StatViewFilter.java\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 38 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/support/http/ResourceServlet.java:86\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":"core/src/main/java/com/alibaba/druid/support/http/ResourceServlet.java"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"4180500f4d0a0ff67b1e42281e89c4e27c19c0af78735d96a6dc1847431da6d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): core/src/main/java/com/alibaba/druid/support/http/ResourceServlet.java:106-119 | core/src/main/java/com/alibaba/druid/support/http/StatViewFilter.java:91-104 | core/src/main/java/com/alibaba/druid/support/jakarta/ResourceServlet.java:93-106 | core/src/main/java/com/alibaba/druid/support/jakarta/StatViewFilter.java:90-103 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/support/http/ResourceServlet.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/support/http/StatViewFilter.java\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 38 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/support/http/ResourceServlet.java:106\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":"core/src/main/java/com/alibaba/druid/support/http/ResourceServlet.java"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c42bd10d3ef3ff3b00b7622ae560c03e79eee5258a653dcf6356bac4aa1c8ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): core/src/main/java/com/alibaba/druid/filter/FilterEventAdapter.java:341-354 | core/src/main/java/com/alibaba/druid/filter/FilterEventAdapter.java:364-377 | core/src/main/java/com/alibaba/druid/filter/FilterEventAdapter.java:387-400 \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 \u0060core/src/main/java/com/alibaba/druid/filter/FilterEventAdapter.java:341\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":"core/src/main/java/com/alibaba/druid/filter/FilterEventAdapter.java"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4758acf27a228bf4346e7d134922123cc91a04feaef0fc3addd8eaf11912c3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 3): core/src/main/java/com/alibaba/druid/filter/FilterEventAdapter.java:438-451 | core/src/main/java/com/alibaba/druid/filter/FilterEventAdapter.java:467-478 | core/src/main/java/com/alibaba/druid/filter/FilterEventAdapter.java:490-501 \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 \u0060core/src/main/java/com/alibaba/druid/filter/FilterEventAdapter.java:438\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":"core/src/main/java/com/alibaba/druid/filter/FilterEventAdapter.java"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"f43a4cd2d45698b42cd453c5fd7f3ee0c0f3dd320b695189567e079f8101e78f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/blink/parser/BlinkCreateTableParser.java:44-57 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:115-128 | core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsCreateTableParser.java:51-64 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \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 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/blink/parser/BlinkCreateTableParser.java:44\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":"core/src/main/java/com/alibaba/druid/sql/dialect/blink/parser/BlinkCreateTableParser.java"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"00e319954e1ea90825bd96585b5405cb3bcd106df1a9715016c5a1f162abb91c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmExprParser.java:272-285 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarExprParser.java:410-426 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGExprParser.java:612-628 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmExprParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarExprParser.java\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 203 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmExprParser.java"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe5c3cd1def81c401a82414ce9053ef617fe4c830b1a19846b8a06199a1ab016"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmStatementParser.java:145-158 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java:347-360 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java:472-485 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmStatementParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 279 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmStatementParser.java"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"be470defdca1b1ff77918063f16b3deb2421c33f49dffbe7a941a12b1a8638a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201326 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmStatementParser.java:275-297 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java:591-616 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java:1121-1146 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmStatementParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 279 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmStatementParser.java"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e4ca02bc76a14b27d892eab6af8db283031adbebbc02aca39ed332483b98120"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveCreateTableParser.java:403-415 | core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsCreateTableParser.java:330-342 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:2379-2392 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \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 3 times. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060stmt\u0060 to \u0060HiveCreateTableStatement\u0060 in one and \u0060SQLAlterTableStatement\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":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveCreateTableParser.java"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cf0b255d6d3bf4e79dfa96d74a234b10ee690d4680b4092817d3cb481de8a1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveExprParser.java:121-133 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java:566-579 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGExprParser.java:230-243 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveExprParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 109 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveExprParser.java:121\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":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveExprParser.java"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"a45cf8711083fece2e807be62ade846a0b87cfcdfb8de41e4240ea4b1c8a17ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:1811-1824 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:1849-1862 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:1875-1888 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:1811\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060DrdsRecoverDDLJob\u0060 in one and \u0060DrdsRemoveDDLJob\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":1811}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d5f51e2ba69f2ed5405d8bbb04b4417f676376327ce5d096eb70943f9d929c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:4675-4688 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:6763-6774 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:9886-9899 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060SQLCreateProcedureStatement\u0060 in one and \u0060SQLDropFunctionStatement\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":4675}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4abbd078293118b0c4ce24080e138318683a494562c3f1b0deccb16dccc7e16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:258-271 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:1991-2004 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:2484-2497 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 1096 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:258\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"c75279e83211ec736d3e0020052b021e66f97c81063fe55ead36f994e7a06b69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:2503-2516 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:1433-1446 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:1810-1823 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 1096 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":2503}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d5ef1c4fe083018fdf0545091d820edcaf425ba4bea2615b6e81446a4d1d65d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201314 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java:209-222 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java:216-229 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java:493-502 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 578 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java:209\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7ff0cff5e038cd98aeefa1a9090a6e12f8afb2476c799b43c19749220731291"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java:2412-2425 | core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java:3107-3120 | core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java:2269-2282 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \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 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java:2412\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java:2427\u0060 calls \u0060getRelations\u0060, \u0060size\u0060, \u0060addAll\u0060 and \u0060core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java:2284\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":"core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java"},"region":{"startLine":2412}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd03d97a4c7523a29bf5ea04c9286eeb532002e22e03c3ae95fcabfe4f699d52"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): core/src/main/java/com/alibaba/druid/support/http/WebStatFilter.java:97-110 | core/src/main/java/com/alibaba/druid/support/jakarta/WebStatFilter.java:96-109 | core/src/main/java/com/alibaba/druid/support/spring/mvc/StatHandlerInterceptor.java:67-80 \u2014 \u0060core/src/main/java/com/alibaba/druid/support/http/WebStatFilter.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/support/jakarta/WebStatFilter.java\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 7 separate duplicated blocks between them, totalling at least 261 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/support/http/WebStatFilter.java"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"654f30984f4d548e81306e4deb7c642189371a377ebd58dd0a0c3d039f8422b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): core/src/main/java/com/alibaba/druid/filter/encoding/EncodingConvertFilter.java:74-87 | core/src/main/java/com/alibaba/druid/filter/encoding/EncodingConvertFilter.java:144-156 \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 \u0060core/src/main/java/com/alibaba/druid/filter/encoding/EncodingConvertFilter.java:74\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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060core/src/main/java/com/alibaba/druid/filter/encoding/EncodingConvertFilter.java:141\u0060 calls \u0060findColumn\u0060 and \u0060core/src/main/java/com/alibaba/druid/filter/encoding/EncodingConvertFilter.java:71\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":"core/src/main/java/com/alibaba/druid/filter/encoding/EncodingConvertFilter.java"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cd6687400f6298508ae68a6903f0ae363e536a2c7bd9aadf3e956c90b1d6246"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): core/src/main/java/com/alibaba/druid/filter/encoding/EncodingConvertFilter.java:139-152 | core/src/main/java/com/alibaba/druid/filter/encoding/EncodingConvertFilter.java:163-176 \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 \u0060core/src/main/java/com/alibaba/druid/filter/encoding/EncodingConvertFilter.java:139\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":"core/src/main/java/com/alibaba/druid/filter/encoding/EncodingConvertFilter.java"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"2393df2a9a5e392ab3fa673027ca43ff98138688b243184dcb8d3a04b51c8af8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): core/src/main/java/com/alibaba/druid/pool/DruidAbstractDataSource.java:1978-1991 | core/src/main/java/com/alibaba/druid/pool/DruidAbstractDataSource.java:1993-2006 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060core/src/main/java/com/alibaba/druid/pool/DruidAbstractDataSource.java:1976\u0060 calls \u0060of\u0060, \u0060isMysqlDbType\u0060 and \u0060core/src/main/java/com/alibaba/druid/pool/DruidAbstractDataSource.java:1991\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":"core/src/main/java/com/alibaba/druid/pool/DruidAbstractDataSource.java"},"region":{"startLine":1978}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0a3e6551032fe5deaf1bbf730f0c96af795ba7b983a3d6367e84f1d96c4b77e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): core/src/main/java/com/alibaba/druid/pool/DruidPooledStatement.java:208-221 | core/src/main/java/com/alibaba/druid/pool/DruidPooledStatement.java:250-263 \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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/pool/DruidPooledStatement.java"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"f115ab42b4a94088eb1ac69f6cdcadc7fca8bb8684c5b95f06fd669a60923e2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLMethodInvokeExpr.java:107-120 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLPropertyExpr.java:109-122 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLPropertyExpr.java:124\u0060 calls \u0060hashCode64\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLMethodInvokeExpr.java:121\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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLMethodInvokeExpr.java"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"7072b6099bbd07a111a379dcd8e4faf75cc552bf678167992e01a220af226240"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTimestampExpr.java:542-555 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTimestampExpr.java:560-573 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTimestampExpr.java:574-585 \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 \u0060core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTimestampExpr.java:542\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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTimestampExpr.java"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9e78a317194c609a4a87a9a23c1ec0ecd57f6b96f6ac20a1790c428212f171f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateTableStatement.java:931-944 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateTableStatement.java:1140-1153 \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 \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateTableStatement.java:931\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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateTableStatement.java"},"region":{"startLine":931}}}],"partialFingerprints":{"codehealthFindingId/v1":"f151c0f0c40d5f05738715e00caf833407bf7dc9410888c2833c0317aa77ed8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java:155-168 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java:228-240 \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 \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java:155\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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"efb7b9bf18831a577b7aff153dbc5288371eafb789d8fa7a9d4c97dcabc85827"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLUnique.java:160-191 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlTableIndex.java:105-136 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLUnique.java"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfe19569d398d9cdac398bdded93e499564d18326b37c831c9f5d5e04b71a0b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/visitor/CKOutputVisitor.java:314-327 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:2749-2762 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/visitor/CKOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 71 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/visitor/CKOutputVisitor.java:314\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":"core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/visitor/CKOutputVisitor.java"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"e634856c7687b26c2d1304a903197024382a632e285f0ecc07b266693d80a71b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2ExprParser.java:170-183 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java:762-775 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2ExprParser.java:170\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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2ExprParser.java"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"6243f8121d0c73222ebb3ea1ca97da69f73c6eddfc05e87a8b51e94a636b4d4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2SelectParser.java:80-93 | core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java:493-506 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2SelectParser.java"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"b266c56b89249571526f4f76f5f4705b60d670a9eaa85c20f3b039abd12d77f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmOutputVisitor.java:73-86 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:91-104 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 111 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmOutputVisitor.java:73\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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060DmSelectQueryBlock\u0060 in one and \u0060OscarSelectQueryBlock\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":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmOutputVisitor.java"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"65c646e9f0567fac2416c02ec76253df5542d7be5cc562e076c5d9ae1aa198e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/visitor/GaussDbOutputVisitor.java:381-394 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:1249-1262 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/visitor/GaussDbOutputVisitor.java:396\u0060 calls \u0060printOnConflict\u0060, \u0060printReturning\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:1264\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":"core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/visitor/GaussDbOutputVisitor.java"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"e04a79da0a9af0adec556e5194fb0ac42fb88a5a8e8481c84d65c95f674dfe79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveLexer.java:346-359 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleLexer.java:289-302 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveLexer.java:346\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":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveLexer.java"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaeb5a6953b771a84c93555a8917e6d265bc9b3c4bce031c38f12f85e1594090"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/impala/visitor/ImpalaOutputVisitor.java:97-110 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:3799-3812 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/impala/visitor/ImpalaOutputVisitor.java:97\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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060ImpalaInsertStatement\u0060 in one and \u0060SQLInsertStatement\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/impala/visitor/ImpalaOutputVisitor.java:111\u0060 calls \u0060printHint\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:3813\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/impala/visitor/ImpalaOutputVisitor.java"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d9c4d6ba782e781e12fd6d4c480763112df0c7668517fbe1d697c004f21b311"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlCreateTableStatement.java:369-381 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlCreateTableStatement.java:417-430 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlCreateTableStatement.java:369\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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060item\u0060 to \u0060MySqlAlterTableChangeColumn\u0060 in one and \u0060MySqlAlterTableModifyColumn\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlCreateTableStatement.java"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"24b2273e0c92e6495828f2e8f93734623cea1cfd904765ccffae9a7bfaa17f7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:1046-1059 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:1288-1301 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:1060\u0060 calls \u0060token\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:1302\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java"},"region":{"startLine":1046}}}],"partialFingerprints":{"codehealthFindingId/v1":"468165eb310a390752139b87b9dc0fea34648ad130707c385d15c03c3684ad22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:1154-1167 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:6006-6018 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java"},"region":{"startLine":1154}}}],"partialFingerprints":{"codehealthFindingId/v1":"db9a12ebc82a72af9ec9830a999769b13abc75df072e6a6ef6e78a015ebc5d1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectParser.java:523-536 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:176-189 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectParser.java:523\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:175\u0060 calls \u0060mark\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectParser.java:522\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectParser.java"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c9e6561dfe95463edca052a114ea4e51b0f5579857e493c8afc228bd140799c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:9409-9422 | core/src/main/java/com/alibaba/druid/sql/dialect/presto/parser/PrestoStatementParser.java:531-544 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":9409}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2769472bd6ab530d7c4e8112e051b881eb712d3f65284a299597a0bb1f7c98b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:611-624 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:6290-6303 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:611\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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060MySqlTableIndex\u0060 in one and \u0060SQLCreateIndexStatement\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2d1e26b35a46b66c062b83d4066ea99ab1d8feec6f762abb44abebecf67e929"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:2574-2587 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:11409-11422 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060MySqlShowGrantsStatement\u0060 in one and \u0060SQLShowGrantsStatement\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":2574}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3ed1398fb008a64b6f307db9ab09edfac547a9f7ddb235519476b22d84d716f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:3611-3624 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarPermissionOutputVisitor.java:66-79 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":3611}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ec6b3f0f0540352a87d66e591b96954f7e6202aff85f529682ddb0e9a5629a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsSelectParser.java:185-198 | core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java:814-827 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsSelectParser.java:185\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":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsSelectParser.java"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce76465e3e83899deb6019fb3eff2b606429e677693f76bbe1b618fb10194a16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsStatementParser.java:1188-1201 | core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsStatementParser.java:1225-1238 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsStatementParser.java:1188\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":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsStatementParser.java"},"region":{"startLine":1188}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bb749de400f7dab58e198ec64b207d731c2a24b8eff2b4ca4f025e4dcf82168"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleSelectParser.java:967-980 | core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java:2432-2445 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleSelectParser.java:967\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleSelectParser.java"},"region":{"startLine":967}}}],"partialFingerprints":{"codehealthFindingId/v1":"75c91ddd0862be127995de4d0835e8b810b8d5c2c7f3f14f015f00189d8d6e4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java:2754-2767 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:4778-4791 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java:2754\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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java"},"region":{"startLine":2754}}}],"partialFingerprints":{"codehealthFindingId/v1":"56fa87a5847e9c5f2bd37c3e68182bfb3b1c86c91b386546c8a3b1f0c8a85a82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:348-361 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:1187-1200 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 1096 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:348\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"747b806a2e17f8c3fb48ec8fd2959b8a7ac07706155b5ca056907d428ffa4f09"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/ast/stmt/OscarSelectQueryBlock.java:45-58 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/ast/stmt/PGSelectQueryBlock.java:64-77 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/ast/stmt/OscarSelectQueryBlock.java:45\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 \u0060visitor\u0060 to \u0060OscarASTVisitor\u0060 in one and \u0060PGASTVisitor\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/ast/stmt/OscarSelectQueryBlock.java:44\u0060 calls \u0060acceptChild\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/ast/stmt/PGSelectQueryBlock.java:63\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/ast/stmt/OscarSelectQueryBlock.java"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d7b3f43fb4bee4ef54763999a1bcd2b8ab2f1a759d1ee7b2d59405e72a55d06"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:533-546 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:907-919 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 99 separate duplicated blocks between them, totalling at least 1839 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:533\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aa3828c862105852620f6ebcc4518848dc5b4756b05b61971c3f126f7f52b12"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:2070-2081 | core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:6082-6095 \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 \u0060core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:2070\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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":2070}}}],"partialFingerprints":{"codehealthFindingId/v1":"99fcd2f3d8441ebfc9f9ac72c4d85545c778645fcaaa6bf15690a1ad7c120a90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:1226-1239 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:3638-3651 \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 \u0060core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:1226\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":1226}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a0d116389d8164d977f6b7db2cbfd8ad04d86f65a24cbce7ffbd5355e4728cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:7195-7208 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:7229-7242 \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 \u0060core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:7195\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":7195}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3a228a856de729802c21f03c2acd82c9ae63393c441c99a676afdcd01e91921"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java:354-367 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java:515-528 \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 \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java:354\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java:529\u0060 calls \u0060getArguments\u0060, \u0060get\u0060, \u0060accept\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java:368\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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c5fc3c771f76d5f751f501b6fa6ea21dec6e047feaf629578479c8a2626f3fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): core/src/main/java/com/alibaba/druid/support/http/stat/WebAppStat.java:239-252 | core/src/main/java/com/alibaba/druid/support/spring/stat/SpringMethodStat.java:182-195 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/support/http/stat/WebAppStat.java"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"819d33c670971026ab92c7ae9b256f144e353e26bbcd97b295bf3bc03dec7cd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): core/src/main/java/com/alibaba/druid/util/MySqlUtils.java:1081-1094 | core/src/main/java/com/alibaba/druid/util/MySqlUtils.java:1534-1547 \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 \u0060core/src/main/java/com/alibaba/druid/util/MySqlUtils.java:1081\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":"core/src/main/java/com/alibaba/druid/util/MySqlUtils.java"},"region":{"startLine":1081}}}],"partialFingerprints":{"codehealthFindingId/v1":"370529a48f44f26b10899cdbaf68f649dc84834f4f956f9a8376bdeee5717ec5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java:447-460 | core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java:469-482 \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 \u0060core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java:447\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":"core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"61708284554c4f897e794729e3be0371d3379594734f6ba9123dd683c30ad129"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 10): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:188-199 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:204-216 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:222-233 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:264-275 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:279-291 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:298-309 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:319-330 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:350-362 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:377-389 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:9252-9264 \u2014 there are 10 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 10 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:204\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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:294\u0060 calls \u0060mark\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:219\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d487769c71fcb877202754bc90a5cef3b70bb3fc6494a5c1f88942eac6fdda2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 8): core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java:281-293 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java:304-316 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java:327-339 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java:400-412 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java:423-435 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java:446-458 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java:469-481 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java:492-504 \u2014 all 8 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 \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java:281\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java:340\u0060 calls \u0060getArguments\u0060, \u0060get\u0060, \u0060accept\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java:294\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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd134f2635264f1efd6e63e9dfe8943e7a36ee68be35fca436d895aab6dc2699"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 5): core/src/main/java/com/alibaba/druid/sql/dialect/athena/parser/AthenaCreateTableParser.java:65-76 | core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveCreateTableParser.java:193-204 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:818-829 | core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsCreateTableParser.java:307-318 | core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsStatementParser.java:1653-1665 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/athena/parser/AthenaCreateTableParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveCreateTableParser.java\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 95 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060stmt\u0060 to \u0060SQLCreateTableStatement\u0060 in one and \u0060SQLAlterTableStatement\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":"core/src/main/java/com/alibaba/druid/sql/dialect/athena/parser/AthenaCreateTableParser.java"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"febd140085d658aaa32c03d9e6beb7056cfd4219e700a67f51e6c3ac600eb078"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 5): core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:1179-1191 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:1201-1213 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:1249-1261 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:1273-1285 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:1288-1300 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \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 \u0060core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:1179\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":1179}}}],"partialFingerprints":{"codehealthFindingId/v1":"7507e5794da4b53e5d3dfa95c3556f055d5d9ae4d3e37cadfb62ac5ff8b506d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryOutputVisitor.java:411-423 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:1512-1524 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:2265-2277 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:2758-2770 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \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 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryOutputVisitor.java:411\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryOutputVisitor.java"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c5b5ff8bca66dde2e86fc96765a2ef7ab2a8f4ce666992d094953210f92908c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 4): core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmStatementParser.java:314-326 | core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveStatementParser.java:420-432 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java:638-650 | core/src/main/java/com/alibaba/druid/sql/dialect/sqlite/parser/SQLiteStatementParser.java:58-69 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmStatementParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 279 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmStatementParser.java"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"32af853c1280400c7b47008b1d46f86684852c70d8a86c79270051f2b783f249"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): core/src/main/java/com/alibaba/druid/util/FnvHash.java:117-129 | core/src/main/java/com/alibaba/druid/util/FnvHash.java:206-218 | core/src/main/java/com/alibaba/druid/util/FnvHash.java:295-307 | core/src/main/java/com/alibaba/druid/util/FnvHash.java:329-341 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/util/FnvHash.java"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff54576cd0fdec18ca2728a12f7abd24bc8585003d35c9c80057c8acaec1c00d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): core/src/main/java/com/alibaba/druid/filter/encoding/EncodingConvertFilter.java:70-82 | core/src/main/java/com/alibaba/druid/filter/encoding/EncodingConvertFilter.java:94-106 | core/src/main/java/com/alibaba/druid/filter/encoding/EncodingConvertFilter.java:116-128 \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 \u0060core/src/main/java/com/alibaba/druid/filter/encoding/EncodingConvertFilter.java:70\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":"core/src/main/java/com/alibaba/druid/filter/encoding/EncodingConvertFilter.java"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"106ea00a366df0d425e6dd39d9db751b23dcefbd5ed136e30d8f43ce6c4b84ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/PagerUtils.java:37-49 | core/src/main/java/com/alibaba/druid/sql/PagerUtils.java:54-66 | core/src/main/java/com/alibaba/druid/sql/PagerUtils.java:72-84 \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":"core/src/main/java/com/alibaba/druid/sql/PagerUtils.java"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"e66ff58892c192f84895389b7f29dafa05c6dad371a1a7ec421bd08dc127dad4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/ast/SQLDataTypeImpl.java:320-332 | core/src/main/java/com/alibaba/druid/sql/ast/SQLDataTypeImpl.java:369-380 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCharacterDataType.java:140-151 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/ast/SQLDataTypeImpl.java:320\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/SQLDataTypeImpl.java"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"93842398aba56d41a648e1d56bac6632957879dfcb51a3cdc47946f8a7783202"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLLoopStatement.java:79-90 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleExitStatement.java:71-82 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OraclePipeRowStatement.java:54-66 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \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 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLLoopStatement.java:79\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLLoopStatement.java"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"287eebbe90b3dc3f4eda76081fa84ffaf1a74a9c30e4cb1316e3014dea66d556"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmSelectParser.java:201-213 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarSelectParser.java:226-238 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSelectParser.java:231-243 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmSelectParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarSelectParser.java\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 109 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmSelectParser.java:201\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmSelectParser.java:200\u0060 calls \u0060setParent\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarSelectParser.java:225\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":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmSelectParser.java"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8a654e28a3d2341662e1dc24a95931fbe337191beef66e1b681dbc363c1aed5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/doris/parser/DorisCreateTableParser.java:51-63 | core/src/main/java/com/alibaba/druid/sql/dialect/impala/parser/ImpalaCreateTableParser.java:226-238 | core/src/main/java/com/alibaba/druid/sql/dialect/starrocks/parser/StarRocksCreateTableParser.java:208-220 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \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 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/doris/parser/DorisCreateTableParser.java"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"e502fc9474a1af758ef1d501cfa9f4d3db7ed4c46849ee1e945f724dc60cbbfa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:3544-3556 | core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsStatementParser.java:972-984 | core/src/main/java/com/alibaba/druid/sql/dialect/presto/parser/PrestoStatementParser.java:404-416 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \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 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":3544}}}],"partialFingerprints":{"codehealthFindingId/v1":"b271d69fe93d05b130f7f3e2306e6befab9e842bee87e8b819530c4b9451e57a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:6442-6452 | core/src/main/java/com/alibaba/druid/sql/dialect/spark/parser/SparkStatementParser.java:73-85 | core/src/main/java/com/alibaba/druid/sql/dialect/spark/parser/SparkStatementParser.java:102-114 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":6442}}}],"partialFingerprints":{"codehealthFindingId/v1":"d280eb1c262624c163cff405e6f3d2a9719452e73c69f2c93b5091dc4ff75bec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:1602-1614 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:7179-7191 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:10247-10259 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060SQLShowTablesStatement\u0060 in one and \u0060SQLShowColumnsStatement\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:7193\u0060 calls \u0060isExtended\u0060, \u0060print0\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:1616\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":1602}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7f1d1857daf239ce1a341e1b6a702e491722f63f48fb9810cfcbb9f75bb8eb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:1475-1487 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:2228-2240 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:2721-2733 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 1096 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:1475\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":1475}}}],"partialFingerprints":{"codehealthFindingId/v1":"a52859007eac87d63622968e31f47be8691a2c0b8f0626dfe1ac5b7646db4f21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java:329-341 | core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java:1487-1499 | core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java:1626-1638 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060SQLIdentifierExpr\u0060 in one and \u0060SQLPropertyExpr\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":"core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7a882a5ce4668967782e335a0224eb133ec89d6305c5b85125caaee29e1d576"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 3): core/src/main/java/com/alibaba/druid/support/http/stat/WebAppStat.java:487-499 | core/src/main/java/com/alibaba/druid/support/http/stat/WebAppStat.java:507-518 | core/src/main/java/com/alibaba/druid/support/spring/stat/SpringStat.java:69-81 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/support/http/stat/WebAppStat.java:487\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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/support/http/stat/WebAppStat.java"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a1f229abc55fa7fead425b7d3b896a81ff2a7fac843639622baba63596cf2a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): core/src/main/java/com/alibaba/druid/util/FnvHash.java:139-151 | core/src/main/java/com/alibaba/druid/util/FnvHash.java:155-167 | core/src/main/java/com/alibaba/druid/util/FnvHash.java:171-183 \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 \u0060core/src/main/java/com/alibaba/druid/util/FnvHash.java:139\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060key\u0060 to \u0060String\u0060 in one and \u0060StringBuilder\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":"core/src/main/java/com/alibaba/druid/util/FnvHash.java"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccb45263685f1dad54780fb712dae495818e4346371fc4a6338209f272b4b1b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): core/src/main/java/com/alibaba/druid/wall/WallFilter.java:639-651 | core/src/main/java/com/alibaba/druid/wall/WallFilter.java:656-668 | core/src/main/java/com/alibaba/druid/wall/WallFilter.java:682-694 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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":"core/src/main/java/com/alibaba/druid/wall/WallFilter.java"},"region":{"startLine":639}}}],"partialFingerprints":{"codehealthFindingId/v1":"b107809638d4c14248ed03e322416785eb576bf45c6f29237c5d6b548a5b15f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): core/src/main/java/com/alibaba/druid/filter/encoding/EncodingConvertFilter.java:99-111 | core/src/main/java/com/alibaba/druid/filter/encoding/EncodingConvertFilter.java:169-180 \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 \u0060core/src/main/java/com/alibaba/druid/filter/encoding/EncodingConvertFilter.java:99\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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060core/src/main/java/com/alibaba/druid/filter/encoding/EncodingConvertFilter.java:165\u0060 calls \u0060findColumn\u0060 and \u0060core/src/main/java/com/alibaba/druid/filter/encoding/EncodingConvertFilter.java:95\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":"core/src/main/java/com/alibaba/druid/filter/encoding/EncodingConvertFilter.java"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc83e84dbe98f77f6c2da9d111d73fa5ab9d64d954669ed7ebfa3b6baaf014c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): core/src/main/java/com/alibaba/druid/pool/DruidPooledConnection.java:603-618 | core/src/main/java/com/alibaba/druid/pool/DruidPooledConnection.java:638-650 \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 \u0060core/src/main/java/com/alibaba/druid/pool/DruidPooledConnection.java:603\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/pool/DruidPooledConnection.java"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"b620048e7dad1f3a288cf06efad05f3d9dbb9acd0f2974973aa51f1f6250b7f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): core/src/main/java/com/alibaba/druid/pool/DruidPooledStatement.java:680-692 | core/src/main/java/com/alibaba/druid/pool/DruidPooledStatement.java:818-830 \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 \u0060core/src/main/java/com/alibaba/druid/pool/DruidPooledStatement.java:680\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":"core/src/main/java/com/alibaba/druid/pool/DruidPooledStatement.java"},"region":{"startLine":680}}}],"partialFingerprints":{"codehealthFindingId/v1":"de126b25f30d711567e446d63c41b511f253e2c493d723d1b0caecdd58fb407b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/SQLUtils.java:826-838 | core/src/main/java/com/alibaba/druid/sql/SQLUtils.java:1737-1749 \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":"core/src/main/java/com/alibaba/druid/sql/SQLUtils.java"},"region":{"startLine":826}}}],"partialFingerprints":{"codehealthFindingId/v1":"12310d2042d595c10ab676db60dbea39ce74097cd7b8b263e25355e7d24be621"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterViewStatement.java:236-248 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateViewStatement.java:282-294 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterViewStatement.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateViewStatement.java\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 61 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterViewStatement.java"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"6318bde9e0629a9b165b3826d7f3d8bfaa510f31e85cc5e12793294d694776fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201313 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryStatementParser.java:330-339 | core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerStatementParser.java:562-574 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerStatementParser.java:558\u0060 calls \u0060identifierEquals\u0060, \u0060parseTryCatch\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryStatementParser.java:329\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":"core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryStatementParser.java"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea3d09bf59602974b6bcc34453bb7b31456f93b8601498df55730a5e9f0bc171"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2StatementParser.java:126-138 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java:427-439 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2StatementParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 67 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2StatementParser.java:126\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2StatementParser.java"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaef6c337e4a82ccb60dcbc331b949427a7a1051b5049c6baff0e6eb92e23aa2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmOutputVisitor.java:107-119 | core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmOutputVisitor.java:237-249 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060DmSelectQueryBlock\u0060 in one and \u0060DmUpdateStatement\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":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmOutputVisitor.java"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cdf49a9205492b3c16e7cb387b78d2141d0ac9f00fb7694e6a942de738b552a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/doris/parser/DorisCreateTableParser.java:21-33 | core/src/main/java/com/alibaba/druid/sql/dialect/starrocks/parser/StarRocksCreateTableParser.java:179-191 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/doris/parser/DorisCreateTableParser.java:21\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/starrocks/parser/StarRocksCreateTableParser.java:192\u0060 calls \u0060nextIf\u0060, \u0060SQLPartitionByValue\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/doris/parser/DorisCreateTableParser.java:34\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":"core/src/main/java/com/alibaba/druid/sql/dialect/doris/parser/DorisCreateTableParser.java"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"56e84b7a37ebecc8d835d2b9f6f2a7754c666190f463ef12af3c775ea4554e2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/parser/GaussDbStatementParser.java:90-102 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java:144-156 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/parser/GaussDbStatementParser.java:90\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":"core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/parser/GaussDbStatementParser.java"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"4274ebbea2a49cccc1d291e775b68858ea53213824b108f16152509189422e06"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/visitor/GaussDbOutputVisitor.java:420-432 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:3084-3096 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/visitor/GaussDbOutputVisitor.java:420\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":"core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/visitor/GaussDbOutputVisitor.java"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aeae7bdd6af318157942fc38c5eb114aa70152dc932e88da8a0f9d5879d2f4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveExprParser.java:343-355 | core/src/main/java/com/alibaba/druid/sql/dialect/spark/parser/SparkExprParser.java:233-245 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveExprParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/spark/parser/SparkExprParser.java\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveExprParser.java"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"3accd998cf7a3cd22c43e743341d237557f95ecff20532931c9161d012416164"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:428-440 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:9282-9294 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:428\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8a42993412a0206ee0b7f2710d6fa2bc5608d33c61a1b5c65613b064a58933c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:855-867 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:869-881 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java"},"region":{"startLine":855}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bd08aa8f2f6e6a0bd89561c36f51d47927bc56347c5735acf1c9a40f034aa89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectParser.java:632-644 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleSelectParser.java:948-960 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectParser.java:632\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectParser.java"},"region":{"startLine":632}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7b6af0cea241fc07c15da74182302bb11ce682d02b6b0dae4c66948a7db264a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:962-973 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:986-998 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:962\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":962}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e97a7023e25c75ffa477032482e6d0603c7c75f87addc96e5625557bdda2708"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:5268-5280 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:5087-5099 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:5268\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":5268}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fbefc9468b0063af221829392353add26b6fd7e36e413948faa3d7924ca66cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:5304-5316 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:5129-5141 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":5304}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f4bd5167e231f330ed3c7feca65428f762c010924e1e53a8d2433896957f1a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:5809-5821 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:5912-5924 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":5809}}}],"partialFingerprints":{"codehealthFindingId/v1":"f925c6b578cde4335ba0394aff6815a250c701e30998c1782c3a89bdf010d39f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:9327-9339 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:9341-9353 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":9327}}}],"partialFingerprints":{"codehealthFindingId/v1":"d26a77cd9587f132b744e5e6fd7a47070d7eb12d2fbf087e2d2ecb2b51f0e005"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:1792-1804 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:1828-1840 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060DrdsCancelDDLJob\u0060 in one and \u0060DrdsRollbackDDLJob\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":1792}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecaf496aea4361f2c485869bffe73cb15f0291263f8e7f4c5d652a554d8baeea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:3690-3702 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:3707-3719 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:3690\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060MySqlAlterTableChangeColumn\u0060 in one and \u0060MySqlAlterTableModifyColumn\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:3688\u0060 calls \u0060getColumnName\u0060, \u0060accept\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:3706\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":3690}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d91a871bd4c5f2b22f2836d955ec32749f424668d3f370b7d8cffe3670769cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsStatementParser.java:1181-1193 | core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsStatementParser.java:1212-1223 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsStatementParser.java:1181\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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsStatementParser.java"},"region":{"startLine":1181}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fdec8217524321650411010daff60ee1180211110f3d52990bb6ee748cd5afb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/odps/visitor/OdpsOutputVisitor.java:121-133 | core/src/main/java/com/alibaba/druid/sql/dialect/spark/visitor/SparkOutputASTVisitor.java:49-61 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060SQLCreateTableStatement\u0060 in one and \u0060SparkCreateTableStatement\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/spark/visitor/SparkOutputASTVisitor.java:62\u0060 calls \u0060printUsing\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/odps/visitor/OdpsOutputVisitor.java:134\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/visitor/OdpsOutputVisitor.java"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"a318330431843a1deaf27f3c3d760c2b0ce392eac5cc50aa79fb9821b464ed49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/odps/visitor/OdpsOutputVisitor.java:331-343 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:2894-2906 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/odps/visitor/OdpsOutputVisitor.java:331\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":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/visitor/OdpsOutputVisitor.java"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b8cf88d564ba5a9511646c3139d6a474ca62b9c2c9bdc82c920f5528234162f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/odps/visitor/OdpsOutputVisitor.java:564-576 | core/src/main/java/com/alibaba/druid/sql/dialect/odps/visitor/OdpsOutputVisitor.java:911-923 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060OdpsReadStatement\u0060 in one and \u0060OdpsCountStatement\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":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/visitor/OdpsOutputVisitor.java"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c1cd885218cd76af1ad7f24767238db6b6a09962118ed15d90ceb8395e0a6dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleSelectParser.java:717-729 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleSelectParser.java:736-748 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleSelectParser.java:717\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleSelectParser.java"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"7baa0d92a1808eb7673aa337a41c0bab618341834b113408824abdf406a84fc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java:1077-1089 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java:2862-2874 \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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java"},"region":{"startLine":1077}}}],"partialFingerprints":{"codehealthFindingId/v1":"27e2a288219421fc4a050322940160e6b4a90dbed9f7ddb7eb3e9b2436aa7fe4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:389-401 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:1261-1272 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 1096 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:389\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8e8eee01b50e2e1aa89fac471719b16f77ab92acf383a00bb20f9c5835aad22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeSelectParser.java:225-237 | core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeSelectParser.java:242-254 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeSelectParser.java:225\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeSelectParser.java"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"15d86e9d2e81af7c0061ed9ef6f807ec31409cc2be182bc15cada75e6f72d25e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java:2521-2533 | core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java:2571-2583 \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 \u0060core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java:2521\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":"core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java"},"region":{"startLine":2521}}}],"partialFingerprints":{"codehealthFindingId/v1":"81ae2df13671bb49658a9185522f349e8e6bb1a5e4eac08157023d6d9137c771"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:870-882 | core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:1337-1349 \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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea84536b2916a5db402b17d5d9126dcd683793e227031f2d258878321027e53b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:2163-2175 | core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:2183-2195 \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 \u0060core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:2163\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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":2163}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b387cc027988f20d0f0420b3d4bf909a76a2f4f8335da96d917bed72b8f86a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:4137-4149 | core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:4189-4201 \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 \u0060core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:4137\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:4150\u0060 calls \u0060getSubQuery\u0060, \u0060getQuery\u0060, \u0060setParenthesized\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:4202\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":4137}}}],"partialFingerprints":{"codehealthFindingId/v1":"f39693d66501d31e80b9ba459804b9dfd772244a9bc577cc2b6d74c03228a8a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:4440-4451 | core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:4474-4486 \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 \u0060core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:4440\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:4451\u0060 calls \u0060parseDataTypeRest\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:4486\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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":4440}}}],"partialFingerprints":{"codehealthFindingId/v1":"552d38b8b4b78e1d6c26a74776363af5b40b4f5ed7e79808ede0c29e35c8d320"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:6089-6101 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:6699-6711 \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 \u0060core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:6089\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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":6089}}}],"partialFingerprints":{"codehealthFindingId/v1":"3362faaf82a9dd56ab452014529084f2456e5ca13a20a0c87c7e3fadbc9dc63b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/visitor/ParameterizedOutputVisitorUtils.java:203-215 | core/src/main/java/com/alibaba/druid/sql/visitor/ParameterizedOutputVisitorUtils.java:336-348 \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 \u0060core/src/main/java/com/alibaba/druid/sql/visitor/ParameterizedOutputVisitorUtils.java:203\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":"core/src/main/java/com/alibaba/druid/sql/visitor/ParameterizedOutputVisitorUtils.java"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"04578113bfdc0c611b8a5a1d20ba7edc1fc82fe66c14b26821e64314df26e5ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:4951-4963 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:5036-5046 \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 \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:4951\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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060SQLSubqueryTableSource\u0060 in one and \u0060SQLGeneratedTableSource\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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":4951}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbbd053691ed74c576d3f0ee1a53f775bdc47ca211053e4ef4467881a5bc80c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:4990-5002 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:5032-5044 \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 \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:4990\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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":4990}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d5dcd0cf4f6f098d5a2b5f45ce7352441715c584a8e3486e057cef3478d7042"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): core/src/main/java/com/alibaba/druid/stat/DruidDataSourceStatManager.java:215-227 | core/src/main/java/com/alibaba/druid/stat/DruidDataSourceStatManager.java:230-242 \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":"core/src/main/java/com/alibaba/druid/stat/DruidDataSourceStatManager.java"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"26ccfad451849b0b019244ffc2ce927717d9de99da6c0345f825b5070047613e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): core/src/main/java/com/alibaba/druid/support/ibatis/SpringIbatisBeanTypeAutoProxyCreator.java:50-62 | core/src/main/java/com/alibaba/druid/support/spring/stat/BeanTypeAutoProxyCreator.java:62-74 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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":"core/src/main/java/com/alibaba/druid/support/ibatis/SpringIbatisBeanTypeAutoProxyCreator.java"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9a336ff2e385c34750f57be55f1c4d21675e4a3c3fc4907448fbcac4fcea6b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): core/src/main/java/com/alibaba/druid/util/FnvHash.java:25-37 | core/src/main/java/com/alibaba/druid/util/FnvHash.java:40-52 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060input\u0060 to \u0060String\u0060 in one and \u0060StringBuilder\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":"core/src/main/java/com/alibaba/druid/util/FnvHash.java"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9a51d778ddff84a17de1a94224fe0717dd9e569be34b26a160ae7100844ce7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): core/src/main/java/com/alibaba/druid/wall/WallProvider.java:162-174 | core/src/main/java/com/alibaba/druid/wall/WallProvider.java:189-201 \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 \u0060core/src/main/java/com/alibaba/druid/wall/WallProvider.java:162\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":"core/src/main/java/com/alibaba/druid/wall/WallProvider.java"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"86903b6eed0e42f32fc5e7d4400eae39be9a7fe5475cb94e848cdd2da8b0e82f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java:1783-1795 | core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java:2122-2134 \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":"core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java"},"region":{"startLine":1783}}}],"partialFingerprints":{"codehealthFindingId/v1":"db4c837395f13a5383c3909d9f652087eaa35ef9890449720aecb30891cbc442"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 11): core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java:240-251 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java:265-276 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java:288-299 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java:311-322 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java:362-373 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java:384-395 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java:407-418 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java:430-441 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java:453-464 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java:476-487 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java:499-510 \u2014 all 11 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 \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java:240\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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java:279\u0060 calls \u0060acos\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java:376\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"29088ac333b88179b5516c71e504c4a013d17f46345343c54bf747f98eb24b34"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 9): core/src/main/java/com/alibaba/druid/filter/FilterEventAdapter.java:186-197 | core/src/main/java/com/alibaba/druid/filter/FilterEventAdapter.java:209-220 | core/src/main/java/com/alibaba/druid/filter/FilterEventAdapter.java:232-243 | core/src/main/java/com/alibaba/druid/filter/FilterEventAdapter.java:255-266 | core/src/main/java/com/alibaba/druid/filter/FilterEventAdapter.java:303-314 | core/src/main/java/com/alibaba/druid/filter/FilterEventAdapter.java:325-336 | core/src/main/java/com/alibaba/druid/filter/FilterEventAdapter.java:348-359 | core/src/main/java/com/alibaba/druid/filter/FilterEventAdapter.java:371-382 | core/src/main/java/com/alibaba/druid/filter/FilterEventAdapter.java:394-405 \u2014 all 9 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 \u0060core/src/main/java/com/alibaba/druid/filter/FilterEventAdapter.java:186\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":"core/src/main/java/com/alibaba/druid/filter/FilterEventAdapter.java"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c435a9609969a6da39f3fd0191b0d390f0a6d06cc43e8bcbc41c353540f5a94"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 6): core/src/main/java/com/alibaba/druid/sql/visitor/functions/Lcase.java:32-43 | core/src/main/java/com/alibaba/druid/sql/visitor/functions/Length.java:32-43 | core/src/main/java/com/alibaba/druid/sql/visitor/functions/Ltrim.java:29-40 | core/src/main/java/com/alibaba/druid/sql/visitor/functions/Reverse.java:29-40 | core/src/main/java/com/alibaba/druid/sql/visitor/functions/Trim.java:29-40 | core/src/main/java/com/alibaba/druid/sql/visitor/functions/Ucase.java:32-43 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/visitor/functions/Length.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/visitor/functions/Ucase.java\u0060 as WHOLE FILES: 88% 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 3 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/visitor/functions/Lcase.java:32\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":"core/src/main/java/com/alibaba/druid/sql/visitor/functions/Lcase.java"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"150507b107ebb02322f5d8cc70a74ffb998c2aa453ff421e3fe0ef9a1d831f39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 5): core/src/main/java/com/alibaba/druid/sql/dialect/blink/vsitor/BlinkOutputVisitor.java:62-73 | core/src/main/java/com/alibaba/druid/sql/dialect/h2/visitor/H2OutputVisitor.java:164-175 | core/src/main/java/com/alibaba/druid/sql/dialect/hive/visitor/HiveOutputVisitor.java:724-735 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:3954-3965 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:11501-11512 \u2014 there are 5 copies across 4 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/blink/vsitor/BlinkOutputVisitor.java:62\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":"core/src/main/java/com/alibaba/druid/sql/dialect/blink/vsitor/BlinkOutputVisitor.java"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"350512d35b6504cc6b2802933df25d996193bddab87b9efab2b228d26ec17214"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 5): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:3048-3058 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:3073-3083 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:3172-3182 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:3237-3247 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:3380-3391 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:3048\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:3060\u0060 calls \u0060token\u0060, \u0060nextToken\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:3184\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":3048}}}],"partialFingerprints":{"codehealthFindingId/v1":"17b7cfb05c8109fb65d630fb11df27e496950a6f2fa34247d67cbf0ecc02fa02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 4): core/src/main/java/com/alibaba/druid/sql/ast/TDDLHint.java:71-82 | core/src/main/java/com/alibaba/druid/sql/ast/TDDLHint.java:88-98 | core/src/main/java/com/alibaba/druid/sql/ast/TDDLHint.java:112-123 | core/src/main/java/com/alibaba/druid/sql/ast/TDDLHint.java:162-173 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \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 \u0060core/src/main/java/com/alibaba/druid/sql/ast/TDDLHint.java:71\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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/TDDLHint.java"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"892785aa8bb82be08584abbe19a2f21f4e767c6b3d1bdf855df9d758edcdc3ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2StatementParser.java:173-184 | core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmStatementParser.java:242-253 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java:475-486 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java:986-997 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \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 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2StatementParser.java:173\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java:982\u0060 calls \u0060token\u0060, \u0060identifierEquals\u0060, \u0060nextToken\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmStatementParser.java:241\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":"core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2StatementParser.java"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"58ca8e5ded7cd2f7343afe37f152f35df1ac1d573f67ae09f9b5d4eb84beb44b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmCreateTableParser.java:40-51 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:1184-1195 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarCreateTableParser.java:38-49 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGCreateTableParser.java:88-99 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmCreateTableParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 42 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmCreateTableParser.java:40\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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmCreateTableParser.java:38\u0060 calls \u0060setType\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:1182\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmCreateTableParser.java"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"18405c1719a789d3e8924c9ddb92946d65b6b51f4175c1c6a0a82d1d101017db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmStatementParser.java:286-297 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java:605-616 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java:1135-1146 | core/src/main/java/com/alibaba/druid/sql/dialect/sqlite/parser/SQLiteStatementParser.java:41-52 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmStatementParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 279 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmStatementParser.java:286\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":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmStatementParser.java"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fc9a6c1f1c2ede161e4778783812062d47a58cb9006c5d02799beb3f7bf90eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmOutputVisitor.java:234-245 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:372-383 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:369-380 | core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/visitor/SQLServerOutputVisitor.java:162-173 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 111 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmOutputVisitor.java:234\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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060DmUpdateStatement\u0060 in one and \u0060OscarUpdateStatement\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":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmOutputVisitor.java"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"b01f06d384110d40c8933ac83fa9255facfc399a4b3efd62a4ea70e435735181"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/parser/GaussDbCreateTableParser.java:160-171 | core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/parser/GaussDbCreateTableParser.java:185-196 | core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/parser/GaussDbCreateTableParser.java:260-271 | core/src/main/java/com/alibaba/druid/sql/dialect/impala/parser/ImpalaCreateTableParser.java:216-227 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/parser/GaussDbCreateTableParser.java:160\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/parser/GaussDbCreateTableParser.java:197\u0060 calls \u0060token\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/parser/GaussDbCreateTableParser.java:172\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/parser/GaussDbCreateTableParser.java"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"dda0b049134ffccf809ddf3883469ce6ef7d18d96d815fcae0e628892eadc51d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): core/src/main/java/com/alibaba/druid/sql/dialect/odps/visitor/OdpsOutputVisitor.java:407-418 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:358-369 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:1197-1208 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:1575-1586 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \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 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/odps/visitor/OdpsOutputVisitor.java:407\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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060OdpsSelectQueryBlock\u0060 in one and \u0060OracleSelectQueryBlock\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:370\u0060 calls \u0060printInto\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/odps/visitor/OdpsOutputVisitor.java:420\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":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/visitor/OdpsOutputVisitor.java"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"4af654ffefc30eb2444021e51af01aa255a79435c4834c1daee47c25fc938865"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/PagerUtils.java:119-129 | core/src/main/java/com/alibaba/druid/sql/PagerUtils.java:188-199 | core/src/main/java/com/alibaba/druid/sql/PagerUtils.java:451-461 \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 \u0060core/src/main/java/com/alibaba/druid/sql/PagerUtils.java:119\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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060queryBlock\u0060 to \u0060SQLUnionQuery\u0060 in one and \u0060SQLSelectQueryBlock\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/PagerUtils.java:130\u0060 calls \u0060getRowCount\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/PagerUtils.java:201\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":"core/src/main/java/com/alibaba/druid/sql/PagerUtils.java"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9b70d32b9b6f0a142d4a7aedaea33607776dc24e9b0e39d261b0e2417e8ac9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmCreateTableParser.java:54-64 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarCreateTableParser.java:57-68 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGCreateTableParser.java:107-117 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmCreateTableParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarCreateTableParser.java\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 81 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarCreateTableParser.java:57\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmCreateTableParser.java"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"92b013bdd408cf8ad33459a263fa992499b75c57fdfa0fba22e284cdd7dda163"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmExprParser.java:70-81 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarExprParser.java:122-133 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGExprParser.java:302-313 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmExprParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarExprParser.java\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 203 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmExprParser.java:70\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGExprParser.java:314\u0060 calls \u0060mark\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmExprParser.java:83\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":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmExprParser.java"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a76ca35a541266282ad54dcf69de3be5e701b7d221deba713b27c3766d68935"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmSelectParser.java:30-41 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarSelectParser.java:50-61 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSelectParser.java:50-61 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmSelectParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarSelectParser.java\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 109 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmSelectParser.java:30\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmSelectParser.java:42\u0060 calls \u0060setParenthesized\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSelectParser.java:63\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":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmSelectParser.java"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d0a2e04bc0666930e5c40648a4c78fca572fd472aa804da52f5c473df221ed7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/hologres/parser/HologresCreateTableParser.java:23-32 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGCreateTableParser.java:36-45 | core/src/main/java/com/alibaba/druid/sql/parser/SQLCreateTableParser.java:218-229 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \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 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/hologres/parser/HologresCreateTableParser.java:23\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":"core/src/main/java/com/alibaba/druid/sql/dialect/hologres/parser/HologresCreateTableParser.java"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"a231bd639bd9266c26c8a4f3b74b709a581e1f2c831b2ea7f32b9c16810bac3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java:463-474 | core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java:2695-2706 | core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java:2830-2841 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 187 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java:463\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java:460\u0060 calls \u0060charAt\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java:2694\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"098acb5512e5976e3848d547a85f7e498d210421df3b070d3a1c078b357d2e68"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:2796-2807 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:2814-2825 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:2831-2842 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:2796\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:2811\u0060 calls \u0060accept\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:2792\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":2796}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3b03af9c31c56ee6b28c75b5a4ea20709ca3f7c0c71727d6450bbb950a46506"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:3405-3416 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:4012-4023 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:7846-7857 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:3405\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":3405}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfb0fca53922fe4ec0cc8b8bd91d762400c1bd541a1f1a3088d390d42f542e4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:188-199 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:834-845 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:1214-1225 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 1096 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:188\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"e63a5cc21498ef0121dfa9388e0c5b712c82e34271acdd5389c2af248a6bc80d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:528-539 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:1858-1869 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:2248-2259 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 1096 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060OracleSelectTableReference\u0060 in one and \u0060OracleSelectSubqueryTableSource\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"08dd80d966c61e19d4bb313edac9969bc90589b7ad286e4c24a2718d5bee73b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:3903-3912 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:7021-7032 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:7099-7110 \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 \u0060core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:3903\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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":3903}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba17847d5b09cb443c45ec190bd3e7293649fe39e7fc4e9a4c6b5234256a23a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/visitor/functions/Instr.java:28-39 | core/src/main/java/com/alibaba/druid/sql/visitor/functions/Left.java:29-40 | core/src/main/java/com/alibaba/druid/sql/visitor/functions/Right.java:29-40 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/visitor/functions/Instr.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/visitor/functions/Left.java\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/visitor/functions/Instr.java:28\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":"core/src/main/java/com/alibaba/druid/sql/visitor/functions/Instr.java"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"f43eb183986d9e59248476f2aa4eed8b682c92ac675910bec8b09649adc84d62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): core/src/main/java/com/alibaba/druid/wall/WallFilter.java:344-355 | core/src/main/java/com/alibaba/druid/wall/WallFilter.java:399-410 | core/src/main/java/com/alibaba/druid/wall/WallFilter.java:416-427 \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 \u0060core/src/main/java/com/alibaba/druid/wall/WallFilter.java:344\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":"core/src/main/java/com/alibaba/druid/wall/WallFilter.java"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"61819ff903859e2d727fbb751ab8db4387d3cc2136c37e2bfa8454b5edd7169a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 3): core/src/main/java/com/alibaba/druid/wall/spi/MySqlWallVisitor.java:84-95 | core/src/main/java/com/alibaba/druid/wall/spi/MySqlWallVisitor.java:157-166 | core/src/main/java/com/alibaba/druid/wall/spi/SQLServerWallVisitor.java:93-102 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/wall/spi/MySqlWallVisitor.java:84\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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060SQLPropertyExpr\u0060 in one and \u0060SQLVariantRefExpr\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060core/src/main/java/com/alibaba/druid/wall/spi/MySqlWallVisitor.java:81\u0060 calls \u0060checkVar\u0060, \u0060getParent\u0060, \u0060getName\u0060 and \u0060core/src/main/java/com/alibaba/druid/wall/spi/MySqlWallVisitor.java:153\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":"core/src/main/java/com/alibaba/druid/wall/spi/MySqlWallVisitor.java"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"f19fd7f95185d648130d547b5812ac4ce86b17f30880369fab3983e14fdbc249"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/SQLUtils.java:708-719 | core/src/main/java/com/alibaba/druid/sql/SQLUtils.java:726-737 \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":"core/src/main/java/com/alibaba/druid/sql/SQLUtils.java"},"region":{"startLine":708}}}],"partialFingerprints":{"codehealthFindingId/v1":"523afcbde317e873a36627353dd6b470babc8a53eae4b6a9e15c63a275eb7f71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLDateExpr.java:100-111 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTimestampNTZExpr.java:84-95 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLDateExpr.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTimestampNTZExpr.java\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 262 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLDateExpr.java:100\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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLDateExpr.java"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c7183fafcd8971745e9f7863022a1d7934d7cac3d1501eb43edbc11809aca4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLDateExpr.java:121-132 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTimestampNTZExpr.java:105-116 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLDateExpr.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTimestampNTZExpr.java\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 262 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLDateExpr.java:121\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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLDateExpr.java"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f06d575f27cb114501cc0244138734d73d4f9ac8a0db39007b94ed7473981b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLExtractExpr.java:106-117 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLIntervalExpr.java:120-131 \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 \u0060core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLExtractExpr.java:106\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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLExtractExpr.java"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce695636868aadae4ccfb9222d7ef126cb03036069e1f34c8b5a0b746c3f55b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateDatabaseStatement.java:251-262 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDropDatabaseStatement.java:120-131 \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 \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateDatabaseStatement.java:251\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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateDatabaseStatement.java"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"841057dce2f34a94dc1dfdff98dc53f9a741f0a147064174e68eddcc86705b52"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryOutputVisitor.java:490-501 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:9876-9887 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 148 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryOutputVisitor.java:490\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":"core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryOutputVisitor.java"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"c45ff371835d785b2b3cbfaf5243f84b2e52094e11130e387e4ee0949dd22594"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmOutputVisitor.java:82-93 | core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/visitor/SQLServerOutputVisitor.java:54-65 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmOutputVisitor.java:82\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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060DmSelectQueryBlock\u0060 in one and \u0060SQLServerSelectQueryBlock\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":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmOutputVisitor.java"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba71db1d874a95aa483c04b9a22c3a991bd591e1cb01b609805c8f8e56f5b272"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/h2/parser/H2ExprParser.java:76-87 | core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerExprParser.java:223-234 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/h2/parser/H2ExprParser.java"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"6332b77ec2cca4a75ecc3c76b46f694f4559732c8ea3ba75f5105d2762bdd3b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:1360-1371 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:1393-1403 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:1393\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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java"},"region":{"startLine":1360}}}],"partialFingerprints":{"codehealthFindingId/v1":"e64c9546040a0510bf21922be17a49e04f2810f3860803e7376f87840bdb6d9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java:425-436 | core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java:2623-2634 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 187 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"91abeb2ffbf196920b799b8f7a1359919b01190d92fb47fb59985795983db087"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:1632-1644 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:8573-8585 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:1632\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":1632}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b8d0c3d51780263c9dc91b45864811417ae3040a695a4743fbdb10128ae559e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:5128-5139 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:5152-5162 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:5128\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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":5128}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c740990906f027f58fc96d3d3c243157bfa20e2a12ed4d8d21d15e6a5cd2cf9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:7675-7686 | core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerStatementParser.java:1022-1033 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:7675\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":7675}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cdf15a1a0a34bfb3577383c698c7dfa8c431849df7d1baca4bed4c4c39439ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:2224-2235 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:3875-3886 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060MySqlUpdateStatement\u0060 in one and \u0060SQLUpdateStatement\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":2224}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bc04e0e29bc9ab20203fd79775337aee6645fbc9d1a5eb4d799f4a876c8465d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:2426-2435 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:2744-2755 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:2426\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060MySqlShowBinLogEventsStatement\u0060 in one and \u0060MySqlShowRelayLogEventsStatement\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":2426}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac0b7129bb45d28e25839458369999da64beba26ff5306a5ba6fbb47fa4de731"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:5326-5337 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:3827-3838 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:5326\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:3840\u0060 calls \u0060hasBeforeComment\u0060, \u0060printlnComments\u0060, \u0060getBeforeCommentsDirect\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:5338\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":5326}}}],"partialFingerprints":{"codehealthFindingId/v1":"8731389d3bb94476a04db3bffab34936ec319b3a7e0ec87e77f367cec311d2b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleCreateTableParser.java:567-578 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleCreateTableParser.java:614-625 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleCreateTableParser.java:567\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleCreateTableParser.java"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc38cf474f3bc1e478a9c7d2f0e8886fdf35c0cce9d4e0610dcd85437858eb21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java:1390-1401 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java:1491-1502 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java"},"region":{"startLine":1390}}}],"partialFingerprints":{"codehealthFindingId/v1":"64a096374b48cf6d3786fa08bac0d008964fe689eb7966a3900cfc8865068939"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java:1634-1645 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java:1649-1660 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java"},"region":{"startLine":1634}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec34d6aac4fffd0e549030bf4de604ae4e0a87cc21f374572eeab8a59d775aed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleRowNumToLimit.java:451-462 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleRowNumToLimit.java:489-500 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleRowNumToLimit.java"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"06ccce566cfacb53aa88dcbab81cfa3eada7bffa25cbd5b29e1b7e84e87fda93"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:77-88 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:92-103 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 99 separate duplicated blocks between them, totalling at least 1839 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:77\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note first that the copies are not typed on the same thing: \u0060ForClause\u0060 names \u0060com.alibaba.druid.sql.dialect.oscar.ast.stmt.OscarSelectQueryBlock.ForClause\u0060 in one and \u0060com.alibaba.druid.sql.dialect.postgresql.ast.stmt.PGSelectQueryBlock.ForClause\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"e628c1d46c69fcc03032c95c8af673c72904d9415d6a437ef716cea774c426b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:494-505 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:858-869 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 99 separate duplicated blocks between them, totalling at least 1839 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060OscarAlterSchemaStatement\u0060 in one and \u0060PGAlterSchemaStatement\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"02352bf385a4a41f00b60a24e01bbe1e5712706514715a53e0148cfac1cf921c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java:272-283 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java:354-365 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 578 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java:272\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ce28f89eb4fe7100903a9ad0d9cd6064913aae1cb0a217b6a4a7b5e30ca4d3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java:1228-1239 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java:1269-1280 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java:1228\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":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java"},"region":{"startLine":1228}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9064e767dcda5140cc30d2f7c917eb4b23c7504f57262c308bb004c1b508c66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/redshift/parser/RedshiftCreateTableParser.java:27-38 | core/src/main/java/com/alibaba/druid/sql/parser/SQLCreateTableParser.java:48-59 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/redshift/parser/RedshiftCreateTableParser.java"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"59d013102595e4e273aa6c44ba005e5747781592a58459bb522e1e5f37a88b37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201312 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/sqlite/parser/SQLiteStatementParser.java:54-62 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:4867-4878 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/sqlite/parser/SQLiteStatementParser.java:54\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":"core/src/main/java/com/alibaba/druid/sql/dialect/sqlite/parser/SQLiteStatementParser.java"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"d72d32a64756e6928204deafa6b23c1669d72a211be33f7388792a5f60f960fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerStatementParser.java:787-798 | core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerStatementParser.java:864-875 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerStatementParser.java"},"region":{"startLine":787}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ac95176cc944321f236d0eaea859ece4914953cf4ceeb76ba4eb6c1557804e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java:2879-2890 | core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java:2920-2931 \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 \u0060core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java:2879\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":"core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java"},"region":{"startLine":2879}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2f59f06069a32ad61ccead3cbb31eb2b91fdb04808879815c35f6a834e82e8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:2569-2580 | core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:2599-2609 \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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":2569}}}],"partialFingerprints":{"codehealthFindingId/v1":"989ed34e51845dd442d47480900b3a025db9dbe583c37147afbe62c8b852d35e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java:1144-1155 | core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java:1564-1575 \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 \u0060core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java:1144\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":"core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java"},"region":{"startLine":1144}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbb0a07b892e994ef2598fa368664651f29c0bb04d30365b3ca9eea91904f96b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:6286-6297 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:6951-6962 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060SQLCreateIndexStatement\u0060 in one and \u0060SQLIndexDefinition\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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":6286}}}],"partialFingerprints":{"codehealthFindingId/v1":"41f97819ca29c1975f7422eddcca2ba7d3f6398be1d5bd3098ec58b0118c06e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:11551-11562 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:11595-11606 \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 \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:11551\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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":11551}}}],"partialFingerprints":{"codehealthFindingId/v1":"219172e9471410078213a135c5f10696e56fec07d1779c71863bc52bd86f0990"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): core/src/main/java/com/alibaba/druid/support/http/StatViewFilter.java:114-125 | core/src/main/java/com/alibaba/druid/support/jakarta/StatViewFilter.java:113-124 \u2014 \u0060core/src/main/java/com/alibaba/druid/support/http/StatViewFilter.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/support/jakarta/StatViewFilter.java\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 5 separate duplicated blocks between them, totalling at least 103 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: \u0060HttpServletRequest\u0060 names \u0060jakarta.servlet.http.HttpServletRequest\u0060 in one and \u0060javax.servlet.http.HttpServletRequest\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, 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":"core/src/main/java/com/alibaba/druid/support/http/StatViewFilter.java"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"d13dd6838ae03405a469b77daa35096301bb90d9dc93d252a1b69e2be76e1e18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): core/src/main/java/com/alibaba/druid/support/http/StatViewServlet.java:130-141 | core/src/main/java/com/alibaba/druid/support/jakarta/StatViewServlet.java:130-141 \u2014 \u0060core/src/main/java/com/alibaba/druid/support/http/StatViewServlet.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/support/jakarta/StatViewServlet.java\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 7 separate duplicated blocks between them, totalling at least 136 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/support/http/StatViewServlet.java"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"868e091a7bc5198505a9b7a81be4c802e409f041fbd63c9555459fdaee9406a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): core/src/main/java/com/alibaba/druid/util/FnvHash.java:188-199 | core/src/main/java/com/alibaba/druid/util/FnvHash.java:239-250 \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 \u0060core/src/main/java/com/alibaba/druid/util/FnvHash.java:188\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/util/FnvHash.java"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"25e0f525781b488ebe01b7e88a1e834d4508f0dab558c976a1127ec2ffad119c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): core/src/main/java/com/alibaba/druid/util/MySqlUtils.java:322-333 | core/src/main/java/com/alibaba/druid/util/OracleUtils.java:311-322 \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":"core/src/main/java/com/alibaba/druid/util/MySqlUtils.java"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e1f9457f1305d070405ad8fa9102dd059fee4871bbc3c4a8dc93215a38ed9b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): core/src/main/java/com/alibaba/druid/util/StringUtils.java:163-174 | core/src/main/java/com/alibaba/druid/util/StringUtils.java:262-273 \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 \u0060core/src/main/java/com/alibaba/druid/util/StringUtils.java:163\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":"core/src/main/java/com/alibaba/druid/util/StringUtils.java"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ae21ce87c6754a3d80ecbdc1e0a94e330c711c890d9261b881a46f118027fd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): core/src/main/java/com/alibaba/druid/util/Utils.java:71-82 | core/src/main/java/com/alibaba/druid/util/Utils.java:98-109 \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 \u0060core/src/main/java/com/alibaba/druid/util/Utils.java:71\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/util/Utils.java:83\u0060 calls \u0060getResourceAsStream\u0060 and \u0060core/src/main/java/com/alibaba/druid/util/Utils.java:110\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":"core/src/main/java/com/alibaba/druid/util/Utils.java"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"d03841c87a25b2cc81ca9be89c48502eb1baf24dbaca18e2632c95874d4155f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 8): core/src/main/java/com/alibaba/druid/sql/dialect/odps/visitor/OdpsOutputVisitor.java:109-119 | core/src/main/java/com/alibaba/druid/sql/dialect/odps/visitor/OdpsOutputVisitor.java:563-573 | core/src/main/java/com/alibaba/druid/sql/dialect/odps/visitor/OdpsOutputVisitor.java:651-661 | core/src/main/java/com/alibaba/druid/sql/dialect/odps/visitor/OdpsOutputVisitor.java:910-920 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:3223-3233 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:3407-3417 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:3471-3481 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:6736-6746 \u2014 there are 8 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 8 sites; resolving a subset leaves the remainder to drift apart. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060SQLCreateTableStatement\u0060 in one and \u0060OdpsReadStatement\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":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/visitor/OdpsOutputVisitor.java"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"e67293b30813cc3d1ed9c22239c04da8a4276f96498a2177f551684b32e837bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 8): core/src/main/java/com/alibaba/druid/sql/visitor/functions/Bin.java:28-38 | core/src/main/java/com/alibaba/druid/sql/visitor/functions/BitLength.java:28-38 | core/src/main/java/com/alibaba/druid/sql/visitor/functions/Lcase.java:31-41 | core/src/main/java/com/alibaba/druid/sql/visitor/functions/Length.java:31-41 | core/src/main/java/com/alibaba/druid/sql/visitor/functions/Ltrim.java:28-38 | core/src/main/java/com/alibaba/druid/sql/visitor/functions/Reverse.java:28-38 | core/src/main/java/com/alibaba/druid/sql/visitor/functions/Trim.java:28-38 | core/src/main/java/com/alibaba/druid/sql/visitor/functions/Ucase.java:31-41 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/visitor/functions/Bin.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/visitor/functions/BitLength.java\u0060 as WHOLE FILES: 84% 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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/visitor/functions/Bin.java"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"316b278b9a4d27bfc942dd951ccaf16ed5bd12d464b78b8bd25e0938f4d1f2da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 7): core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmCreateTableParser.java:39-49 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:1124-1134 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:1183-1193 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:1222-1232 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarCreateTableParser.java:37-47 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGCreateTableParser.java:87-97 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGCreateTableParser.java:136-146 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmCreateTableParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 42 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmCreateTableParser.java:39\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmCreateTableParser.java:38\u0060 calls \u0060setType\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:1182\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmCreateTableParser.java"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"03876f5a2fde46df79bbeab46e28162257c62ed488887c3852d395b46c769187"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 6): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:2520-2530 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:2628-2638 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:1450-1460 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:1550-1560 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:1827-1837 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:1927-1937 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 1096 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060OracleCreatePackageStatement\u0060 in one and \u0060OracleCreateTypeStatement\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":2520}}}],"partialFingerprints":{"codehealthFindingId/v1":"00e62ed619ad8ca562d3d8e27adbfad7b63c7eddb98c3b2faf2a2db4ccad3815"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 5): core/src/main/java/com/alibaba/druid/filter/encoding/EncodingConvertFilter.java:72-82 | core/src/main/java/com/alibaba/druid/filter/encoding/EncodingConvertFilter.java:96-106 | core/src/main/java/com/alibaba/druid/filter/encoding/EncodingConvertFilter.java:118-128 | core/src/main/java/com/alibaba/druid/filter/encoding/EncodingConvertFilter.java:142-152 | core/src/main/java/com/alibaba/druid/filter/encoding/EncodingConvertFilter.java:166-176 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \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 \u0060core/src/main/java/com/alibaba/druid/filter/encoding/EncodingConvertFilter.java:72\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060core/src/main/java/com/alibaba/druid/filter/encoding/EncodingConvertFilter.java:141\u0060 calls \u0060findColumn\u0060 and \u0060core/src/main/java/com/alibaba/druid/filter/encoding/EncodingConvertFilter.java:71\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":"core/src/main/java/com/alibaba/druid/filter/encoding/EncodingConvertFilter.java"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"583226ef51184bea4ea2b6abea21c4250b35d7ae72b2f654b659eecd41c2b6ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 5): core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryOutputVisitor.java:409-419 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:1510-1520 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:2263-2273 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:2756-2766 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:7735-7745 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 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 5 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryOutputVisitor.java:421\u0060 calls \u0060print0\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:7746\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":"core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryOutputVisitor.java"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"952a4bdb8fa4365a94c015e9e2ba51cf9518dba49eac170e6ed71d9b11b86629"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 5): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:8223-8233 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:8306-8316 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java:991-999 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java:2798-2806 | core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerStatementParser.java:683-691 \u2014 there are 5 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java:991\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":8223}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3eb670b7e25021eec7e8326098a907da309187a23a9678d1b679496ad9639e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveStatementParser.java:326-336 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:4010-4020 | core/src/main/java/com/alibaba/druid/sql/dialect/presto/parser/PrestoStatementParser.java:443-453 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:7844-7854 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \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 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveStatementParser.java"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb7c159d0b81a59182795598be063b5632e5bf27947b50d76b7733e0d8d80c56"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeStatementParser.java:568-578 | core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeStatementParser.java:741-751 | core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeStatementParser.java:772-782 | core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeStatementParser.java:811-821 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeStatementParser.java:568\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":"core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeStatementParser.java"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"811e0f19406d029bc613bdffe846bfd965a95a533729fc2ceb3e83a7bd29e9bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:6733-6743 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:6752-6762 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:6771-6781 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:6817-6827 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":6733}}}],"partialFingerprints":{"codehealthFindingId/v1":"40ef7d51cbdcd16cfe2588511559d73f4547b223c3827ddc181add537afa9089"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java:285-296 | core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java:1456-1467 | core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java:1605-1616 | core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java:1807-1818 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \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 \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java:285\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java:1469\u0060 calls \u0060addColumn\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java:297\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":"core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"689ec4e5b051efa3b0f3a5a878081825dc7ac9db6d0c02a983969b5221635cba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/ast/SQLObjectImpl.java:189-199 | core/src/main/java/com/alibaba/druid/sql/ast/SQLObjectImpl.java:234-244 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateTableStatement.java:461-471 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/ast/SQLObjectImpl.java:189\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":"core/src/main/java/com/alibaba/druid/sql/ast/SQLObjectImpl.java"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"952f1bc2e0ea168e2740d16b593f2f0f23a3af3e67dcb5d1770fd4f603ca5b0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryOutputVisitor.java:495-503 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:9880-9890 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:12472-12482 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 148 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryOutputVisitor.java:495\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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060SQLCreateProcedureStatement\u0060 in one and \u0060SQLCreateFunctionStatement\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:12470\u0060 calls \u0060print0\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryOutputVisitor.java:494\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":"core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryOutputVisitor.java"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa5da4ed3c8d4b2d6b5bb8321b547a5c213ddfbc84b8d4a8f6d8a70ae89c8b0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/parser/CKExprParser.java:161-171 | core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:4576-4586 | core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:4637-4647 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/parser/CKExprParser.java:161\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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/parser/CKExprParser.java"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"64976e553db0b871fe09d3bb9af6c3ad3a0e4744407709815d8cd13cb9e311b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2StatementParser.java:145-155 | core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmStatementParser.java:221-231 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java:454-464 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \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 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2StatementParser.java:145\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":"core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2StatementParser.java"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd289126da55757d9ea494eee36619d5b46d878aa026ecc1d9f2d36d2413de00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmExprParser.java:226-235 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarExprParser.java:396-406 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGExprParser.java:598-608 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmExprParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarExprParser.java\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 203 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmExprParser.java:226\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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmExprParser.java"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"d65229d2240683cc5433af7ec727ead50928aafb7426315808ab68c1b39076b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmSelectParser.java:50-60 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarSelectParser.java:70-80 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSelectParser.java:69-79 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmSelectParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarSelectParser.java\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 109 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmSelectParser.java:50\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":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmSelectParser.java"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"99f089c3d9ab79ab8b539371782618b084d7a8ece9959c99758ddcae7b4db3af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmStatementParser.java:134-143 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java:328-338 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java:453-463 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmStatementParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 279 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmStatementParser.java"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"87b77c176d34e8e73cd50f9bfad8bfba7173844490c91de49ddb8531ad900b36"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java:427-437 | core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java:2625-2635 | core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java:2760-2770 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 187 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java:427\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cce15ae90361ca6c4853651e0fbc37836401f6bdba82e836973ea289a86bfbb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:1934-1945 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:3689-3700 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:4066-4077 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:1934\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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":1934}}}],"partialFingerprints":{"codehealthFindingId/v1":"468dd7268000e257227ddca2913817638979637e67ce12f5ec8c3682375c3486"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:5810-5820 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:5913-5923 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:7603-7613 \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 after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:5924\u0060 calls \u0060addItem\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:7615\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":5810}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a1576b66df666063f90bf9703de9b1d9e5240c84f4c86e2c9cedfd8d1458256"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:1697-1707 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:3429-3439 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:10212-10221 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:1697\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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060MySqlShowStatusStatement\u0060 in one and \u0060SQLShowVariantsStatement\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":1697}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f51d72b3fd150def442de82b055decc533e811b6fbc45e57bcbb94b5b4dc430"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/odps/visitor/OdpsOutputVisitor.java:1090-1100 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:5169-5179 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:6705-6715 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/odps/visitor/OdpsOutputVisitor.java:1090\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060SQLDropDatabaseStatement\u0060 in one and \u0060SQLAlterTableAddColumn\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":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/visitor/OdpsOutputVisitor.java"},"region":{"startLine":1090}}}],"partialFingerprints":{"codehealthFindingId/v1":"e784e24e11643a1d3da532e47bed54c22416c3f57d7a10350f0b0de3322f51ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:725-735 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:2122-2132 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:2615-2625 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 1096 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":725}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c6824a9d4ccc4a9fc6f614a0cda42129d4976680d9d45dcbdc9f24eedaef046"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:1072-1082 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:1278-1288 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:1655-1665 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 1096 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:1072\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":1072}}}],"partialFingerprints":{"codehealthFindingId/v1":"79588c23c3dd5892052753e09e75afa2a8330a9beb98014ff4fd0522a84f037b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarSelectParser.java:301-311 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSelectParser.java:427-437 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:3580-3590 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarSelectParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSelectParser.java\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 217 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarSelectParser.java:301\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarSelectParser.java"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"6815228fe321b517275b4206c2da756f02b12ad554f5e60f247919f79d1ae2eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:2337-2347 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:2830-2840 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:6834-6844 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 99 separate duplicated blocks between them, totalling at least 1839 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":2337}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1062721bdfe525fb1f8e1f8fa2c3844bc3f334240b1134fba5706e62e567159"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:2349-2359 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:2842-2852 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:6852-6862 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 99 separate duplicated blocks between them, totalling at least 1839 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":2349}}}],"partialFingerprints":{"codehealthFindingId/v1":"db276b912a8f878ad71f4985321e7eefba5935897669ce5ec9b7ecbcc23a714d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java:288-298 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java:376-386 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java:406-416 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 578 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b274925875af661fec69fd6b90985a75a573d648a5d8d2b856a571f99935c07"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:7131-7141 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:7195-7205 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:7229-7239 \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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":7131}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bd3a2dfc805d413962ba1587a1592d1751e3ede8b12c0240d6d18ec55d351cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): core/src/main/java/com/alibaba/druid/support/http/WebStatFilter.java:134-144 | core/src/main/java/com/alibaba/druid/support/jakarta/WebStatFilter.java:133-143 | core/src/main/java/com/alibaba/druid/support/spring/mvc/StatHandlerInterceptor.java:114-124 \u2014 \u0060core/src/main/java/com/alibaba/druid/support/http/WebStatFilter.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/support/jakarta/WebStatFilter.java\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 7 separate duplicated blocks between them, totalling at least 261 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/support/http/WebStatFilter.java"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"31a49ff06ab2c87cc34fd113bb2fd6e1a185424797df63cc40784ac5ca1d02f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java:1807-1819 | core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java:1989-1999 | core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java:2145-2155 \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 \u0060core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java:1807\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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java:1987\u0060 calls \u0060getParent\u0060 and \u0060core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java:1804\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":"core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java"},"region":{"startLine":1807}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac756e7384b3970ce0102512305419a200af36ff646a62f0818d2cd1fc5b7ea2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): core/src/main/java/com/alibaba/druid/pool/DruidPooledConnection.java:592-602 | core/src/main/java/com/alibaba/druid/pool/DruidPooledConnection.java:626-636 \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 \u0060core/src/main/java/com/alibaba/druid/pool/DruidPooledConnection.java:592\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/pool/DruidPooledConnection.java"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"b767d1d0b1a184dc026c0c9e7fc1d9bc881cec0ef32a7ab369f187cde3824d1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/SQLDataTypeImpl.java:222-231 | core/src/main/java/com/alibaba/druid/sql/ast/SQLDataTypeImpl.java:269-279 \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 \u0060core/src/main/java/com/alibaba/druid/sql/ast/SQLDataTypeImpl.java:222\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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/ast/SQLDataTypeImpl.java"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3af5dd464a46e945c289735abfe5ead39dd14a0960cbe7a364162ac82a1ebe2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLAggregateExpr.java:368-378 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLMethodInvokeExpr.java:401-411 \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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLAggregateExpr.java"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"374d796c6f717e9b36fc2db03665c69d9dba0a15bc8abb85c291fda6b7fb20c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLBinaryOpExpr.java:344-354 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLBinaryOpExpr.java:357-367 \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 \u0060core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLBinaryOpExpr.java:344\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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLBinaryOpExpr.java"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b0d167ab66c15340161f214bd47b9771c7196bdf7f3195901a87402b0088f32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLContainsExpr.java:45-55 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLInListExpr.java:59-69 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLContainsExpr.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLInListExpr.java\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLContainsExpr.java:45\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLContainsExpr.java"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"3babd392a5b703acef9cdffc16ab37a363b436877ffd2012ead6af5b16b35169"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u201311 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLDateExpr.java:289-299 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTimestampNTZExpr.java:315-325 | core/src/main/java/com/alibaba/druid/util/StringUtils.java:357-359 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLDateExpr.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTimestampNTZExpr.java\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 262 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLDateExpr.java"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba19857e95368830526ff56f2638792cea6c313f60d7129c91a10e77c7ed108e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLNumberExpr.java:137-147 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLNumberExpr.java:150-160 \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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLNumberExpr.java"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"1df0ae8b4c9add0aa5324759960e13e7866732ad93a5afa77f3655680676d362"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSubqueryTableSource.java:96-106 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleSelectSubqueryTableSource.java:83-93 \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 \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSubqueryTableSource.java:96\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 \u0060x\u0060 to \u0060SQLSubqueryTableSource\u0060 in one and \u0060OracleSelectSubqueryTableSource\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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSubqueryTableSource.java"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e283f36e6efec1b72c46f308cee4a37f093f2f43a06505d57da4f83ccb569f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryOutputVisitor.java:336-346 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:2117-2127 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 148 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryOutputVisitor.java"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"8961ba2e098be83a2999bbea1cb1752f2714005cdd0f902a06074810194a4664"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2ExprParser.java:186-196 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java:1285-1295 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2ExprParser.java:186\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":"core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2ExprParser.java"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"6433f7e3dadcbea423199edf075c48d0f22fbf593e9bb30f51cc9609cd4e698d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmSelectParser.java:54-64 | core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerSelectParser.java:131-141 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmSelectParser.java:54\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":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmSelectParser.java"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"241446e53dc080a97708ddaf537e5f20dcc931f9235cebbb4f9f0c586859291d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/doris/visitor/DorisOutputVisitor.java:88-98 | core/src/main/java/com/alibaba/druid/sql/dialect/odps/visitor/OdpsOutputVisitor.java:225-235 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060DorisExprTableSource\u0060 in one and \u0060SQLSubqueryTableSource\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":"core/src/main/java/com/alibaba/druid/sql/dialect/doris/visitor/DorisOutputVisitor.java"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"0be3d91bbfc0104adc1c507aa9cf5de0c683fda30babefcfaa020f51a5a61e8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/doris/visitor/DorisOutputVisitor.java:88-98 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:307-317 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060DorisExprTableSource\u0060 in one and \u0060OracleSelectJoin\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":"core/src/main/java/com/alibaba/druid/sql/dialect/doris/visitor/DorisOutputVisitor.java"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"db7549d87409030af4e8dc06f9766bc08d489e6f7ba030e663511450f136f391"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/parser/GaussDbCreateTableParser.java:138-148 | core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/parser/GaussDbCreateTableParser.java:237-247 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/parser/GaussDbCreateTableParser.java:138\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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/parser/GaussDbCreateTableParser.java"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"608c3448bc960dc78e2240f749f57bf29a984f8367726b37249dc7516a30f1c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveCreateTableParser.java:59-69 | core/src/main/java/com/alibaba/druid/sql/parser/SQLCreateTableParser.java:128-138 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveCreateTableParser.java:59\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveCreateTableParser.java"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"59f6a9b748011a0caaa18ba308d132875ca1b65e8ed313714d35826e3cfb8928"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveCreateTableParser.java:254-264 | core/src/main/java/com/alibaba/druid/sql/dialect/impala/parser/ImpalaCreateTableParser.java:76-86 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveCreateTableParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/impala/parser/ImpalaCreateTableParser.java\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 81 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveCreateTableParser.java:254\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveCreateTableParser.java:265\u0060 calls \u0060token\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/impala/parser/ImpalaCreateTableParser.java:87\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":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveCreateTableParser.java"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"99786c1893e3741cae4ecdba76521a8c4265ba948d3b30085695e9882d059d7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/hive/visitor/HiveOutputVisitor.java:105-115 | core/src/main/java/com/alibaba/druid/sql/dialect/hive/visitor/HiveOutputVisitor.java:216-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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/hive/visitor/HiveOutputVisitor.java:105\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060HiveInsert\u0060 in one and \u0060HiveInsertStatement\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":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/visitor/HiveOutputVisitor.java"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"f224eb78fe8f52a53401ba11c641d1bd34a2fc5dc6bf1fd6375486892244ff04"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectParser.java:288-298 | core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java:521-530 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java:519\u0060 calls \u0060accept\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectParser.java:287\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectParser.java"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c4ea5f269c3b9f903aba164724785a5c175bfd37846cdfc14cec48af6b23da5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:1092-1112 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:1292-1312 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:1092\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":1092}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6b5d8293212f7017342f004fedd72d91ddff51262c932b7cad037fa2630564c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:3307-3317 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:3327-3337 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:3344-3353 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:3307\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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:3327\u0060 calls \u0060setLimit\u0060, \u0060parseLimit\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:3344\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":3307}}}],"partialFingerprints":{"codehealthFindingId/v1":"c52b1bea121bd89ddd1a1bd2d1d8487dba560c60c6fb2c5ef023ed041761d231"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:4085-4095 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:4120-4130 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:4117\u0060 calls \u0060setWork\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:4082\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":4085}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ccc648a6b40e4d2e35eebca83a2061b13ecadfa540a668c546057591d923429"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:4499-4509 | core/src/main/java/com/alibaba/druid/sql/dialect/presto/parser/PrestoStatementParser.java:497-507 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:4499\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":4499}}}],"partialFingerprints":{"codehealthFindingId/v1":"43d09fdda87bac791539b36e7a335db56047ecb0afa3a300e98f75ab5e60c1ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:8117-8126 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:8131-8141 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:8117\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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":8117}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aa99494a88cb106951ad9bf415a87ffc089e40eebd1c9270fdc7fbcaa145ae4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:1016-1026 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:1104-1114 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060MySqlDeleteStatement\u0060 in one and \u0060MySqlInsertStatement\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":1016}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cdc43d0d8b8f3f4658c62e9b0e648c9f600a67269a689ab6af86ffa92879076"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:1028-1038 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:1122-1132 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060MySqlDeleteStatement\u0060 in one and \u0060MySqlInsertStatement\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":1028}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3c430df540819eb6d066e030e9ab84f3c0a416e8206e276f698c315bbb619e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:2407-2417 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:2439-2449 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060MySqlShowCollationStatement\u0060 in one and \u0060MySqlShowCharacterSetStatement\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":2407}}}],"partialFingerprints":{"codehealthFindingId/v1":"6531b12cf368f05a81a2f702d2be19a7f79da94548af140e126038008759c02c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:3569-3579 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:3673-3683 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060MySqlUseIndexHint\u0060 in one and \u0060MySqlForceIndexHint\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":3569}}}],"partialFingerprints":{"codehealthFindingId/v1":"add29cd7016879de82e387cba789b4e988f60ef5a4ee7a127d79f25d4530a588"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsCreateTableParser.java:79-90 | core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsCreateTableParser.java:394-404 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsCreateTableParser.java:79\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":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsCreateTableParser.java"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f7f39bcdc9c2e160783ffc37c4fefd7042bcf7ff50372bf999570c8bb2c66ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsStatementParser.java:632-642 | core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsStatementParser.java:652-660 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsStatementParser.java:632\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":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsStatementParser.java"},"region":{"startLine":632}}}],"partialFingerprints":{"codehealthFindingId/v1":"857df1df1c6ce70966695ad22a45ced3100082d2a5aed6eb6970714f1e8fdac5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java:1503-1513 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java:1537-1547 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java:1503\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java"},"region":{"startLine":1503}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf0d48b866a5dc87ac6c9ca27c26b6f6619cec64a156f65dbbd9b48b3c63b62c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/ast/stmt/OscarInsertStatement.java:49-59 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/ast/stmt/PGInsertStatement.java:47-57 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/ast/stmt/OscarInsertStatement.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/ast/stmt/PGInsertStatement.java\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060OscarInsertStatement\u0060 in one and \u0060PGInsertStatement\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/ast/stmt/OscarInsertStatement.java"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"927f47f59c6fb3588308c63f82189527a03c57d5b0738b02143fd48ceec39756"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/ast/stmt/OscarInsertStatement.java:111-121 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/ast/stmt/PGInsertStatement.java:109-119 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/ast/stmt/OscarInsertStatement.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/ast/stmt/PGInsertStatement.java\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060visitor\u0060 to \u0060OscarASTVisitor\u0060 in one and \u0060PGASTVisitor\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/ast/stmt/OscarInsertStatement.java"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"64737040abbac9af4695a8e9351e791dde93fec2d47c5f964c7ea8f78c2de1b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarSelectParser.java:98-108 | core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerSelectParser.java:140-150 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarSelectParser.java:98\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarSelectParser.java"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"64fababeda434a42a5cd0c40a212247a83dae04b52c375aa8e5fe7b087af588e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarSelectParser.java:261-271 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSelectParser.java:295-305 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarSelectParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSelectParser.java\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 217 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarSelectParser.java:261\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarSelectParser.java"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"5954e93e0c88484312c28bf9887de0bae9a45d6978c233184d21be8493158526"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java:493-503 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java:1013-1023 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 578 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java:493\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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"354c992b5df8ec0d89b81cc60d2eafbbb73e8d76b833f55540fdf56a88417d3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java:575-585 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java:1104-1114 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 578 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java:1115\u0060 calls \u0060setUseSet\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java:586\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"52ffa5dc8ef73be3e58329fb442d6f1be6e006c835e6ad55f4519f3976855f1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/redshift/visitor/RedshiftOutputVisitor.java:160-170 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:3700-3710 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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":"core/src/main/java/com/alibaba/druid/sql/dialect/redshift/visitor/RedshiftOutputVisitor.java"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"b39acec7e0a108bc75127bd259b55b2b3bbdaf677075444fc09fb7afd1271433"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeSelectParser.java:83-93 | core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeSelectParser.java:128-138 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeSelectParser.java:83\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":"core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeSelectParser.java"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c28c74a6e13fa63def5e221e29ca7354786677990265bd31e715666980c3c2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeStatementParser.java:609-619 | core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeStatementParser.java:633-643 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeStatementParser.java:609\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":"core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeStatementParser.java"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ee3a16faee59ee676686992215d5ef7eb793561ab0966300cbbace33a76f10e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java:3398-3408 | core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java:3413-3423 \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":"core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java"},"region":{"startLine":3398}}}],"partialFingerprints":{"codehealthFindingId/v1":"0301d16a282f348bd1b585aeba543ca7e2040754df53f282b53e23d858a3d917"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:1432-1441 | core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:1492-1502 \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 \u0060core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:1432\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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":1432}}}],"partialFingerprints":{"codehealthFindingId/v1":"25230bc25028cc47eecc4b9f56480f37df7346f9ebc6cf6407487e8e855eb938"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java:581-591 | core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java:627-637 \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 \u0060core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java:581\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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"eae3c45ec333214ad91a4e7f4c3884b8e09f1ae1d858cc9bf3a034829be57e71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java:2241-2252 | core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java:2269-2280 \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 \u0060core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java:2241\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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java"},"region":{"startLine":2241}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6c19846905fa459090fb16c47052d43ae4e62dfd2ac9598461a89ed649012ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:2668-2678 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:2696-2706 \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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":2668}}}],"partialFingerprints":{"codehealthFindingId/v1":"47c527e1844583b84495219bab223b5c0ff5c16010982182a7e6c11bd8536d28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:6048-6058 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:6075-6085 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060SQLCheck\u0060 in one and \u0060SQLDefault\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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":6048}}}],"partialFingerprints":{"codehealthFindingId/v1":"207a47b1909fed6fc7d89b538aa95622071dd90d3f9a0fc9b7a46503724d6641"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/visitor/functions/DateAdd.java:33-43 | core/src/main/java/com/alibaba/druid/sql/visitor/functions/ToChar.java:34-44 \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":"core/src/main/java/com/alibaba/druid/sql/visitor/functions/DateAdd.java"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a0a2ba0b0593fd677112521ab8e4fe33e2627adb9469ab6cea3d99837103bf2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): core/src/main/java/com/alibaba/druid/support/monitor/dao/MonitorDaoJdbcImpl.java:841-851 | core/src/main/java/com/alibaba/druid/support/monitor/dao/MonitorDaoJdbcImpl.java:922-932 \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 \u0060core/src/main/java/com/alibaba/druid/support/monitor/dao/MonitorDaoJdbcImpl.java:841\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/support/monitor/dao/MonitorDaoJdbcImpl.java:933\u0060 calls \u0060setString\u0060 and \u0060core/src/main/java/com/alibaba/druid/support/monitor/dao/MonitorDaoJdbcImpl.java:853\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":"core/src/main/java/com/alibaba/druid/support/monitor/dao/MonitorDaoJdbcImpl.java"},"region":{"startLine":841}}}],"partialFingerprints":{"codehealthFindingId/v1":"afe31bbe54ccdc6767786418fe89fe05360b46742334fbfbad8bb013f707c885"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): core/src/main/java/com/alibaba/druid/support/opds/udf/ExportColumns.java:33-43 | core/src/main/java/com/alibaba/druid/support/opds/udf/ExportSelectListColumns.java:33-43 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/support/opds/udf/ExportColumns.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/support/opds/udf/ExportSelectListColumns.java\u0060 as WHOLE FILES: 92% 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 1 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/support/opds/udf/ExportColumns.java:33\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/support/opds/udf/ExportSelectListColumns.java:44\u0060 calls \u0060isSelect\u0060 and \u0060core/src/main/java/com/alibaba/druid/support/opds/udf/ExportColumns.java:44\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":"core/src/main/java/com/alibaba/druid/support/opds/udf/ExportColumns.java"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"09df9876ace65c872b9965b1616665cb7e1ca72428b207224ab4207aa3eaea67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): core/src/main/java/com/alibaba/druid/util/MySqlUtils.java:1851-1859 | core/src/main/java/com/alibaba/druid/util/MySqlUtils.java:1860-1870 \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":"core/src/main/java/com/alibaba/druid/util/MySqlUtils.java"},"region":{"startLine":1851}}}],"partialFingerprints":{"codehealthFindingId/v1":"c782f6a9a86079b462140ee7d8e2b9322b30d7a964b0770c807201696696e94e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java:460-470 | core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java:697-707 \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 \u0060core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java:460\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":"core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c888c5c626cc85c2666a55f5cc038b7877e0254b29ff2d397bef0fab075cd38"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): druid-admin/src/main/java/com/alibaba/druid/admin/service/MonitorStatService.java:91-101 | druid-admin/src/main/java/com/alibaba/druid/admin/service/MonitorStatService.java:135-145 \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 \u0060druid-admin/src/main/java/com/alibaba/druid/admin/service/MonitorStatService.java:91\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":"druid-admin/src/main/java/com/alibaba/druid/admin/service/MonitorStatService.java"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"8691df30f9493eb12fc59b39c488b16cef3f8048d5121941187cc545ac5c6098"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 10): core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmCreateTableParser.java:39-48 | core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/parser/GaussDbCreateTableParser.java:160-169 | core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/parser/GaussDbCreateTableParser.java:185-194 | core/src/main/java/com/alibaba/druid/sql/dialect/impala/parser/ImpalaCreateTableParser.java:216-225 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:1124-1133 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:1183-1192 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:1222-1231 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarCreateTableParser.java:37-46 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGCreateTableParser.java:87-96 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGCreateTableParser.java:136-145 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmCreateTableParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 42 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmCreateTableParser.java:38\u0060 calls \u0060setType\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:1182\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmCreateTableParser.java"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"257a2ac471a1cad2420921b8bf505a91037caad39c592b0babebb798bc740cbf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 9): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:1703-1713 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:2513-2523 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:2536-2546 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:2640-2650 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:2689-2698 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:2843-2853 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:2887-2897 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:3435-3445 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:10271-10281 \u2014 there are 9 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 9 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:1703\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060MySqlShowStatusStatement\u0060 in one and \u0060MySqlShowEventsStatement\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":1703}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf1206e3c5778d1819b1d68647c6892273d7ffb17f45fed1909ffa0e3ee534d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 8): core/src/main/java/com/alibaba/druid/support/http/ResourceServlet.java:86-95 | core/src/main/java/com/alibaba/druid/support/http/ResourceServlet.java:106-115 | core/src/main/java/com/alibaba/druid/support/http/StatViewFilter.java:71-80 | core/src/main/java/com/alibaba/druid/support/http/StatViewFilter.java:91-100 | core/src/main/java/com/alibaba/druid/support/jakarta/ResourceServlet.java:73-82 | core/src/main/java/com/alibaba/druid/support/jakarta/ResourceServlet.java:93-102 | core/src/main/java/com/alibaba/druid/support/jakarta/StatViewFilter.java:70-79 | core/src/main/java/com/alibaba/druid/support/jakarta/StatViewFilter.java:90-99 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/support/http/ResourceServlet.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/support/http/StatViewFilter.java\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 38 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/support/http/ResourceServlet.java:86\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":"core/src/main/java/com/alibaba/druid/support/http/ResourceServlet.java"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"96a853735794ec5c0080a28bf25744ec78d5e9d4c39b8ea8040b7ef575679414"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 6): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:940-949 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:987-996 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:1062-1071 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:1109-1118 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:1442-1451 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:1489-1498 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 1096 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060OracleInsertStatement\u0060 in one and \u0060InsertIntoClause\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":940}}}],"partialFingerprints":{"codehealthFindingId/v1":"de03e8ec905d194f29b7c08ca2b305e999b818455204b79ceb77dcc85c750e32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 5): core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmOutputVisitor.java:107-116 | core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmOutputVisitor.java:237-246 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:375-384 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:372-381 | core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/visitor/SQLServerOutputVisitor.java:165-174 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 111 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmOutputVisitor.java:107\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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060DmSelectQueryBlock\u0060 in one and \u0060DmUpdateStatement\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":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmOutputVisitor.java"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d42ea36baa89aee6ad23044b8103a42f9b5fb8ab4c5b81c4d3ecbdff1df9c01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2StatementParser.java:151-160 | core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmStatementParser.java:227-236 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java:460-469 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java:958-967 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \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 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2StatementParser.java:151\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java:957\u0060 calls \u0060setDbType\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2StatementParser.java:149\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2StatementParser.java"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"16b01a42bf8b690b6c705d5da3eee5773c8c37bcc91eab0577e76289d6ad7cee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmSelectParser.java:49-58 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleSelectParser.java:258-267 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarSelectParser.java:69-78 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSelectParser.java:68-77 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmSelectParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarSelectParser.java\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 109 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmSelectParser.java:49\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleSelectParser.java:269\u0060 calls \u0060parseHints\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmSelectParser.java:60\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmSelectParser.java"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"4031bf93583b43923ca014c5e0205898ad6d21708da527e03223760c5b2a86fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmSelectParser.java:53-62 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarSelectParser.java:73-82 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSelectParser.java:72-81 | core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerSelectParser.java:130-139 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmSelectParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarSelectParser.java\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 109 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmSelectParser.java:53\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":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmSelectParser.java"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"3abb8b66b6569e9fef02fb6f60238e2c1e169d8c0b5b5f47e10aeb07097b0980"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 4): core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmStatementParser.java:85-93 | core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/parser/GaussDbStatementParser.java:60-69 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java:107-116 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java:109-118 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmStatementParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 279 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmStatementParser.java:85\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":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmStatementParser.java"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"89a1ffc38dee31a5d8fa262a98a99917786f5147068f5dd59a85d4f0a95b5f49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 4): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleCreateTableParser.java:226-235 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java:1874-1883 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java:2664-2672 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java:2701-2710 \u2014 there are 4 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleCreateTableParser.java:226\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleCreateTableParser.java"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"e93a1902679b487fc8eba172d248c198ca7df634a44cb6c5623d1d5fd5a4c9c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:8600-8609 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:8629-8638 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:8651-8660 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:8673-8682 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060WhenUpdate\u0060 in one and \u0060SQLMergeStatement.WhenDoNothing\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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":8600}}}],"partialFingerprints":{"codehealthFindingId/v1":"a50895fb94a76e159bb7c6ea50ba1aa4e324bfdd6567640bc45aa1f3ffd9262c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): core/src/main/java/com/alibaba/druid/sql/visitor/functions/Instr.java:34-43 | core/src/main/java/com/alibaba/druid/sql/visitor/functions/Left.java:35-44 | core/src/main/java/com/alibaba/druid/sql/visitor/functions/Right.java:35-44 | core/src/main/java/com/alibaba/druid/sql/visitor/functions/Substring.java:46-55 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/visitor/functions/Instr.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/visitor/functions/Left.java\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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":"core/src/main/java/com/alibaba/druid/sql/visitor/functions/Instr.java"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfc7d68257c83949549c7ad889c4998de9b22035b49d0ad459eaa52ccf1bea36"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): core/src/main/java/com/alibaba/druid/util/FnvHash.java:187-196 | core/src/main/java/com/alibaba/druid/util/FnvHash.java:238-247 | core/src/main/java/com/alibaba/druid/util/FnvHash.java:311-320 | core/src/main/java/com/alibaba/druid/util/FnvHash.java:345-354 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/util/FnvHash.java"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"06ac893f82a54c8f83abf47386b6b9bd5018ab32925eb61831608a9ab51b7e87"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java:1806-1816 | core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java:1833-1843 | core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java:1988-1997 | core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java:2144-2153 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java"},"region":{"startLine":1806}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4e833dadd775d94258f1884d4c0349719ad95539a22e65752b71eb91a96b505"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLContainsExpr.java:134-143 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLInListExpr.java:178-187 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLInSubQueryExpr.java:137-146 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLContainsExpr.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLInListExpr.java\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLContainsExpr.java"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf02b8298a2eef664465e22435947b2b5bdf2eb9194c7772c1535d08bd38888e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDeleteStatement.java:254-263 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java:1497-1506 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLUpdateStatement.java:322-331 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDeleteStatement.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 65 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDeleteStatement.java:254\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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDeleteStatement.java"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"83e33797da13adbbcb6539f1900224b98e1cdc7603b9e2c5af0d9a8fa6c8be41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmCreateTableParser.java:24-33 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarCreateTableParser.java:22-31 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGCreateTableParser.java:65-74 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmCreateTableParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarCreateTableParser.java\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 81 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmCreateTableParser.java:24\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":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmCreateTableParser.java"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"972cfc9405b7a8a681a7f83035eecd2e1946ed821116579f2835d5badf610c70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmOutputVisitor.java:78-87 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:96-105 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:116-125 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 111 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmOutputVisitor.java:78\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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060DmSelectQueryBlock\u0060 in one and \u0060OscarSelectQueryBlock\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":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmOutputVisitor.java"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"65e856fdc66837c1ad4c653ec38b10b295b731dc7d9670e8bba7d708d8335f4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/visitor/GaussDbOutputVisitor.java:201-210 | core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/visitor/GaussDbOutputVisitor.java:226-235 | core/src/main/java/com/alibaba/druid/sql/dialect/impala/visitor/ImpalaOutputVisitor.java:187-196 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/impala/visitor/ImpalaOutputVisitor.java:185\u0060 calls \u0060print0\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/visitor/GaussDbOutputVisitor.java:199\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/visitor/GaussDbOutputVisitor.java"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"b061f75d2b6d757039bcd0f0b06ee638ec9f2ddea26f3dcf81ef7f3e934a196c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:339-348 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:366-375 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:9241-9250 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcbb0e9c7d77be70908989b58e67bdd0c38497f9cc74f1e32a597047c12097c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleCheck.java:87-96 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleForeignKey.java:89-98 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleUnique.java:86-95 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleCheck.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleForeignKey.java\u0060 as WHOLE FILES: 88% 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 1 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060OracleCheck\u0060 in one and \u0060OracleForeignKey\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleCheck.java"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8570ae9508ff0af5d67a93a782b4a48f9e665b641956ed0a806b72e648ca645"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:177-186 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:823-832 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:1203-1212 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 1096 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:177\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"22893bd775d8d6a3df8e3ac7aec3ef9718df0b6d25b33f458e2d7f7384963c18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:528-537 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:793-802 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:1173-1182 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 1096 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:539\u0060 calls \u0060printFlashback\u0060, \u0060getFlashback\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:804\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0d0c8cfe539031d7afc36f8cafad0a5e14907f4b89099fbe10083a18ec3ef41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:2430-2439 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:1358-1367 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:1735-1744 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 1096 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":2430}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ac142ba5073dc450261ccd3e3f7e34692772d6cfaab6b6124499c048f64dc0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:2442-2451 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:1371-1380 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:1748-1757 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 1096 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:2442\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":2442}}}],"partialFingerprints":{"codehealthFindingId/v1":"89251d88cfbff5bea524efee56684a6c827e6b55628b87eb71a0311f4774b6e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:2593-2602 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:1515-1524 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:1892-1901 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 1096 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":2593}}}],"partialFingerprints":{"codehealthFindingId/v1":"fef39d70e6940b3308491146b06ceb23b65e603f1f9c31c63c2a25d894c5fc23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:1430-1440 | core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:1461-1471 | core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:1490-1500 \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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:1473\u0060 calls \u0060SQLSomeExpr\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:1441\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":1430}}}],"partialFingerprints":{"codehealthFindingId/v1":"03d8c0d4b56c1bf651780a265d4ecdc1617d1c2dfcda90653ddbf95b2748ea85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java:127-136 | core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java:165-174 | core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java:895-904 \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":"core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"95722a6a7c3ba8e263e19ff5b433e83dbf63629a656ad99c4ea6e56e5a89a249"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): core/src/main/java/com/alibaba/druid/support/monitor/dao/MonitorDaoJdbcImpl.java:425-434 | core/src/main/java/com/alibaba/druid/support/monitor/dao/MonitorDaoJdbcImpl.java:924-933 | core/src/main/java/com/alibaba/druid/support/monitor/dao/MonitorDaoJdbcImpl.java:977-986 \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 \u0060core/src/main/java/com/alibaba/druid/support/monitor/dao/MonitorDaoJdbcImpl.java:425\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/support/monitor/dao/MonitorDaoJdbcImpl.java:435\u0060 calls \u0060setLong\u0060 and \u0060core/src/main/java/com/alibaba/druid/support/monitor/dao/MonitorDaoJdbcImpl.java:935\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":"core/src/main/java/com/alibaba/druid/support/monitor/dao/MonitorDaoJdbcImpl.java"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"60e457c16ea0c9c14a858002528a0dcbf053a60ddcbbe2dba28afa5a9fd61de8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java:373-382 | core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java:450-459 | core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java:472-481 \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 \u0060core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java:373\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":"core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"6796649e1cd2765e63374097efe31c932e668f6477653f2dca5787f48080ff3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java:454-463 | core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java:534-543 | core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java:588-597 \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 \u0060core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java:454\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":"core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"1467eb74680f60bc545ae8d835be70a486728b552a1b402452efca0cdf7ea442"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): core/src/main/java/com/alibaba/druid/filter/logging/LogFilter.java:600-609 | core/src/main/java/com/alibaba/druid/filter/logging/LogFilter.java:798-806 \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":"core/src/main/java/com/alibaba/druid/filter/logging/LogFilter.java"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"95bf03daece644540a0084db001f61f0bf67a0c41f134f6a693f6156b60d1c3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/SQLUtils.java:469-478 | core/src/main/java/com/alibaba/druid/sql/SQLUtils.java:501-510 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/SQLUtils.java:498\u0060 calls \u0060accept\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/SQLUtils.java:467\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":"core/src/main/java/com/alibaba/druid/sql/SQLUtils.java"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe33f6cca3582a8711e91dfe73fa5725139f50b3b9f1f66e57592b0a1fd4ffde"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLAggregateExpr.java:181-190 | core/src/main/java/com/alibaba/druid/sql/dialect/odps/ast/OdpsNewExpr.java:35-44 \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 \u0060core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLAggregateExpr.java:181\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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLAggregateExpr.java"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfb7842df61aaa0d8424f311552a229d59652fc4944c5e46aa2ab19fe024b07f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLAggregateExpr.java:320-329 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLMethodInvokeExpr.java:386-395 \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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLAggregateExpr.java"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"226889493e4dfc44d21a95da0559f72e8694eda67afca4d27727771c15d0a11e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTimestampExpr.java:78-87 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTimestampNTZExpr.java:78-87 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTimestampExpr.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTimestampNTZExpr.java\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 74 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTimestampExpr.java:78\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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTimestampExpr.java"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd92ff3ccbdd15e0a6b5ec28d339a3ab1f414dd79bb9dd5aafcc98a68632c1f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTimestampExpr.java:99-108 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTimestampNTZExpr.java:99-108 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTimestampExpr.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTimestampNTZExpr.java\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 74 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTimestampExpr.java:99\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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTimestampExpr.java"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"25fa92aa4544330a76e98f3209b24912d175487aeeeb0aba44552a13c8ebc105"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java:177-186 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java:249-258 \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 \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java:177\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6026df68973a2e78602f10b65020c17429d45ca17cc7971b3226f56f024f67b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java:743-752 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlSelectQueryBlock.java:251-260 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java"},"region":{"startLine":743}}}],"partialFingerprints":{"codehealthFindingId/v1":"796ad4fcf9c74add63a87cbc0d0f22d62cf5cad6246fca715934d1429054faf7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLUpdateStatement.java:393-402 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleUpdateStatement.java:152-161 \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 \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLUpdateStatement.java:393\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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLUpdateStatement.java"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf033570d46650d3f2d31f4c63c20c9ff5e471a5289fe82bc29e846a172216f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLValuesTableSource.java:129-138 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLWithSubqueryClause.java:157-165 \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 \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLValuesTableSource.java:129\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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLValuesTableSource.java"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f521f04cf9a8b972d388038fd37632a4c1fb51b862aa6c8f7d2737e1bbcf289"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryExprParser.java:80-89 | core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsExprParser.java:812-821 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryExprParser.java:80\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":"core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryExprParser.java"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"e727634aaf300e279eea6961030fdac96f391dffc74a4ee1843501693c8a3f93"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2SelectParser.java:69-78 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleSelectParser.java:271-280 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2SelectParser.java"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3fdbe697f44779a2a957bd9d14cc68f7da777fe5c97725e54fab258d108620a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmOutputVisitor.java:51-60 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:73-82 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 111 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmOutputVisitor.java:51\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. Note first that the copies are not typed on the same thing: \u0060ForClause\u0060 names \u0060com.alibaba.druid.sql.dialect.dm.ast.stmt.DmSelectQueryBlock.ForClause\u0060 in one and \u0060com.alibaba.druid.sql.dialect.oscar.ast.stmt.OscarSelectQueryBlock.ForClause\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmOutputVisitor.java:61\u0060 calls \u0060getWaitTimeout\u0060, \u0060print0\u0060, \u0060accept\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:83\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":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmOutputVisitor.java"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"67d601fef662268d1931d7bafafde88cf0fcde8e83eb37eec2967dce1dc473fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/h2/visitor/H2OutputVisitor.java:58-67 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:1482-1491 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/h2/visitor/H2OutputVisitor.java:58\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":"core/src/main/java/com/alibaba/druid/sql/dialect/h2/visitor/H2OutputVisitor.java"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"71a2cd309e1f96f23660bfdf8a03aaa5355412ec8f656445a5b1680e49426b6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlAlterEventStatement.java:42-51 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlCreateEventStatement.java:142-151 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlAlterEventStatement.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlCreateEventStatement.java\u0060 as WHOLE FILES: 94% 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 1 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlAlterEventStatement.java"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e5b105358249752070dd446b0769faa2d2a40944a949b6b6a4728873e6e770d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:635-644 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:656-665 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:635\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java"},"region":{"startLine":635}}}],"partialFingerprints":{"codehealthFindingId/v1":"aba44434573e412b51ddcdea73ba47fca69f2dc32e489d7fb4e3d497273e0c87"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:1471-1484 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:1490-1503 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:1471\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java"},"region":{"startLine":1471}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc4f215ca4b8016910e0adbb4bfdbe7a84896ecfe62306cad1725ef0ab952503"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectIntoParser.java:74-83 | core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsSelectParser.java:66-75 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectIntoParser.java:74\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectIntoParser.java"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"66cd0e1b237715ef83ef6a8b0c1ec7384ee1fb827654b2d67b378afa5c554315"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectParser.java:375-384 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectParser.java:393-402 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectParser.java"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"0de8430b1809495f94eb773656f339df983854bd3d6a1694db2ffc47d18cfcd0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:418-427 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:433-442 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:418\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bd69aa2da1c9fb7be446bdd74f1c57a2ed1b57a07252f0a91ad0686542a6859"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:1048-1057 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:2279-2288 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060MySqlDeleteStatement\u0060 in one and \u0060MySqlUpdateStatement\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":1048}}}],"partialFingerprints":{"codehealthFindingId/v1":"05faac731218c8f8c5af36f87ae8d686078dc9d6077e59a62fc5ea32eb4d8fe4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:3620-3629 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:2841-2850 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":3620}}}],"partialFingerprints":{"codehealthFindingId/v1":"028e6fb4ac7b67a47717e8788af2ad506466d0bdbc307e92cd0cf25d690bb79d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:4245-4254 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:4262-4271 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:4245\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060SQLIfStatement.ElseIf\u0060 in one and \u0060SQLIfStatement.Else\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":4245}}}],"partialFingerprints":{"codehealthFindingId/v1":"c767ebd1ad42b348a1fb018347429d9fba82a78f5e88b876842f439b6e150a9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:4355-4364 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:9139-9148 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":4355}}}],"partialFingerprints":{"codehealthFindingId/v1":"d63c1148224f7be6732f902a692d18cf7df3ea1ebbeef8fbbc5057d26f6615d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:5121-5130 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:5270-5279 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060MySqlCreateTableSpaceStatement\u0060 in one and \u0060MySqlAlterTablespaceStatement\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":5121}}}],"partialFingerprints":{"codehealthFindingId/v1":"d87b679ceb2ef8f10501e2cae5d320a7feb7b3970c67da0b3e292a1798580256"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsStatementParser.java:141-150 | core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsStatementParser.java:197-206 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsStatementParser.java"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"48629a7605711ec0c545ae80e9753796cb82568d5d76d37c3ce09111098d8f48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsStatementParser.java:362-371 | core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsStatementParser.java:1623-1632 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsStatementParser.java"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a67bcff37e170894a90eecbe9c48760a266814c399dfc9a88b7c283c04b1932"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleSelectParser.java:436-445 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleSelectParser.java:455-464 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleSelectParser.java:436\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleSelectParser.java"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ea23b74e098a5a76b37349a8bd6bf2d7c4ce5e2fb7faf916b1f42fafd535815"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java:972-981 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:800-810 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java:972\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java"},"region":{"startLine":972}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddebd71d0cd686e0f279028f932c7a41a4b8038cad9de727dfd6475f9edbd467"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java:1018-1030 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java:2834-2846 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java:1018\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java"},"region":{"startLine":1018}}}],"partialFingerprints":{"codehealthFindingId/v1":"b01e47ab08af9b80c46d6ad43bb84a0f930dcc59ff2fe43ece88a1cb69ae2e8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java:2236-2245 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java:851-860 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java"},"region":{"startLine":2236}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ca36c87a975bca6e102aecb424cc79339f756b2530ae797f06fcd8c6a03efd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:2817-2826 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:3170-3179 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":2817}}}],"partialFingerprints":{"codehealthFindingId/v1":"504ddf3c1da951ff092599de04f844dc2353b1afc86ecb4f7a95e595508491d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:283-292 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:286-295 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 99 separate duplicated blocks between them, totalling at least 1839 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060OscarInsertStatement\u0060 in one and \u0060PGInsertStatement\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:298\u0060 calls \u0060printOnConflict\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:294\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2cc2a8f1beab9dfe48b9b182e8d5a64a261f3daad5d551723e4e22793360b39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarPermissionOutputVisitor.java:60-69 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:3173-3182 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarPermissionOutputVisitor.java:60\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarPermissionOutputVisitor.java"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eb32b32365a849aa42a73fd788eacc694580e53930b0202b95bf9d8e56df0e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java:1241-1250 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java:1306-1315 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java:1241\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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java"},"region":{"startLine":1241}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fd863f342b4638b759baea4fab54dc8514ba7173cf22a583905e5107c3c37ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/starrocks/visitor/StarRocksOutputVisitor.java:377-386 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:8250-8259 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/starrocks/visitor/StarRocksOutputVisitor.java"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d10bcda988fc960fbbf29750790d3aaa682a09ed7e90e5bb3da4bff6512c9d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java:948-957 | core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java:1176-1184 \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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java"},"region":{"startLine":948}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f7682f308faba4906f8bd71a4d4e55672aa59d7e1fcc9fd94cb83107fbc0a4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:6118-6127 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:6419-6428 \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 \u0060core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:6118\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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":6118}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bd2f71074cafcebb98ad65421f29a475999f649e04639d8fc737c191d84397d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:1071-1080 | core/src/main/java/com/alibaba/druid/support/calcite/CalciteMySqlNodeVisitor.java:243-252 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":1071}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d9825cc182271934f6ee374fc9bd44a1a33a87700780cab447d62764ca47fa3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:10840-10849 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:10859-10868 \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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":10840}}}],"partialFingerprints":{"codehealthFindingId/v1":"96823ff42d6e8dd1f662c2c5da00857b7f6c19f29a3df77b52893383918100dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:11967-11976 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:11998-12007 \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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":11967}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c47e03e5c960f6f37e74ddd9d404017b7a9ebaa13d712a6e43334efeddaa007"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): core/src/main/java/com/alibaba/druid/stat/DruidStatManagerFacade.java:234-243 | core/src/main/java/com/alibaba/druid/stat/DruidStatManagerFacade.java:245-254 \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":"core/src/main/java/com/alibaba/druid/stat/DruidStatManagerFacade.java"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b2f56fea71a203ac3979767678bca59d8f4726748c233d890c435d9b645906e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): core/src/main/java/com/alibaba/druid/stat/JdbcDataSourceStat.java:212-221 | core/src/main/java/com/alibaba/druid/stat/JdbcDataSourceStat.java:341-350 \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 \u0060core/src/main/java/com/alibaba/druid/stat/JdbcDataSourceStat.java:212\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":"core/src/main/java/com/alibaba/druid/stat/JdbcDataSourceStat.java"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"cea540ac4ab5283dca13d04b553198f12409f9c277b2173a5e566b8242adccd8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): core/src/main/java/com/alibaba/druid/support/http/stat/WebAppStat.java:358-367 | core/src/main/java/com/alibaba/druid/support/http/stat/WebSessionStat.java:242-251 \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 \u0060core/src/main/java/com/alibaba/druid/support/http/stat/WebAppStat.java:358\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":"core/src/main/java/com/alibaba/druid/support/http/stat/WebAppStat.java"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c6b4d0823c8f04fca8c4d86a69f7350aaaa8b5787f72192e3cdc690a3276f31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201310 lines \u00D7 2): core/src/main/java/com/alibaba/druid/support/http/stat/WebAppStat.java:810-819 | core/src/main/java/com/alibaba/druid/support/http/stat/WebAppStat.java:833-839 \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 \u0060core/src/main/java/com/alibaba/druid/support/http/stat/WebAppStat.java:810\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":"core/src/main/java/com/alibaba/druid/support/http/stat/WebAppStat.java"},"region":{"startLine":810}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b33e8b6fd564eba6ae1b96cd5e8f3e39beeb3c84e5aada0955924f31d6c7e12"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): core/src/main/java/com/alibaba/druid/support/json/JSONWriter.java:110-119 | core/src/main/java/com/alibaba/druid/support/json/JSONWriter.java:123-132 \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 \u0060core/src/main/java/com/alibaba/druid/support/json/JSONWriter.java:110\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/support/json/JSONWriter.java"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"32bdcd6cf0865ff747652dee672cb13e2c076d21c0988a891fbd4fc3cd9aa54f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): core/src/main/java/com/alibaba/druid/util/MySqlUtils.java:310-319 | core/src/main/java/com/alibaba/druid/util/OracleUtils.java:298-308 \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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/util/MySqlUtils.java"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfe7395e018cd09ffd53bb5585252471c52a0fda7a8d08659c5e2f2cc4be2ccc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): core/src/main/java/com/alibaba/druid/util/MySqlUtils.java:1151-1160 | core/src/main/java/com/alibaba/druid/util/MySqlUtils.java:1168-1176 \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 \u0060core/src/main/java/com/alibaba/druid/util/MySqlUtils.java:1151\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":"core/src/main/java/com/alibaba/druid/util/MySqlUtils.java"},"region":{"startLine":1151}}}],"partialFingerprints":{"codehealthFindingId/v1":"e84d22f78d243ff2f108c0b737323090711f11b530a61d655e7791fb53d58155"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): core/src/main/java/com/alibaba/druid/util/MySqlUtils.java:1349-1358 | core/src/main/java/com/alibaba/druid/util/MySqlUtils.java:1360-1369 \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 \u0060core/src/main/java/com/alibaba/druid/util/MySqlUtils.java:1349\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":"core/src/main/java/com/alibaba/druid/util/MySqlUtils.java"},"region":{"startLine":1349}}}],"partialFingerprints":{"codehealthFindingId/v1":"f47096b4d1c9e487ac6c46bcf5674bde0d16698b6a302de8d2bf89126cdf544f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java:388-397 | core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java:500-509 \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 \u0060core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java:388\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":"core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"738eb5653b880cc25d12db4bc83b1974fc1c8bba213cadddefd92e7aa77fe6b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java:441-450 | core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java:523-531 \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 \u0060core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java:441\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":"core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"b050b2cede952c4ff304bed1b686c5c5ca1f0fcfa378c1d6f1dda6d0a94a1564"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java:546-555 | core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java:599-608 \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":"core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java"},"region":{"startLine":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"34b05dde4961e53467ade7c245fb3015b19b537ecf1e42e76d2a5d4464b4ab03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 10): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:1702-1710 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:2512-2520 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:2535-2543 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:2639-2647 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:2688-2696 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:2842-2850 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:2886-2894 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:3434-3442 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:10216-10224 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:10270-10278 \u2014 there are 10 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 10 sites; resolving a subset leaves the remainder to drift apart. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060MySqlShowStatusStatement\u0060 in one and \u0060MySqlShowEventsStatement\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:10226\u0060 calls \u0060isExtra\u0060, \u0060print0\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:1712\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":1702}}}],"partialFingerprints":{"codehealthFindingId/v1":"59ee83a440a8feb9edb6b4f4c3418129aa9c38d5b08648971ac21ac4b6cb6a4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 7): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:1477-1485 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:1504-1510 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:2230-2238 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:2257-2263 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:2723-2731 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:2750-2756 | core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/visitor/SQLServerOutputVisitor.java:596-602 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 1096 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060SQLIfStatement.ElseIf\u0060 in one and \u0060SQLIfStatement\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/visitor/SQLServerOutputVisitor.java:604\u0060 calls \u0060print0\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:1486\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":1477}}}],"partialFingerprints":{"codehealthFindingId/v1":"eff5d009817583967c9ff2cbf5435b5ae2d9ffa8c888228bbb9cb2b9b8b1ae99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): core/src/main/java/com/alibaba/druid/sql/dialect/athena/visitor/AthenaOutputVisitor.java:22-30 | core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/visitor/CKOutputVisitor.java:113-127 | core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/visitor/GaussDbOutputVisitor.java:34-48 | core/src/main/java/com/alibaba/druid/sql/dialect/starrocks/visitor/StarRocksOutputVisitor.java:104-116 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:4023-4037 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/visitor/CKOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 71 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060AthenaCreateTableStatement\u0060 in one and \u0060SQLCreateTableStatement\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/athena/visitor/AthenaOutputVisitor.java:32\u0060 calls \u0060printComment\u0060, \u0060getComment\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/visitor/CKOutputVisitor.java:129\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":"core/src/main/java/com/alibaba/druid/sql/dialect/athena/visitor/AthenaOutputVisitor.java"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef606f0c037aa0addb6a48939a3e06746e73ccb1034cbabd8295d9d0566ae28f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 5): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:6054-6061 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:6069-6076 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:6387-6395 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:6402-6410 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:6417-6425 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:6387\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":6054}}}],"partialFingerprints":{"codehealthFindingId/v1":"82956edbbc35d0db97d00be4f296e4e0a0ebedf8825eb90e13cba1f5e0dec31c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): core/src/main/java/com/alibaba/druid/sql/ast/SQLObjectImpl.java:167-176 | core/src/main/java/com/alibaba/druid/sql/ast/SQLObjectImpl.java:186-194 | core/src/main/java/com/alibaba/druid/sql/ast/SQLObjectImpl.java:212-220 | core/src/main/java/com/alibaba/druid/sql/ast/SQLObjectImpl.java:230-239 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \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 \u0060core/src/main/java/com/alibaba/druid/sql/ast/SQLObjectImpl.java:167\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":"core/src/main/java/com/alibaba/druid/sql/ast/SQLObjectImpl.java"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"a95f1a2f8e17946b281127d3b8d900d46598f04b376c52f4697ddfc77fcfd99f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLDateExpr.java:93-101 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLDateExpr.java:114-122 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLDateExpr.java:135-143 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTimestampNTZExpr.java:119-127 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLDateExpr.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTimestampNTZExpr.java\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 262 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLDateExpr.java:93\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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLDateExpr.java"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"aecbd8d3df7a307ce36142a8225d5baaaf4a3f913bcabe98979915ec1d0976a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTimestampExpr.java:77-85 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTimestampExpr.java:98-106 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTimestampExpr.java:119-127 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTimestampExpr.java:140-148 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \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 \u0060core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTimestampExpr.java:77\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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTimestampExpr.java"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"ade4da0748b94e675a63a783cd577cacd38f9b04563da224e621b34cdfdd8760"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLUnionQuery.java:252-260 | core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java:2430-2438 | core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java:3125-3133 | core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java:2284-2292 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \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 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLUnionQuery.java:252\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java:2427\u0060 calls \u0060getRelations\u0060, \u0060size\u0060, \u0060addAll\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLUnionQuery.java:250\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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLUnionQuery.java"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"11e53be29aa18838be6b21d8201cf81c081a4fe68c563bf1b2d0b85df37fbb69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:2819-2828 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:3177-3185 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:3242-3250 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:3385-3394 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:2819\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":2819}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9d64fe79e81f26268bc26c010c1eb5840015076e765f5cdb709fbaabf6e94f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 4): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:2634-2642 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:2881-2889 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:7197-7204 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:10383-10391 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:7197\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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060MySqlShowOpenTablesStatement\u0060 in one and \u0060MySqlShowTriggersStatement\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":2634}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d50c1c8bec0070c0c177aff0c84bee5d46b31f53befdc604fc5d6959631acf9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:4337-4345 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:4407-4415 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:7799-7809 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:11697-11706 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:4337\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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060SQLLoopStatement\u0060 in one and \u0060MySqlRepeatStatement\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":4337}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fe133e9071491700c2d9f3be92178820ddf08036eb8f3a90ddf1e479e6ff27b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): core/src/main/java/com/alibaba/druid/sql/visitor/functions/Ascii.java:30-38 | core/src/main/java/com/alibaba/druid/sql/visitor/functions/Bin.java:29-38 | core/src/main/java/com/alibaba/druid/sql/visitor/functions/BitLength.java:29-38 | core/src/main/java/com/alibaba/druid/sql/visitor/functions/OneParamFunctions.java:35-44 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/visitor/functions/Bin.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/visitor/functions/BitLength.java\u0060 as WHOLE FILES: 84% 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/visitor/functions/Ascii.java:30\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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/visitor/functions/Ascii.java"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c63d32cfc7e3162df9e5508644c43e58a607ed3b51fb27a4d548ca69f68fa5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): core/src/main/java/com/alibaba/druid/support/http/ResourceServlet.java:307-315 | core/src/main/java/com/alibaba/druid/support/http/StatViewServlet.java:208-216 | core/src/main/java/com/alibaba/druid/support/jakarta/ResourceServlet.java:287-295 | core/src/main/java/com/alibaba/druid/support/jakarta/StatViewServlet.java:208-216 \u2014 \u0060core/src/main/java/com/alibaba/druid/support/http/ResourceServlet.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/support/jakarta/ResourceServlet.java\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 12 separate duplicated blocks between them, totalling at least 238 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Note first that the copies are not typed on the same thing: \u0060HttpServletRequest\u0060 names \u0060jakarta.servlet.http.HttpServletRequest\u0060 in one and \u0060javax.servlet.http.HttpServletRequest\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, 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":"core/src/main/java/com/alibaba/druid/support/http/ResourceServlet.java"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad5f5afed910bf3ee61dba963f1325c190be09adee64b249ec8fdd247ec4ac09"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): core/src/main/java/com/alibaba/druid/support/http/stat/WebAppStatUtils.java:50-58 | core/src/main/java/com/alibaba/druid/support/http/stat/WebAppStatUtils.java:66-74 | core/src/main/java/com/alibaba/druid/support/spring/stat/SpringStatUtils.java:34-42 | core/src/main/java/com/alibaba/druid/util/DruidDataSourceUtils.java:200-208 \u2014 there are 4 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/support/http/stat/WebAppStatUtils.java:50\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":"core/src/main/java/com/alibaba/druid/support/http/stat/WebAppStatUtils.java"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"4255ca49f429aebe533c33b77fa5439a318e3438891e0b91a6c47096fd148b27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryOutputVisitor.java:498-506 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:7991-7999 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:12476-12485 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 148 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryOutputVisitor.java:498\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:12470\u0060 calls \u0060print0\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryOutputVisitor.java:494\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":"core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryOutputVisitor.java"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"3188283233a21d061528cd6831666ccddfef9c7248f95bf1c08f65d1c79c2182"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/parser/CKSelectParser.java:158-166 | core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2SelectParser.java:203-211 | core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java:1051-1059 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \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 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/parser/CKSelectParser.java:158\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/parser/CKSelectParser.java:167\u0060 calls \u0060identifierEquals\u0060, \u0060nextToken\u0060, \u0060setWithTotals\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java:1060\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":"core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/parser/CKSelectParser.java"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c947ed8f35bba85d3dedfa4d7e5f523c03ca462c492abc6281656acd06d16e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2ExprParser.java:235-243 | core/src/main/java/com/alibaba/druid/sql/dialect/h2/parser/H2ExprParser.java:116-124 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGExprParser.java:660-668 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2ExprParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/h2/parser/H2ExprParser.java\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 94 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2ExprParser.java:235\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":"core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2ExprParser.java"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"40d9bd49575d1eebcc658eade2cdade9d4dd4a48fd2f32dfbc36b63461998335"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmCreateTableParser.java:28-36 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:1113-1121 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarCreateTableParser.java:26-34 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmCreateTableParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 42 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmCreateTableParser.java:28\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":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmCreateTableParser.java"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"992547a9b54e67c42f3d33e5379e01f31925c0e2fd1dcdf552a343c55a075ab7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmOutputVisitor.java:29-38 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:51-60 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:62-71 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 111 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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. Note first that the copies are not typed on the same thing: \u0060FetchClause\u0060 names \u0060com.alibaba.druid.sql.dialect.dm.ast.stmt.DmSelectQueryBlock.FetchClause\u0060 in one and \u0060com.alibaba.druid.sql.dialect.oscar.ast.stmt.OscarSelectQueryBlock.FetchClause\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmOutputVisitor.java"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"5492a0bf7ec84df14d96a5bfdf4051b79fc72faeaaa9ad246ab369ed82f9b543"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveStatementParser.java:314-322 | core/src/main/java/com/alibaba/druid/sql/dialect/presto/parser/PrestoStatementParser.java:431-439 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:7183-7191 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveStatementParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/presto/parser/PrestoStatementParser.java\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 247 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveStatementParser.java:314\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":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveStatementParser.java"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"8067ed40b713d28b8b3caf883fd19e93f973e720136fca136cfe3c64bd1312c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveStatementParser.java:342-350 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:3893-3901 | core/src/main/java/com/alibaba/druid/sql/dialect/presto/parser/PrestoStatementParser.java:458-466 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \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 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveStatementParser.java:342\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":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveStatementParser.java"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4dc5c6cad5b6d334cccf3adff56b9ab1a1ce3ef44868c95d6554044015cb7db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:1097-1105 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:1297-1305 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:1330-1338 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:1097\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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":1097}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc98e08adba579e9a71d4e4658bc26ed5d213525575159700392b74e6ac5846a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:8631-8637 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:8641-8649 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java:1185-1191 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:8631\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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":8631}}}],"partialFingerprints":{"codehealthFindingId/v1":"5243be40daf369efdb834b610f0a6aa3629cff0eb2de46992e24ce06fac528a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:3536-3544 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:3691-3699 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:3708-3716 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060SQLAlterTableAddColumn\u0060 in one and \u0060MySqlAlterTableChangeColumn\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:3546\u0060 calls \u0060getColumns\u0060, \u0060size\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:3701\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":3536}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d56367e30ad04ff6dbcb86ac8c742405835823b4429e6740f03ed73745581a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java:2760-2768 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:4784-4792 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:7427-7435 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java:2760\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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java"},"region":{"startLine":2760}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aaa9bbe439201d3d22f1c7bda7bfc81e0d49e6db825f6025fb9bb1b86a24638"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:387-395 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:1259-1267 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:1638-1646 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 1096 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:387\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:397\u0060 calls \u0060isParenthesized\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:1648\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cb55f9d32162071fc9090465a0871b0b9369f36a2d20d7e08a9b63235b8281f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:713-721 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:2110-2118 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:2603-2611 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 1096 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":713}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bd9c2b84ef2b991c41f3ff5e0bc1f88bf2cfdc249f92e528ca1b3ae8dd43689"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:1053-1061 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:1175-1183 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:1555-1563 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 1096 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060ConditionalInsertClauseItem\u0060 in one and \u0060OracleMultiInsertStatement.ConditionalInsertClauseItem\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":1053}}}],"partialFingerprints":{"codehealthFindingId/v1":"735955f32f1ba938a3b8b7a164d4e81be293e6bf41e2b1f6299ec6b0127bbb9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:2819-2827 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarPermissionOutputVisitor.java:59-67 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:3172-3180 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \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 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:2819\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":2819}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdc6e7995f83a9275e9f34d1dd108a02dbdec3b03c50474c98f82e05af5f9858"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:6424-6432 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:6442-6450 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:6459-6467 \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 \u0060core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:6424\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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":6424}}}],"partialFingerprints":{"codehealthFindingId/v1":"47bb13585aa64e9b512c698de508df6ef6c255b42bd4aa32be2c66eb4a7df90d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java:2424-2432 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:4243-4251 | core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java:3119-3127 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \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 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java:2424\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":"core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java"},"region":{"startLine":2424}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b2647e20671925d06b97555aeea4596997857eaf11636ea0bb3489b5f83c07f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201317 lines \u00D7 3): core/src/main/java/com/alibaba/druid/stat/JdbcStatManager.java:288-298 | core/src/main/java/com/alibaba/druid/stat/JdbcStatManager.java:301-317 | core/src/main/java/com/alibaba/druid/stat/JdbcStatManager.java:320-336 \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 \u0060core/src/main/java/com/alibaba/druid/stat/JdbcStatManager.java:288\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":"core/src/main/java/com/alibaba/druid/stat/JdbcStatManager.java"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2ad4b1191e5d27e9cbf542a8bb79fdd921e302cf81f32e5dd1a0d17ab66b2d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): core/src/main/java/com/alibaba/druid/support/http/stat/WebAppStatUtils.java:34-42 | core/src/main/java/com/alibaba/druid/util/DruidDataSourceUtils.java:136-144 | core/src/main/java/com/alibaba/druid/util/DruidDataSourceUtils.java:152-160 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/support/http/stat/WebAppStatUtils.java:34\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":"core/src/main/java/com/alibaba/druid/support/http/stat/WebAppStatUtils.java"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"a39c697ebb67a47c1c38f0027ca9b32c6301bad3c2257c1dfdd5e46c38858b6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java:426-434 | core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java:512-520 | core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java:567-575 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060SQLSelectQueryBlock\u0060 in one and \u0060SQLUpdateStatement\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":"core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e1bb93543033afc0ed6ccc1766945442cd9eda213d06e3b31a3e0d8e9015426"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/SQLOrderBy.java:67-75 | core/src/main/java/com/alibaba/druid/sql/ast/SQLZOrderBy.java:67-75 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/ast/SQLOrderBy.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/ast/SQLZOrderBy.java\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 31 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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":"core/src/main/java/com/alibaba/druid/sql/ast/SQLOrderBy.java"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c8aebfd9f9ecde526e05ccf32c12e5e3b6033017cc64f5b91a24e4ab57c471f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateTableStatement.java:841-849 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateTableStatement.java:874-882 \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 \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateTableStatement.java:841\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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateTableStatement.java"},"region":{"startLine":841}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed2a589228cad87207623bc7497092d857b8ddd8b67d56b606f99bb050cf2c57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryOutputVisitor.java:227-235 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:1261-1269 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 148 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryOutputVisitor.java"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"36b3bdee28a8b20937935c6402a549f2230b6db2bc39c7606b383231ddee0f46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/blink/parser/BlinkCreateTableParser.java:119-128 | core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveCreateTableParser.java:211-220 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/blink/parser/BlinkCreateTableParser.java"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4d7c80ca76328599dca28892e59ca3a395c0ff1bbdb0fdb7bc9879a85135f75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/doris/visitor/DorisOutputVisitor.java:113-121 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:11134-11142 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/doris/visitor/DorisOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 32 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/doris/visitor/DorisOutputVisitor.java:113\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:11144\u0060 calls \u0060isMysqlDbType\u0060, \u0060isPgsqlDbType\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/doris/visitor/DorisOutputVisitor.java:122\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":"core/src/main/java/com/alibaba/druid/sql/dialect/doris/visitor/DorisOutputVisitor.java"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"944564d257828b30541dceb7e17ddeb895f7d36da0f14edb99d21dd5e457bf90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveCreateTableParser.java:291-299 | core/src/main/java/com/alibaba/druid/sql/dialect/impala/parser/ImpalaCreateTableParser.java:92-100 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveCreateTableParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/impala/parser/ImpalaCreateTableParser.java\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 81 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveCreateTableParser.java"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fb9e6009cfdf763b01af7da351ba84afc96b55377b6d74fceaa696df9ac5dd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:457-465 | core/src/main/java/com/alibaba/druid/sql/parser/SQLCreateTableParser.java:139-147 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:457\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8806e6c6ccb3656fbbef0325845e8d9200787c4ccdfe8cefededa576b24db93"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20139 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java:1443-1451 | core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerExprParser.java:111-116 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java:1443\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java"},"region":{"startLine":1443}}}],"partialFingerprints":{"codehealthFindingId/v1":"9159510d78e24a07473a1c8d9097b91189a909b6d486ff0232205b7ab31f4989"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20139 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java:1459-1467 | core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerExprParser.java:110-115 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java"},"region":{"startLine":1459}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0b0bd788eb15edcf3dba10ed9e965e48d95e66cbd63d0f71f0027fe135a07cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java:1760-1768 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java:1850-1858 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java"},"region":{"startLine":1760}}}],"partialFingerprints":{"codehealthFindingId/v1":"73a59bec2c7226638de8e72d480ac8700a806c260f94dd1f641fa331e2cdb1b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java:2598-2615 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java:2625-2641 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java"},"region":{"startLine":2598}}}],"partialFingerprints":{"codehealthFindingId/v1":"c529e77ea278224c0005afbeb9be25250cc9e80db39ca32bf787239a93158625"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:1809-1817 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:1831-1840 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:1831\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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":1809}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fc2f57458b4a1f3ff7e104ce237afa7994332d01a4a5dd9871787b654a38da8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:1831-1839 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:1874-1882 \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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":1831}}}],"partialFingerprints":{"codehealthFindingId/v1":"e32c5aa0a3d78cdfb566b9af65de3e2bca5d80b3c2d4ddebc2695b7985f280a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:468-476 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:497-503 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:497\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed5d92c018bf1366044be957323b06c47d686d9014f227c824257c587f1a417d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:4328-4336 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:4398-4406 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:4328\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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060SQLLoopStatement\u0060 in one and \u0060MySqlRepeatStatement\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":4328}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb262bb7379606cba97126c17383f86d3862d8fa0c682031498838c41855be37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/odps/visitor/OdpsOutputVisitor.java:797-805 | core/src/main/java/com/alibaba/druid/sql/dialect/odps/visitor/OdpsOutputVisitor.java:922-930 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060OdpsAddTableStatement\u0060 in one and \u0060OdpsCountStatement\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":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/visitor/OdpsOutputVisitor.java"},"region":{"startLine":797}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5594c28271068350444282e29abda8d4e676945f22f6938317b5f411b0df6d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/odps/visitor/OdpsOutputVisitor.java:1286-1294 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:2384-2392 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/odps/visitor/OdpsOutputVisitor.java:1286\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":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/visitor/OdpsOutputVisitor.java"},"region":{"startLine":1286}}}],"partialFingerprints":{"codehealthFindingId/v1":"419ce0eac6c6d33e8f8b6222e7aa8084e11cf420778beda0122dfbaa2b61e1c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java:229-237 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java:255-263 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java:229\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"94ecfd73d3ad8343387486c3083fdc1cedf493ea60cefc9d9c8af3832411f07f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java:795-803 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java:807-815 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java"},"region":{"startLine":795}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8d84848942b947d7b2dbf99f3d7b6b9472d39cdc513cbe68a88f127ad37e53e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java:2188-2196 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java:2214-2222 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java:2197\u0060 calls \u0060accept\u0060, \u0060setReturnDataType\u0060, \u0060parseDataType\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java:2224\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java"},"region":{"startLine":2188}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e70cec3fbfc36cf5a3be0ba81b9ecabcc979d88c00207ad002fea9d460d66d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java:550-569 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java:1076-1095 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 578 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java:550\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java:1096\u0060 calls \u0060token\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java:570\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"8760dafafd756ac869798dad6e363511da2109b65ddec03e77664ae4a7472022"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/redshift/stmt/RedshiftSelectQueryBlock.java:67-75 | core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/ast/SQLServerSelectQueryBlock.java:66-74 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060visitor\u0060 to \u0060RedshiftASTVisitor\u0060 in one and \u0060SQLServerASTVisitor\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":"core/src/main/java/com/alibaba/druid/sql/dialect/redshift/stmt/RedshiftSelectQueryBlock.java"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"c01aa8f161a8d18a6c948f5ab0980dd6b824c4e07ff1f214bbfdd68955eb1577"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeExprParser.java:241-249 | core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeExprParser.java:251-259 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeExprParser.java:241\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":"core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeExprParser.java"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"82c869fe111d30f0b8218d4bbee6241711dc37e1cd9cfd35fbc2a31aad33d6ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/spark/parser/SparkExprParser.java:174-182 | core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:6491-6499 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/spark/parser/SparkExprParser.java"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"92cc4401adad2b6834eaec895aea7839ddbce0f1db7bab533399be23185d930a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerStatementParser.java:896-904 | core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerStatementParser.java:991-999 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerStatementParser.java"},"region":{"startLine":896}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea459f8a465f008abd72264a4cad86f0e488f2bf22c44b21a0bb9df79d90e819"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:2740-2748 | core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:2795-2803 \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 \u0060core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:2740\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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":2740}}}],"partialFingerprints":{"codehealthFindingId/v1":"21dff0c00bd911e9a665ecbf258825483442f0d559b028d6bc9ecbd59ef20a3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:3551-3559 | core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:3655-3663 \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 \u0060core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:3551\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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":3551}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d295a5be776d098dc974e8edbe3ef68ae9450271b56274f7bc368d84c2a2d29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/parser/SQLParserUtils.java:771-779 | core/src/main/java/com/alibaba/druid/sql/parser/SQLParserUtils.java:1098-1106 \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 \u0060core/src/main/java/com/alibaba/druid/sql/parser/SQLParserUtils.java:771\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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLParserUtils.java"},"region":{"startLine":771}}}],"partialFingerprints":{"codehealthFindingId/v1":"65168be4e0c6594bf0b3b8b63b3d74665e3a3472f178507a0aa29d74eb797f83"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:6157-6165 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:6438-6446 \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 \u0060core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:6157\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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":6157}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fbbfc01771c6dad76cbcdb2aba93a67e89724b396afa10d2c71c38d20d793c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/visitor/ParameterizedOutputVisitorUtils.java:330-338 | core/src/main/java/com/alibaba/druid/sql/visitor/ParameterizedOutputVisitorUtils.java:357-365 \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 \u0060core/src/main/java/com/alibaba/druid/sql/visitor/ParameterizedOutputVisitorUtils.java:330\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/visitor/ParameterizedOutputVisitorUtils.java:353\u0060 calls \u0060parameterize\u0060, \u0060StringBuilder\u0060, \u0060createParameterizedOutputVisitor\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/visitor/ParameterizedOutputVisitorUtils.java:328\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":"core/src/main/java/com/alibaba/druid/sql/visitor/ParameterizedOutputVisitorUtils.java"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbe3d2748e74d8cbf9bed55c8327c8e6bde7d807131e0d16569be061fee5da52"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:6262-6271 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:6888-6896 \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 \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:6888\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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060SQLCreateIndexStatement\u0060 in one and \u0060SQLIndexDefinition\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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":6262}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1093d5b95f2a4ce1ff798ced727c8dc2cbd9b12f4f1a5bab7b8e608d76def5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): core/src/main/java/com/alibaba/druid/support/http/AbstractWebStatImpl.java:127-135 | core/src/main/java/com/alibaba/druid/support/jakarta/AbstractWebStatImpl.java:126-134 \u2014 \u0060core/src/main/java/com/alibaba/druid/support/http/AbstractWebStatImpl.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/support/jakarta/AbstractWebStatImpl.java\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 5 separate duplicated blocks between them, totalling at least 117 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: \u0060HttpServletRequest\u0060 names \u0060jakarta.servlet.http.HttpServletRequest\u0060 in one and \u0060javax.servlet.http.HttpServletRequest\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, 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":"core/src/main/java/com/alibaba/druid/support/http/AbstractWebStatImpl.java"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"de75f11e8847baaef072be2a946be759d32b27c611984a22b28d38515bbf9d11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): core/src/main/java/com/alibaba/druid/support/http/ResourceServlet.java:227-235 | core/src/main/java/com/alibaba/druid/support/jakarta/ResourceServlet.java:214-222 \u2014 \u0060core/src/main/java/com/alibaba/druid/support/http/ResourceServlet.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/support/jakarta/ResourceServlet.java\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 12 separate duplicated blocks between them, totalling at least 238 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: \u0060HttpServletRequest\u0060 names \u0060jakarta.servlet.http.HttpServletRequest\u0060 in one and \u0060javax.servlet.http.HttpServletRequest\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, 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":"core/src/main/java/com/alibaba/druid/support/http/ResourceServlet.java"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"00e25ea018c49ee71fb8d7ae9d6af1cdf348a9c4acb1b8636bfa4c79e04f1b8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): core/src/main/java/com/alibaba/druid/support/http/stat/WebAppStatUtils.java:82-90 | core/src/main/java/com/alibaba/druid/support/http/stat/WebAppStatUtils.java:98-106 \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 \u0060core/src/main/java/com/alibaba/druid/support/http/stat/WebAppStatUtils.java:82\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":"core/src/main/java/com/alibaba/druid/support/http/stat/WebAppStatUtils.java"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"64c6bfc59e55f738b085f674a07d103b11b54fdff4ee77c1deccf093b7c88afa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): core/src/main/java/com/alibaba/druid/util/ListDG.java:144-152 | core/src/main/java/com/alibaba/druid/util/ListDG.java:165-172 \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 \u0060core/src/main/java/com/alibaba/druid/util/ListDG.java:144\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":"core/src/main/java/com/alibaba/druid/util/ListDG.java"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b5e22afe20323928ebe528771f0f213a1606adc6bba09311d99ea8eae090e2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): core/src/main/java/com/alibaba/druid/util/MySqlUtils.java:1393-1402 | core/src/main/java/com/alibaba/druid/util/MySqlUtils.java:1894-1903 \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 \u0060core/src/main/java/com/alibaba/druid/util/MySqlUtils.java:1393\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":"core/src/main/java/com/alibaba/druid/util/MySqlUtils.java"},"region":{"startLine":1393}}}],"partialFingerprints":{"codehealthFindingId/v1":"d338d5769763ede461ffcae6896f3ecca5b5fdb1a7e291c9b91265e33252de58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 11): core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:6122-6129 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:6141-6148 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:6160-6167 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:6201-6208 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:6423-6430 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:6441-6448 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:6458-6465 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:6733-6740 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:6752-6759 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:6771-6778 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:6817-6824 \u2014 all 11 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 \u0060core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:6122\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:6130\u0060 calls \u0060SQLIntegerExpr\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:6741\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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":6122}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d610cf97767d9af4978a6f8b791b9ceb32acd0cce71ae9fe9a1cfa905b9b3b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 6): core/src/main/java/com/alibaba/druid/filter/stat/StatFilter.java:832-841 | core/src/main/java/com/alibaba/druid/filter/stat/StatFilter.java:850-859 | core/src/main/java/com/alibaba/druid/filter/stat/StatFilter.java:866-875 | core/src/main/java/com/alibaba/druid/filter/stat/StatFilter.java:883-892 | core/src/main/java/com/alibaba/druid/filter/stat/StatFilter.java:901-910 | core/src/main/java/com/alibaba/druid/filter/stat/StatFilter.java:917-926 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \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 \u0060core/src/main/java/com/alibaba/druid/filter/stat/StatFilter.java:832\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/filter/stat/StatFilter.java"},"region":{"startLine":832}}}],"partialFingerprints":{"codehealthFindingId/v1":"2779ba28db4f4f48c320578701e355044641b5e2d110f64a4d05a5b090effff0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 6): core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/parser/CKExprParser.java:93-100 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java:1475-1481 | core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsExprParser.java:555-561 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarExprParser.java:247-254 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGExprParser.java:434-441 | core/src/main/java/com/alibaba/druid/sql/dialect/spark/parser/SparkExprParser.java:65-72 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarExprParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGExprParser.java\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 294 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java:1475\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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/parser/CKExprParser.java:89\u0060 calls \u0060primary\u0060, \u0060primaryRest\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarExprParser.java:245\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":"core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/parser/CKExprParser.java"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"f058ffd5e21737a4ab84531ec8d3296900b9338f82c94cb79235cf92806a43d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 6): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:1101-1108 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:1301-1308 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:1334-1341 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:1936-1943 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:3691-3698 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:4068-4075 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:1101\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":1101}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8be16de28703e7940d44d895a3d6d2fb9c5f39e7c0e309960b4bb1873ec4cae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 6): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:4245-4252 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:4262-4269 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:4337-4344 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:4407-4414 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:7799-7808 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:11697-11705 \u2014 there are 6 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 6 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:4245\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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060SQLIfStatement.ElseIf\u0060 in one and \u0060SQLIfStatement.Else\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:11706\u0060 calls \u0060print0\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:4253\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":4245}}}],"partialFingerprints":{"codehealthFindingId/v1":"231af8a12d42a2b58f4cfa95181a64a59647381640d6f4c8a83a118bf61b9520"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 6): core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java:217-224 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java:339-346 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java:528-535 | core/src/main/java/com/alibaba/druid/sql/visitor/functions/Instr.java:32-39 | core/src/main/java/com/alibaba/druid/sql/visitor/functions/Left.java:33-40 | core/src/main/java/com/alibaba/druid/sql/visitor/functions/Right.java:33-40 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/visitor/functions/Instr.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/visitor/functions/Left.java\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java:217\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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"a611aab6d2d8c1f213db8f8c0ffbb0ac8ad1f2a2d7179aef61d167770e8a1671"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5): core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/visitor/CKOutputVisitor.java:200-207 | core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmOutputVisitor.java:228-235 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:366-373 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:363-370 | core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/visitor/SQLServerOutputVisitor.java:150-157 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 111 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060CKAlterTableUpdateStatement\u0060 in one and \u0060DmUpdateStatement\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":"core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/visitor/CKOutputVisitor.java"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"48eaff72075a4b17738e444e48644868bbf276874d09096a89927c44d65046cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5): core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmOutputVisitor.java:225-232 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:363-370 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:360-367 | core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/visitor/SQLServerOutputVisitor.java:147-154 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:3890-3897 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 111 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmOutputVisitor.java:225\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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060DmUpdateStatement\u0060 in one and \u0060OscarUpdateStatement\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:359\u0060 calls \u0060isOnly\u0060, \u0060print0\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:3888\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":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmOutputVisitor.java"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"658c2567eb81dccfc897aa487b68d71d427eb4bc2eecf1b0636e2bdd52625b68"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 5): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:168-175 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:244-251 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:337-343 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:364-370 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:9239-9245 \u2014 there are 5 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"b92c74a88b680d77c2ad4f1379f1f149e1a50892a3145296d3e35e5ba5b8f30c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): core/src/main/java/com/alibaba/druid/filter/stat/StatFilter.java:933-940 | core/src/main/java/com/alibaba/druid/filter/stat/StatFilter.java:947-954 | core/src/main/java/com/alibaba/druid/filter/stat/StatFilter.java:961-968 | core/src/main/java/com/alibaba/druid/filter/stat/StatFilter.java:976-983 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \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 \u0060core/src/main/java/com/alibaba/druid/filter/stat/StatFilter.java:933\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/filter/stat/StatFilter.java"},"region":{"startLine":933}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b6c0ba5c9934ff235894c5aefadc8efc94c1e94ac188ab7dc12cf1cf998b399"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2ExprParser.java:82-89 | core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2ExprParser.java:94-101 | core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2ExprParser.java:112-119 | core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2ExprParser.java:121-128 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \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 after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2ExprParser.java:90\u0060 calls \u0060identifierEquals\u0060, \u0060nextToken\u0060, \u0060SQLIntervalExpr\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2ExprParser.java:102\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":"core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2ExprParser.java"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8075865c11eb05db7152ab79972804fcc708762df7662ad88eb0d62d87ed292"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmStatementParser.java:102-110 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java:131-139 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java:133-141 | core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerStatementParser.java:319-326 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmStatementParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 279 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmStatementParser.java:102\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":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmStatementParser.java"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"30a1d1f0f252fae9840f1b1dda4ce57da0cb18c8e2906b04305f9b43e466752d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 4): core/src/main/java/com/alibaba/druid/util/MySqlUtils.java:1649-1656 | core/src/main/java/com/alibaba/druid/util/MySqlUtils.java:1670-1677 | core/src/main/java/com/alibaba/druid/util/MySqlUtils.java:1688-1695 | core/src/main/java/com/alibaba/druid/util/MySqlUtils.java:1703-1709 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \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 \u0060core/src/main/java/com/alibaba/druid/util/MySqlUtils.java:1649\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":"core/src/main/java/com/alibaba/druid/util/MySqlUtils.java"},"region":{"startLine":1649}}}],"partialFingerprints":{"codehealthFindingId/v1":"5177095ea16150c24693b60c40afe190a7614824d8d2216fb884296be4b99916"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): core/src/main/java/com/alibaba/druid/filter/FilterChainImpl.java:1351-1359 | core/src/main/java/com/alibaba/druid/filter/FilterChainImpl.java:2155-2162 | core/src/main/java/com/alibaba/druid/filter/FilterChainImpl.java:2215-2222 \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 \u0060core/src/main/java/com/alibaba/druid/filter/FilterChainImpl.java:1351\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":"core/src/main/java/com/alibaba/druid/filter/FilterChainImpl.java"},"region":{"startLine":1351}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c2729b09a982f3ee8cd3dc08bac10e0800dd14ac06c0037ed7f82c2c2c5142b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): core/src/main/java/com/alibaba/druid/filter/logging/LogFilter.java:619-626 | core/src/main/java/com/alibaba/druid/filter/logging/LogFilter.java:638-645 | core/src/main/java/com/alibaba/druid/filter/logging/LogFilter.java:738-745 \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 after the matched lines, \u0060core/src/main/java/com/alibaba/druid/filter/logging/LogFilter.java:747\u0060 calls \u0060toString\u0060, \u0060resultSetLog\u0060 and \u0060core/src/main/java/com/alibaba/druid/filter/logging/LogFilter.java:646\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/filter/logging/LogFilter.java"},"region":{"startLine":619}}}],"partialFingerprints":{"codehealthFindingId/v1":"b699b556a16a24e0102eeed08b5a76399bc2c9b94471215f0c06cd39cd74d10d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/ast/SQLIndexOptions.java:73-80 | core/src/main/java/com/alibaba/druid/sql/ast/SQLIndexOptions.java:116-123 | core/src/main/java/com/alibaba/druid/sql/ast/SQLIndexOptions.java:136-143 \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 \u0060core/src/main/java/com/alibaba/druid/sql/ast/SQLIndexOptions.java:73\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":"core/src/main/java/com/alibaba/druid/sql/ast/SQLIndexOptions.java"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"de211e35c6fb46cf631feaca2d5a930f3e7fb0a9fb954d612b4f125389861cc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLDateExpr.java:163-170 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTimestampExpr.java:259-266 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTimestampNTZExpr.java:189-196 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLDateExpr.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTimestampExpr.java\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 54 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLDateExpr.java:163\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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLDateExpr.java"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"db8d37a1cc95db8fc618ce53e46e685672437038738c7c6c794e3b24c6cb89c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/parser/CKStatementParser.java:182-189 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:7842-7849 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java:575-582 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \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 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/parser/CKStatementParser.java"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"c29fc283d01259c71d6372633114dd2136bc59be862cacab86e9e6d5e654db94"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveCreateTableParser.java:60-67 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:9270-9277 | core/src/main/java/com/alibaba/druid/sql/parser/SQLCreateTableParser.java:129-136 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \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 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveCreateTableParser.java:60\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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060stmt\u0060 to \u0060SQLCreateTableStatement\u0060 in one and \u0060SQLCreateMaterializedViewStatement\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":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveCreateTableParser.java"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"435010f7def2f581335dfe23f0771bfff52cb346814e9e68d70c942c687745fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:907-914 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:1234-1241 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGCreateTableParser.java:148-155 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java"},"region":{"startLine":907}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb82ee9fb533e092ca5f141ac21b4885e915a598560625c1c6b463ce08903c12"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:7676-7683 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java:1783-1790 | core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerStatementParser.java:1023-1030 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \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 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:7676\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":7676}}}],"partialFingerprints":{"codehealthFindingId/v1":"e87817f3d5a7fa481d691d5b05a24622c84867dbbafb199589b5bafe27c1afc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsStatementParser.java:428-435 | core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsStatementParser.java:1196-1203 | core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsStatementParser.java:1233-1240 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsStatementParser.java"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"a05ffb75da431e9d44a0656d0cac22d621d9e4214fd16f0a488d24b94fe5e231"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeStatementParser.java:528-535 | core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeStatementParser.java:580-587 | core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeStatementParser.java:680-687 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeStatementParser.java:528\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":"core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeStatementParser.java"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"adaa4c02274fe95b22fae1f54f0652c569519a85d6a8d292bfc2557eb3692ef1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/parser/SQLParserUtils.java:807-814 | core/src/main/java/com/alibaba/druid/sql/parser/SQLParserUtils.java:994-1000 | core/src/main/java/com/alibaba/druid/sql/parser/SQLParserUtils.java:1050-1056 \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 \u0060core/src/main/java/com/alibaba/druid/sql/parser/SQLParserUtils.java:807\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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLParserUtils.java"},"region":{"startLine":807}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c9f194415b36eb734f51b9aebcb8630aab6436ca4f782f66ce8fe1dfcebb48e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): core/src/main/java/com/alibaba/druid/filter/logging/LogFilter.java:509-516 | core/src/main/java/com/alibaba/druid/filter/logging/LogFilter.java:535-542 \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 \u0060core/src/main/java/com/alibaba/druid/filter/logging/LogFilter.java:509\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":"core/src/main/java/com/alibaba/druid/filter/logging/LogFilter.java"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1f74d10d4425b36114ee6a3cf5c16b7e40ddf2953e3b1f208a8f06d0aa9f26e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmSelectParser.java:192-199 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSelectParser.java:223-230 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmSelectParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSelectParser.java\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 117 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmSelectParser.java:192\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmSelectParser.java:200\u0060 calls \u0060setParent\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSelectParser.java:231\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmSelectParser.java"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"e771b85fd56d9a7078589303fd072eed71fc478472277bfe1ac37b4b2d921efc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/doris/visitor/DorisOutputVisitor.java:28-34 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:2583-2590 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/doris/visitor/DorisOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 32 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/doris/visitor/DorisOutputVisitor.java:28\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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/doris/visitor/DorisOutputVisitor.java:34\u0060 calls \u0060print0\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:2590\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":"core/src/main/java/com/alibaba/druid/sql/dialect/doris/visitor/DorisOutputVisitor.java"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"a122c2a5ef09011871ed19334ea1daae2ba9846aaa47a4a0cf9cc1e6d0b3a2bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/doris/visitor/DorisOutputVisitor.java:71-78 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:3179-3186 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/doris/visitor/DorisOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 32 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/doris/visitor/DorisOutputVisitor.java:71\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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060DorisExprTableSource\u0060 in one and \u0060SQLExprTableSource\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":"core/src/main/java/com/alibaba/druid/sql/dialect/doris/visitor/DorisOutputVisitor.java"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"59e63814be105fc5cee734ab87fc543375629ec358feb820b365b626a3ddc2bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/parser/GaussDbExprParser.java:175-182 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGExprParser.java:350-357 \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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/parser/GaussDbExprParser.java"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b800e73d1f5645061ccf795ea7737b169a34bc8de9abd7db1822ef1f7cab6f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/h2/parser/H2StatementParser.java:67-74 | core/src/main/java/com/alibaba/druid/sql/dialect/sqlite/parser/SQLiteStatementParser.java:93-99 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/h2/parser/H2StatementParser.java:67\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/h2/parser/H2StatementParser.java:66\u0060 calls \u0060accept\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/sqlite/parser/SQLiteStatementParser.java:92\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":"core/src/main/java/com/alibaba/druid/sql/dialect/h2/parser/H2StatementParser.java"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"d67b3e985efa86177abc3c6336e583bedbe6587d8569d983e1e821e3b9047aee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/hive/visitor/HiveOutputVisitor.java:386-393 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:6277-6284 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/visitor/HiveOutputVisitor.java"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb055da013cc6b9ff2985856a526aecf650a5faf8629f202dbc54f9206c88303"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:703-710 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:713-720 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:703\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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:714\u0060 calls \u0060acceptIdentifier\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:724\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java"},"region":{"startLine":703}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9cff72a97e5aecbc6e8d6cc6ca05f9f4ad5056a319c22a07062b97cede4edad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:973-980 | core/src/main/java/com/alibaba/druid/sql/parser/SQLCreateTableParser.java:261-268 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:973\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java"},"region":{"startLine":973}}}],"partialFingerprints":{"codehealthFindingId/v1":"02343ce027f462960b2656236c8d54fa8de8eaa69441767bc10e76797a96243f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java:217-224 | core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:5935-5942 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1b15b016fa7bfdd543872860707ec001939325ba7e088794ea37ff4722f1f30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:2980-2987 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:3087-3094 \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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":2980}}}],"partialFingerprints":{"codehealthFindingId/v1":"729b4b5ab1f45d1fd62b0f92497643c97f3a9b46fe17f6cba694e861cdbf9718"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:7627-7635 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java:303-311 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":7627}}}],"partialFingerprints":{"codehealthFindingId/v1":"97bd137dfcb2409c3f3fea7856be4ff26dadabfda36ea4d44c9e0add82009014"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:8459-8466 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java:194-201 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:8459\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":8459}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a1df7624079635c7e2a112d30983d0e19b724beead71265f4d7fe6cd5cf221a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:9174-9181 | core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsStatementParser.java:247-254 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:9174\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":9174}}}],"partialFingerprints":{"codehealthFindingId/v1":"b30552fcb9bb2cb5f3fbf565174b561deda4e72308bfa5d275ebd312542884a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:851-858 | core/src/main/java/com/alibaba/druid/sql/dialect/presto/visitor/PrestoOutputVisitor.java:190-197 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060MySqlExecuteStatement\u0060 in one and \u0060PrestoExecuteStatement\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":851}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cc357dfc42e971224fafbf2b11bad6daa966285e40188e4950ec1d8850e933e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:5099-5106 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:5266-5273 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060MySqlCreateTableSpaceStatement\u0060 in one and \u0060MySqlAlterTablespaceStatement\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":5099}}}],"partialFingerprints":{"codehealthFindingId/v1":"f91b1a0cb655783d5528fdb2a0e152f73ecac39f59d52d1bba4c8ed0d48c1630"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleCreateTableParser.java:208-214 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java:2681-2688 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleCreateTableParser.java:208\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleCreateTableParser.java"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8c220ae1fabc19ef7138d6c2e49b8ad49b40c45d51d0de7c735b18d753f6f28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java:687-694 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java:1065-1072 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java:687\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java:1073\u0060 calls \u0060identifierEquals\u0060, \u0060nextToken\u0060, \u0060setToType\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java:695\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java"},"region":{"startLine":687}}}],"partialFingerprints":{"codehealthFindingId/v1":"256a64f63e43ba0f4bc57b0067ffc5e8c2eb7a57260c8218bed85fd0709bb53f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java:1236-1243 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java:2604-2611 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java:1236\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java"},"region":{"startLine":1236}}}],"partialFingerprints":{"codehealthFindingId/v1":"9616e203d949c9a56301ca30c92e4da8a56e1f0388a14b95e4fc7179e6b2500b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java:1009-1016 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java:2813-2820 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java"},"region":{"startLine":1009}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d6950529f10535c245b6ddbada6ebc9bb21198ced3d4d8b7f5c91c7e9681caa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeLexer.java:220-228 | core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java:2414-2422 \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 \u0060core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java:2414\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":"core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeLexer.java"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f5d55d21599a2084175d2e18966b37ecfc372bbc78c3b1f1b5f977af959ee19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerSelectParser.java:179-186 | core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java:2060-2067 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerSelectParser.java:179\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":"core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerSelectParser.java"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fe854c450860740144c0d940bd374d54f8fbee9d3704489b13f2bdb93ecdb43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerStatementParser.java:587-594 | core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerStatementParser.java:617-624 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerStatementParser.java:587\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":"core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerStatementParser.java"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"45b277b98d4f6979ea5d33cf445ef35c51accc89a913cbe41a821c9efa065702"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java:1206-1213 | core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java:1225-1232 \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 \u0060core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java:1206\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":"core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java"},"region":{"startLine":1206}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c5bb10bfba58fcebbb33e3f33bf9899acd4acca3832c33ae5d531d233989119"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:4738-4744 | core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:4748-4755 \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 \u0060core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:4748\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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":4738}}}],"partialFingerprints":{"codehealthFindingId/v1":"677620211f7b00adc8c93194ff369b7c30869ae5bf20c50ee356a6be04ddbdc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:5271-5278 | core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:5316-5322 \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 \u0060core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:5271\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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":5271}}}],"partialFingerprints":{"codehealthFindingId/v1":"071d37caad05c1bbf7c0ab45549e767c61e53f9d016c2f29aaaf856276b659aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/parser/SQLParserUtils.java:770-777 | core/src/main/java/com/alibaba/druid/sql/parser/SQLParserUtils.java:942-949 \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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLParserUtils.java"},"region":{"startLine":770}}}],"partialFingerprints":{"codehealthFindingId/v1":"74b5d65f3e0fd6cf735b65c1579f03dafabef1fb9ad7c9f7ec91d59cdc70ec77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java:1057-1064 | core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java:1066-1073 \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 \u0060core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java:1057\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":"core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java"},"region":{"startLine":1057}}}],"partialFingerprints":{"codehealthFindingId/v1":"84d58119b50a58376a1ad3bcd84771bee92648f5ba31af9850fcf4111d848b5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java:1564-1571 | core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java:1828-1835 \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 \u0060core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java:1564\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java:1826\u0060 calls \u0060getFirstQueryBlock\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java:1562\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java"},"region":{"startLine":1564}}}],"partialFingerprints":{"codehealthFindingId/v1":"09754b671234a01d9946f4e5bc386a38e2ab6f5ecc65c2c4ef42b5a7cc090954"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/visitor/functions/If.java:32-39 | core/src/main/java/com/alibaba/druid/sql/visitor/functions/Isnull.java:30-37 \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":"core/src/main/java/com/alibaba/druid/sql/visitor/functions/If.java"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"50f5acda8217b02295ea8a64e472b5a3c534a2a9ca03cec93f9de5fec54c441b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/visitor/functions/Instr.java:37-44 | core/src/main/java/com/alibaba/druid/sql/visitor/functions/Locate.java:47-54 \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":"core/src/main/java/com/alibaba/druid/sql/visitor/functions/Instr.java"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"311c3334246099b019ebb1ac01953facb294b6d814cda642895d425b04c0d334"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): core/src/main/java/com/alibaba/druid/stat/JdbcSqlStat.java:331-338 | core/src/main/java/com/alibaba/druid/support/spring/stat/SpringMethodStat.java:159-166 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/stat/JdbcSqlStat.java"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"813e3ba33f48390f97d26c8ed5dfefe97ce049e09f1368ac7b4a279335a0917d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): core/src/main/java/com/alibaba/druid/support/calcite/CalciteMySqlNodeVisitor.java:65-76 | core/src/main/java/com/alibaba/druid/support/calcite/CalciteMySqlNodeVisitor.java:100-111 \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":"core/src/main/java/com/alibaba/druid/support/calcite/CalciteMySqlNodeVisitor.java"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"64ef5a818009c5f599bdb877102d7d462c03c75d83f1842122445aa59ced5b5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): core/src/main/java/com/alibaba/druid/support/opds/udf/ExportConditionColumns.java:33-40 | core/src/main/java/com/alibaba/druid/support/opds/udf/ExportConditions.java:41-48 \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 \u0060core/src/main/java/com/alibaba/druid/support/opds/udf/ExportConditionColumns.java:33\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060core/src/main/java/com/alibaba/druid/support/opds/udf/ExportConditions.java:37\u0060 calls \u0060evaluate\u0060 and \u0060core/src/main/java/com/alibaba/druid/support/opds/udf/ExportConditionColumns.java:32\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":"core/src/main/java/com/alibaba/druid/support/opds/udf/ExportConditionColumns.java"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3892df993f3cd8e5fd07454f7b738289b3ff20589612dd615ce749f5f171912"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 8): core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryOutputVisitor.java:403-409 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:4245-4251 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:4262-4268 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:4337-4343 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:4407-4413 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:7729-7735 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:7799-7807 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:11697-11704 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 148 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryOutputVisitor.java:403\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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060SQLIfStatement\u0060 in one and \u0060SQLIfStatement.ElseIf\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:11706\u0060 calls \u0060print0\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:4253\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryOutputVisitor.java"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"61a02e3501d1690e6569524223d23ecbf50e4095a966a3cdbea341973f86491b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 6): core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryLexer.java:196-202 | core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryLexer.java:363-369 | core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveLexer.java:122-128 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java:490-496 | core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java:1801-1807 | core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java:2092-2098 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryLexer.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveLexer.java\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 176 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryLexer.java:196\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveLexer.java:120\u0060 calls \u0060scanString\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryLexer.java:193\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":"core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryLexer.java"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"c88998d42350c95a3ad2a5323edbcb1a749c9b7fa7287a31ab4ea06b18247104"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmExprParser.java:194-200 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarExprParser.java:266-273 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarExprParser.java:298-305 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGExprParser.java:461-468 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGExprParser.java:493-500 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmExprParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarExprParser.java\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 203 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmExprParser.java"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"d591e32c05275ac7b5b356c510eee1a1723ae5d37b9e545dc70c236092f4e86d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 4): core/src/main/java/com/alibaba/druid/sql/dialect/doris/visitor/DorisOutputVisitor.java:70-75 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:3610-3616 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarPermissionOutputVisitor.java:65-71 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:3178-3183 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/doris/visitor/DorisOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 32 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/doris/visitor/DorisOutputVisitor.java:70\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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060DorisExprTableSource\u0060 in one and \u0060SQLExprTableSource\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/doris/visitor/DorisOutputVisitor.java:75\u0060 calls \u0060print0\u0060, \u0060isNeedAsTokenForAlias\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:3616\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/doris/visitor/DorisOutputVisitor.java"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa523b4c52ac30f1d37ad7e378768b00379f904894bf66cd637de7016c34ffe7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:622-628 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:5352-5359 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:5420-5427 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:5464-5471 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:622\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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"cce3d5cbde1cd6ad7a7d62407149c65a27c89718612b38b864a3309c51e477dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:589-595 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:254-260 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:1946-1952 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:2439-2445 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 1096 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060OracleUpdateStatement\u0060 in one and \u0060OscarDeleteStatement\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"21f80aba0f983aa482685649d97a41526de7cf685dfe65cdcccca4dfbf198420"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java:397-403 | core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java:437-443 | core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java:479-485 | core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java:618-624 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \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 \u0060core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java:397\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":"core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"75c3eb327f74bee890666c49290214fbf16a99f461d23d2e8db00039131aa5b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 4): core/src/main/java/com/alibaba/druid/util/MySqlUtils.java:1641-1647 | core/src/main/java/com/alibaba/druid/util/MySqlUtils.java:1663-1669 | core/src/main/java/com/alibaba/druid/util/MySqlUtils.java:1682-1688 | core/src/main/java/com/alibaba/druid/util/MySqlUtils.java:1698-1703 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \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 \u0060core/src/main/java/com/alibaba/druid/util/MySqlUtils.java:1641\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":"core/src/main/java/com/alibaba/druid/util/MySqlUtils.java"},"region":{"startLine":1641}}}],"partialFingerprints":{"codehealthFindingId/v1":"57a84972705882857f4f733211629534a29e0d45a3b6d3ae3c3a715f541bc9e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java:454-460 | core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java:476-482 | core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java:534-540 | core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java:588-594 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \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 \u0060core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java:454\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":"core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.java"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"aea8f42479e29e4c2700ef07cb18c9264bd9dc58ffcfb9899f52d2b74287537f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2ExprParser.java:222-228 | core/src/main/java/com/alibaba/druid/sql/dialect/h2/parser/H2ExprParser.java:103-109 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGExprParser.java:670-676 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2ExprParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/h2/parser/H2ExprParser.java\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 94 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2ExprParser.java"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"06a969b555fcd1b862c74c5ec440e870fee86dce94b4f98c3d26d199314ba7b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmSelectParser.java:60-65 | core/src/main/java/com/alibaba/druid/sql/dialect/redshift/parser/RedshiftSelectParser.java:47-53 | core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerSelectParser.java:137-143 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \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 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmSelectParser.java:60\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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmSelectParser.java"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb20af82241611b5bc1784b0d395255b54ff25821b4064f79afd73b212a1ae7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmSelectParser.java:56-62 | core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsSelectParser.java:73-79 | core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerSelectParser.java:133-139 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \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 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmSelectParser.java:56\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsSelectParser.java:69\u0060 calls \u0060token\u0060, \u0060parseHints\u0060, \u0060getHints\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmSelectParser.java:54\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":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmSelectParser.java"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"63dc00975bc3e3e4a14dfcd1199779cf527477acb3a1288fcc0a38f693b53362"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/h2/visitor/H2OutputVisitor.java:198-204 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:573-579 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:698-704 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060MySqlTableIndex\u0060 in one and \u0060MySqlKey\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":"core/src/main/java/com/alibaba/druid/sql/dialect/h2/visitor/H2OutputVisitor.java"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"69ceeb6e9301427aaa8142b1af86ac3b0cf3713f112bdc1fd20d25a292dc405f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveCreateTableParser.java:94-100 | core/src/main/java/com/alibaba/druid/sql/dialect/impala/parser/ImpalaCreateTableParser.java:124-130 | core/src/main/java/com/alibaba/druid/sql/dialect/impala/parser/ImpalaCreateTableParser.java:132-138 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveCreateTableParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/impala/parser/ImpalaCreateTableParser.java\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 81 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveCreateTableParser.java:103\u0060 calls \u0060parseCreateTableWithSerderPropertie\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/impala/parser/ImpalaCreateTableParser.java:140\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":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveCreateTableParser.java"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"46ebc2c1cfb36063e59482ca5890c3dac513b06ace0ca55c59601a13c11d6b60"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:121-128 | core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsCreateTableParser.java:57-64 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:4666-4672 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \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 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:121\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e74184584877950582323ac159b27a2f10cd40b0cb5e7a1a8555e2a3c3893ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:5267-5274 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:2806-2813 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:5086-5093 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:5267\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":5267}}}],"partialFingerprints":{"codehealthFindingId/v1":"e197300c26b496b80f931881805db78fe4fddcebde4f6e2109e8d695f5deae20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:9172-9178 | core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsStatementParser.java:1317-1323 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java:620-626 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \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 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":9172}}}],"partialFingerprints":{"codehealthFindingId/v1":"d979d9c29dec0f3c12b2f044fb3e3d4e6c1ae08a59136873601d08548fc4f4ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:111-117 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:1028-1034 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:1122-1128 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060MySqlSelectQueryBlock\u0060 in one and \u0060MySqlDeleteStatement\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b664faeca47d17dc12994538568092265ccbe7fdff0552ebf786796fcbbe7f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java:2754-2760 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:4778-4784 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:7409-7415 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java:2754\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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java"},"region":{"startLine":2754}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4e8fa38e40e2fd379f8efa1b8542e210dc198c0e533b6790ee42bb73b63dec5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:2743-2749 | core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:2774-2780 | core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:2798-2804 \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 \u0060core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:2743\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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":2743}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdb15eee1060f49c21a48fc0536e9ac56bd47f7d94256fce51eb78836b043804"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java:1448-1454 | core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java:1597-1603 | core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java:1800-1806 \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 \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java:1448\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java:1455\u0060 calls \u0060getOwner\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java:1807\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java"},"region":{"startLine":1448}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e836266065e8b1caa0be76128fe72b289b09a5c1018a64132004d82a097de52"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/visitor/functions/Insert.java:37-43 | core/src/main/java/com/alibaba/druid/sql/visitor/functions/Lpad.java:40-46 | core/src/main/java/com/alibaba/druid/sql/visitor/functions/Rpad.java:44-50 \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 all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/functions/Insert.java"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"5624a1801ce9ffaa5957440846aac4cff79b084e1e06a423f188b8dc0e89c0cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): core/src/main/java/com/alibaba/druid/pool/DruidAbstractDataSource.java:2103-2110 | core/src/main/java/com/alibaba/druid/proxy/jdbc/DataSourceProxyImpl.java:280-286 \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 \u0060core/src/main/java/com/alibaba/druid/pool/DruidAbstractDataSource.java:2103\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 that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/pool/DruidAbstractDataSource.java"},"region":{"startLine":2103}}}],"partialFingerprints":{"codehealthFindingId/v1":"10c60caa008069e71cf233e58f5bb198385211a564119b6ff766533ff9407164"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/SQLDataTypeImpl.java:213-219 | core/src/main/java/com/alibaba/druid/sql/ast/SQLDataTypeImpl.java:259-267 \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 \u0060core/src/main/java/com/alibaba/druid/sql/ast/SQLDataTypeImpl.java:259\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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/SQLDataTypeImpl.java"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"4026d7e29a3843e949122580d17d1585076be320f6da0f9b6d3d251692fcdb22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2ExprParser.java:159-165 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java:758-764 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2ExprParser.java:159\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":"core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2ExprParser.java"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"3600cd246280f72c4f82a328ab70bb64f7f06e24c6d8c454227ae7a8c1c20cd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20137 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmOutputVisitor.java:43-49 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:65-71 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:75-78 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 111 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmOutputVisitor.java:43\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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. Note first that the copies are not typed on the same thing: \u0060ForClause\u0060 names \u0060com.alibaba.druid.sql.dialect.dm.ast.stmt.DmSelectQueryBlock.ForClause\u0060 in one and \u0060com.alibaba.druid.sql.dialect.oscar.ast.stmt.OscarSelectQueryBlock.ForClause\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmOutputVisitor.java:43\u0060 calls \u0060equals\u0060, \u0060getOption\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:75\u0060 does not \u2014 after which the two agree again for 5 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":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmOutputVisitor.java"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba76333952c6de0afae4b5f4e49b944ede479e7a2f4d9c281046d5265472dd70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/parser/GaussDbExprParser.java:101-107 | core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/parser/GaussDbExprParser.java:129-135 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/parser/GaussDbExprParser.java"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"2703d9b2be3bd6ba3b7da7af722f07edcb1148800154c17edb23ba7850cfd32f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/h2/parser/H2StatementParser.java:71-77 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:4203-4209 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/h2/parser/H2StatementParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/h2/parser/H2StatementParser.java:71\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":"core/src/main/java/com/alibaba/druid/sql/dialect/h2/parser/H2StatementParser.java"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"823bd24c79d0ef196e58c7e0d87bc60f3bd705de0dd413d4b7fba300d7f87af6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveExprParser.java:224-230 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java:1408-1413 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveExprParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 109 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveExprParser.java:224\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":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveExprParser.java"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc83ec9c8d3b665462e16a0ad5b6e69cc6cc11cb4d74588b47bf4da70a345407"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:852-858 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:9324-9330 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:852\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java"},"region":{"startLine":852}}}],"partialFingerprints":{"codehealthFindingId/v1":"799f2787bcddbc2b78b7fea3765e7b77b15a546a72ea84525740d7148ea82f75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java:210-215 | core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:5927-5933 \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 \u0060core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:5927\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 that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"72648be43290a6ce2153acb28f73ca001e4dd9e5cf630fe75491b4c9db8f0996"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:4972-4978 | core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerStatementParser.java:425-431 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:4972\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":4972}}}],"partialFingerprints":{"codehealthFindingId/v1":"12f623aac4cf6f3ffb2ca549170b09b09524b022cd39f456cb7864e8527783f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:6118-6124 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:3268-3274 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:6118\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":6118}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bcf3f4d9b6323e051f5dcb9fa837d44a58235b471c03621b0e20da60089afc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/odps/visitor/OdpsOutputVisitor.java:575-582 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:6398-6404 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060OdpsReadStatement\u0060 in one and \u0060SQLColumnReference\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":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/visitor/OdpsOutputVisitor.java"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"05240bd6a0f73604cf19d72aab017497fd8d423286aa26c2a1a679d3492d30c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeStatementParser.java:372-378 | core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeStatementParser.java:428-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeStatementParser.java:372\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":"core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeStatementParser.java"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"965dba709de7e8eced015250702dbb804c6ef75512db913a5e67c92d99d03068"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerStatementParser.java:172-178 | core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerStatementParser.java:182-189 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerStatementParser.java"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"d860cbc867ca293a68bed93d426c1f058175c49c5e03a7228c89e52250786545"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:4172-4178 | core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:4221-4227 \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 \u0060core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:4172\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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":4172}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf9e3e222c8e11a730a600642c13f0605f52891cb2540cdd0e6936cdc9c1db7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:5587-5593 | core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:5606-5612 \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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":5587}}}],"partialFingerprints":{"codehealthFindingId/v1":"39d9def8c30145b9a61bf368bb311ac8bf9aceb88dbdfe57d51c552dff98e6b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/parser/SQLParser.java:235-241 | core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java:1622-1628 \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 \u0060core/src/main/java/com/alibaba/druid/sql/parser/SQLParser.java:235\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java:1629\u0060 calls \u0060identifierEquals\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/parser/SQLParser.java:242\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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLParser.java"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"57859495093d7cec262dfe3cbbcdaf07ada6f22880689b0727b2e7904848048d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitorBinaryOpSupport.java:218-224 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitorBinaryOpSupport.java:239-245 \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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitorBinaryOpSupport.java"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"b12b969111ba2ea4b5d55bb5356a91da6712bf5bb3d73308c5cbc8a130f94d1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20137 lines \u00D7 3): core/src/main/java/com/alibaba/druid/stat/JdbcSqlStat.java:427-430 | core/src/main/java/com/alibaba/druid/support/http/stat/WebURIStat.java:494-500 | core/src/main/java/com/alibaba/druid/support/spring/stat/SpringMethodStat.java:127-133 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \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 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/support/http/stat/WebURIStat.java:494\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/stat/JdbcSqlStat.java"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"746cde6389f652cb5d1255d5bc76f77b0149771e6d16a24094a7a8b46cf8c0f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 10): core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryOutputVisitor.java:403-408 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:4245-4250 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:4262-4267 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:4337-4342 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:4366-4371 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:4407-4412 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:7729-7734 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:7799-7805 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:9150-9155 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:11697-11702 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 148 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryOutputVisitor.java:403\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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060SQLIfStatement\u0060 in one and \u0060SQLIfStatement.ElseIf\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:11706\u0060 calls \u0060print0\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:4253\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":"core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryOutputVisitor.java"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"d00df8e6caac98afaaea1f1bfefd7ded7e5f26eaf68ace3f522a51f78c296f37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 6): core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmOutputVisitor.java:84-90 | core/src/main/java/com/alibaba/druid/sql/dialect/odps/visitor/OdpsOutputVisitor.java:410-416 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:361-367 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:1200-1206 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:1578-1584 | core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/visitor/SQLServerOutputVisitor.java:56-62 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 111 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060DmSelectQueryBlock\u0060 in one and \u0060OdpsSelectQueryBlock\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmOutputVisitor.java:82\u0060 calls \u0060print0\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/odps/visitor/OdpsOutputVisitor.java:408\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":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmOutputVisitor.java"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bf12b52b2fe68d86a5f1dc213bb326e510b9176a881c491383fee9b19cc0828"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 6): core/src/main/java/com/alibaba/druid/wall/WallFilter.java:326-331 | core/src/main/java/com/alibaba/druid/wall/WallFilter.java:343-348 | core/src/main/java/com/alibaba/druid/wall/WallFilter.java:361-366 | core/src/main/java/com/alibaba/druid/wall/WallFilter.java:380-385 | core/src/main/java/com/alibaba/druid/wall/WallFilter.java:398-403 | core/src/main/java/com/alibaba/druid/wall/WallFilter.java:415-420 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \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 \u0060core/src/main/java/com/alibaba/druid/wall/WallFilter.java:326\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":"core/src/main/java/com/alibaba/druid/wall/WallFilter.java"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"67cb90f6ac6c4bee03e5ffda6ea3775a7e68510e53480ee3b15f63958e47e749"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveStatementParser.java:489-495 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:3544-3549 | core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsStatementParser.java:972-977 | core/src/main/java/com/alibaba/druid/sql/dialect/presto/parser/PrestoStatementParser.java:404-409 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \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 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveStatementParser.java"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5ac6395f0a72e619caa6970238a555603b14a5d90add052b2b5b37aa8e3ad3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:668-673 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:5366-5373 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:5434-5441 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:5478-5485 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":668}}}],"partialFingerprints":{"codehealthFindingId/v1":"7197eee794277ee959e1701bf846d0df426a4e137ee271ebcfa5bbf79d810530"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2SelectParser.java:69-74 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleSelectParser.java:271-276 | core/src/main/java/com/alibaba/druid/sql/dialect/teradata/parser/TDSelectParser.java:93-98 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \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 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2SelectParser.java:69\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":"core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2SelectParser.java"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"3743a546057d331c1c390d277f98263fd2cf98befa5dc498cddda18226da66f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/h2/parser/H2StatementParser.java:68-74 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:4200-4206 | core/src/main/java/com/alibaba/druid/sql/dialect/sqlite/parser/SQLiteStatementParser.java:94-99 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/h2/parser/H2StatementParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/h2/parser/H2StatementParser.java:68\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/h2/parser/H2StatementParser.java:66\u0060 calls \u0060accept\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/sqlite/parser/SQLiteStatementParser.java:92\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":"core/src/main/java/com/alibaba/druid/sql/dialect/h2/parser/H2StatementParser.java"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"2951c8c3abe1f26f3e33ad44c1b092c69617086848d477023af2d6ea37204e4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsExprParser.java:450-455 | core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsExprParser.java:460-465 | core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsExprParser.java:470-475 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsExprParser.java:450\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":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsExprParser.java"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"618e6519dccc1a28b9e2376377380f52b596b813ab0dbcc7b14497a1322c34e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeStatementParser.java:371-376 | core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeStatementParser.java:414-419 | core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeStatementParser.java:427-432 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeStatementParser.java:371\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeStatementParser.java:420\u0060 calls \u0060nextIf\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeStatementParser.java:377\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeStatementParser.java"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ab5001b077ab5e794181030dd1403618aa4772bb600bffd3b77fd280e175739"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:3876-3881 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:6972-6977 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:7072-7077 \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 \u0060core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:3876\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:7070\u0060 calls \u0060setTableSource\u0060, \u0060name\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:3874\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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":3876}}}],"partialFingerprints":{"codehealthFindingId/v1":"3af6d829edc2535792f1086ef24295a5788ef2ee7865845a737d5fe9d29eb6b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/visitor/functions/Lcase.java:51-56 | core/src/main/java/com/alibaba/druid/sql/visitor/functions/Length.java:50-55 | core/src/main/java/com/alibaba/druid/sql/visitor/functions/Ucase.java:50-55 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/visitor/functions/Length.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/visitor/functions/Ucase.java\u0060 as WHOLE FILES: 88% 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 3 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/visitor/functions/Lcase.java:51\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":"core/src/main/java/com/alibaba/druid/sql/visitor/functions/Lcase.java"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"caa5052f377136a7ae5a8ba1ffe1b49b132128043d179344a7adedcd359da769"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): core/src/main/java/com/alibaba/druid/wall/WallFilter.java:432-437 | core/src/main/java/com/alibaba/druid/wall/WallFilter.java:450-455 | core/src/main/java/com/alibaba/druid/wall/WallFilter.java:469-474 \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 \u0060core/src/main/java/com/alibaba/druid/wall/WallFilter.java:432\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":"core/src/main/java/com/alibaba/druid/wall/WallFilter.java"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"2868c2bc63818755ab230c4ce842a8bd255c32411222ebc0deec405f029d3207"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/SQLUtils.java:460-465 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:11958-11963 \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 \u0060core/src/main/java/com/alibaba/druid/sql/SQLUtils.java:460\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":"core/src/main/java/com/alibaba/druid/sql/SQLUtils.java"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bcd01c7a6fe19495b6e643931c8af98169e4aea916e2315a68ef5f1e2b7be5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/SQLUtils.java:500-505 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:11997-12002 \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 \u0060core/src/main/java/com/alibaba/druid/sql/SQLUtils.java:500\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":"core/src/main/java/com/alibaba/druid/sql/SQLUtils.java"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4a57ea46266559ad4d12f1ed1c8f81ac6f1bbd8ec4a577e806a355f390743de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLBinaryExpr.java:61-66 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java:707-712 \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 \u0060core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLBinaryExpr.java:61\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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLBinaryExpr.java"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"46efc71aa5d497019f5d4089f8f1ae42ee6f7871b40b4e6f536992cf53cd0ce3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLExtractExpr.java:87-92 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLIntervalExpr.java:101-106 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLExtractExpr.java"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dde1cca3a7fd3ff0844a40ad4c8fd8dc79624ded1ed7d553cc9d3a18e1d19b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java:1666-1671 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java:1700-1705 \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 \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java:1666\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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java"},"region":{"startLine":1666}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9b634490a6f21d62bc1a2e1dc929a0fd97da0ac454b1bdd2b1ccee8a12789e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSubqueryTableSource.java:177-187 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSubqueryTableSource.java:190-200 \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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSubqueryTableSource.java"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ca8bd108c9571f0090136018ca178f1f75e2a7dea94bd3c7b6fb2efbe400893"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryExprParser.java:321-326 | core/src/main/java/com/alibaba/druid/sql/dialect/presto/parser/PrestoExprParser.java:96-101 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryExprParser.java:321\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":"core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryExprParser.java"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"f49456572172882b94193c4bd14190d752f24099e3be6bac1cf599b34de71ae5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmOutputVisitor.java:46-51 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:83-88 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 93 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmOutputVisitor.java:46\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. Note first that the copies are not typed on the same thing: \u0060ForClause\u0060 names \u0060com.alibaba.druid.sql.dialect.dm.ast.stmt.DmSelectQueryBlock.ForClause\u0060 in one and \u0060com.alibaba.druid.sql.dialect.postgresql.ast.stmt.PGSelectQueryBlock.ForClause\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmOutputVisitor.java"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d5b0f89a94810e5329edfefebd27b11fc6ee9e84371336e6ee5554dd2e41f28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlHintStatement.java:72-78 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlHintStatement.java:116-121 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlHintStatement.java:72\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlHintStatement.java"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"5715e28a7d414034d18550843fef5b9ad35c8b1526fd9a00eeaf13142ee0b2c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:1152-1158 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:6534-6539 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java:1152\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java"},"region":{"startLine":1152}}}],"partialFingerprints":{"codehealthFindingId/v1":"8efd9e32fc2b70f1dd8e66ef6b7ae37e3687d2082f6be2302e6fdf69ebdf9212"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java:667-689 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java:691-713 \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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java"},"region":{"startLine":667}}}],"partialFingerprints":{"codehealthFindingId/v1":"b684c23c2de25f573f12110917c0096b0457b5602b139145eb3f23df1c920972"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsSelectParser.java:77-82 | core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsSelectParser.java:122-127 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsSelectParser.java:77\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":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsSelectParser.java"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"6091a322ed7db0a5b5888765e667476acae07972457fc0bb42dfbd57a518d65d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java:1693-1698 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java:1709-1714 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java:1693\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java"},"region":{"startLine":1693}}}],"partialFingerprints":{"codehealthFindingId/v1":"08d85f458e31dc29b0be237df422c5d5d97a27771985b87c15cfad198d538c6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleRowNumToLimit.java:95-100 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleRowNumToLimit.java:115-120 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleRowNumToLimit.java:95\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleRowNumToLimit.java"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"770f1d7fc23e57ca4defa0e9b2cd0cb3af15aba6c826a3421a7d3f47b32e1aae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:481-487 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:2046-2052 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"611b7daf4883cb3cb741fcd23730be5b9e1cab31bfec14ac3d1bda3e2034d494"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java:620-625 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:5913-5918 \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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.java"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"623dd2649deef9627fd8872ca305599ba892cb75f6758fc3dfe036ddb325dfdb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:4753-4758 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:7388-7393 \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 \u0060core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:4753\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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":4753}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7c70ee6238dc21329c8e143282579e6f58362984fdd5ee23bc09eb492e6084b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): core/src/main/java/com/alibaba/druid/support/http/stat/WebAppStatValue.java:700-706 | core/src/main/java/com/alibaba/druid/support/http/stat/WebSessionStatValue.java:240-246 \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":"core/src/main/java/com/alibaba/druid/support/http/stat/WebAppStatValue.java"},"region":{"startLine":700}}}],"partialFingerprints":{"codehealthFindingId/v1":"b72d13856572950a2f84726766119e759056164c240d20d695eb113836116654"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): core/src/main/java/com/alibaba/druid/util/MySqlUtils.java:1188-1193 | core/src/main/java/com/alibaba/druid/util/MySqlUtils.java:1645-1650 \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 \u0060core/src/main/java/com/alibaba/druid/util/MySqlUtils.java:1188\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":"core/src/main/java/com/alibaba/druid/util/MySqlUtils.java"},"region":{"startLine":1188}}}],"partialFingerprints":{"codehealthFindingId/v1":"b542f5a7c1620d3b71dbc473028e3806233e60d20786f2ab181b243b04c593b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 8): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:4242-4246 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:4259-4263 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:4334-4338 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:4404-4408 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:1428-1433 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:7726-7730 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:7795-7800 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:11693-11698 \u2014 there are 8 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 8 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:4242\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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060SQLIfStatement.ElseIf\u0060 in one and \u0060SQLIfStatement.Else\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:4239\u0060 calls \u0060print0\u0060, \u0060getCondition\u0060, \u0060accept\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:4257\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":4242}}}],"partialFingerprints":{"codehealthFindingId/v1":"480e3fdeedfcc1b51999d59339d07998b347914f99fe7cdaa3b853f397581469"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 7): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java:670-674 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java:676-680 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java:682-686 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java:688-692 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java:694-698 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java:700-704 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java:706-710 \u2014 all 7 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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java:670\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"95461553bcf64934cab420c9c456bf7feb73646346c18eb69eff3a277908aa8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java:275-280 | core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java:1445-1450 | core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java:1594-1599 | core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java:1797-1802 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \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 \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java:275\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":"core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"c796851816f94d5a19f47db1b464fd24d0501714ef7644402845d88b01ba96cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): core/src/main/java/com/alibaba/druid/filter/logging/LogFilter.java:509-513 | core/src/main/java/com/alibaba/druid/filter/logging/LogFilter.java:535-539 | core/src/main/java/com/alibaba/druid/filter/logging/LogFilter.java:579-583 \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 \u0060core/src/main/java/com/alibaba/druid/filter/logging/LogFilter.java:509\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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/filter/logging/LogFilter.java"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f787d975da58ee1dd9fe6e14a3c152b1be55209d1678172b06eab4f85ddd80b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20135 lines \u00D7 4): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLDateExpr.java:305-310 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTimestampNTZExpr.java:331-336 | core/src/main/java/com/alibaba/druid/util/StringUtils.java:362-365 | core/src/main/java/com/alibaba/druid/util/StringUtils.java:374-378 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLDateExpr.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTimestampNTZExpr.java\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 262 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLDateExpr.java:305\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLDateExpr.java"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ff12fe87a5fad090d6d7afda69bc08fd2955b6be6e045b29838149210f5dcc2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:5127-5131 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:5151-5155 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:8069-8074 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:5127\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":5127}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9ac01d7d965aa8fd168ff1a3980ee579b7fbd957d47dfbbe1eb9dbda7d46bfa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java:1020-1025 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java:2836-2841 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java:3127-3132 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java:1020\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java"},"region":{"startLine":1020}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb13b7ec24fdee91d1b47262994eac46ffb688ad2439df542e5ed28ad37593ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeStatementParser.java:347-351 | core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeStatementParser.java:371-375 | core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeStatementParser.java:414-418 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeStatementParser.java:347\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeStatementParser.java:376\u0060 calls \u0060nextIf\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeStatementParser.java:352\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeStatementParser.java"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"daf997b364a7c06228db444df02a77e9fc62fb1726ae5d2f8daceb82c38890c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): core/src/main/java/com/alibaba/druid/util/Utils.java:444-448 | core/src/main/java/com/alibaba/druid/util/Utils.java:467-471 | core/src/main/java/com/alibaba/druid/util/Utils.java:494-498 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060hash\u0060 to \u0060int\u0060 in one and \u0060long\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":"core/src/main/java/com/alibaba/druid/util/Utils.java"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"46e47df4ee833cecc44a4bdb973b3456134fb61bb3bf761afa81fa1ca02aa862"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): core/src/main/java/com/alibaba/druid/util/Utils.java:447-451 | core/src/main/java/com/alibaba/druid/util/Utils.java:474-478 | core/src/main/java/com/alibaba/druid/util/Utils.java:501-505 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060hash\u0060 to \u0060int\u0060 in one and \u0060long\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":"core/src/main/java/com/alibaba/druid/util/Utils.java"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"53c5b88cabbbeb26439d6dc43536138c8ae7da28ce46fe6f59b70fb4e779436c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/SQLUtils.java:469-473 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:11967-11971 \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 \u0060core/src/main/java/com/alibaba/druid/sql/SQLUtils.java:469\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":"core/src/main/java/com/alibaba/druid/sql/SQLUtils.java"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"fee0fdd7b14d1ef6b7fb01d95c28bbeb44a81deda635d8046f9c47d737d5e0ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateTableStatement.java:833-838 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateTableStatement.java:861-866 \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 \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateTableStatement.java:833\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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateTableStatement.java"},"region":{"startLine":833}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcbb62ea635bee00f0cf8ac5d8bdb1181eadadca38076d92923d2a5b71c77bc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmOutputVisitor.java:198-203 | core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/visitor/SQLServerOutputVisitor.java:114-119 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmOutputVisitor.java:198\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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060DmInsertStatement\u0060 in one and \u0060SQLServerInsertStatement\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":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmOutputVisitor.java"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b1f6d2cb83cc6c0ecccec28eb9e827d75994266fb6c61a1e744629e0f35b22e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlHintStatement.java:83-87 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlHintStatement.java:129-133 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlHintStatement.java:83\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlHintStatement.java"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe2e1a491c8deddc99456463836fb6981e74ce69313c396521d6af9a020e3706"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java:122-126 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java:127-131 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java:122\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7550490cabdd9060b5ff61fad3414e345c15630fe0fce3410e0ac910252e69c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java:128-132 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java:133-137 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java:128\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fc322699f2077b3fd5b8d566947db37a1abb51c27c4a0204c67f04dba1e35e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java:138-142 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java:143-147 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java:138\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"a380309b8ae44ed7d989fd627c294a055e9e0b112ceb61072992762bb8dcee03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/spark/parser/SparkExprParser.java:192-196 | core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:6501-6505 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/spark/parser/SparkExprParser.java"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"a15f1f3b67e6f0b9e250ae8a546616b62900c44da7163042969f28e1e0666d28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java:2074-2079 | core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java:2195-2200 \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":"core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java"},"region":{"startLine":2074}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e072aac620b9f0eec769ce1971cde587e56f3ff2ea612f650eadf3a716e5dac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u20135 lines \u00D7 6): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:5266-5267 | core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsExprParser.java:208-209 | core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:1303-1306 | core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java:5059-5061 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:2801-2805 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:5080-5085 \u2014 there are 6 copies across 4 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 6 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:5266\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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:2805\u0060 calls \u0060stringVal\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:5267\u0060 does not \u2014 after which the two agree again for 5 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":5266}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1883860280cf417f98fb14482fa41f818f3886db8b02bc80e19c625aea0cfcc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:3385-3390 | core/src/main/java/com/alibaba/druid/util/Utils.java:512-517 \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 \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:3385\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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":3385}}}],"partialFingerprints":{"codehealthFindingId/v1":"1816292b54805f96b18cedf9988e752f17bd422c6ac3ca46b0cd99bbfc6c990b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/visitor/functions/Greatest.java:50-59 | core/src/main/java/com/alibaba/druid/sql/visitor/functions/Least.java:50-59 \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 \u0060core/src/main/java/com/alibaba/druid/sql/visitor/functions/Greatest.java:50\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":"core/src/main/java/com/alibaba/druid/sql/visitor/functions/Greatest.java"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b27c9654e3685422454c0cde3664866750a7915d3120f82daef45a1b9f65510"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): core/src/main/java/com/alibaba/druid/stat/JdbcStatManager.java:350-355 | core/src/main/java/com/alibaba/druid/stat/JdbcStatManager.java:358-363 \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 \u0060core/src/main/java/com/alibaba/druid/stat/JdbcStatManager.java:350\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":"core/src/main/java/com/alibaba/druid/stat/JdbcStatManager.java"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"c35e0a8f1d4699845dcc02c5966c180712d391c27cadd2cf6eed5fe1fa04a701"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): core/src/main/java/com/alibaba/druid/support/http/stat/WebURIStatValue.java:370-374 | core/src/main/java/com/alibaba/druid/support/spring/stat/SpringMethodStatValue.java:324-328 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/support/http/stat/WebURIStatValue.java"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"a55d7b47393a9b0b037ec9263563d1e618745ff2c286572557af6add2d055765"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmStatementParser.java:189-217 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java:423-451 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java:921-949 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmStatementParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 279 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmStatementParser.java"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"530004301eeba3a58fbe315d4a92496cfa0f7423dd7126ee028d9f6034a8b4a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 23): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterProcedureStatement.java:1-105 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterSystemGetConfigStatement.java:1-39 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLShowCreateViewStatement.java:1-50 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlShowCreateFunctionStatement.java:1-37 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlShowCreateProcedureStatement.java:1-37 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlShowCreateTriggerStatement.java:1-37 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlShowEngineStatement.java:1-46 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlShowFunctionCodeStatement.java:1-37 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlShowHMSMetaStatement.java:1-49 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlShowPartitionsStatement.java:1-37 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlShowProcedureCodeStatement.java:1-37 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleAlterPackageStatement.java:1-57 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleAlterSummaryStatement.java:1-48 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleAlterSynonymStatement.java:1-58 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleAlterTableDropPartition.java:1-38 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleAlterTableMoveTablespace.java:1-38 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleAlterTableTruncatePartition.java:1-38 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleAlterTriggerStatement.java:1-58 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleAlterViewStatement.java:1-58 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleCreateTableSpaceStatement.java:1-38 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleDropDbLinkStatement.java:1-49 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleDropPackageStatement.java:1-38 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleSetTransactionStatement.java:1-57 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlShowCreateFunctionStatement.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlShowCreateProcedureStatement.java\u0060 as WHOLE FILES: 96% 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 1 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterProcedureStatement.java:1\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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterProcedureStatement.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fcbcdee6038d646d48a02f62f608f9a752959ace7f4537650d4ead44c07a229"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableAddExtPartition.java:1-37 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableDropExtPartition.java:1-37 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableAddExtPartition.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableDropExtPartition.java\u0060 as WHOLE FILES: 84% 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 1 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableAddExtPartition.java:1\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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableAddExtPartition.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"437c4705449cd06212d846080c01123c3cc9c92d8a619cc4ba3c25c05f825218"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 13): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableAnalyzePartition.java:1-45 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableArchivePartition.java:1-44 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableCheckPartition.java:1-45 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableDiscardPartition.java:30-58 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableDropPartition.java:1-63 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableImportPartition.java:1-55 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableMergePartition.java:1-75 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableOptimizePartition.java:1-45 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableReOrganizePartition.java:1-52 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableRebuildPartition.java:1-45 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableRecoverPartitions.java:1-45 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableRepairPartition.java:1-45 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableUnarchivePartition.java:1-44 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableAnalyzePartition.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableArchivePartition.java\u0060 as WHOLE FILES: 84% 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 1 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableAnalyzePartition.java:1\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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableAnalyzePartition.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7930ff4e8011cbb988d57c25a57443f8ec80dc3a54742d612ede91e42cff80fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 4): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableArchive.java:1-37 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableDisableLifecycle.java:1-37 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableEnableLifecycle.java:1-37 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTablePartition.java:1-30 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableArchive.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableDisableLifecycle.java\u0060 as WHOLE FILES: 96% 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 1 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableArchive.java:1\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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableArchive.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6f442d7ecf135794b44882b5991fab627b9c0127020a7acacf6f9309d0412c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableCoalescePartition.java:1-42 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTablePartitionCount.java:25-45 \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 \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableCoalescePartition.java:1\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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableCoalescePartition.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"04403fd1c94c51d80e2aad6c2c13c9df45933f280b73d9b1307dd07b2b0be2d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 7): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterDatabaseStatement.java:37-97 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableCompression.java:25-45 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableGroupStatement.java:31-59 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTypeStatement.java:1-87 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDropProcedureStatement.java:27-64 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLPurgeTemporaryOutputStatement.java:26-50 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MysqlCreateFullTextAnalyzerStatement.java:1-51 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 7 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 7 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTypeStatement.java:1\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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterDatabaseStatement.java"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ab7bd4b6333946949e844f3c9070e89aaab32bd9182d61b7d42b3ef11926335"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 4): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableDisableConstraint.java:1-39 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableDropConstraint.java:1-67 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableEnableConstraint.java:1-39 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableValidateConstraint.java:1-38 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableDisableConstraint.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableDropConstraint.java\u0060 as WHOLE FILES: 93% 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 1 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableDisableConstraint.java:1\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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableDisableConstraint.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"033218c2a7254ffaddf5f71182d3ce77c3b18c184eef897301eaf09a05faa5cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableDiscardPartition.java:30-58 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableImportPartition.java:1-55 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableDiscardPartition.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableImportPartition.java\u0060 as WHOLE FILES: 92% 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableImportPartition.java:1\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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableDiscardPartition.java"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"d99d209d7ca854ffb3958339ee3310d1aca38625bd13e2c15fd6047acb1f4f99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableDropClusteringKey.java:1-39 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableDropKey.java:1-39 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableDropClusteringKey.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableDropKey.java\u0060 as WHOLE FILES: 96% 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 1 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableDropClusteringKey.java:1\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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableDropClusteringKey.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"43277357a14d48db93a27ede8e211740672666541ae4a908f6e582d1b8deddb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableDropForeignKey.java:1-39 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableDropIndex.java:1-39 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableDropForeignKey.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableDropIndex.java\u0060 as WHOLE FILES: 96% 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 1 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableDropForeignKey.java:1\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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableDropForeignKey.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"849f586261da692e63968b7d0d7762ede9691dd2f19963935b439dbb2f48e2b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (63 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableDropPartition.java:1-63 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableMergePartition.java:1-75 \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 \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableDropPartition.java:1\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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableDropPartition.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"20f10ce881f00bee0b14e5d90adab4279553a87e41bedaba9841496f9b45c07f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTablePartitionLifecycle.java:25-45 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableSetLifecycle.java:1-42 \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 \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableSetLifecycle.java:1\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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTablePartitionLifecycle.java"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"173455cc82b10cd454f0889da6b7f31868d8a3cc5b1bba05f71508d548b7d345"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (75 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableAddColumn.java:36-111 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableReplaceColumn.java:1-75 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableAddColumn.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableReplaceColumn.java\u0060 as WHOLE FILES: 98% 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableReplaceColumn.java:1\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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableAddColumn.java"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"caf81128cbd5eee29d033f1e77a02b8a7cf2c2ee1f7ae0cc116c0c70318c870a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 4): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableSetFileFormat.java:1-27 | core/src/main/java/com/alibaba/druid/sql/dialect/odps/ast/OdpsAlterTableChangeOwner.java:1-28 | core/src/main/java/com/alibaba/druid/sql/dialect/odps/ast/OdpsAlterTableSetChangeLogs.java:1-28 | core/src/main/java/com/alibaba/druid/sql/dialect/odps/ast/OdpsAlterTableSetFileFormat.java:1-28 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/odps/ast/OdpsAlterTableChangeOwner.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/odps/ast/OdpsAlterTableSetChangeLogs.java\u0060 as WHOLE FILES: 94% 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 1 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableSetFileFormat.java:1\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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableSetFileFormat.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"210dc514cff4c29937e2effe705ab7df90a53ce200c868c8d40481f9091a0f63"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (44 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateRoleStatement.java:31-74 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDropRoleStatement.java:29-81 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateRoleStatement.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDropRoleStatement.java\u0060 as WHOLE FILES: 84% 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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateRoleStatement.java"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"f72dda69a7168f732d7ba3b7a2eeda11be7dcb3c0c8ffe59a54762226267457e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42 lines \u00D7 8): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDropCatalogStatement.java:30-88 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDropEventStatement.java:31-72 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDropMaterializedViewStatement.java:31-72 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDropOutlineStatement.java:31-72 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDropResourceGroupStatement.java:32-73 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDropResourceStatement.java:31-72 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDropServerStatement.java:29-79 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDropTypeStatement.java:29-84 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDropCatalogStatement.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDropEventStatement.java\u0060 as WHOLE FILES: 84% 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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDropCatalogStatement.java"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"910dd8c7e9ed90edc59575d80d2d97699d909a3f54050c5460a9b6540a6a54fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (60 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDropOfflineModelStatement.java:29-88 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDropTableGroupStatement.java:29-93 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDropOfflineModelStatement.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDropTableGroupStatement.java\u0060 as WHOLE FILES: 91% 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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDropOfflineModelStatement.java"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"02217924d2c5a3e15d2947741fcbd1d01c36d0697f2ef40698c4fbfd37747797"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (51 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDropCatalogStatement.java:30-88 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDropServerStatement.java:29-79 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDropTypeStatement.java:29-84 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDropCatalogStatement.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDropServerStatement.java\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 177 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDropCatalogStatement.java"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"a596e9837be510164017fb566c3ad2484253635aef5f3118a8f9f0adfc686293"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDropProcedureStatement.java:27-64 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLPurgeTemporaryOutputStatement.java:26-50 \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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDropProcedureStatement.java"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e948c5c402845ce0aa3b52b4312bd6c7eb79c065559254736d86ebf8cb4e288"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 7): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateRoleStatement.java:31-74 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDropOfflineModelStatement.java:29-88 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDropRoleStatement.java:29-81 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDropTableGroupStatement.java:29-93 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDropTriggerStatement.java:30-82 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLReleaseSavePointStatement.java:30-60 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSavePointStatement.java:30-60 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateRoleStatement.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDropRoleStatement.java\u0060 as WHOLE FILES: 84% 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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateRoleStatement.java"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f85d6ee022369b9963617fabf5351ec9c7a166d70545e94d074e3fcd3ec72be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (54 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLShowCatalogsStatement.java:1-54 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLShowFunctionsStatement.java:1-64 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLShowSessionStatement.java:1-54 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLShowCatalogsStatement.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLShowFunctionsStatement.java\u0060 as WHOLE FILES: 94% 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 1 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLShowCatalogsStatement.java:1\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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLShowCatalogsStatement.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"07736c031d0ef1dc68b0be48901ec68cd166f4faa4d9a4230b1e195cbb0ff7cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 10): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterOutlineStatement.java:34-91 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDropCatalogStatement.java:30-88 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDropEventStatement.java:31-72 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDropMaterializedViewStatement.java:31-72 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDropOutlineStatement.java:31-72 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDropResourceGroupStatement.java:32-73 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDropResourceStatement.java:31-72 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDropServerStatement.java:29-79 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDropTypeStatement.java:29-84 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLShowCreateMaterializedViewStatement.java:30-63 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterOutlineStatement.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLShowCreateMaterializedViewStatement.java\u0060 as WHOLE FILES: 91% 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 1 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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterOutlineStatement.java"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"18215111f0e7bb8f9726c39179d858cecec44f33eddf6fcc60ae34e06dccd93c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLShowStatisticListStmt.java:30-61 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLShowStatisticStmt.java:34-80 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLShowStatisticListStmt.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLShowStatisticStmt.java\u0060 as WHOLE FILES: 86% 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 1 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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLShowStatisticListStmt.java"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"767d8e2b0af6a617ab54fe067f53eac1a7d6967133f6fe9ef354680ff8af803c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLShowVariantsStatement.java:1-67 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlShowStatusStatement.java:28-69 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLShowVariantsStatement.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlShowStatusStatement.java\u0060 as WHOLE FILES: 86% 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLShowVariantsStatement.java:1\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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLShowVariantsStatement.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d86889d7788f720735129fedbd6525b4216a6b9ebf15a0b3352cf9f8e7bcc89c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (55 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/ast/BigQueryModelExpr.java:1-55 | core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/ast/BigQueryTableExpr.java:1-55 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/ast/BigQueryModelExpr.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/ast/BigQueryTableExpr.java\u0060 as WHOLE FILES: 97% 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 1 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/ast/BigQueryModelExpr.java:1\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":"core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/ast/BigQueryModelExpr.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ed0ae26c9b1e2bb79b269948243a288f959175bdf066d8dfc4b529e283a1d17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (69 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryVisitor.java:7-75 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGASTVisitorAdapter.java:1-229 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGASTVisitorAdapter.java\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 916 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryVisitor.java:7\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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryVisitor.java"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae3092bfea3a0e4dcc3d600f26dcb114d3dcc73fc3c3eb01b32bb2a3ad434c1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (48 lines \u00D7 5): core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryVisitor.java:7-75 | core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/visitor/CKASTVisitor.java:13-60 | core/src/main/java/com/alibaba/druid/sql/dialect/hive/visitor/HiveASTVisitor.java:29-83 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGASTVisitorAdapter.java:1-229 | core/src/main/java/com/alibaba/druid/sql/dialect/presto/visitor/PrestoASTVisitor.java:14-66 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/hive/visitor/HiveASTVisitor.java\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 687 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryVisitor.java:7\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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060BigQuerySelectQueryBlock\u0060 in one and \u0060CKCreateTableStatement\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":"core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryVisitor.java"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f5cf80177822d7866447c45c22f9f00de55d6d18bb37213bc4dafa301a32283"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (82 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/visitor/CKExportParameterVisitor.java:39-120 | core/src/main/java/com/alibaba/druid/sql/dialect/db2/visitor/DB2ExportParameterVisitor.java:40-125 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGExportParameterVisitor.java:39-120 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/visitor/CKExportParameterVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/db2/visitor/DB2ExportParameterVisitor.java\u0060 as WHOLE FILES: 90% 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/visitor/CKExportParameterVisitor.java:39\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/visitor/CKExportParameterVisitor.java"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"fccc55cbf5bf08193c4e2256c32ebbb6f9ce8bd339ba149a549d4cba29ab3ee5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLGetDiagnosticsStatement.java:11-42 | core/src/main/java/com/alibaba/druid/sql/dialect/db2/ast/stmt/DB2ValuesStatement.java:1-42 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/db2/ast/stmt/DB2ValuesStatement.java:1\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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLGetDiagnosticsStatement.java"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"114add480eee1064b9a65e988c7fd9e89b3ded0e6df53269f537545655b8d9d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (99 lines \u00D7 6): core/src/main/java/com/alibaba/druid/sql/dialect/db2/visitor/DB2EvalVisitor.java:36-134 | core/src/main/java/com/alibaba/druid/sql/dialect/h2/visitor/H2EvalVisitor.java:36-134 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleEvalVisitor.java:36-134 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGEvalVisitor.java:36-139 | core/src/main/java/com/alibaba/druid/sql/dialect/sqlite/visitor/SQLiteEvalVisitor.java:21-119 | core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/visitor/SQLServerEvalVisitor.java:36-134 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/db2/visitor/DB2EvalVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/h2/visitor/H2EvalVisitor.java\u0060 as WHOLE FILES: 93% 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 1 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/db2/visitor/DB2EvalVisitor.java"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"42090d3c4c3308dcdac6194ea107ecf73438f5d0b0c26eedba57cf01dfebedfc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (50 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmASTVisitor.java:9-58 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarASTVisitor.java:24-121 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGASTVisitor.java:26-270 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \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 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmASTVisitor.java:9\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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060DmSelectQueryBlock\u0060 in one and \u0060OscarSelectQueryBlock\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":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmASTVisitor.java"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7ae2da290728e0630fb19200277f2c43bb81d9e3534d2a10bd25b89bfb41ca4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (53 lines \u00D7 4): core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryVisitor.java:7-75 | core/src/main/java/com/alibaba/druid/sql/dialect/hive/visitor/HiveASTVisitor.java:29-83 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGASTVisitorAdapter.java:1-229 | core/src/main/java/com/alibaba/druid/sql/dialect/presto/visitor/PrestoASTVisitor.java:14-66 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/hive/visitor/HiveASTVisitor.java\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 687 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryVisitor.java:7\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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060BigQuerySelectQueryBlock\u0060 in one and \u0060HiveInsert\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":"core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryVisitor.java"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f221435ca1b319c80dd2531b0f19052b27defd217e2a2b99fcfe5776ed9f743"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/MySqlObjectImpl.java:1-30 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlAlterTableDiscardTablespace.java:1-37 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlAlterTableImportTablespace.java:1-37 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlAlterTableDiscardTablespace.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlAlterTableImportTablespace.java\u0060 as WHOLE FILES: 96% 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/MySqlObjectImpl.java:1\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/MySqlObjectImpl.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"64462968d3cad452ddf2899b604784bbe418a5a5d7b6426edab76873414c8b24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/clause/MySqlIterateStatement.java:1-39 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/clause/MySqlLeaveStatement.java:31-55 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/clause/MySqlIterateStatement.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/clause/MySqlLeaveStatement.java\u0060 as WHOLE FILES: 87% 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 1 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/clause/MySqlIterateStatement.java:1\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/clause/MySqlIterateStatement.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"976a7351a718e61e895bd49899ec6f44b156ded27630b0989cde5dcfdbb78aa4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 6): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/DrdsCancelDDLJob.java:1-28 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/DrdsClearDDLJobCache.java:1-37 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/DrdsRecoverDDLJob.java:1-37 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/DrdsRemoveDDLJob.java:1-46 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/DrdsRollbackDDLJob.java:1-28 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/DrdsShowDDLJobs.java:1-37 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/DrdsCancelDDLJob.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/DrdsClearDDLJobCache.java\u0060 as WHOLE FILES: 84% 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 1 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/DrdsCancelDDLJob.java:1\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/DrdsCancelDDLJob.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"be68a0481608deb2e79225072c25f6a7744b8b5d67879c7169c799629451bb91"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/DrdsClearDDLJobCache.java:1-37 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/DrdsRecoverDDLJob.java:1-37 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/DrdsClearDDLJobCache.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/DrdsRecoverDDLJob.java\u0060 as WHOLE FILES: 87% 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/DrdsClearDDLJobCache.java:1\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/DrdsClearDDLJobCache.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9437cf53f6c2c0cc175ca345e9a4d9339c93e3c63394b42e01321330f9f92e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlAlterTableDiscardTablespace.java:1-37 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlAlterTableImportTablespace.java:1-37 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlAlterTableDiscardTablespace.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlAlterTableImportTablespace.java\u0060 as WHOLE FILES: 96% 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlAlterTableDiscardTablespace.java:1\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlAlterTableDiscardTablespace.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"403f73e2565a6e45efa3c7aca6868f0f8525a7cf35be93e03a198ed77617f98d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlCheckTableStatement.java:12-33 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlChecksumTableStatement.java:15-52 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlCheckTableStatement.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlChecksumTableStatement.java\u0060 as WHOLE FILES: 84% 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 1 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlCheckTableStatement.java"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"66eabfd40db0b16c48bff18da048b70555e1b11499568a83160c3fbc361edb07"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (59 lines \u00D7 11): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlShowBroadcastsStatement.java:1-59 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlShowDatasourcesStatement.java:1-59 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlShowDdlStatusStatement.java:1-62 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlShowDsStatement.java:1-59 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlShowHelpStatement.java:1-59 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlShowNodeStatement.java:1-59 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlShowRuleStatement.java:32-90 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlShowRuleStatusStatement.java:1-86 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlShowSequencesStatement.java:1-59 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlShowSlowStatement.java:1-77 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlShowTraceStatement.java:1-59 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlShowBroadcastsStatement.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlShowDatasourcesStatement.java\u0060 as WHOLE FILES: 97% 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 1 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlShowBroadcastsStatement.java:1\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlShowBroadcastsStatement.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"41462b5c07156b58e1cc30fc7aae807ae3fdbbf5bdca475ee164ba6e8099491b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (47 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlShowCharacterSetStatement.java:1-56 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlShowCollationStatement.java:1-47 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlShowCharacterSetStatement.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlShowCollationStatement.java\u0060 as WHOLE FILES: 94% 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 1 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlShowCharacterSetStatement.java:1\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlShowCharacterSetStatement.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b708b47397b6b34f60d839c41bfd9c52aaa9a3a0029c46fa2df04cc60cd5a41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 4): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlShowConfigStatement.java:1-38 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MysqlAlterFullTextStatement.java:1-50 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MysqlDropFullTextStatement.java:1-36 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MysqlShowCreateFullTextStatement.java:1-35 \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 all 4 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlShowConfigStatement.java:1\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlShowConfigStatement.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8909c3d635de80cbde7c5bacc85c1e801b6cc09b47718c602f8b93ac1033b63b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (46 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlShowErrorsStatement.java:1-46 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlShowWarningsStatement.java:1-46 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlShowErrorsStatement.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlShowWarningsStatement.java\u0060 as WHOLE FILES: 96% 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 1 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlShowErrorsStatement.java:1\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlShowErrorsStatement.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a169d2139907f1d0561b0cffb7881b4cc385065485f740e6c01d8a601c6aa3af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42 lines \u00D7 4): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLShowVariantsStatement.java:1-67 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlShowFunctionStatusStatement.java:1-47 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlShowProcedureStatusStatement.java:1-47 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlShowStatusStatement.java:28-69 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLShowVariantsStatement.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlShowStatusStatement.java\u0060 as WHOLE FILES: 86% 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLShowVariantsStatement.java:1\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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLShowVariantsStatement.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae66bf400cfb5a7247365c8098ba83864b9fbe68f173d7461cd3f9d3ab55d1f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlShowJobStatusStatement.java:25-49 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlShowMigrateTaskStatusStatement.java:24-40 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlShowJobStatusStatement.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlShowMigrateTaskStatusStatement.java\u0060 as WHOLE FILES: 89% 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 1 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlShowJobStatusStatement.java"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"883fdd18736ea23389bf25e95c9af111c0023b5107b0fc5bf2ea880f052f2246"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (57 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlShowOpenTablesStatement.java:1-57 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlShowTriggersStatement.java:1-58 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlShowOpenTablesStatement.java:1\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlShowOpenTablesStatement.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c76b07069905aede4e1efd0a65e3780b28e44b47d09f2353834a62f2c84486b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 4): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/DrdsShowDDLJobs.java:1-37 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlShowPhysicalProcesslistStatement.java:1-34 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MysqlShowHtcStatement.java:1-32 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MysqlShowStcStatement.java:1-32 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MysqlShowHtcStatement.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MysqlShowStcStatement.java\u0060 as WHOLE FILES: 95% 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/DrdsShowDDLJobs.java:1\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/DrdsShowDDLJobs.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e6da08dadd6bb7fe7175f32556db0addaa86d4a75d57d8a4b343eae03ff8013"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MysqlAlterFullTextStatement.java:1-50 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MysqlDropFullTextStatement.java:1-36 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MysqlShowCreateFullTextStatement.java:1-35 \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 all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MysqlAlterFullTextStatement.java:1\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MysqlAlterFullTextStatement.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"42c06be2feb4bf6b4a93532729044ca6ef1d6b2d0f041ddc1c3820a02b64b1c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MysqlShowHtcStatement.java:1-32 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MysqlShowStcStatement.java:1-32 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MysqlShowHtcStatement.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MysqlShowStcStatement.java\u0060 as WHOLE FILES: 95% 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MysqlShowHtcStatement.java:1\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MysqlShowHtcStatement.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"67339c817c68e7daf4c5f301e9f06e9f344c0cbcdd4094b205b4943b9b9d603e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (71 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/SQLAlterResourceGroupStatement.java:1-72 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/SQLCreateResourceGroupStatement.java:1-71 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/SQLAlterResourceGroupStatement.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/SQLCreateResourceGroupStatement.java\u0060 as WHOLE FILES: 96% 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 1 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/SQLAlterResourceGroupStatement.java:1\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/SQLAlterResourceGroupStatement.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1846ae6f083ad20707c724fc47396541040cd620eeee24149051a770a3ae6ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (56 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/odps/ast/OdpsAddStatisticStatement.java:1-57 | core/src/main/java/com/alibaba/druid/sql/dialect/odps/ast/OdpsRemoveStatisticStatement.java:1-56 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/odps/ast/OdpsAddStatisticStatement.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/odps/ast/OdpsRemoveStatisticStatement.java\u0060 as WHOLE FILES: 92% 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 1 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/odps/ast/OdpsAddStatisticStatement.java:1\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":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/ast/OdpsAddStatisticStatement.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f086e80a81d10e93bd3a9cbeb5a244280ef32ae460d31f53c64487a394b05303"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/odps/ast/OdpsCopyStmt.java:1-40 | core/src/main/java/com/alibaba/druid/sql/dialect/odps/ast/OdpsPAIStmt.java:1-40 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/odps/ast/OdpsCopyStmt.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/odps/ast/OdpsPAIStmt.java\u0060 as WHOLE FILES: 96% 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 1 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/odps/ast/OdpsCopyStmt.java:1\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":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/ast/OdpsCopyStmt.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0547e26501526f7eef4ce97bbc3b53ea35f53b2f5c0eea8200e9ae54103bb96c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/odps/ast/OdpsAddTableStatement.java:39-103 | core/src/main/java/com/alibaba/druid/sql/dialect/odps/ast/OdpsCountStatement.java:34-63 | core/src/main/java/com/alibaba/druid/sql/dialect/odps/ast/OdpsRestoreStatement.java:38-90 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/odps/ast/OdpsAddTableStatement.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/odps/ast/OdpsCountStatement.java\u0060 as WHOLE FILES: 84% 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 1 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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/ast/OdpsAddTableStatement.java"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4559a3c53706e2c58d881f3972cad17ce85ec20ecf8723f3c3ea31c64ac3c1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlLockTableStatement.java:1-106 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleAlterSessionStatement.java:1-41 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlLockTableStatement.java:1\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlLockTableStatement.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fe99ec6db66fb1f92a4fdfc8acea48271383b33511daae7414fbb9ad7ccbc66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (48 lines \u00D7 6): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterProcedureStatement.java:1-105 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleAlterPackageStatement.java:1-57 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleAlterSummaryStatement.java:1-48 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleAlterSynonymStatement.java:1-58 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleAlterTriggerStatement.java:1-58 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleAlterViewStatement.java:1-58 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleAlterSummaryStatement.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleAlterSynonymStatement.java\u0060 as WHOLE FILES: 94% 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterProcedureStatement.java:1\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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterProcedureStatement.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b67203e0258c6b7f12cd5a87e5a62ba62e80927e5329a1eca744a12ca804940b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (58 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleAlterSynonymStatement.java:1-58 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleAlterTriggerStatement.java:1-58 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleAlterViewStatement.java:1-58 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleAlterSynonymStatement.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleAlterTriggerStatement.java\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 268 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleAlterSynonymStatement.java:1\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleAlterSynonymStatement.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2a329ce413ddc49e72adf5cea8750c4cf4bb9cb395f0bddcce25b3841360f92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (44 lines \u00D7 4): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableAddColumn.java:36-111 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableDropColumnItem.java:32-76 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableReplaceColumn.java:1-75 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleAlterTableModify.java:1-44 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableAddColumn.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableReplaceColumn.java\u0060 as WHOLE FILES: 98% 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableReplaceColumn.java:1\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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableAddColumn.java"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"007c40aca9891d1fa5d77c5e79a241ccb902a98474fcf135c49dff9f921113e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleAlterPackageStatement.java:1-57 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleDropPackageStatement.java:1-38 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleAlterPackageStatement.java:1\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleAlterPackageStatement.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"16ee2490f0c911adc39f7c0f1ce6887a3e100e1cc860d877919fd72c5da44230"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleGotoStatement.java:24-45 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleLabelStatement.java:24-45 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleGotoStatement.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleLabelStatement.java\u0060 as WHOLE FILES: 87% 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 1 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleGotoStatement.java"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"2422e21fcd3283342e9b726a643c7ad734709532078ddd957ffcace828e7ffa7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (98 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarASTVisitor.java:24-121 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGASTVisitor.java:26-270 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarASTVisitor.java:24\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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060OscarSelectQueryBlock\u0060 in one and \u0060PGSelectQueryBlock\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarASTVisitor.java"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"78441d9b143b20c5a0261c6c8a62877a9c57e0e5daa552b67228845860a5429d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/ast/stmt/PGAnalyzeStatement.java:36-77 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/ast/stmt/PGVacuumStatement.java:45-150 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/ast/stmt/PGAnalyzeStatement.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/ast/stmt/PGVacuumStatement.java\u0060 as WHOLE FILES: 87% 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 1 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":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/ast/stmt/PGAnalyzeStatement.java"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"02ad298206d333f9fb138322ce6ff35258bbca5d9bcbfe45c2b863b330ad97cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/ast/stmt/PGEndTransactionStatement.java:28-43 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/ast/stmt/PGStartTransactionStatement.java:24-49 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/ast/stmt/PGEndTransactionStatement.java"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a5e71bd65f8227f71f63b9005c1f3ba596c9d5ab0fde3f42057463415e6af7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 7): core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryVisitor.java:7-75 | core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/visitor/CKASTVisitor.java:13-60 | core/src/main/java/com/alibaba/druid/sql/dialect/hive/visitor/HiveASTVisitor.java:29-83 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGASTVisitorAdapter.java:1-229 | core/src/main/java/com/alibaba/druid/sql/dialect/presto/visitor/PrestoASTVisitor.java:14-66 | core/src/main/java/com/alibaba/druid/sql/dialect/redshift/visitor/RedshiftASTVisitor.java:7-27 | core/src/main/java/com/alibaba/druid/sql/dialect/sqlite/visitor/SQLiteASTVisitor.java:7-40 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/hive/visitor/HiveASTVisitor.java\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 687 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryVisitor.java:7\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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060BigQuerySelectQueryBlock\u0060 in one and \u0060CKCreateTableStatement\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":"core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryVisitor.java"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"4536ccf37067812daff660293cefbaeb77460de341a3b81273d5a1c613debd82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/sqlite/ast/SQLiteDetachStatement.java:12-39 | core/src/main/java/com/alibaba/druid/sql/dialect/sqlite/ast/SQLiteVacuumStatement.java:12-39 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/sqlite/ast/SQLiteDetachStatement.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/sqlite/ast/SQLiteVacuumStatement.java\u0060 as WHOLE FILES: 87% 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 1 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":"core/src/main/java/com/alibaba/druid/sql/dialect/sqlite/ast/SQLiteDetachStatement.java"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"73033f02edbe1d348dd86a3281863db3b5354222e67b6c370d1623ff68a2ff55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (75 lines \u00D7 4): core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/visitor/CKExportParameterVisitor.java:39-120 | core/src/main/java/com/alibaba/druid/sql/dialect/db2/visitor/DB2ExportParameterVisitor.java:40-125 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGExportParameterVisitor.java:39-120 | core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/visitor/MSSQLServerExportParameterVisitor.java:38-112 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/visitor/CKExportParameterVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/db2/visitor/DB2ExportParameterVisitor.java\u0060 as WHOLE FILES: 90% 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/visitor/CKExportParameterVisitor.java:39\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/visitor/CKExportParameterVisitor.java"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"0505b38ac32532a874afb04ef543f0bd9f3b3ffaeae82d345dd74a1538707891"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/synapse/parser/SynapseExprParser.java:9-17 | core/src/main/java/com/alibaba/druid/sql/dialect/synapse/parser/SynapseSelectParser.java:9-27 | core/src/main/java/com/alibaba/druid/sql/dialect/synapse/parser/SynapseStatementParser.java:11-34 \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 all 3 call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/synapse/parser/SynapseExprParser.java"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a56314abb262236d6a09508e139c8011a20ac34d4ff466700f2a80c45040db9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (110 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlEvalVisitorImpl.java:36-154 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorImpl.java:35-144 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlEvalVisitorImpl.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorImpl.java\u0060 as WHOLE FILES: 88% 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 1 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlEvalVisitorImpl.java"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"a03bf4d090d9c9e6a27f8e6956e9562dc3a713b5cc8f656b67f8f0c6bd8715d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43 lines \u00D7 2): core/src/main/java/com/alibaba/druid/support/clickhouse/BalancedClickhouseDriver.java:16-58 | core/src/main/java/com/alibaba/druid/support/clickhouse/BalancedClickhouseDriverNative.java:16-58 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/support/clickhouse/BalancedClickhouseDriver.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/support/clickhouse/BalancedClickhouseDriverNative.java\u0060 as WHOLE FILES: 83% 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 1 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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: \u0060BalancedClickhouseDataSource\u0060 names \u0060com.github.housepower.jdbc.BalancedClickhouseDataSource\u0060 in one and \u0060ru.yandex.clickhouse.BalancedClickhouseDataSource\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, 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":"core/src/main/java/com/alibaba/druid/support/clickhouse/BalancedClickhouseDriver.java"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"278936d76f5de2d7f735136f37052754a7e4e472afe002e84962dffb81feb5a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2): core/src/main/java/com/alibaba/druid/support/http/MonitorClientContextListener.java:1-38 | core/src/main/java/com/alibaba/druid/support/jakarta/MonitorClientContextListener.java:1-37 \u2014 \u0060core/src/main/java/com/alibaba/druid/support/http/MonitorClientContextListener.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/support/jakarta/MonitorClientContextListener.java\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 1 separate duplicated blocks between them, totalling at least 38 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/support/http/MonitorClientContextListener.java:1\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. Note first that the copies are not typed on the same thing: \u0060ServletContextEvent\u0060 names \u0060jakarta.servlet.ServletContextEvent\u0060 in one and \u0060javax.servlet.ServletContextEvent\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, 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":"core/src/main/java/com/alibaba/druid/support/http/MonitorClientContextListener.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f89a85399ba2605a3f6c5c14cf080ff12f9556bfac591c7ace0f46bf81df0f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (45 lines \u00D7 3): core/src/main/java/com/alibaba/druid/support/monitor/entity/MonitorApp.java:1-45 | core/src/main/java/com/alibaba/druid/support/monitor/entity/MonitorCluster.java:1-54 | core/src/main/java/com/alibaba/druid/support/monitor/entity/MonitorInstance.java:1-92 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/support/monitor/entity/MonitorApp.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/support/monitor/entity/MonitorCluster.java\u0060 as WHOLE FILES: 96% 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 1 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/support/monitor/entity/MonitorApp.java:1\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":"core/src/main/java/com/alibaba/druid/support/monitor/entity/MonitorApp.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1c6d79c7f7e7c3d5377ecb42dae8cb576fa05e3888d425efeef24942176296e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (54 lines \u00D7 2): core/src/main/java/com/alibaba/druid/support/monitor/entity/MonitorCluster.java:1-54 | core/src/main/java/com/alibaba/druid/support/monitor/entity/MonitorInstance.java:1-92 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/support/monitor/entity/MonitorCluster.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/support/monitor/entity/MonitorInstance.java\u0060 as WHOLE FILES: 97% 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/druid/support/monitor/entity/MonitorCluster.java:1\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":"core/src/main/java/com/alibaba/druid/support/monitor/entity/MonitorCluster.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"922d2fa1cfe3b8de1dc2ae46aee13f7465fc4fd9d1f1db220430e9a53c4bc90f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (61 lines \u00D7 3): druid-spring-boot-3-starter/src/main/java/com/alibaba/druid/spring/boot3/autoconfigure/DruidDataSourceBuilder.java:1-61 | druid-spring-boot-4-starter/src/main/java/com/alibaba/druid/spring/boot4/autoconfigure/DruidDataSourceBuilder.java:1-61 | druid-spring-boot-starter/src/main/java/com/alibaba/druid/spring/boot/autoconfigure/DruidDataSourceBuilder.java:1-61 \u2014 before extracting anything, compare \u0060druid-spring-boot-3-starter/src/main/java/com/alibaba/druid/spring/boot3/autoconfigure/DruidDataSourceBuilder.java\u0060 and \u0060druid-spring-boot-4-starter/src/main/java/com/alibaba/druid/spring/boot4/autoconfigure/DruidDataSourceBuilder.java\u0060 as WHOLE FILES: 98% 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 1 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060druid-spring-boot-3-starter/src/main/java/com/alibaba/druid/spring/boot3/autoconfigure/DruidDataSourceBuilder.java:1\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":"druid-spring-boot-3-starter/src/main/java/com/alibaba/druid/spring/boot3/autoconfigure/DruidDataSourceBuilder.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"25b294bf939db171670ac79f06821772d4c5e8b1bdb4609d550edc7c28aa96c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (197 lines \u00D7 3): druid-spring-boot-3-starter/src/main/java/com/alibaba/druid/spring/boot3/autoconfigure/properties/DruidStatProperties.java:1-197 | druid-spring-boot-4-starter/src/main/java/com/alibaba/druid/spring/boot4/autoconfigure/properties/DruidStatProperties.java:1-197 | druid-spring-boot-starter/src/main/java/com/alibaba/druid/spring/boot/autoconfigure/properties/DruidStatProperties.java:1-197 \u2014 before extracting anything, compare \u0060druid-spring-boot-3-starter/src/main/java/com/alibaba/druid/spring/boot3/autoconfigure/properties/DruidStatProperties.java\u0060 and \u0060druid-spring-boot-4-starter/src/main/java/com/alibaba/druid/spring/boot4/autoconfigure/properties/DruidStatProperties.java\u0060 as WHOLE FILES: 99% 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 1 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060druid-spring-boot-3-starter/src/main/java/com/alibaba/druid/spring/boot3/autoconfigure/properties/DruidStatProperties.java:1\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":"druid-spring-boot-3-starter/src/main/java/com/alibaba/druid/spring/boot3/autoconfigure/properties/DruidStatProperties.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"58669666b6566507a00f748f0eb40aac30b11c625b422031e3dc0ee9359dbabb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (108 lines \u00D7 3): druid-spring-boot-3-starter/src/main/java/com/alibaba/druid/spring/boot3/autoconfigure/stat/DruidFilterConfiguration.java:1-108 | druid-spring-boot-4-starter/src/main/java/com/alibaba/druid/spring/boot4/autoconfigure/stat/DruidFilterConfiguration.java:1-108 | druid-spring-boot-starter/src/main/java/com/alibaba/druid/spring/boot/autoconfigure/stat/DruidFilterConfiguration.java:1-108 \u2014 before extracting anything, compare \u0060druid-spring-boot-3-starter/src/main/java/com/alibaba/druid/spring/boot3/autoconfigure/stat/DruidFilterConfiguration.java\u0060 and \u0060druid-spring-boot-4-starter/src/main/java/com/alibaba/druid/spring/boot4/autoconfigure/stat/DruidFilterConfiguration.java\u0060 as WHOLE FILES: 98% 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 1 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060druid-spring-boot-3-starter/src/main/java/com/alibaba/druid/spring/boot3/autoconfigure/stat/DruidFilterConfiguration.java:1\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":"druid-spring-boot-3-starter/src/main/java/com/alibaba/druid/spring/boot3/autoconfigure/stat/DruidFilterConfiguration.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c30c0ccbbe1df7377e19496dca7331f47817fef6b8c0e3428d7e44a366bc1300"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (48 lines \u00D7 3): druid-spring-boot-3-starter/src/main/java/com/alibaba/druid/spring/boot3/autoconfigure/stat/DruidSpringAopConfiguration.java:1-48 | druid-spring-boot-4-starter/src/main/java/com/alibaba/druid/spring/boot4/autoconfigure/stat/DruidSpringAopConfiguration.java:1-48 | druid-spring-boot-starter/src/main/java/com/alibaba/druid/spring/boot/autoconfigure/stat/DruidSpringAopConfiguration.java:1-48 \u2014 before extracting anything, compare \u0060druid-spring-boot-3-starter/src/main/java/com/alibaba/druid/spring/boot3/autoconfigure/stat/DruidSpringAopConfiguration.java\u0060 and \u0060druid-spring-boot-4-starter/src/main/java/com/alibaba/druid/spring/boot4/autoconfigure/stat/DruidSpringAopConfiguration.java\u0060 as WHOLE FILES: 95% 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 1 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060druid-spring-boot-3-starter/src/main/java/com/alibaba/druid/spring/boot3/autoconfigure/stat/DruidSpringAopConfiguration.java:1\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. Note first that the copies are not typed on the same thing: \u0060DruidStatProperties\u0060 names \u0060com.alibaba.druid.spring.boot.autoconfigure.properties.DruidStatProperties\u0060 in one and \u0060com.alibaba.druid.spring.boot3.autoconfigure.properties.DruidStatProperties\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, 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":"druid-spring-boot-3-starter/src/main/java/com/alibaba/druid/spring/boot3/autoconfigure/stat/DruidSpringAopConfiguration.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc05e0c90779e4f95fb696c248d7fa8da2e8e991ae47d239e0152bae08460f1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): druid-wrapper/src/main/java/org/apache/commons/dbcp/BasicDataSourceFactory.java:1-20 | druid-wrapper/src/main/java/org/apache/commons/dbcp2/BasicDataSourceFactory.java:1-18 \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 \u0060druid-wrapper/src/main/java/org/apache/commons/dbcp/BasicDataSourceFactory.java:1\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":"druid-wrapper/src/main/java/org/apache/commons/dbcp/BasicDataSourceFactory.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b490288f047fe0debb053cac6b9775ea8cb4587faeb8a5c609bf134258867c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): core/src/main/java/com/alibaba/druid/filter/stat/StatFilter.java:698-706 | core/src/main/java/com/alibaba/druid/stat/JdbcDataSourceStat.java:271-279 \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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/filter/stat/StatFilter.java"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"a27fc63326a3badbc9d126bfa202d502ac9fc95a8c3f1621e2f8d7b56584b5a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): core/src/main/java/com/alibaba/druid/mock/MockCallableStatement.java:84-92 | core/src/main/java/com/alibaba/druid/util/jdbc/ResultSetBase.java:866-874 \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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/mock/MockCallableStatement.java"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"c61906022f84e8fa7140aee838e849792bcf849359bb4b198e77cc76c02f2b4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): core/src/main/java/com/alibaba/druid/mock/MockCallableStatement.java:95-103 | core/src/main/java/com/alibaba/druid/util/jdbc/ResultSetBase.java:877-885 \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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/mock/MockCallableStatement.java"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"4339faebbfa35b5aadfd76493bb61e1ed74ef584c7c65702f7e84143d323252f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): core/src/main/java/com/alibaba/druid/mock/MockCallableStatement.java:106-114 | core/src/main/java/com/alibaba/druid/util/jdbc/ResultSetBase.java:888-896 \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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/mock/MockCallableStatement.java"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4cade71ecdaf48c6b4296b211df054ebb07141a675f88c5f96485a22d7743ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): core/src/main/java/com/alibaba/druid/mock/MockCallableStatement.java:117-125 | core/src/main/java/com/alibaba/druid/util/jdbc/ResultSetBase.java:899-907 \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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/mock/MockCallableStatement.java"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"f663a2f2b9f3e8158d39f5bfc4fcada5f7bdb7fbb87e031e9e785a52bc94440a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): core/src/main/java/com/alibaba/druid/mock/MockCallableStatement.java:128-136 | core/src/main/java/com/alibaba/druid/util/jdbc/ResultSetBase.java:910-918 \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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/mock/MockCallableStatement.java"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"6251d88c3fbdd07665749a7d67999f25e2f7a26ca89899242fe8169bb9e25227"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): core/src/main/java/com/alibaba/druid/mock/MockCallableStatement.java:139-147 | core/src/main/java/com/alibaba/druid/util/jdbc/ResultSetBase.java:921-929 \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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/mock/MockCallableStatement.java"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"f698cee076713510936b59eb2cab3bf8e1e7acb3502436613b0edf1b4e1df635"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): core/src/main/java/com/alibaba/druid/mock/MockResultSet.java:46-56 | core/src/main/java/com/alibaba/druid/util/jdbc/LocalResultSet.java:36-46 \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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/mock/MockResultSet.java"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5216d91de8908583b929542fb033c6ae156aedd9e1db12a34c3662e5d0dc64c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): core/src/main/java/com/alibaba/druid/pool/DruidConnectionHolder.java:224-233 | core/src/main/java/com/alibaba/druid/proxy/jdbc/ConnectionProxyImpl.java:75-84 \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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/pool/DruidConnectionHolder.java"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"13bafb4972448cf64dd220e98526e4c8110f045f0be41430de9f89021c3ded46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): core/src/main/java/com/alibaba/druid/pool/DruidDataSourceStatLoggerImpl.java:47-56 | core/src/main/java/com/alibaba/druid/wall/WallProviderStatLoggerImpl.java:31-40 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/pool/DruidDataSourceStatLoggerImpl.java"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2776952a71f2614b92ea566da68904922de0987e1b9e4e9980487a1d7651e0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): core/src/main/java/com/alibaba/druid/pool/WrapperAdapter.java:32-42 | core/src/main/java/com/alibaba/druid/util/jdbc/ResultSetBase.java:267-277 \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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/pool/WrapperAdapter.java"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f789122772b018d53fbe2868a9b5809fbe2dffbb29e775dc6fd11780cdb710a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): core/src/main/java/com/alibaba/druid/pool/ha/node/FileNodeListener.java:125-134 | core/src/main/java/com/alibaba/druid/pool/ha/node/PoolUpdater.java:97-106 \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":"core/src/main/java/com/alibaba/druid/pool/ha/node/FileNodeListener.java"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"240d6e4ef123ac19d2bc04b0f371aef6171669dbe1080f4c37e73f31d9a92e37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/SQLOrderBy.java:109-117 | core/src/main/java/com/alibaba/druid/sql/ast/SQLZOrderBy.java:109-117 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/ast/SQLOrderBy.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/ast/SQLZOrderBy.java\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 31 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/SQLOrderBy.java"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"0391ae65bbc30ab1e308fc1f606b8eda19986fa5635cef54b49595dd83e3d90d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/SQLPartitionBy.java:134-147 | core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/ast/GaussDbDistributeBy.java:66-79 \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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/ast/SQLPartitionBy.java"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"eef4620d5d9e2259cdfc774048011bb81eb116c9f6e514115fd27617d7f76fe0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/ast/SQLPartitionByHash.java:42-50 | core/src/main/java/com/alibaba/druid/sql/ast/SQLPartitionByList.java:23-31 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlPartitionByKey.java:37-45 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \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 3 times. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060visitor\u0060 to \u0060SQLASTVisitor\u0060 in one and \u0060MySqlASTVisitor\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":"core/src/main/java/com/alibaba/druid/sql/ast/SQLPartitionByHash.java"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b617912ca8ffd3836e0fed2dfec04c320fe7380137c449dc910ff860b964499"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/SQLPivot.java:24-31 | core/src/main/java/com/alibaba/druid/sql/ast/SQLUnpivot.java:16-23 \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":"core/src/main/java/com/alibaba/druid/sql/ast/SQLPivot.java"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"888fe7cbe68e9cd4861bd7b22d4fb742ef652d6eb2b25958a59b7f467128d045"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/SQLRowDataType.java:96-101 | core/src/main/java/com/alibaba/druid/sql/ast/SQLStructDataType.java:97-102 \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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/ast/SQLRowDataType.java"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a9df89c9209f6ae9b877d652d876278437b9deb5b26f63f21711ab94673d400"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/ast/SQLSubPartitionByRange.java:32-38 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlSubPartitionByKey.java:41-47 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlSubPartitionByValue.java:42-48 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \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 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/SQLSubPartitionByRange.java"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc5ae07bac292bb784d444430986fb9eecb4bda55e62d24b65e58527b4b80b85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLAliasedExpr.java:29-36 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectItem.java:85-92 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectOrderByItem.java:89-97 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/expr/MySqlOrderingExpr.java:59-67 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \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 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLAliasedExpr.java"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea1ce77072710f95ba55af84c5d8e751cf2f744d8fd83892badc517601a8d80b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLAllExpr.java:56-64 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLAnyExpr.java:59-67 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLExistsExpr.java:62-70 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLQueryExpr.java:53-61 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLSomeExpr.java:59-67 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLAllExpr.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLAnyExpr.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 after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLAllExpr.java:66\u0060 calls \u0060getChildren\u0060, \u0060singletonList\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLSomeExpr.java:69\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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLAllExpr.java"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"e83ac2586879be739b1a33edb5d59ba461895d708fa9386243461825ad540642"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLAllExpr.java:71-76 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLAnyExpr.java:74-79 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLQueryExpr.java:68-73 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLSomeExpr.java:70-75 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLAllExpr.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLAnyExpr.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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLAllExpr.java"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0cc91e72c61397b0128a12c397d6057f8529f6f3a54b15559b6a5eb536a5c1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLAtTimeZoneExpr.java:22-28 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/expr/OracleDatetimeExpr.java:39-45 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060visitor\u0060 to \u0060SQLASTVisitor\u0060 in one and \u0060OracleASTVisitor\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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLAtTimeZoneExpr.java"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0eebb90ce1535eab2c6161bdcb4daf798249dc5c3799c6d8ba430ae455d2886"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 16): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLBigIntExpr.java:71-76 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLDecimalExpr.java:71-76 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLSmallIntExpr.java:74-79 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTimestampNTZExpr.java:151-156 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTinyIntExpr.java:74-79 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTypeExpr.java:76-81 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/expr/OracleBinaryDoubleExpr.java:58-63 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/expr/OracleBinaryFloatExpr.java:71-76 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/ast/expr/PGBoxExpr.java:68-73 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/ast/expr/PGCidrExpr.java:68-73 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/ast/expr/PGCircleExpr.java:59-64 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/ast/expr/PGInetExpr.java:68-73 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/ast/expr/PGLineSegmentsExpr.java:59-64 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/ast/expr/PGMacAddrExpr.java:68-73 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/ast/expr/PGPointExpr.java:68-73 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/ast/expr/PGPolygonExpr.java:68-73 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/ast/expr/PGBoxExpr.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/ast/expr/PGCidrExpr.java\u0060 as WHOLE FILES: 92% 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 1 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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLBigIntExpr.java"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6d05dbbdc818d41563a328b33faee84490b90310d68dbfb52f23f2fe27fa758"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLBinaryExpr.java:92-97 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTextLiteralExpr.java:42-47 \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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLBinaryExpr.java"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"94b512f87f0dd839f3317a80bcbe6480ea53dede21b23897473d277277c441bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLContainsExpr.java:103-110 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLInListExpr.java:147-154 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLContainsExpr.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLInListExpr.java\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLContainsExpr.java"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbef63c1e5459d78e27cc9658e2c52f970223d1ad4dea23a5fb8f8117117662a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLDateExpr.java:70-82 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLDateTimeExpr.java:36-48 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTimeExpr.java:42-54 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTimestampNTZExpr.java:54-66 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLDateExpr.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTimestampNTZExpr.java\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 262 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLDateExpr.java"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aa317f5df6ef8468e5c510698df8ed9b3e644846699d29035e0937edd6b7457"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLExtractExpr.java:62-69 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLIntervalExpr.java:85-92 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLSizeExpr.java:50-57 \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 all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLExtractExpr.java"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"7412faf49b3d6438998bfe8cfdb9990fcb84c7b5ae47d89e6a45fc548ee365e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLFlashbackExpr.java:68-75 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLNotExpr.java:59-67 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLUnaryExpr.java:67-75 \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 all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLFlashbackExpr.java"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"4070c6d952b4a76cad237641421d4d779292a7a0b8f59a84cc5ed21401a43693"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLNotExpr.java:75-80 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/expr/OracleOuterExpr.java:86-91 \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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLNotExpr.java"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5e0c2a97142d438ba08214629ed4d8e32f0abe8a114657c15f94ddc5ada3763"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterSequenceStatement.java:41-50 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateSequenceStatement.java:60-69 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterSequenceStatement.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateSequenceStatement.java\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 40 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterSequenceStatement.java"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"1757a6d97d06c4b89e1c3790904fc5761e08800c8ae615b392de51f1464d3726"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 9): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterSequenceStatement.java:161-172 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableStatement.java:237-248 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterViewStatement.java:76-87 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateFunctionStatement.java:232-243 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateSequenceStatement.java:172-183 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateTableStatement.java:180-191 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateViewStatement.java:92-103 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDropSequenceStatement.java:70-81 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDropSynonymStatement.java:72-83 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterSequenceStatement.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateSequenceStatement.java\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 40 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterSequenceStatement.java"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"48865ab2b940cf269319a5de6babc81a80100dece3a917f06681ca3a4509c36a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableRename.java:37-49 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCloneTableStatement.java:62-74 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableRename.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCloneTableStatement.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 1 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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableRename.java"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e6546a893eefda9c14643006ad4dc364dcdb24faffb6084ae8aba23558dc47e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableRenameIndex.java:34-40 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLRenameUserStatement.java:16-22 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlRenameTableStatement.java:68-74 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \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 3 times. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060visitor\u0060 to \u0060SQLASTVisitor\u0060 in one and \u0060MySqlASTVisitor\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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableRenameIndex.java"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"8238bcbc90e72804ba95b86a7cfbbf4d189fcdbaea25502badad0cbb2968c7ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterViewStatement.java:62-74 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateTableStatement.java:491-503 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateViewStatement.java:78-90 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterViewStatement.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateViewStatement.java\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 61 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterViewStatement.java"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"8549cd5de8d7072c8a886e8c4eef624f7df6e82393caa6f418d93b21c86a29e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLBlockStatement.java:151-159 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateProcedureStatement.java:176-184 \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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLBlockStatement.java"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"f267d111f4bb0fedcfaf11b4eaba522880f3899fe64ed8006061820bb1f4a817"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCheck.java:46-57 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDefault.java:56-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCheck.java"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0895832d504f5042b6440b51583c3b13c8d3de21dcfe56a410059cbae4a0f2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLColumnPrimaryKey.java:26-31 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLColumnReference.java:37-42 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLColumnUniqueKey.java:26-31 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/ast/stmt/PGDropDatabaseStatement.java:50-55 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \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 4 times. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060visitor\u0060 to \u0060SQLASTVisitor\u0060 in one and \u0060PGASTVisitor\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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLColumnPrimaryKey.java"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"d61dcce5480354e55da463342d01072263a8bc8181bc0d33d549796de15c725b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateMaterializedViewStatement.java:425-429 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateTableStatement.java:1567-1571 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateMaterializedViewStatement.java:431\u0060 calls \u0060getTableOptions\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateTableStatement.java:1573\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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateMaterializedViewStatement.java"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"4395697e648b7ffa0a5f0bf7f3f26c90680f7df21234b326243e48b1f9405d6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateTableStatement.java:509-516 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLExprTableSource.java:378-385 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLTableSourceImpl.java:138-145 \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 all 3 call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateTableStatement.java"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9308fc2dd7d73439e7a9c7195ce0e41a42b6d652cff7511206b4b240bd46af4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateTableStatement.java:1632-1639 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MysqlCreateFullTextCharFilterStatement.java:84-91 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MysqlCreateFullTextTokenFilterStatement.java:83-90 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MysqlCreateFullTextTokenizerStatement.java:92-99 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MysqlCreateFullTextCharFilterStatement.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MysqlCreateFullTextTokenFilterStatement.java\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 38 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateTableStatement.java"},"region":{"startLine":1632}}}],"partialFingerprints":{"codehealthFindingId/v1":"92d4a56860b808bbaf450dc2879dc08f1ac38b2c9c97c471a4ff6012d7aa4360"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDeleteStatement.java:226-233 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java:1469-1476 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLUpdateStatement.java:294-301 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDeleteStatement.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 65 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDeleteStatement.java"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c27ea9a5335f7434f019d0924e48fc7bb74ed14cf325816a7b0d168cefb7f66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDeleteStatement.java:243-251 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java:1486-1494 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLUpdateStatement.java:311-319 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDeleteStatement.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 65 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDeleteStatement.java"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"d13652492295ac4fc45374a9f51e5397fd2984fe8ae4cb6a9c1eb5bf894d8188"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLExprTableSource.java:433-440 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLTableSourceImpl.java:155-162 \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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLExprTableSource.java"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"d256e311e3270c08b999240cc49d96ce86d79d686fe2cd5900b4c81e6c84e1ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLForStatement.java:54-62 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleForStatement.java:40-47 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060v\u0060 to \u0060SQLASTVisitor\u0060 in one and \u0060OracleASTVisitor\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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLForStatement.java"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7695af75d8d485facffe6b8887572995e9c4f375eb1627557e3bf9a3fce3740"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLIfStatement.java:135-141 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLWhileStatement.java:42-48 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/clause/MySqlCaseStatement.java:97-103 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \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 3 times. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060visitor\u0060 to \u0060SQLASTVisitor\u0060 in one and \u0060MySqlASTVisitor\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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLIfStatement.java"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"c154778a081648fd1be7d5c9d62ad0951aca0c7988c1efd3522db93613308fb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLInsertInto.java:171-177 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/ast/stmt/OscarInsertStatement.java:76-82 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/ast/stmt/PGInsertStatement.java:74-80 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/ast/stmt/OscarInsertStatement.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/ast/stmt/PGInsertStatement.java\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLInsertInto.java"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"89db210eef2a2e4969cd63fc7790e2c92efa74e383b1a425b1b5f02f06ae19c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLInsertInto.java:211-221 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLReplaceStatement.java:181-191 \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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLInsertInto.java"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"74ffe3f70e24ddc67eb66be3155beed07e59f3feefaebced1ea51a542646f6c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLPrimaryKeyImpl.java:29-35 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/MySqlPrimaryKey.java:27-33 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/MySqlUnique.java:25-31 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \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 3 times. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060visitor\u0060 to \u0060SQLASTVisitor\u0060 in one and \u0060MySqlASTVisitor\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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLPrimaryKeyImpl.java"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"d58850cea15b0d0930944c88f31cbd855b25f01a9ce92630dc9fbcc2f3b78d26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLRevokeStatement.java:32-38 | core/src/main/java/com/alibaba/druid/sql/dialect/odps/ast/OdpsGrantStmt.java:48-54 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060visitor\u0060 to \u0060SQLASTVisitor\u0060 in one and \u0060OdpsASTVisitor\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/odps/ast/OdpsGrantStmt.java:44\u0060 calls \u0060accept0\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLRevokeStatement.java:31\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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLRevokeStatement.java"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"8db81afdeb9e0aaaf4e4dc869c3464d065916c8fe716fdb003fa116c457a18a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelect.java:77-84 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java:1260-1267 \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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelect.java"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"88506f846fb2af0eda02aea52de09c04faed427abfb9b2db327e82a8fb042bd8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLShowDatabasesStatement.java:95-112 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLShowTablesStatement.java:87-104 \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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLShowDatabasesStatement.java"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1d758f00db45627bca365538c041eaf1faa75f143efe31387a42d0234fd87f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryStatementParser.java:40-46 | core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveStatementParser.java:620-626 | core/src/main/java/com/alibaba/druid/sql/dialect/presto/parser/PrestoStatementParser.java:521-527 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveStatementParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/presto/parser/PrestoStatementParser.java\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 247 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryStatementParser.java"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cd5fd5412cf0949183789c2dec413e8b6be2d935decb3fcddc7cc3acbd414d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryOutputVisitor.java:100-108 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:3658-3666 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 148 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryOutputVisitor.java"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"256a0277fe170f94e2ca0488253b8ff8388293fb642a9c6819efd93270998013"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryOutputVisitor.java:196-203 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:2729-2736 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 148 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryOutputVisitor.java"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"06a9e23b233ff8d10aacc7cd5c11b5a402f8d7c42a62385b127971ff98cd6904"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryOutputVisitor.java:248-257 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:3116-3125 | core/src/main/java/com/alibaba/druid/sql/dialect/presto/visitor/PrestoOutputVisitor.java:113-122 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \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 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryOutputVisitor.java"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8ea6ee592a3f6e946264f0281d8b224d474f4e28f517ac75e271e7ed92b5264"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryOutputVisitor.java:271-277 | core/src/main/java/com/alibaba/druid/sql/dialect/presto/visitor/PrestoOutputVisitor.java:215-221 \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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060SQLAtTimeZoneExpr\u0060 in one and \u0060PrestoDateTimeExpr\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":"core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryOutputVisitor.java"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb04243ab5e35cd3ebd3bab177385a9904b42168acc7124ddc193ea2a81982d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/ast/ClickhouseColumnCodec.java:20-28 | core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/ast/ClickhouseColumnTTL.java:22-30 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/ast/ClickhouseColumnCodec.java"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"2578fa94b4ed15f752f9f3f657d760170679b24e017c33120eb285ffb81ebec1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmExprParser.java:57-62 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarExprParser.java:68-73 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGExprParser.java:78-83 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmExprParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarExprParser.java\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 203 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmExprParser.java"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"574faac8689ad1dd0c2e641db47170cd97dd5ec484f4500021462a705d354262"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmSelectParser.java:230-237 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarSelectParser.java:251-258 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSelectParser.java:256-263 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmSelectParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarSelectParser.java\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 109 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmSelectParser.java"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"2483ee3604b3695c2340021dcc31b4cabbaa9022503931e15ce230d80cdf54e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/hive/visitor/HiveSchemaStatVisitor.java:73-79 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlSchemaStatVisitor.java:46-53 \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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060HiveMultiInsertStatement\u0060 in one and \u0060SQLSelectStatement\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":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/visitor/HiveSchemaStatVisitor.java"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fed5e6b6784aa8962f5801edb816fc145375510617ac1e2225bcf35696dd7e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/impala/visitor/ImpalaOutputVisitor.java:150-158 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:3987-3995 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/impala/visitor/ImpalaOutputVisitor.java"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"7933492152d622176b4fd6d5b7247f13c6f10549349417a054b061cee030c5b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlShowDatabaseStatusStatement.java:75-83 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlShowTopologyStatement.java:71-79 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlShowDatabaseStatusStatement.java"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6b8c156db4c3686deab97d296c67841d4988142816058160e6fefaeafa37d87"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MysqlCreateFullTextCharFilterStatement.java:24-31 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MysqlCreateFullTextTokenFilterStatement.java:23-30 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MysqlCreateFullTextTokenizerStatement.java:24-31 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MysqlCreateFullTextCharFilterStatement.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MysqlCreateFullTextTokenFilterStatement.java\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 38 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MysqlCreateFullTextCharFilterStatement.java"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"bda0b34df2dee703302f4869e1628a50a3a18ce13380f0a637aa4e3ea72e8bf5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MysqlCreateFullTextCharFilterStatement.java:59-63 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MysqlCreateFullTextTokenFilterStatement.java:58-62 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MysqlCreateFullTextTokenizerStatement.java:67-71 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MysqlCreateFullTextCharFilterStatement.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MysqlCreateFullTextTokenFilterStatement.java\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 38 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MysqlCreateFullTextCharFilterStatement.java"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"a31d65b82349fd643757ebb9087c22c93ccd20901a755598e0de793a54aa3661"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java:382-387 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGExprParser.java:220-225 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"c67446cc969dde0fe171d1569ca9ccc6a9b8e6d498a105addbbfdee15bb684e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectIntoParser.java:335-340 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectParser.java:876-881 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectIntoParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectParser.java\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 45 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectIntoParser.java"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"577813e2043340d8c6074325892227895886adf59252605fa2b6d5fa9d129760"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:4524-4533 | core/src/main/java/com/alibaba/druid/sql/dialect/presto/parser/PrestoStatementParser.java:509-518 \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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":4524}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fffdd671f2b80ac9fcb56c1fdc8daaaca42311374ee0055e90d8e349e937557"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:8817-8822 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:4045-4052 \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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":8817}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee6a3b2a0b8d86930878fb1d5437665a24c6c37fbf116fb39edef2a1a2418ddb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:2980-2986 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:10395-10401 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:11871-11878 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060MySqlRenameSequenceStatement\u0060 in one and \u0060SQLAlterTableRenameIndex\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":2980}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e9469a8068832839082cb9bb13e54fdb193c25d58b075a28453a4ce83e0d265"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleSelectJoin.java:40-46 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleSelectTableReference.java:70-76 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleSelectJoin.java"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"b94d4930c3568cf1ba6af2ba2d5a7f91e2ff8d0bcf1f9145aba83018283da650"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java:759-768 | core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java:737-746 \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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java"},"region":{"startLine":759}}}],"partialFingerprints":{"codehealthFindingId/v1":"0542a0fe0a9afce92eb9004439b167e93f907348668b87e8b628cb8456709a60"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:66-72 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:814-820 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:1194-1200 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 1096 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"90bcafcfea4fe044195bdfae6f5cb09dca86063a37824ea89187108d339e0908"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 6): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:445-453 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:455-463 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:2038-2046 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:2049-2057 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:2531-2539 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:2542-2550 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 1096 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060CheckOption\u0060 in one and \u0060ReadOnly\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b8ecfe28da9f66974a91a50ca4476e4042ad98a623a1f26a2d40d003828e8c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:546-559 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:2063-2076 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:2556-2569 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 1096 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7959ee0efd55f7d7aee7dbdc0591d84cb869ea07865ca7637bc041afe494eb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 6): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:738-744 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:747-753 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:861-867 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:869-875 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:1241-1247 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:1249-1255 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 1096 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060OracleBinaryFloatExpr\u0060 in one and \u0060OracleBinaryDoubleExpr\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":738}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f9b991f1ffb25bf38b04cf12a89c233ca8dd51dfd4766e87b7791789dbf6808"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:763-770 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:885-892 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:1265-1272 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 1096 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060ReturnRowsClause\u0060 in one and \u0060ModelClause.ReturnRowsClause\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":763}}}],"partialFingerprints":{"codehealthFindingId/v1":"20eb834a452051def4efd7ac954220bc6668da1722fcbe4daa143eda5db91b03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:838-843 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:934-939 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:1314-1319 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 1096 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060QueryPartitionClause\u0060 in one and \u0060ModelClause.QueryPartitionClause\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":838}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa46fb5ca8c678e95fc311226597ef0856085d92247f0d76fe9a910d24b48525"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:846-853 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:942-949 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:1322-1329 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 1096 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060ModelColumn\u0060 in one and \u0060ModelClause.ModelColumn\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":846}}}],"partialFingerprints":{"codehealthFindingId/v1":"703a01553e2eabb9ba5ffe37a2ed9b8c569b728e3e189a132446a826a2ada81c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:905-911 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:1001-1007 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:1381-1387 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 1096 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060CellAssignment\u0060 in one and \u0060ModelClause.CellAssignment\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":905}}}],"partialFingerprints":{"codehealthFindingId/v1":"eea4c37f9cd0047f32ff610e588d4cd5dae513496380643c0281aadd66751f60"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:914-921 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:1036-1043 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:1416-1423 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 1096 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":914}}}],"partialFingerprints":{"codehealthFindingId/v1":"79666b7af31dce4a9ec663d9aba7d737117c7572991ea90f0e658090cbdd46d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:1527-1532 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:1297-1302 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:1674-1679 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 1096 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":1527}}}],"partialFingerprints":{"codehealthFindingId/v1":"f28797c76814c44d922cdb345da32cefd3a18743f6c13c6e7b953d797f61d1d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:2749-2754 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:1655-1660 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:2032-2037 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 1096 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":2749}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f4364a61fc5f1f1df89b71fc7d1a068ef4120b815164ad0873abdf59f8e8a0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/ast/stmt/OscarAlterSchemaStatement.java:59-66 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/ast/stmt/PGAlterSchemaStatement.java:61-68 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060visitor\u0060 to \u0060OscarASTVisitor\u0060 in one and \u0060PGASTVisitor\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/ast/stmt/OscarAlterSchemaStatement.java"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5e9e53df977167188c05bcfe99f207e49fa0b2117803e8410a421212b1018bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/ast/stmt/OscarFunctionTableSource.java:50-56 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/ast/stmt/PGFunctionTableSource.java:50-56 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/ast/stmt/OscarFunctionTableSource.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/ast/stmt/PGFunctionTableSource.java\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060visitor\u0060 to \u0060OscarASTVisitor\u0060 in one and \u0060PGASTVisitor\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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/ast/stmt/OscarFunctionTableSource.java"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"4713e884601d49d3b6f7aaa443aec2bb8e4affa3da52af1dfc94fce94e5d977c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/ast/stmt/OscarInsertStatement.java:149-156 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/ast/stmt/PGInsertStatement.java:147-154 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/ast/stmt/OscarInsertStatement.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/ast/stmt/PGInsertStatement.java\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/ast/stmt/OscarInsertStatement.java"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb76f3baec6d8241b4a8a3eea6719641a3e5bc473760710fda23f472fd1db42c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarExprParser.java:75-85 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGExprParser.java:85-95 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarExprParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGExprParser.java\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 294 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarExprParser.java"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"78d7dfd0c38707d5aaade1e291036686c37527f7b55d291de90f4ac5f434e9b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarLexer.java:190-203 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGLexer.java:194-207 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarLexer.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGLexer.java\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 217 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarLexer.java"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cdcbeec51d87592e0848b88afc16a965b3a0ef10ced271d4f05d714f695b5d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:2167-2172 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:2660-2665 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 99 separate duplicated blocks between them, totalling at least 1839 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":2167}}}],"partialFingerprints":{"codehealthFindingId/v1":"100c6a93e772cb5e9d3cca7fb80c089e3941d1487984ce5a37a74cb7086e69b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java:2378-2383 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:2871-2876 | core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/visitor/SQLServerOutputVisitor.java:545-550 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java\u0060 as WHOLE FILES: this scan already matched 99 separate duplicated blocks between them, totalling at least 1839 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":2378}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bca01a355aa2f7ecd8495adbd3ade4cc0d4568c87f13861ce1c7183dd7b18dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 6): core/src/main/java/com/alibaba/druid/sql/dialect/presto/ast/stmt/PrestoAlterFunctionStatement.java:46-52 | core/src/main/java/com/alibaba/druid/sql/dialect/presto/ast/stmt/PrestoAlterSchemaStatement.java:31-37 | core/src/main/java/com/alibaba/druid/sql/dialect/presto/ast/stmt/PrestoDeallocatePrepareStatement.java:39-45 | core/src/main/java/com/alibaba/druid/sql/dialect/presto/ast/stmt/PrestoExecuteStatement.java:50-56 | core/src/main/java/com/alibaba/druid/sql/dialect/presto/ast/stmt/PrestoPrepareStatement.java:68-74 | core/src/main/java/com/alibaba/druid/sql/dialect/presto/ast/stmt/PrestoSelectStatement.java:40-46 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/presto/ast/stmt/PrestoDeallocatePrepareStatement.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/presto/ast/stmt/PrestoExecuteStatement.java\u0060 as WHOLE FILES: 88% 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 1 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":"core/src/main/java/com/alibaba/druid/sql/dialect/presto/ast/stmt/PrestoAlterFunctionStatement.java"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"dddb094e636e143f1bd749bd9612bee40a42ed780474b0433402c148daed625b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/ast/stmt/SQLServerInsertStatement.java:91-97 | core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/ast/stmt/SQLServerUpdateStatement.java:38-44 \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":"core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/ast/stmt/SQLServerInsertStatement.java"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"159827086f8818c58c1dc758f6faebfc5c43131bf857a3dee2226b2435c9ef00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): core/src/main/java/com/alibaba/druid/stat/DruidStatService.java:346-351 | druid-admin/src/main/java/com/alibaba/druid/admin/service/MonitorStatService.java:228-233 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/stat/DruidStatService.java\u0060 and \u0060druid-admin/src/main/java/com/alibaba/druid/admin/service/MonitorStatService.java\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 108 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/stat/DruidStatService.java"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bea5c3b1b1eb6fee5025ad31a49ada08dd1aba09b65c9077abd4073af363a18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): core/src/main/java/com/alibaba/druid/support/http/AbstractWebStatImpl.java:228-236 | core/src/main/java/com/alibaba/druid/support/jakarta/AbstractWebStatImpl.java:227-235 \u2014 \u0060core/src/main/java/com/alibaba/druid/support/http/AbstractWebStatImpl.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/support/jakarta/AbstractWebStatImpl.java\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 5 separate duplicated blocks between them, totalling at least 117 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/support/http/AbstractWebStatImpl.java"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"71c0992b8f7ed73fe1a76315a670169991ceae33db071a9b7a65ecfd60fef2ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): core/src/main/java/com/alibaba/druid/support/http/ResourceServlet.java:139-147 | core/src/main/java/com/alibaba/druid/support/jakarta/ResourceServlet.java:126-134 \u2014 \u0060core/src/main/java/com/alibaba/druid/support/http/ResourceServlet.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/support/jakarta/ResourceServlet.java\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 12 separate duplicated blocks between them, totalling at least 238 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Note first that the copies are not typed on the same thing: \u0060HttpServletRequest\u0060 names \u0060jakarta.servlet.http.HttpServletRequest\u0060 in one and \u0060javax.servlet.http.HttpServletRequest\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, 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":"core/src/main/java/com/alibaba/druid/support/http/ResourceServlet.java"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"acb49cbe6b6f5bdba97af697faa83a0d1189cdf87f208ed31430a4245f4bbd4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): core/src/main/java/com/alibaba/druid/support/http/ResourceServlet.java:237-249 | core/src/main/java/com/alibaba/druid/support/jakarta/ResourceServlet.java:224-236 \u2014 \u0060core/src/main/java/com/alibaba/druid/support/http/ResourceServlet.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/support/jakarta/ResourceServlet.java\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 12 separate duplicated blocks between them, totalling at least 238 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: \u0060HttpServletRequest\u0060 names \u0060jakarta.servlet.http.HttpServletRequest\u0060 in one and \u0060javax.servlet.http.HttpServletRequest\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, 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":"core/src/main/java/com/alibaba/druid/support/http/ResourceServlet.java"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"07dde9e0c6a2b181482793a379f25c4b7c0432fbb22142ca963a858fb7a68426"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): core/src/main/java/com/alibaba/druid/support/http/StatViewServlet.java:151-157 | core/src/main/java/com/alibaba/druid/support/jakarta/StatViewServlet.java:151-157 \u2014 \u0060core/src/main/java/com/alibaba/druid/support/http/StatViewServlet.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/support/jakarta/StatViewServlet.java\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 7 separate duplicated blocks between them, totalling at least 136 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/support/http/StatViewServlet.java"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca9f9ec61300a8d994bf8500709d8ca3c4ffd55be8ee6275365de0fbd44d17ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): core/src/main/java/com/alibaba/druid/support/http/WebStatFilter.java:288-294 | core/src/main/java/com/alibaba/druid/support/jakarta/WebStatFilter.java:287-293 \u2014 \u0060core/src/main/java/com/alibaba/druid/support/http/WebStatFilter.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/support/jakarta/WebStatFilter.java\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 7 separate duplicated blocks between them, totalling at least 261 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/support/http/WebStatFilter.java"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"50c21eecff01976eee48c299c5dba5b13d95875a8bb81b6fefee082fe5a12257"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): core/src/main/java/com/alibaba/druid/wall/spi/DB2WallVisitor.java:29-39 | core/src/main/java/com/alibaba/druid/wall/spi/OracleWallVisitor.java:54-64 | core/src/main/java/com/alibaba/druid/wall/spi/PGWallVisitor.java:41-51 \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 all 3 call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/wall/spi/DB2WallVisitor.java"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"47792925b29eaaf9efaff441bf91f5596862628a7571471252bc66f580e2be4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 11): core/src/main/java/com/alibaba/druid/proxy/jdbc/CallableStatementProxyImpl.java:129-134 | core/src/main/java/com/alibaba/druid/proxy/jdbc/CallableStatementProxyImpl.java:185-190 | core/src/main/java/com/alibaba/druid/proxy/jdbc/CallableStatementProxyImpl.java:225-230 | core/src/main/java/com/alibaba/druid/proxy/jdbc/CallableStatementProxyImpl.java:233-238 | core/src/main/java/com/alibaba/druid/proxy/jdbc/CallableStatementProxyImpl.java:241-246 | core/src/main/java/com/alibaba/druid/proxy/jdbc/CallableStatementProxyImpl.java:572-577 | core/src/main/java/com/alibaba/druid/proxy/jdbc/CallableStatementProxyImpl.java:612-617 | core/src/main/java/com/alibaba/druid/proxy/jdbc/CallableStatementProxyImpl.java:620-625 | core/src/main/java/com/alibaba/druid/proxy/jdbc/CallableStatementProxyImpl.java:628-633 | core/src/main/java/com/alibaba/druid/proxy/jdbc/ResultSetProxyImpl.java:235-240 | core/src/main/java/com/alibaba/druid/proxy/jdbc/ResultSetProxyImpl.java:243-248 \u2014 there are 11 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 11 sites; resolving a subset leaves the remainder to drift apart. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/proxy/jdbc/CallableStatementProxyImpl.java"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"02ad5bf37f5526407fe0d442c976ce5c8d6b2fbfb68efcaaaad03a183f81a81f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): core/src/main/java/com/alibaba/druid/proxy/jdbc/CallableStatementProxyImpl.java:137-142 | core/src/main/java/com/alibaba/druid/proxy/jdbc/CallableStatementProxyImpl.java:524-529 | core/src/main/java/com/alibaba/druid/proxy/jdbc/ResultSetProxyImpl.java:315-320 | core/src/main/java/com/alibaba/druid/proxy/jdbc/ResultSetProxyImpl.java:323-328 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/proxy/jdbc/CallableStatementProxyImpl.java"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"0af1b49ebe3add8109419df8b7c4475460a88576175208f501d9734653b381d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/SQLOrderBy.java:123-135 | core/src/main/java/com/alibaba/druid/sql/ast/SQLZOrderBy.java:123-135 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/ast/SQLOrderBy.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/ast/SQLZOrderBy.java\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 31 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/SQLOrderBy.java"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"38f4ec93f2ee968e5cd0bb09de33c7d864089179599bb1723eb4b76e7ca93021"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/SQLParameter.java:97-104 | core/src/main/java/com/alibaba/druid/sql/ast/SQLStructDataType.java:141-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":"core/src/main/java/com/alibaba/druid/sql/ast/SQLParameter.java"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c5b3294fef5bef6ad5491f82c0bcbbc47d64c92fb190a6049f5b4512b2e452c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/SQLPartitionByValue.java:32-44 | core/src/main/java/com/alibaba/druid/sql/ast/SQLRecordDataType.java:36-47 \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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/ast/SQLPartitionByValue.java"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e294d4d2896f7a01dec8a116332fe84dab84a2955ae4b27d9d8831688626aa9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/SQLSubPartitionByRange.java:40-50 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLListExpr.java:99-107 \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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/ast/SQLSubPartitionByRange.java"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"88a8784331214d39d337f5dc91d3fdcedc94f06253d4f78043d9de56a25efc74"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLAtTimeZoneExpr.java:52-64 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/expr/OracleDatetimeExpr.java:63-75 \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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLAtTimeZoneExpr.java"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a05ae000bff95b9c748ea8006db986193378bb889c26b0ee600a2f5e34b0663"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLDecimalExpr.java:101-108 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTinyIntExpr.java:104-111 \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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLDecimalExpr.java"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"66ddbbc690c1527886e45339a53f6ef35a14c3ee7cc71eb699b27831ad2feaec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLDoubleExpr.java:92-99 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLFloatExpr.java:92-99 \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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLDoubleExpr.java"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"124009bd8498782b37fee9e43e7975eaf4813feed1956402d72c829d2c7ff47d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 5): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLGroupingSetExpr.java:123-132 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLListExpr.java:114-123 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDropUserStatement.java:80-90 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLInsertInto.java:82-92 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLInsertStatement.java:102-112 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 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 5 times. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDropUserStatement.java:76\u0060 calls \u0060getChildren\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLGroupingSetExpr.java:122\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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLGroupingSetExpr.java"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec07af3b45afadd0140d18d0f7b0ea4e0104991c81cc165290c99d19dae5a238"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLSmallIntExpr.java:36-42 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTinyIntExpr.java:36-42 \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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLSmallIntExpr.java"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"e91861ec94d6a00422b9fd194cc461e9cb89da15cf9094db674a96c051d83872"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableStatement.java:205-211 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlCreateTableStatement.java:171-177 | core/src/main/java/com/alibaba/druid/sql/dialect/presto/ast/PrestoDateTimeExpr.java:14-20 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \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 3 times. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060visitor\u0060 to \u0060SQLASTVisitor\u0060 in one and \u0060MySqlASTVisitor\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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableStatement.java"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"53512cbda9bd034bff54b22ec76e25370687b87243f6425bbeeae1ed075798c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLBlockStatement.java:169-178 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/expr/OracleAnalytic.java:95-104 \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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060target\u0060 to \u0060SQLStatement\u0060 in one and \u0060SQLExpr\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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLBlockStatement.java"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"daaed340feca1e2f860a2b3a1a27bfb5720db9e93e8eca963104cb3e76a00d3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSubqueryTableSource.java:82-90 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLWithSubqueryClause.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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSubqueryTableSource.java"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"f500cb442189d8ab9afda67651c92a9f25be8f7db95f9e6f90effb0b4223860e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLUnionQueryTableSource.java:46-53 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLValuesTableSource.java:67-74 \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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLUnionQueryTableSource.java"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b992314080bcdf9bb37f711a13b2e9593981179c1378ec54366c484ad75fa23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/builder/impl/SQLDeleteBuilderImpl.java:78-83 | core/src/main/java/com/alibaba/druid/sql/builder/impl/SQLUpdateBuilderImpl.java:81-86 \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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/builder/impl/SQLDeleteBuilderImpl.java"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"99f73d12737ac5af6f82be4cb26d1d4f59e95435e42c76cff0144afbd2128ec2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): core/src/main/java/com/alibaba/druid/sql/builder/impl/SQLDeleteBuilderImpl.java:86-93 | core/src/main/java/com/alibaba/druid/sql/builder/impl/SQLSelectBuilderImpl.java:159-166 | core/src/main/java/com/alibaba/druid/sql/builder/impl/SQLSelectBuilderImpl.java:169-176 | core/src/main/java/com/alibaba/druid/sql/builder/impl/SQLUpdateBuilderImpl.java:89-96 \u2014 there are 4 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/builder/impl/SQLDeleteBuilderImpl.java"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"acf445ae856dea673bb547c2141458fff3e684040a8381e6f6a8cea62f246d5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): core/src/main/java/com/alibaba/druid/sql/builder/impl/SQLDeleteBuilderImpl.java:96-104 | core/src/main/java/com/alibaba/druid/sql/builder/impl/SQLDeleteBuilderImpl.java:107-115 | core/src/main/java/com/alibaba/druid/sql/builder/impl/SQLSelectBuilderImpl.java:187-196 | core/src/main/java/com/alibaba/druid/sql/builder/impl/SQLUpdateBuilderImpl.java:99-107 | core/src/main/java/com/alibaba/druid/sql/builder/impl/SQLUpdateBuilderImpl.java:110-118 \u2014 there are 5 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/builder/impl/SQLDeleteBuilderImpl.java"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8a9ebd7cfa915d2a631bcbf58f69efbd477a76913cc1f948c522691cfb39ff6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/ast/BigQueryCreateTableStatement.java:24-31 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlSubPartitionByValue.java:61-69 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060BigQueryCreateTableStatement\u0060 in one and \u0060MySqlSubPartitionByValue\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":"core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/ast/BigQueryCreateTableStatement.java"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"78d4d8691a9b30f363dbe3a0fc6f70de6a5c4459a50923c15c55500e6cefc782"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/ast/ClickhouseColumnCodec.java:31-36 | core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/ast/ClickhouseColumnTTL.java:32-37 \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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/ast/ClickhouseColumnCodec.java"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"04af032288b9bd1dbceff9685e002599e906e461a2fe4e62fbb561b6ef71cc09"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/visitor/CKOutputVisitor.java:386-394 | core/src/main/java/com/alibaba/druid/sql/dialect/starrocks/visitor/StarRocksOutputVisitor.java:75-83 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/starrocks/visitor/StarRocksOutputVisitor.java:85\u0060 calls \u0060visit\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/visitor/CKOutputVisitor.java:396\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":"core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/visitor/CKOutputVisitor.java"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"110bed68ddbc1ff4147be6968532c9d5c2391582655c0c355070644b6f118ee3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmLexer.java:87-94 | core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarLexer.java:90-97 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmLexer.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarLexer.java\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 89 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmLexer.java"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3c1ed7b4fdf914c042c39ae53851bb1b5acb9e3d0bea3a5dec1a845878aef59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/doris/parser/DorisLexer.java:56-63 | core/src/main/java/com/alibaba/druid/sql/dialect/teradata/parser/TDLexer.java:31-38 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/doris/parser/DorisLexer.java"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"19cf357a9a2349e78344efb52915dcfe94b87c0d4f4606253836e0c1d8ceec60"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/expr/MySqlCharExpr.java:96-103 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/ast/expr/PGCharExpr.java:16-23 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/expr/MySqlCharExpr.java"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"90fc60b0278978cfe4fe97d8cfb8e7f157e146242dd0400a45e6428d75c90528"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlPartitionByKey.java:47-55 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlSubPartitionByKey.java:60-68 \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 \u0060x\u0060 to \u0060MySqlPartitionByKey\u0060 in one and \u0060MySqlSubPartitionByKey\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlPartitionByKey.java"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e3466d2bc56d0ef0e876c2185f9948e1cd6681c4077320e4ec11a2d143d96b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlPrepareStatement.java:63-72 | core/src/main/java/com/alibaba/druid/sql/dialect/spark/ast/stmt/SparkCacheTableStatement.java:120-129 | core/src/main/java/com/alibaba/druid/sql/dialect/spark/ast/stmt/SparkCreateScanStatement.java:113-122 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \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 3 times. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlPrepareStatement.java"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"cefe0daaa8e6f2ee28e8ba6dc840358f680285fb087dc487eaeec300e0edea7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java:962-967 | core/src/main/java/com/alibaba/druid/sql/parser/CharTypes.java:72-77 \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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java"},"region":{"startLine":962}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7aa851fc1a450b2ffde972b5214c3ed6c15a1b46cfa48afed5fb65a4a9ad1b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:999-1006 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java:2049-2056 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:5314-5321 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:10234-10243 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:12372-12379 \u2014 there are 5 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060MySqlShowMigrateTaskStatusStatement\u0060 in one and \u0060SQLSavePointStatement\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":999}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ab9893d88938a8e68bbb020ed990567ec06c64d308cfe3cc1199a54d715c3b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 11): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java:2458-2465 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:5253-5261 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:5264-5272 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:5478-5486 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:6174-6181 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:6472-6479 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:6486-6494 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:6801-6811 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:9273-9280 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:11193-11200 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:11203-11210 \u2014 there are 11 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 11 sites; resolving a subset leaves the remainder to drift apart. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060MySqlShowCreateDatabaseStatement\u0060 in one and \u0060SQLDropServerStatement\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":2458}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5f963f782a215d67bc8a0c7a97b40929e9d3821aa3dc70a72b9468e969767ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleCheck.java:40-49 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleUnique.java:40-48 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleCheck.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleUnique.java\u0060 as WHOLE FILES: 88% 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleCheck.java"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"43d08ad42b7493b47700c47760d9aff42de605312a38096ee7a76886d6c50e43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleSelectJoin.java:114-122 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleSelectJoin.java:124-132 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleSelectQueryBlock.java:122-130 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleSelectJoin.java"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6fb40236770b117834a48a90038d030413f7ff0f315ede78cae55cd2b8d08e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java:406-415 | core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java:904-913 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 578 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff69e3089895a711da9a4275dd8861371334571d375edc17f809485f1167ac5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGLexer.java:94-101 | core/src/main/java/com/alibaba/druid/sql/dialect/starrocks/parser/StarRocksLexer.java:57-65 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGLexer.java"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"515e64b03172e028c8db23ea721a3fbf5b6b2df0344661d18848c705a8ad057b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java:470-477 | core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java:10813-10820 \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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060PGExtractExpr\u0060 in one and \u0060SQLExtractExpr\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":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"62183f1a91a17a01fb1dfc781e17667561cee636fb401f445aa396279ff9d872"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): core/src/main/java/com/alibaba/druid/sql/parser/SQLParserFeature.java:79-91 | core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitor.java:50-62 | core/src/main/java/com/alibaba/druid/sql/visitor/VisitorFeature.java:66-78 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \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 3 times. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060features\u0060 to \u0060SQLParserFeature...\u0060 in one and \u0060VisitorFeature...\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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLParserFeature.java"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4f3ef594b2cbc87d274ae0e3b082e57ce95cc954cfac993df89b6f2358c481d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): core/src/main/java/com/alibaba/druid/util/DruidWebUtils.java:156-164 | core/src/main/java/com/alibaba/druid/util/Utils.java:272-280 \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. The matched lines also transfer control out of the body holding them, 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":"core/src/main/java/com/alibaba/druid/util/DruidWebUtils.java"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"038eb95180eb7b5a97e2f5c47b7f6bd9af519e8ce599604f03953f8f07bacd35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLBinaryOpExpr.java:171-177 | core/src/main/java/com/alibaba/druid/stat/TableStat.java:291-297 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLBinaryOpExpr.java"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab7ccdbe31bad1a5578086676e6b20eaa3469e9032b704b824d54a3c972299bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLContainsExpr.java:114-120 | core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLInListExpr.java:158-164 \u2014 before extracting anything, compare \u0060core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLContainsExpr.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLInListExpr.java\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLContainsExpr.java"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"31557648c71ccb141090d0fb6b4d319037301f25ea8661dfbc40c096badd6361"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateTableStatement.java:1186-1190 | core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateTableStatement.java:1272-1276 \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 \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateTableStatement.java:1186\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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateTableStatement.java"},"region":{"startLine":1186}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b304af86203188309449eac3ddbf3828e4edfbd4f7ccf852bc91ba6e56ed1c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLUpdateStatement.java:406-412 | core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleUpdateStatement.java:165-171 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleUpdateStatement.java:172\u0060 calls \u0060hashCode\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLUpdateStatement.java:413\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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLUpdateStatement.java"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"e61e237c8e626970447befae3efe6692c29f6dc741eb8b1eb6580e28b8199d8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryExprParser.java:383-387 | core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveExprParser.java:399-403 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: 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":"core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryExprParser.java"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"037adf48ac474802151137ef1a13d0ff502af91ebd0e055b62120d8be5d121c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryLexer.java:175-183 | core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryLexer.java:342-350 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryLexer.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryLexer.java"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"25504d33b3b50028a66b5aed0456e5247950169d6fdf02778b5969361bd7accc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:7826-7831 | core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:7855-7860 \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 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java:7826\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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":7826}}}],"partialFingerprints":{"codehealthFindingId/v1":"81f4ec714154f7d15aade39585c6aa3a9a3b3a05dbb109bfc6201b285cf529ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java:1334-1339 | core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java:661-666 \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 \u0060core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java:1334\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java:659\u0060 calls \u0060getRight\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java:1332\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":"core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java"},"region":{"startLine":1334}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c130d9df0ad86f77adb94331625e6891d7edd2193895549290c1798107ea455"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): core/src/main/java/com/alibaba/druid/stat/DruidStatService.java:286-290 | core/src/main/java/com/alibaba/druid/stat/DruidStatService.java:292-296 \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":"core/src/main/java/com/alibaba/druid/stat/DruidStatService.java"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb7f61613799547bdfb9dbd5640fc0ae2d36bb7539b079be4c795c5477093ecb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): core/src/main/java/com/alibaba/druid/stat/JdbcDataSourceStat.java:258-262 | core/src/main/java/com/alibaba/druid/stat/JdbcStatManager.java:280-284 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060core/src/main/java/com/alibaba/druid/stat/JdbcDataSourceStat.java:257\u0060 calls \u0060getSqlStatMap\u0060 and \u0060core/src/main/java/com/alibaba/druid/stat/JdbcStatManager.java:279\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/stat/JdbcDataSourceStat.java"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d9f61e98146357a3c0b61ba223f6a2f40ecf2ed7388efa893df139efbfacf51"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): core/src/main/java/com/alibaba/druid/stat/JdbcSqlStat.java:444-449 | core/src/main/java/com/alibaba/druid/wall/WallTableStat.java:377-382 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/stat/JdbcSqlStat.java"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e7c474333464f78bc026c230c3cbfb8398b3f7a9c4bfbd3d17f3bf1302511bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): druid-demo-petclinic/src/main/java/org/springframework/samples/petclinic/owner/OwnerController.java:116-124 | druid-demo-petclinic/src/main/java/org/springframework/samples/petclinic/vet/VetController.java:55-62 \u2014 These two members are one piece of code written twice and then edited apart: 8 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":"druid-demo-petclinic/src/main/java/org/springframework/samples/petclinic/owner/OwnerController.java"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"02bfc022100b72ef0c542ad6208b7f3976c8925d4f8cd098e624acf6e25bf8cb"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: druid: druid: abstractness 0.14, instability 0.00, distance 0.86 \u2014 zone of pain \u2014 concrete and depended on by 5 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0a5519d171660b56637af60cb5d713a9c387f424b9666acb428c6a196f6caec3"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: DruidDataSource (LCOM4 9): DruidDataSource\u0027s methods fall into 9 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 9 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":"core/src/main/java/com/alibaba/druid/pool/DruidDataSource.java"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3b207152e82c83013f8049e40debd752c70ff425e9d4d23957b3103cdd0fe19"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: PreparedStatementProxyImpl (LCOM4 9): PreparedStatementProxyImpl\u0027s methods fall into 9 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 9 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":"core/src/main/java/com/alibaba/druid/proxy/jdbc/PreparedStatementProxyImpl.java"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"73be9c7ee981fa253817e7e3f75754d6ba5cb61aa495ea58856aebd76b2ce914"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ResultSetProxyImpl (LCOM4 7): ResultSetProxyImpl\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":"core/src/main/java/com/alibaba/druid/proxy/jdbc/ResultSetProxyImpl.java"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"98617b958e8ac7308ac2043b650facb5572e9ebec7f231372d6598a523dc1296"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: SQLCreateTableStatement (LCOM4 7): SQLCreateTableStatement\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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateTableStatement.java"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c39eb3518c4cafa62fb651a427716f72fba87f293131cad6f2a3ef46268265a"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: SQLCreateDatabaseStatement (LCOM4 6): SQLCreateDatabaseStatement\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \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 6 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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateDatabaseStatement.java"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"39e012e913589c03923c51f642299477855dca9c670273c6f11aa03f6d37c72d"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: OscarInsertStatement (LCOM4 6): OscarInsertStatement\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \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 6 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/ast/stmt/OscarInsertStatement.java"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"88bcf2a3af7cb43967c921ae00c2c193f5f5365ac776887ffaad59a3ae8e7925"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: PGInsertStatement (LCOM4 5): PGInsertStatement\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \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 5 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":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/ast/stmt/PGInsertStatement.java"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ae7d34058acbe9b8b74da577e1b7dee4dede52fc49a820f4543ae52226ca9ca"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Log4j2Filter (LCOM4 4): Log4j2Filter\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \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 4 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":"core/src/main/java/com/alibaba/druid/filter/logging/Log4j2Filter.java"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ab71bc4f69c9166e3a92a47cd13b937955d2d845e020916a2f57fc0054806ef"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Log4jFilter (LCOM4 4): Log4jFilter\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \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 4 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":"core/src/main/java/com/alibaba/druid/filter/logging/Log4jFilter.java"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"7958f16ab9fbacf062ea8256b3865b9720e17ca2d653fbc69300ea26d030e660"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: SQLShowOutlinesStatement (LCOM4 4): SQLShowOutlinesStatement\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \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 4 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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLShowOutlinesStatement.java"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"f080fbd51d4d4802796c661c8493176b1afd03018b6552b1c19f7d59bb40f278"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: SQLObjectImpl (LCOM4 4): SQLObjectImpl\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \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 4 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":"core/src/main/java/com/alibaba/druid/sql/ast/SQLObjectImpl.java"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4ce94f4e4266d94c6b04d655c802587daf6e4df75c2f13d06d82d4ba2163970"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: CKCreateTableStatement (LCOM4 4): CKCreateTableStatement\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \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 4 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":"core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/ast/CKCreateTableStatement.java"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1cc6d7f390d016c09335e490b9357d3edf7f311eb3c42a7b160ae9af0b41881"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: GaussDbCreateTableStatement (LCOM4 4): GaussDbCreateTableStatement\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \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 4 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":"core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/ast/stmt/GaussDbCreateTableStatement.java"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a889a36d45620f3278153cd8eb841823cdf740c5da08c476603cd2ae10ff68e"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: JdbcStatManager (LCOM4 4): JdbcStatManager\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \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 4 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":"core/src/main/java/com/alibaba/druid/stat/JdbcStatManager.java"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"98e52938ef6881bb5f790137184ebf2dbaccdb812bf7897442e9b3d70b597b53"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_benchmark: 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":"core/src/test/java/com/alibaba/druid/benckmark/pool/druid/DruidCase0.java"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4c60212977978247f605b045132b2e499097b9bfc4c70f1a1ce45ed7bb6d162"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_druid: 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":"core/src/test/java/com/alibaba/druid/benckmark/pool/Case0.java"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e28a9fc6c99ced6deafa890e53a7123a006862f706ec220c54a960ce1d603d5"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_bonecp: 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":"core/src/test/java/com/alibaba/druid/benckmark/pool/Case1.java"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe2409a00d9f69b080174dde898d589c22e9fd99aca831821bd77402e0a49d18"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_c3p0: 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":"core/src/test/java/com/alibaba/druid/benckmark/pool/Case1.java"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"57892211497a9efe29433846aecfe3f4397aae2161a966bd52d0ab02b15dd532"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_dbcp: 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":"core/src/test/java/com/alibaba/druid/benckmark/pool/Case1.java"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f8fafadd025f60cffc56c0bcff804f2c4cbf57ab577475157393fbe80082899"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_druid: 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":"core/src/test/java/com/alibaba/druid/benckmark/pool/Case1.java"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6ef80d4cdce78ef5c23a70a3611fd78105da9df833c98b3f978858ebe044b73"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_tomcat_jdbc: 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":"core/src/test/java/com/alibaba/druid/benckmark/pool/Case1.java"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"45c567f6df4879f76fc0e9a3b075d40a089578b46a7d1515f4904f7b011499f0"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_0: 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":"core/src/test/java/com/alibaba/druid/benckmark/pool/Case2.java"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d8a42ce00205db73fc698bdab585467d562ad80356a06c02650dd619fc280e4"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_1: 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":"core/src/test/java/com/alibaba/druid/benckmark/pool/Case2.java"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb6795e0c150e7e06493e60c9c684fc20ff2c7f25e8705d297a96687146706dd"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_perf: 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":"core/src/test/java/com/alibaba/druid/benckmark/pool/CaseKylin_Oracle.java"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9ce24160bb4ee295a793f2ad6172050096a4de1c9b616a5e99cc36399915866"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_perf: 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":"core/src/test/java/com/alibaba/druid/benckmark/pool/CaseKylin_mysql.java"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"20978541c8255d65e0d884311808cebecf7f99e6f1c0d17473d98cd18433b3ff"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_perf: 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":"core/src/test/java/com/alibaba/druid/benckmark/pool/CaseKylin_mysql_idle_1.java"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c8c3c4485c13e62047ca4e6f92a13b1f424eda0eb4e4cf144164f7e4dac7a87"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_perf: 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":"core/src/test/java/com/alibaba/druid/benckmark/pool/CaseKylin_mysql_idle_2.java"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"b14f87f9d0fede97dde40668d2c6f9d73a416ebdfaf103dd646e9f062dd2687a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_0: 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":"core/src/test/java/com/alibaba/druid/benckmark/pool/Case_Concurrent_50.java"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"4da478efc929db256a19ee9ab5964eaede68918a23dd41ac19507c5752302a96"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_1: 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":"core/src/test/java/com/alibaba/druid/benckmark/pool/Case_Concurrent_50.java"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb23d3ff740f5b3b504bc0bba0133633d39d225306b7558f0c4627635682c7fd"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_0: 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":"core/src/test/java/com/alibaba/druid/benckmark/pool/Oracle_Case0.java"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"e95a85f75818dedf0244fadee8ece91997d6a3b533fd3feba2b384a7441985e7"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_1: 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":"core/src/test/java/com/alibaba/druid/benckmark/pool/Oracle_Case0.java"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"70257362392881cad3c084af7a651e983e029c4c5f5b5b802a2891e4ff90a417"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_2: 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":"core/src/test/java/com/alibaba/druid/benckmark/pool/Oracle_Case0.java"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c04f07ee40770de05ab6ed9a4bc6b02c95a429f4e161ad7c67f6b440cb5365d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_0: 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":"core/src/test/java/com/alibaba/druid/benckmark/pool/Oracle_Case3.java"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d71d2bd79da227a5093ddbfa5f0fe4ca7783210f11f80ff4b3ebf54bdd8ac35"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_1: 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":"core/src/test/java/com/alibaba/druid/benckmark/pool/Oracle_Case3.java"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e75c41a9cd91cc3b2791cdd0d6e20297521967e9c23422ace037fc78b41f425"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_dbcp: 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":"core/src/test/java/com/alibaba/druid/benckmark/pool/Oracle_Case4.java"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"97842de346788345d399268506f29acc9329ab2d2b80f48c60c67e8185bedfa9"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_druid: 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":"core/src/test/java/com/alibaba/druid/benckmark/pool/Oracle_Case4.java"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"1723ce55e23c3ec19bcce0afdb3f2bea76e95663f5f246f8835d2c4d1adc996d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_druid_benchmark: 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":"core/src/test/java/com/alibaba/druid/benckmark/proxy/DruidBenchmarkTest.java"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"e49b5e9518c46d7807d7b2dd173e5beff0c7e0b28973d35139ce3fff844dc798"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_0: 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":"core/src/test/java/com/alibaba/druid/benckmark/proxy/TestAtomicPerformance.java"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8bf3bd4923d5934e3fce67667202114abbc7aec6e8ebb585a4219af7dc3fc2c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_perf: 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":"core/src/test/java/com/alibaba/druid/benckmark/sql/MySqlInsertBenchmark.java"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0d81100938d6f593801ffdc356db9635a08996464f43f4f722b6e1ea9a89b22"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_perf: 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":"core/src/test/java/com/alibaba/druid/benckmark/sql/MySqlInsertBenchmark_2.java"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b5854b8ac147c1bf72d648366d40c4cd28710eec5d1825ca0bca8a41f7d1af1"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_pert: 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":"core/src/test/java/com/alibaba/druid/benckmark/sql/MySqlPerfTest.java"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"109a997b2a66b112a6b77ffc8c565d94aa0ea889dcc4377788915e2c7f05d5f4"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_0: 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":"core/src/test/java/com/alibaba/druid/benckmark/wall/WallBenchmarkTest.java"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e76154b17d3e0c80686258637e490cc45c82c00ac7b6a6f65dc57893c3d7091"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_0: 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":"core/src/test/java/com/alibaba/druid/benckmark/wall/WallBenchmarkTest1.java"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7500e893ad2b81025c60945c9d3bedfa0c42fd246e1019c7fff080af338b522"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_0: 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":"core/src/test/java/com/alibaba/druid/benckmark/wall/WallBenchmarkTest_mysql.java"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"12933eaba4fafb29e0ba540127db598ba0b325cc7364480d86c79e5b19b0a295"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_0: 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":"core/src/test/java/com/alibaba/druid/benckmark/wall/WallBenchmarkTest_mysql_concurrent.java"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"98d5a3b7bae5f7d4399a62ec45927a5e3f2aeab3596f9dd896b08507100c0f4c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_perf_fnv: 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":"core/src/test/java/com/alibaba/druid/benckmark/FnvHashTest.java"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"70bd1709a5ee09156e5225525350e22b7eec978538eab5df1531f5d56a61eb99"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_nullCtxClassLoader: 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":"core/src/test/java/com/alibaba/druid/bvt/bug/Bug_for_wdw1206.java"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"3703a696fa5b46fdcd1757cf33f559ccbb88c5bf02b6e093fe98f2509cc040f7"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_for_issue: 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":"core/src/test/java/com/alibaba/druid/bvt/bug/Issue1935.java"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ba386084a81942cb0f01e4983fe48f6dec3690d1aa3f67b9af128b0fbace9b1"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_for_issue: 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":"core/src/test/java/com/alibaba/druid/bvt/bug/Issue2002.java"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cafa994347fbd9b1d046f3e776d2cd421e11857914eed120ed09251cb537d78"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_for_issue: 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":"core/src/test/java/com/alibaba/druid/bvt/bug/Issue5845.java"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a58991428e60819361654ce3f29f264e70b799789ca83aec1ab325b9bf75ebe"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_for_issue: 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":"core/src/test/java/com/alibaba/druid/bvt/bug/Issue5847.java"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c1e3e60ef225e15cb813a3cf6915adeaf8cb692b5766fff35f9640511d2011d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_for_issue: 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":"core/src/test/java/com/alibaba/druid/bvt/bug/Issue_685.java"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"c01b5b88242fe2eed828cc1b7509d85b55dae0449a2bcbc66f62fd6e0fa3f983"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testNormalInit: 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":"core/src/test/java/com/alibaba/druid/bvt/filter/config/ConfigFilterTest.java"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"86c4d1fc14336c993fce0a2b17d98e5400484229ba640f481f996530a0e24ca8"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_select: 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":"core/src/test/java/com/alibaba/druid/bvt/filter/log/LogFilterTest.java"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"12ef460f49b2e3c86e41fd945aab875f36c6119ae5aed1834e3ebbdbb007f582"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_select: 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":"core/src/test/java/com/alibaba/druid/bvt/filter/log/LogFilterTest2.java"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"55a483e7f3546c6c4cd8b7ef98d2c5cd19f5e9cd83944650951f5a2dee8a0f8e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_select: 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":"core/src/test/java/com/alibaba/druid/bvt/filter/log/LogFilterTest3.java"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e07c83e8f2c9b733e843f659b0d4093426ef7656682b1ecf76402fb65c80bcd"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_select: 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":"core/src/test/java/com/alibaba/druid/bvt/filter/log/LogFilterTest5.java"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3857c7d6ee403534dfec30fc508b08b199b3b4981cf934f24d08839dacf9cc7"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_instance: 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":"core/src/test/java/com/alibaba/druid/bvt/filter/FilterManagerTest.java"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"a77325de2d2055608e1a2968bcd7f50f26aeb5dfa2bca8d3284590b7793c8b14"}},{"ruleId":"D10","level":"error","message":{"text":"No assertions (empty test): test_execute: Test method has an empty body \u2014 it asserts nothing and exercises no code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/test/java/com/alibaba/druid/bvt/filter/ReuseStatFilterTest.java"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"27ce3951261820c495cbfa32b8c7931c7e1736eb34e1152d5c27d3b6032ebca4"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_create: 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":"core/src/test/java/com/alibaba/druid/bvt/hibernate/HibernateCRUDTest.java"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"27c6a7d1c9e7d6072726fd3039999d4e8a83412860d7720693149446b26f61b9"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_transactional_create: 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":"core/src/test/java/com/alibaba/druid/bvt/hibernate/HibernateCRUDTest.java"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"171a86f681df103c88279e615987da97a0c7826be7d8061658dd47d8d6c5aed0"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_log: 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":"core/src/test/java/com/alibaba/druid/bvt/log/LoggerTest.java"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"b391eabb6acfc37b2e8f26928dac26df6827a5770d4548e22cf6615bb2eae44a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_createDataSource: 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":"core/src/test/java/com/alibaba/druid/bvt/pool/basic/DruidDataSourceFactoryTest.java"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"4048ab3d1b563737dfb3700bbcec7019e489ac69e3f4a53080c55ed47ead4f1d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_executeQuery_large: 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":"core/src/test/java/com/alibaba/druid/bvt/pool/basic/PoolableCallableStatementTest.java"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"558786ee8b6a3af8a738e341e856678bd4227271e79679e8aabbb36ba1123a78"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_dupClose: 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":"core/src/test/java/com/alibaba/druid/bvt/pool/basic/PoolableStatementTest2.java"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"79b21f3016e3d24f02d6c61c53c01f4cc826e83b7c34e38036d6dc43422cca03"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_executeUpdate: 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":"core/src/test/java/com/alibaba/druid/bvt/pool/basic/PoolableStatementTest2.java"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"41310efd22515db3523010efad1b7f73ce18f10bfa400539c842c86ec752dbc9"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_clearResultSetError: 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":"core/src/test/java/com/alibaba/druid/bvt/pool/basic/PoolableStatementTest3.java"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5bcdb3c4efd5aa3166af40d540f0c40f70889464fd768446f289391440b2bca"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testDefault: 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":"core/src/test/java/com/alibaba/druid/bvt/pool/profile/ProfileEnableTest.java"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"baf48565420bd6c5b3d48d086068b85e3472a9bd6286a978ac51f8d56ebed712"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_conn_1: 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":"core/src/test/java/com/alibaba/druid/bvt/pool/DruidDataSourceC3P0AdapterTest.java"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"32f0c80f9501b761da5ada04d997993df6b0d259178c8aaa8a897c1542e354b6"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_setExceptionSorter_error: 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":"core/src/test/java/com/alibaba/druid/bvt/pool/DruidDataSourceTest4.java"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc529a25e471fa5e03cacfae5005aa49861d7f6e58e8abb7d66a1a1cd89cf3ba"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_for_phyMaxUseCount: 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":"core/src/test/java/com/alibaba/druid/bvt/pool/DruidDataSourceTest9_phyMaxUseCount.java"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7045e63fd0a7b6b7ec4d288dab3bad04d360044570b8e199a931ca7a50df55d"}},{"ruleId":"D10","level":"error","message":{"text":"No assertions (empty test): test_closeError: Test method has an empty body \u2014 it asserts nothing and exercises no code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/test/java/com/alibaba/druid/bvt/pool/DruidDataSourceTest_closeError.java"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"421a80b9501836f621c9058ead7b127f353dac7d8d91955ba516a8dc55f3b20a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_conn_ok: 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":"core/src/test/java/com/alibaba/druid/bvt/pool/DruidDataSourceTest_getConnection.java"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"31c5b8c0c41833014a7e0426134d92790e8c0c4466bc40197c86b8775392624e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_conn_ok: 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":"core/src/test/java/com/alibaba/druid/bvt/pool/DruidDataSourceTest_getConnection_2.java"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f2e5e086dddaf5f722efc43937c60f36c571375a418a66978107eecf19e9808"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_conn: 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":"core/src/test/java/com/alibaba/druid/bvt/pool/DruidDataSourceTest_getPooledConnection.java"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"e479ad227738cc4e81a37ff4a7f7cad7ff0461eca0e31e2e6448cb63f56a1fcf"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_recycle: 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":"core/src/test/java/com/alibaba/druid/bvt/pool/DruidDataSourceTest_recycle.java"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"04409014ae8847c7e627cf695025f8e49cd37f3d912dd47ad493303040eae04c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_dupClose: 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":"core/src/test/java/com/alibaba/druid/bvt/pool/DruidPooledConnectionTest.java"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e6fce510617aa1686efe571aa2dbaf2c5cd3217dc0fe2bcc7f331bb581aaa89"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_rollback: 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":"core/src/test/java/com/alibaba/druid/bvt/pool/DruidPooledConnectionTest.java"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d4fb49e496877bfdad1998705e31369e5d7b370912cde3c32871d1458cdda4c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_rollback_1: 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":"core/src/test/java/com/alibaba/druid/bvt/pool/DruidPooledConnectionTest.java"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"97c5ed19fbf646de05574a526a211e457e12e9e6917bd5474301f3b1d5f0e125"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_closePoolableStatement: 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":"core/src/test/java/com/alibaba/druid/bvt/pool/DruidPooledConnectionTest1.java"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dddfb0ed751d2478e9d8153aca6ca21edc66a4f3ab64ca77f1161523a03be6d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_closePoolableStatement: 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":"core/src/test/java/com/alibaba/druid/bvt/pool/DruidPooledConnectionTest2.java"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"69b9fe5511868aae514cb4bdd6c4388c699c1ec784f92d0749b08c5cc8c81f1f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testToString: 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":"core/src/test/java/com/alibaba/druid/bvt/pool/DumpTest.java"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdb0a0366f0c4322810a7b7ef2080e8417423b247439e777ebf7127ad8a82867"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testWrap: 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":"core/src/test/java/com/alibaba/druid/bvt/pool/DumpTest.java"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cf12528d5759020ff26512599d466c82bc8ee829856ee81f2c68812eec1c774"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_getReference: 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":"core/src/test/java/com/alibaba/druid/bvt/pool/DumpTest.java"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9de5bbe2683064b73bd05e7293ac37d5ab3c059b2c76d8bc9c62a3a58bc81fa"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_0: 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":"core/src/test/java/com/alibaba/druid/bvt/pool/HoldableUnsupportTest.java"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"caf91bf7206d496f42af18756b984980c707b9ee63e3096025ed775171d00433"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_pool: 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":"core/src/test/java/com/alibaba/druid/bvt/pool/InitExceptionThrowTest.java"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ac5c409ec8d0c3a4e52d41281e8d742a65029c91c612d4c2e96ccd2202692b6"}},{"ruleId":"D10","level":"error","message":{"text":"Assertions commented out: test_0: The test body contains commented-out assertion calls and no live one \u2014 it runs, verifies nothing, and still passes. Restore the assertions or delete the test; a green test that checks nothing is worse than an absent one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/test/java/com/alibaba/druid/bvt/pool/Issue4316.java"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd01f337c0315a4a7e08a4ea2e1823121dea58229d9289fe514973f85276eb45"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_spring: 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":"core/src/test/java/com/alibaba/druid/bvt/pool/SpringMybatisFilterTest.java"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"2abf96d12f8e55593f0d8e1198c576a9bbdee05856bb9d46745f579c398c6d2e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_close: 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":"core/src/test/java/com/alibaba/druid/bvt/pool/TestDisable.java"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"980922d59d142117781f82199aaf5b66fb45ffe26e47e0e5d00489d219ec20b0"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_0: 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":"core/src/test/java/com/alibaba/druid/bvt/pool/TestLogLongTimeTransaction.java"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"b98142e29c31866ed6c4537c419beb6f18152e2829fdda07a5324c133f220533"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_txn: 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":"core/src/test/java/com/alibaba/druid/bvt/pool/TransactionTest.java"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"28d07165fdbce0241e95918f845a92b4645e7e0c67b24c8529b3573ae2884ff3"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_stat: 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":"core/src/test/java/com/alibaba/druid/bvt/proxy/filter/StatFilterConcurrentTest.java"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"19e4b34baf294df516340ff8b5ca7a9bb490f608db3f699a1657edc34137a84b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_0: 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":"core/src/test/java/com/alibaba/druid/bvt/proxy/filter/StatFilterTest2.java"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2405ca2c6c5337a659743dad3fe98fcdfd2c6e3e2f825bcdc5e3d6ed2e98b69"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_merge_oracle: 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":"core/src/test/java/com/alibaba/druid/bvt/proxy/filter/StatFilterTest3.java"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d4e8202f1a6a7a2efcd0e14f8cf47bde0a69456361f60ca77c9bb781d91fca0"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_stmt: 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":"core/src/test/java/com/alibaba/druid/bvt/proxy/AllStatisticTest.java"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"63e9e79eb448b943c778f893b6e5079a17700e4bd9becc4cd79e89970a96d143"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_stmt_batch: 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":"core/src/test/java/com/alibaba/druid/bvt/proxy/BatchReadTest.java"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"5824c0164670844861f375b6839b189e4c7a639f3074f5691031bdb846a5cac4"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_call: 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":"core/src/test/java/com/alibaba/druid/bvt/proxy/CallableStatementProxyImplTest.java"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"4267c4492d03ee13f69309b78a2fcb43be29a7b953801a8d108b6f8489d36c0c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_connection: 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":"core/src/test/java/com/alibaba/druid/bvt/proxy/ConnectionProxyImplTest.java"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9acd4a9772cb38fd42f0e37d8e2616af8076052914feb0522a8a13a6d1dfc99"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_count_filter: 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":"core/src/test/java/com/alibaba/druid/bvt/proxy/CounterFilterTest.java"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6df754eaf12fe620b558e87b3e15937f05214dd63131c14cced5aacdf4b1689"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_close: 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":"core/src/test/java/com/alibaba/druid/bvt/proxy/JdbcUtilsTest.java"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"01da22ab19882d5960ef4a9a9a7cdaa948ec4c6bf1827bc53ebaefa7d69978fb"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_getTypeName: 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":"core/src/test/java/com/alibaba/druid/bvt/proxy/JdbcUtilsTest.java"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"51784e49d47d0196644cdc0f6d862906a4481412fb79049d70d2b66d06f5ae2e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_print: 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":"core/src/test/java/com/alibaba/druid/bvt/proxy/JdbcUtilsTest.java"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"de4ef086541b6503b553070e84d9e611b9e1829cd506b7945ccf0d7862db4095"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_logFilter_2: 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":"core/src/test/java/com/alibaba/druid/bvt/proxy/LogFilterTest.java"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1512329e5208976797e99b6705be65aeb3bb17eaee2e4a99613eb8c926d3a8f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_precall: 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":"core/src/test/java/com/alibaba/druid/bvt/proxy/PrecallTest.java"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2d456d45c740094df8ac4932f69653a82d152260e3b83b1ad917e44cb3567d8"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_pstmt: 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":"core/src/test/java/com/alibaba/druid/bvt/proxy/PreparedStatementTest.java"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"c214f054d2b290ca9afd0862aa6fc9c15f739f6f96aa46e79ce568655acb68ac"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_connect: 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":"core/src/test/java/com/alibaba/druid/bvt/proxy/ProxyDriverTest.java"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ae7455248865a8842c254a9438b31497ca82bc243e1e6db6df479e76a548ba7"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_resultset: 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":"core/src/test/java/com/alibaba/druid/bvt/proxy/ResultSetProxyImplTest.java"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"41fea9510d36f5c65f33a27b3211a8eb28ee3c8162e8ce4c4e5a5e24cabceb8d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_schema: 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":"core/src/test/java/com/alibaba/druid/bvt/sql/bigquery/BigQuerySchemaTest.java"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bdf1004bfc5e8add0a346b71b63fba838dbcb1026b5888e039cb26b6ab82ba2"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_date: 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":"core/src/test/java/com/alibaba/druid/bvt/sql/cobar/DMLInsertParserTest.java"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a25bf019b94ed040adc018e00ea5234305e69a6afbd4a71d5ebb0931894c635"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_for_derby: 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":"core/src/test/java/com/alibaba/druid/bvt/sql/derby/DerbySelectTest.java"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"c051c94f57f7cabab22916ccaa5f6925f9dbf25e78c33be1f7cf814c533c5a5f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_instance: 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":"core/src/test/java/com/alibaba/druid/bvt/sql/eval/SQLEvalVisitorUtilsTest.java"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee10ba0219181b2a95fdea335f2f58c4af7b47a8b401ac7116ac63b1f5cd98f5"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_select: 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":"core/src/test/java/com/alibaba/druid/bvt/sql/hive/HiveSelectTest_48.java"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9c431b6007b61ee2872dfa1109055960d9cdcccc999131ceb20bc6b4954955b"}},{"ruleId":"D10","level":"error","message":{"text":"Assertions commented out: test_parameterized: The test body contains commented-out assertion calls and no live one \u2014 it runs, verifies nothing, and still passes. Restore the assertions or delete the test; a green test that checks nothing is worse than an absent one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/test/java/com/alibaba/druid/bvt/sql/lexer/LexerParameterizedTest.java"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d5ed35a568c444aaa00170bee77808d552ec16611b8e65f8d06ace8d27b48c5"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_overflow: 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":"core/src/test/java/com/alibaba/druid/bvt/sql/mysql/alterTable/MySqlAlterTableDropIndex_1.java"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"5da712926c72ffccccbbcfb20fa0561c7819676ffa3133badbc9330271be03eb"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_6: 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":"core/src/test/java/com/alibaba/druid/bvt/sql/mysql/createTable/MySqlCreateTableTest158_asselect.java"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f26b2884e565a8d8dcf3caa7730adda285d6f210e2aec6097fe9ca8d539104b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_select_into: 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":"core/src/test/java/com/alibaba/druid/bvt/sql/mysql/issues/Issue5498.java"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3b84e38e73b2b957018902003dfc88d1069bed4605ac19b42af02485fd26d44"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_select_json_table: 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":"core/src/test/java/com/alibaba/druid/bvt/sql/mysql/issues/Issue5642.java"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"51da0449602dd3e0302a3371406375855e33c666a3772d67b1562026e1042642"}},{"ruleId":"D10","level":"error","message":{"text":"No assertions (empty test): test: Test method has an empty body \u2014 it asserts nothing and exercises no code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/test/java/com/alibaba/druid/bvt/sql/mysql/param/MySQLParameterizedTest.java"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ea4296a194c2544170c674200fc445810f89d104722f0304c17059428cde7b7"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_for_parameterize: 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":"core/src/test/java/com/alibaba/druid/bvt/sql/mysql/param/MySqlParameterizedOutputVisitorTest_10.java"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5baaa3defdfc031ec21c30951d27111e5d2c050242478204a8ccaa3b588c10e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_for_parameterize: 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":"core/src/test/java/com/alibaba/druid/bvt/sql/mysql/param/MySqlParameterizedOutputVisitorTest_35.java"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"26b69caea87be919cfa1686f1a86687f52d7c22fb7bcc774fac6519520356122"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_for_parameterize: 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":"core/src/test/java/com/alibaba/druid/bvt/sql/mysql/param/MySqlParameterizedOutputVisitorTest_38_1.java"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"761eb91fb45f093b66635e67fe1e56a43742931da36999b4239115ab55ee768f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_0: 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":"core/src/test/java/com/alibaba/druid/bvt/sql/mysql/resolve/ResolveTest_0.java"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"25197fdd1957424d80a3dbaf9ab97ee6688cf71e6a90f3a41f050191ef3bf0b6"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_1: 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":"core/src/test/java/com/alibaba/druid/bvt/sql/mysql/resolve/ResolveTest_0.java"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa60958d7ae8ee7c727ac8f5c058b43b8eb73999926cf00c610441105a70edc3"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_2: 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":"core/src/test/java/com/alibaba/druid/bvt/sql/mysql/resolve/ResolveTest_0.java"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"afd22e2a488b464dba12d9521e1dc14a9979e8a923277d250fc2d70233cf88b4"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_3: 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":"core/src/test/java/com/alibaba/druid/bvt/sql/mysql/resolve/ResolveTest_0.java"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4e9bd5b86aeb5a52a96aabfa2807aa2631a6b8e264121b277a6c2168591a6bc"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_4: 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":"core/src/test/java/com/alibaba/druid/bvt/sql/mysql/resolve/ResolveTest_0.java"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8c11848eff3037f0f16e64800550e3e11fe727c8905f50e149b8889731ab30f"}},{"ruleId":"D10","level":"error","message":{"text":"Assertions commented out: test_q01: The test body contains commented-out assertion calls and no live one \u2014 it runs, verifies nothing, and still passes. Restore the assertions or delete the test; a green test that checks nothing is worse than an absent one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/test/java/com/alibaba/druid/bvt/sql/mysql/resolve/TPCDS_ALL_Resolve.java"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b914178d0f519eb5bcaa98d72d6344e3d5c9bc03609ae09f42e3d30adb1cfa6"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_0: 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":"core/src/test/java/com/alibaba/druid/bvt/sql/mysql/visitor/MySqlParameterizedOutputVisitorTest.java"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e65534660d511ff246c4b35135c48fb92ea3ada8f0de675af28044a6d2dc271"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_1: 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":"core/src/test/java/com/alibaba/druid/bvt/sql/mysql/visitor/MySqlParameterizedOutputVisitorTest.java"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"1264bf104e8fb7d7aca252ea37849350717ff71f1f8cf762e42ae3f0df638ea0"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_adapter: 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":"core/src/test/java/com/alibaba/druid/bvt/sql/mysql/MySqlASTVisitorAdapterTest.java"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"291bf65f51b2ea4dd4187cd1daff10673cffc2ffe996fe9eacfd95c889a47bcd"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_check: 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":"core/src/test/java/com/alibaba/druid/bvt/sql/mysql/MySqlRepCheckTest.java"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"e29133adfa45f7676ad9900a25d00a1b30db3c5abed6a21a835c6845e4600590"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_1: 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":"core/src/test/java/com/alibaba/druid/bvt/sql/mysql/MySqlSetTest_3.java"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b4091a98cf16cd0403a5400e7e9cc228ebad855f135318c24d1781c37d7c120"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_select: 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":"core/src/test/java/com/alibaba/druid/bvt/sql/mysql/SQLSelectTest.java"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"39c1e050a5ad29b5078cde5f591d57e699a7e02bbaf2e39d6cab80ca9b81d6f2"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_select_1: 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":"core/src/test/java/com/alibaba/druid/bvt/sql/mysql/SQLSelectTest.java"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"e39c2e6c548796014a42172558ffa00a5c09fdd0bfb1aff246c5d411bfdba7f0"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_select_2: 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":"core/src/test/java/com/alibaba/druid/bvt/sql/mysql/SQLSelectTest.java"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"61734af1f86e1c24c1bde8fe7de4ba9fd4f1637246877bbf5b05cfe042d99edf"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_select_3: 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":"core/src/test/java/com/alibaba/druid/bvt/sql/mysql/SQLSelectTest.java"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"24bf085757a361cfe5c8682e51c2500e32fad8844cd0d0e146d01715fef038ad"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_select_4: 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":"core/src/test/java/com/alibaba/druid/bvt/sql/mysql/SQLSelectTest.java"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"23278bc0b71584210d4bb9f80ba03446dae331ce6afa3022c1090d454dc82dad"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_select_5: 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":"core/src/test/java/com/alibaba/druid/bvt/sql/mysql/SQLSelectTest.java"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9da3491f79fbca28f413af4df1f5bddb038b0583bd376456ce9cb4cc698c25b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_select_6: 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":"core/src/test/java/com/alibaba/druid/bvt/sql/mysql/SQLSelectTest.java"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"a45cbdca9dee8420e48070a0dc5d98060e38b941726acdd4b352c99560e18187"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_select_7: 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":"core/src/test/java/com/alibaba/druid/bvt/sql/mysql/SQLSelectTest.java"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"56617915fe8dc2887787d4fe18bfda740b8c81fc8719b41185f484a44a7e118b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_0: 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":"core/src/test/java/com/alibaba/druid/bvt/sql/odps/udf/ExportColumnsTest0.java"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"b45ad2eab20125c7f7613c4aeff13ee6c8ac707e1b2a7e3e040f6649ad37a65f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_0: 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":"core/src/test/java/com/alibaba/druid/bvt/sql/odps/udf/ExportSelectListColumnsTest.java"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"33ad9735f06cb76481cc16a95fd2d394cb8086cd06e2bfedd60ff52bd46c787a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_select: 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":"core/src/test/java/com/alibaba/druid/bvt/sql/oracle/select/OracleSelectGroupingTest.java"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"a569c2a4fa340e7cba6021f4e44a00f3e095f881f91192d85c368e46debd4b3c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_hinits: 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":"core/src/test/java/com/alibaba/druid/bvt/sql/oracle/select/OracleSelectParserTest.java"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"4973b4446afabfac1060c52436884035a44fb4e204c36e1151b63cf8f7741a7d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_select: 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":"core/src/test/java/com/alibaba/druid/bvt/sql/oracle/select/OracleSelectParserTest.java"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d891ab15783d467b2751fe1ea2efdfdc88ae8e7a697bd705a2a86e1b4b6e930"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_page1: 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":"core/src/test/java/com/alibaba/druid/bvt/sql/oracle/tomysql/OracleToMySql_PageTest.java"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"27636a877dcac39400098d654fe46d2ade02c46a9c6a86cd5e55b5a617d8b6d9"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_adapter: 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":"core/src/test/java/com/alibaba/druid/bvt/sql/oracle/visitor/OracleASTVisitorAdapterTest.java"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b145c123b38237e0efff98d0c97df24bdc39b779af009d2d3f938fa3e0e8251"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_for_antlr_examples: 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":"core/src/test/java/com/alibaba/druid/bvt/sql/oracle/AntlrExamplesTest.java"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bc86c3d5f05c5cc11365208af80753bc54b1691ea595405dbba4af393e7ed6a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_for_antlr_examples: 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":"core/src/test/java/com/alibaba/druid/bvt/sql/oracle/AntlrScriptExamplesTest.java"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bde51cea72486bc54c66f82a8b81095e3c7514580aeccde17e19cce9f59b731"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_select: 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":"core/src/test/java/com/alibaba/druid/bvt/sql/oracle/CallTest.java"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc20b3b94b637c69b03c243deab212d679af9fd2dcbda7dd934da4ad8822bae7"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_mergeCall: 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":"core/src/test/java/com/alibaba/druid/bvt/sql/oracle/MergeTest.java"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbaf617ecf1cdcdfbb776a9a019bef1e3b3389fbd60a10c24aad1c3b51d7d692"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_mergeCall_mysql: 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":"core/src/test/java/com/alibaba/druid/bvt/sql/oracle/MergeTest.java"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"444aecc4cca2dd8193c5d3777056f969a5aef0101026910f3b0eeb1fc51cd449"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_mergeCall_oracle: 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":"core/src/test/java/com/alibaba/druid/bvt/sql/oracle/MergeTest.java"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"1263af2de36428ad09c82f021737120c7c62307ecf7ef9cbc5b470756b78517e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_formatOracle: 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":"core/src/test/java/com/alibaba/druid/bvt/sql/oracle/OracleFormatTest.java"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b33736127db335c21f8e4018d618621301ffffd85fcfa05ec02dd8ca93d3802"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_formatOracle: 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":"core/src/test/java/com/alibaba/druid/bvt/sql/oracle/OracleFormatTest2.java"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bad436802780c9a55979a1ba00b63897a956f42f4f06258e8c122f47182177b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_hint: 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":"core/src/test/java/com/alibaba/druid/bvt/sql/oracle/OracleLexerTest.java"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f9dc3f07b43421265c9fe07dd1413dd734bf85480aaac08a05113826ddad4ab"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_create_triger_execute: 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":"core/src/test/java/com/alibaba/druid/bvt/sql/postgresql/issues/Issue5474.java"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dcf51d541b03ae08d5dd33ead25bfc0fcd73ef89f797889d28206b6842d7b10"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_parse_error_sql: 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":"core/src/test/java/com/alibaba/druid/bvt/sql/postgresql/issues/Issue5760.java"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b7d26a720f03e33b6d0ec76e2f15034362bc6843d0e9c87eba2d414372cc963"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_resolve_does_not_throw_cce: 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":"core/src/test/java/com/alibaba/druid/bvt/sql/postgresql/issues/Issue6633.java"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"61a058b7a737ee09dab77d00a7b5cd2f212de96b9da86d53bb8b4150dda74f1e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_adapter: 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":"core/src/test/java/com/alibaba/druid/bvt/sql/postgresql/PGASTVisitorAdapterTest.java"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa4dd0155d3e99ed21c34f252f2b077c0ad7b30ddd0af2054b805b7a7dd4266d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_for_issue: 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":"core/src/test/java/com/alibaba/druid/bvt/sql/repository/OracleJoinResolveTest_1_fk.java"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccb971f9be7e8321948f7c31657cd081931d6ced4c64326f6dd697654db056d1"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_for_issue: 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":"core/src/test/java/com/alibaba/druid/bvt/sql/repository/OraclePKNameResolveTest.java"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"b340c80a1937f8490da05b3601ebca2e83e3e069235212aab2f9bec85e3b401d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_parse_create: 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":"core/src/test/java/com/alibaba/druid/bvt/sql/starrocks/issues/Issue6029.java"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9484125f1e14a5ccdcabb253d1efcac4a7af1acd2e7c8782ff2636665c95280"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testBigOr: 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":"core/src/test/java/com/alibaba/druid/bvt/sql/BigOrTest.java"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"510ae338cd1524e43f60c5e6753a318bcae37bfe7004b39f1f1b995b65c15d34"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_adapter: 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":"core/src/test/java/com/alibaba/druid/bvt/sql/SQLASTVisitorAdapterTest.java"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdea8be401189314ad636ebcae5b84d0ac260a8c9c603d5a348994de67588ddf"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_new: 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":"core/src/test/java/com/alibaba/druid/bvt/sql/SQLParseExceptionTest.java"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fde1436aac2fa6d94a1d1aa8b5e00e5dc7b4cf582a3990acf4d88482c912810"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test: 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":"core/src/test/java/com/alibaba/druid/bvt/sql/SQLUtilsGetAllTokensTest.java"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"a98ea253d8f09ca057cadb33267606eed047e4cdfb5e78b7c19596fd35db1bff"}},{"ruleId":"D10","level":"error","message":{"text":"Assertions commented out: test_statService_getDataSourceIdList: The test body contains commented-out assertion calls and no live one \u2014 it runs, verifies nothing, and still passes. Restore the assertions or delete the test; a green test that checks nothing is worse than an absent one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/test/java/com/alibaba/druid/bvt/stat/DruidStatServiceTest.java"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"85dcad56b1dd449ae6e7341db162a30d8942d7f16bf1b3e4f7035fd0e6d9a15c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_getWallStatMap: 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":"core/src/test/java/com/alibaba/druid/bvt/stat/DruidStatServiceTest2.java"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4c235885fbe0e5a8068e213bf85fc4cebc6028235b8ce9fcfc46f701bd15704"}},{"ruleId":"D10","level":"error","message":{"text":"Assertions commented out: test_statService_getDataSourceList: The test body contains commented-out assertion calls and no live one \u2014 it runs, verifies nothing, and still passes. Restore the assertions or delete the test; a green test that checks nothing is worse than an absent one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/test/java/com/alibaba/druid/bvt/stat/DruidStatServiceTest2.java"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"f05b3f0d0ff9741741c73cbe7a7a16a5b24d9b13d76a41598d1a4e477e490e37"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_instance: 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":"core/src/test/java/com/alibaba/druid/bvt/stat/JdbcTraceManagerTest.java"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"574938784030a4e07edb65488fe3a5f05d4116a7af57abdc6bb3dab9eeeccd8c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_facttory: 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":"core/src/test/java/com/alibaba/druid/bvt/support/ibatis/DruidDataSourceFactoryTest.java"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd2717533ceb797015b1e22536f07e05ec3d50a00eb2dae8ef06bc4d2307bff3"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_parse: 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":"core/src/test/java/com/alibaba/druid/bvt/support/json/JSONParserTest3.java"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3e3c42700c715fe06611aac949c7d98773b7a3c68c321437da8d0bad05fc7d9"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_parse: 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":"core/src/test/java/com/alibaba/druid/bvt/support/json/JSONParserTest4.java"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e57b781887faf81b66704c3a6e9eeeccdcdc3f7a0804b783cfdc4563ab9c01a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_parse: 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":"core/src/test/java/com/alibaba/druid/bvt/support/json/JSONParserTest5.java"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3deabdad9bdf70c64ffc82a3bfb8d66c1232bcf63e59339f24026ad3b544927"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_lobCreator: 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":"core/src/test/java/com/alibaba/druid/bvt/support/spring/DruidLobCreatorTest.java"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9b501cd24f784c79f8b770cc33f0b5c99ad2a71ecee0549feffecf58ca17b07"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_0: 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":"core/src/test/java/com/alibaba/druid/bvt/support/spring/DruidLobHandlerTest.java"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6b409a6831e77f58f4268775fc01b205c75ae6cce97324ffb40f45e2ea45030"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_close: 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":"core/src/test/java/com/alibaba/druid/bvt/utils/JdbcUtilsTest.java"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"b81da17ae8c7fde41f5e6b0f66f1fe9c0057d953ab868a1bc737c40bf22b7948"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_xa: 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":"core/src/test/java/com/alibaba/druid/bvt/utils/MySqlUtilsTest.java"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"77856dd7ef7d2c7a2f36324224e846821a30f86eb768260842a96f2b74a0353d"}},{"ruleId":"D10","level":"error","message":{"text":"No assertions (empty test): test: Test method has an empty body \u2014 it asserts nothing and exercises no code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/test/java/com/alibaba/druid/bvt/AlipayUseCaseTest.java"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a048c4039fec88fbf8086f186f975a163303e9e518271f229ebcc3ed871265f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_xx: 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":"core/src/test/java/com/alibaba/druid/bvt/OrTest.java"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"09670014402a0c657d67d1a69d0abde52b676b9b77c7c727ad8dce67bce000de"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_schemaStat: 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":"core/src/test/java/com/alibaba/druid/demo/sql/CreateTableSetSchemaDemo.java"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"654a350aea7c22a43d57d327a5acdb0207883c646dad2c4d9cf0c4a6541b814b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_export_parameters: 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":"core/src/test/java/com/alibaba/druid/demo/sql/ExportParameters.java"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"3032e455a16b8ade96fbc8402f8eae89d4f935d30895ffa2ece4d6d3a962c3df"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_for_demo: 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":"core/src/test/java/com/alibaba/druid/demo/sql/Issue2038.java"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"16e0355f28719f621b4e0d2dfdd8f1072735991f4ecb2304d94fb9bc63aac708"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_limit: 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":"core/src/test/java/com/alibaba/druid/demo/sql/LimitDetect.java"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3c0f474eea7c9b654882586c936e37c40110e51e42cce39423f995cbb43f094"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_for_demo: 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":"core/src/test/java/com/alibaba/druid/demo/sql/MySqlVisitorDemo.java"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"a79addd3610ab57efabdd463deaf60c8f7127472931de65dd2b7088fb6989783"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_compatibleTest: 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":"core/src/test/java/com/alibaba/druid/demo/sql/OracleCompatibleTest.java"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f38dba04588aa04c48c249b52bf49393347c2504cebbc917d992f5c9248baa5"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_for_demo: 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":"core/src/test/java/com/alibaba/druid/demo/sql/OracleVisitorDemo.java"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0ab5688ee2551dd3ea0f2f618d98476a739df9caf6ec3d8977590e202ec9628"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_for_demo: 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":"core/src/test/java/com/alibaba/druid/demo/sql/PGVisitorDemo.java"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fe73d1562e2c57475c91222bbd86b13038da1cd744273ed8193adddb9be5fee"}},{"ruleId":"D10","level":"error","message":{"text":"Assertions commented out: test_schemaStat: The test body contains commented-out assertion calls and no live one \u2014 it runs, verifies nothing, and still passes. Restore the assertions or delete the test; a green test that checks nothing is worse than an absent one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/test/java/com/alibaba/druid/demo/sql/SchemaStatTest_odps.java"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"199dc11a36e4b114b0417eea11f9e53ceddb31f5f089898fc31e3efc4ecbe07c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_0: 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":"core/src/test/java/com/alibaba/druid/mysql/MySqlBigTableTest.java"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"849437165f1442b1b58430dce6a6a97b8ba3af7beed4f422389f0dd5ec4d2eda"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_0: 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":"core/src/test/java/com/alibaba/druid/mysql/MySqlConnectFailTest.java"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec017c8bf2a6f5e5eb1c9ab5e8cd48a7c3eab941f7ef57874d1f50623ab096ea"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_0: 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":"core/src/test/java/com/alibaba/druid/mysql/MySqlHexTest.java"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"e002f4397c419347e7239de2f6b99452ea7b0ad0472a19cb5972cf90bfa0d8b9"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_queryTimeout: 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":"core/src/test/java/com/alibaba/druid/mysql/QueryTimeoutTest.java"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddeb9c638df1ffdc87d5010a471ee734827302685e929032e11b8261e80ce4a2"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_for_antlr_examples: 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":"core/src/test/java/com/alibaba/druid/not_support/sql/sqlserver/AntlrSqlServerTest.java"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"916894d61e1a0342fcf45e9d9f880977ed2653185522bf5f324be33bcb08d055"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_boneCP: 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":"core/src/test/java/com/alibaba/druid/pool/bonecp/TestPSCache.java"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"12729b92582aa22582411afdd79f094004ff0cc7b7bcf78fe590ef4ed56200fa"}},{"ruleId":"D10","level":"error","message":{"text":"Assertions commented out: test_idle: The test body contains commented-out assertion calls and no live one \u2014 it runs, verifies nothing, and still passes. Restore the assertions or delete the test; a green test that checks nothing is worse than an absent one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/test/java/com/alibaba/druid/pool/dbcp/Test0.java"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"820d9404101aedea664631faab2f0329128ecc6d7b76646a48beb86c03893363"}},{"ruleId":"D10","level":"error","message":{"text":"Assertions commented out: test_idle: The test body contains commented-out assertion calls and no live one \u2014 it runs, verifies nothing, and still passes. Restore the assertions or delete the test; a green test that checks nothing is worse than an absent one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/test/java/com/alibaba/druid/pool/dbcp/TestIdleForKylin.java"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"be68d3d1602bd3beac810f9586b68082c3edf50bc6dd1fc64c8407092943f343"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_0: 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":"core/src/test/java/com/alibaba/druid/pool/demo/Demo0.java"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"a28dad5e17b96428c560981ce7f6f68fbb3e1dab7212051d3f1d7c1f7792d3ce"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_connect: 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":"core/src/test/java/com/alibaba/druid/pool/oceanbase/OBTest.java"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcb96c22331b049892ff1d3fb92cfe2aab2c936e1f84b13b61a77553a7c2720a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_deprecated: 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":"core/src/test/java/com/alibaba/druid/pool/oracle/OracleDeprecated.java"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a3c2740a497fe451619c87346a6943e3e6d4169b4febf7e0b372a25e02bfee7"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_queryTimeout: 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":"core/src/test/java/com/alibaba/druid/pool/oracle/QueryTimeoutTest.java"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"58cda850b25519096ce0b0fceaaefdd588baa4a53fede3fa05d2cdc88ab9c6d8"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_suit: 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":"core/src/test/java/com/alibaba/druid/pool/qa/MySqlTestSuit.java"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb533d86f4d585c5263226e217491fc665f21f7bd70a93f0680c845755793e74"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_0: 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":"core/src/test/java/com/alibaba/druid/pool/CobarTest.java"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"c62ea8e5626033e4df0565ce9c5d3153fad074024396187a30a512a7b6e4c74b"}},{"ruleId":"D10","level":"error","message":{"text":"Assertions commented out: test_concurrent_2: The test body contains commented-out assertion calls and no live one \u2014 it runs, verifies nothing, and still passes. Restore the assertions or delete the test; a green test that checks nothing is worse than an absent one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/test/java/com/alibaba/druid/pool/ConcurrentTest2.java"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab35a1bc5ad08235fddf3c9fc8240af331944b4f5b507a68361ad0f3e5a46107"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_dbcp: 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":"core/src/test/java/com/alibaba/druid/pool/DBCPTest.java"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2d088cb39ba6ecc8fc7f36253a791f0d5ab8009d4dc66dd3f88aa9f78c9d6fa"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_maxWait: 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":"core/src/test/java/com/alibaba/druid/pool/MaxWaitTest.java"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"80b8a880ad772d2150c9c76c156cf5f4c38943c808a507ec485c3ba10081892c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_0: 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":"core/src/test/java/com/alibaba/druid/pool/MySqlValdConnectionTest.java"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"37ab18c4860bb6510ef578c989bc3a32fa4aea1c09059f4261ebdd010eea9af6"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_oraclePool: 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":"core/src/test/java/com/alibaba/druid/pool/OracleConnectionPoolDataSourceTest.java"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"652f71972abd3dcc4bf96d3353b3a0fa2bec72d1c4127820915cdf038cfcd3b1"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_queryTimeout: 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":"core/src/test/java/com/alibaba/druid/pool/QueryTimeoutTest.java"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e0893964be64f65b200a38fcb321110bcf77de0ec67872720a4eb745f474e87"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_0: 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":"core/src/test/java/com/alibaba/druid/pool/TestDruidOraclePreparedStatement.java"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"918430192b0931b2aed714297ad52bb4f80c8fabcc90d4afe08dd199d6a9406c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_perf: 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":"core/src/test/java/com/alibaba/druid/pool/TestMockPerf.java"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"c41658297ea13b5b54657a2a1b2cedf2684a33ad24dda126386f0c44727eabe7"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_0: 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":"core/src/test/java/com/alibaba/druid/pool/TestMySql.java"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"d82d1cc7754176412715901a5470d1f1460923ea82957a2374fd965ce4ab4e1a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_ping: 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":"core/src/test/java/com/alibaba/druid/pool/TestMySqlPing.java"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"71db356e29e3a5647e37334f534c836597f1f43bef50f24525465c297d0c0600"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_0: 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":"core/src/test/java/com/alibaba/druid/pool/TestOraclePreparedStatement.java"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d63bff336480f1b270ea4e5d2b57ec439653b4c0cae7eebedfa30400cc2fd15"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_0: 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":"core/src/test/java/com/alibaba/druid/pool/TestOracle_DruidDataSource.java"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"240bac39338b2c10695781f07a2e05afc959486baf53e9a4ee23e9fdbee2cf4e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_0: 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":"core/src/test/java/com/alibaba/druid/pool/TestPoolStatement.java"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"80ed06dc73f19391f478ff250b9a4a48289e7a1f3c8d1e88fd8bdb9a7ad0ea2f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_0: 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":"core/src/test/java/com/alibaba/druid/pool/Test_kyline.java"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"f491c4b2de9aff5294bc3681cff65399c08840a2e6b5f30925d228cb8eb39a28"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_0: 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":"core/src/test/java/com/alibaba/druid/proxy/TestOracle.java"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee209a037f4180c72f7e7f3a1e178c50335a20a586ca6532054abaa43e1a0a7d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_1: 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":"core/src/test/java/com/alibaba/druid/pvt/filter/wall/WallPerformanceTest_1.java"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"c546b2416eef316421d75613719a417eb12244399f47be54f25da13197170c01"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_10: 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":"core/src/test/java/com/alibaba/druid/pvt/filter/wall/WallPerformanceTest_1.java"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6d932d63b751c4e7c28d10427d8608a3768d9212a47a4edf4115c32fed3a6eb"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_11: 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":"core/src/test/java/com/alibaba/druid/pvt/filter/wall/WallPerformanceTest_1.java"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcbbb9425a72984d39d119bb573bd2258581356c3cf47bca9bd1f4e27d1c49b8"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_12: 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":"core/src/test/java/com/alibaba/druid/pvt/filter/wall/WallPerformanceTest_1.java"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad44e3bdd087becb1ec2af70b9039acfb396bd8bebfacc27ea5dc8497b9989c0"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_13: 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":"core/src/test/java/com/alibaba/druid/pvt/filter/wall/WallPerformanceTest_1.java"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"acb1223ca52d74ab12700ed91af3392e714c5362a0caff729db48d2228cfd4a3"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_14: 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":"core/src/test/java/com/alibaba/druid/pvt/filter/wall/WallPerformanceTest_1.java"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4512135196e32635b56d709369b1cb744101c206b4363f699e2a296c1613d79"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_2: 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":"core/src/test/java/com/alibaba/druid/pvt/filter/wall/WallPerformanceTest_1.java"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd5c62dbac7cd4a339731078c990ad4f903b0de810c90d2838aa0c427165b072"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_3: 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":"core/src/test/java/com/alibaba/druid/pvt/filter/wall/WallPerformanceTest_1.java"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"c35d4a40c58e9c59a38e9315bd72d5141dd0262b4b9f07de7f988581ba3121c4"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_4: 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":"core/src/test/java/com/alibaba/druid/pvt/filter/wall/WallPerformanceTest_1.java"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"74b6001f38b80a006b35f512f4225fade40936c9652e163ab71ff1d6a25f068f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_5: 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":"core/src/test/java/com/alibaba/druid/pvt/filter/wall/WallPerformanceTest_1.java"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0662d54d88362701f86cc0c187936945fbe3fab028c1476a7edd7e624cc2702"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_6: 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":"core/src/test/java/com/alibaba/druid/pvt/filter/wall/WallPerformanceTest_1.java"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ab31e3df9dbece7bad9a0fde59c082926e525b34a951f27f424c759b7e99079"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_7: 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":"core/src/test/java/com/alibaba/druid/pvt/filter/wall/WallPerformanceTest_1.java"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f20a4ec2c8872218daf059ca8d14988dbf8d672670c8a08d9827e96fabe7427"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_8: 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":"core/src/test/java/com/alibaba/druid/pvt/filter/wall/WallPerformanceTest_1.java"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b4076978249761ef9b98eb7e98c9dde46266bda34d767bd9ed0e9e6f0a0353e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_9: 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":"core/src/test/java/com/alibaba/druid/pvt/filter/wall/WallPerformanceTest_1.java"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"512f495c21e2a7723cabc3893ad6c679dbebf836530cb1ffc6d5a840069c8810"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_large: 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":"core/src/test/java/com/alibaba/druid/pvt/pool/Large10KTest.java"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfff4bc2cd235765540e02584517ccc94a878ec7dd5da22679f8ad5a01bccf02"}},{"ruleId":"D10","level":"error","message":{"text":"Assertions commented out: testBuildSql: The test body contains commented-out assertion calls and no live one \u2014 it runs, verifies nothing, and still passes. Restore the assertions or delete the test; a green test that checks nothing is worse than an absent one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/test/java/com/alibaba/druid/pvt/support/monitor/MonitorDaoJdbcImplTest.java"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b4ea8808c68d7578b5ea76826868803124cf9e1992a6588915d366a55dece90"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testChampScripts: 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":"core/src/test/java/com/alibaba/druid/sql/dialect/h2/visitor/H2OutputVisitorTest.java"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"928c6055b4132c5113a12022dfc2c174e1f9e4829479852c920b020f7318ab4c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testConvertCreateIndex: 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":"core/src/test/java/com/alibaba/druid/sql/dialect/h2/visitor/H2OutputVisitorTest.java"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdd0c8c92d4f718e7449485b0595d657c315dc0b475e2d5feac535350b4db2cc"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testScript1: 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":"core/src/test/java/com/alibaba/druid/sql/dialect/h2/visitor/H2OutputVisitorTest.java"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"5498d628d536d63b926871b6adfc56f79bc960021463bb87fedb823f7a60115e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testScript2: 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":"core/src/test/java/com/alibaba/druid/sql/dialect/h2/visitor/H2OutputVisitorTest.java"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"94f4c15e47bb62367e2ea33b29d581bba613c1732def98905129f92d7f595d4b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testScript3: 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":"core/src/test/java/com/alibaba/druid/sql/dialect/h2/visitor/H2OutputVisitorTest.java"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"dab1dbe7fb9d5ca57b17b3091ecd6acaf7d451b1d73bf5ec78a1f8b18e4e7f00"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testScript4: 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":"core/src/test/java/com/alibaba/druid/sql/dialect/h2/visitor/H2OutputVisitorTest.java"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"017e4e6dc966991f3777066ba44d853704cb3aaf99efa164ae2c7a7c473c33b2"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testScript5: 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":"core/src/test/java/com/alibaba/druid/sql/dialect/h2/visitor/H2OutputVisitorTest.java"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d1511dc12cb37715e29526b496987313d6a5cedeb87f1fc6a0220efe29f6c63"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testScriptCreateTableWithKey: 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":"core/src/test/java/com/alibaba/druid/sql/dialect/h2/visitor/H2OutputVisitorTest.java"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1a091e53783e35907731de8b88bf9939d2c7f41fa2c17d1f22a3469c758f782"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testScriptCreateTableWithOnDeleteAction: 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":"core/src/test/java/com/alibaba/druid/sql/dialect/h2/visitor/H2OutputVisitorTest.java"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"78c7520edbdd96d49e12f3d9345b76f8583cdb1eb857391e808270b8e5bd0cc8"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testScriptExportTriggerWithDelimiter: 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":"core/src/test/java/com/alibaba/druid/sql/dialect/h2/visitor/H2OutputVisitorTest.java"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cdb99b653be0438384e2dc85768296006b5acf20f9ee238d85af37297132685"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testToString: 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":"core/src/test/java/com/alibaba/druid/sql/dialect/oracle/ast/expr/OracleAnalyticTest.java"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"64adef76a9022c85e2258474a05819cf5d9e2c72a109e91732ae8f95f0678bec"}},{"ruleId":"D10","level":"error","message":{"text":"Assertions commented out: testCreateTable: The test body contains commented-out assertion calls and no live one \u2014 it runs, verifies nothing, and still passes. Restore the assertions or delete the test; a green test that checks nothing is worse than an absent one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/test/java/com/alibaba/druid/sql/dialect/starrocks/parser/StarRocksCreateTableParserTest.java"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"86a008b59ec77dbadb28f12388cf1b240262ec6cb3264908f0bfdab02c2d9ab9"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_demo_0: 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":"core/src/test/java/com/alibaba/druid/sql/mysql/demo/Demo0.java"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"93286a2b5999462c733917e01662147611e5d67f743101e3f1dfd0f26a02670b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_for_issue: 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":"core/src/test/java/com/alibaba/druid/sql/odps/Issue2102.java"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b7a18869f182e4ac588d95fb7262913bedf14dc99ab5e585a5385055a82d0cd"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_demo_0: 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":"core/src/test/java/com/alibaba/druid/sql/oracle/demo/Demo0.java"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"55c54360a06fa6caa80669747c7f5fae197510c6021820bdada58ccbd666911b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_0: 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":"core/src/test/java/com/alibaba/druid/sql/oracle/demo/Demo1.java"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb47230197a0d35bf7a6563f6c3922814d9ef61ef66500c2ffe4543e725b1cc0"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_0: 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":"core/src/test/java/com/alibaba/druid/sql/oracle/demo/Demo2.java"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"c263d5383792fa288fc5949eca5daee65dfe411f7353b3e78e863732491c1d98"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_0: 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":"core/src/test/java/com/alibaba/druid/sql/oracle/demo/Demo3.java"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"93d23a2d2d3dcd82c5ddfb1292a02facaf4da392ca3898dbab0d1cf0e6e10c65"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_1: 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":"core/src/test/java/com/alibaba/druid/sql/oracle/demo/Demo3.java"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"71ae02280fbd5cafcbe65d40112e13ddf1f247d2719f090825669b731eef0ffe"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_2: 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":"core/src/test/java/com/alibaba/druid/sql/oracle/demo/Demo3.java"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"594d3204c4f7793594c088e55f8483f17ed7a5d46ab026f7744110ddae8a3827"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_3: 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":"core/src/test/java/com/alibaba/druid/sql/oracle/demo/Demo3.java"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"8022ad12fc621c94d712e587326d81fb42c8aa0f3711b976babf84951a00923c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_demo_0: 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":"core/src/test/java/com/alibaba/druid/sql/oracle/demo/Demo_casewhen.java"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"31f02ed155686f0afc1a6b457166252dd77c4508bbec625b3aa82a2379da5924"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_0: 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":"core/src/test/java/com/alibaba/druid/sql/parser/CommentTest.java"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"32dee98bf5368cf6601c2b4ddfb4302d1ae2706797b39c3884329c4e9f5295c1"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_1: 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":"core/src/test/java/com/alibaba/druid/sql/parser/CommentTest.java"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"87658a27f7c1da6c7e769f50b68a1c1d396d684c611045c5f4b258e722bcb9e4"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_0: 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":"core/src/test/java/com/alibaba/druid/sql/parser/OracleSqlCommentTest.java"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"2de79863bb80491a833411739b42c30b3a3eb697ced4ca4571b17ef9e2666570"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_1: 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":"core/src/test/java/com/alibaba/druid/sql/parser/OracleSqlCommentTest.java"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5091630a078781d6ad2825528d6c507b9dcd9174bb94b3ddc439860e9802904"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_2: 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":"core/src/test/java/com/alibaba/druid/sql/parser/OracleSqlCommentTest.java"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"f66c79756c75afe4b26452ee810849255c93b77d6390e607a109be6eb2b5e58e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_3: 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":"core/src/test/java/com/alibaba/druid/sql/parser/OracleSqlCommentTest.java"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1c363eb00a43d2f1d48fbe188a1366bf6400e3efe6ad7d694099107b70dfad5"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_perf: 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":"core/src/test/java/com/alibaba/druid/sql/parser/PerfTest.java"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"f582eff7142165791df2d1047d2fc66f15761e03799792f4033bb38b96365581"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test1: 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":"core/src/test/java/com/alibaba/druid/sql/parser/SQLCommentTest.java"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2c37e95388f9df23f77aa863086f5b06b067a4f3c40957a7c388995d41ee8d7"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test2: 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":"core/src/test/java/com/alibaba/druid/sql/parser/SQLCommentTest.java"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd3c44d479e8906bdfd668f0ee8b75e0ce9b00f01ea24b735b2cb5a9b24dd129"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_lexer: 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":"core/src/test/java/com/alibaba/druid/sql/parser/SQLLexerTest2.java"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"20f1b6fb6596acab1bd0dc9ff5501ecc20450c2fe8b712665e0089cc8572e820"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_lexer2: 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":"core/src/test/java/com/alibaba/druid/sql/parser/SQLLexerTest2.java"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceed6bf97ca1eb11f28fbd0676e7d637637304d1881bb3d568ef72805c3b2780"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_merge_1: 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":"core/src/test/java/com/alibaba/druid/sql/parser/SQLMergeTest.java"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4ee106daae59e300b92e0d95863eb2082aa3de0f27c7ba322b68934d622591b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_merge_2: 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":"core/src/test/java/com/alibaba/druid/sql/parser/SQLMergeTest.java"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"321abd6529971b72ac02f0b7a2bd58abfdea66f240ea1e328ec681297993c44a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_perf: 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":"core/src/test/java/com/alibaba/druid/sql/parser/SQLMergeTest.java"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"26211763ffcef9a244802a882a374e5ed03b72bbc3d0e3c8bcb9baf98176219d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_simple: 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":"core/src/test/java/com/alibaba/druid/sql/performance/TestSelectPerformance.java"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"7308496a4b1add4641680ecee3b1488e6e73f834f860e18e8a80952a18f18f94"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test: 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":"core/src/test/java/com/alibaba/druid/sql/DeleteTest.java"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4d92d6d3e48248e4f021c6ed42caa621997ac40d70bff6157d8148f849a8463"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_sort: 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":"core/src/test/java/com/alibaba/druid/sql/KeywordsMySqlTest.java"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e50009c144da1bec1f61017bbc886bcac195edad37b629ca05d104037c243a0"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_connect: 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":"core/src/test/java/com/alibaba/druid/sql/OnlineOracleTest3.java"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"d305bbcb43339ae2d12ada91839cca738cb25cada00e83894c27b96d47b90fcc"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_0: 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":"core/src/test/java/com/alibaba/druid/sql/TestOnlineSQLTest3.java"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"13a81da2cc1f4cb458b3b84e7f4d7b612bbf6c5becead52da3aa06ce5931df08"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_0: 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":"core/src/test/java/com/alibaba/druid/stat/AtomicMemoryTest.java"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"eff15d81c4361612d9d745daf716212dd63ae401cdfd7880e0125003c21b539b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_0: 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":"core/src/test/java/com/alibaba/druid/stat/HashMapMemoryTest.java"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c27a0411ef94918aabb98c6cc1fef4f4637683109dfb426a80333a4c9d6660e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_0: 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":"core/src/test/java/com/alibaba/druid/stat/HistogramMemoryTest.java"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ff2b5f58a51573e6e8e4e10b2028be8c54924496ec8d580a7605e4c16700b22"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_0: 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":"core/src/test/java/com/alibaba/druid/stat/JdbcSqlStatTest.java"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"889c19658d905d9a502c10d47b20f8b83cbc34f20b30d8ae6d05deb90d6d7e39"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_0: 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":"core/src/test/java/com/alibaba/druid/stat/JdbcSqlStatTest1.java"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c4772ac15ea3191c63da1c7f1a49e0b360af6829745efba974ab6b7d3261c19"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_0: 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":"core/src/test/java/com/alibaba/druid/stat/MemoryTest.java"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d78b3ad24df46fe6a25ec3d11a4a2d4f284da0a4853471c6582660927eb9bb1"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_0: 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":"core/src/test/java/com/alibaba/druid/stat/PerfTest.java"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"861a64ef770bde953ad1b215ba177defa9bc311b3f075490df993c4dfbb1518c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_0: 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":"core/src/test/java/com/alibaba/druid/stat/TestBeidou.java"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"630283cef4188200555cdb59c3eadbb10a212bb3a97e8186ac7897ad20cc84b5"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_0: 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":"core/src/test/java/com/alibaba/druid/stat/TestOracle.java"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fd3a7b8b721b0e94b73df8554cd8d7ebfc30217ac537a043ab14f58345131da"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_0: 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":"core/src/test/java/com/alibaba/druid/stat/WebSessionStatTest.java"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"567ab22d6aa1b702239f0fb43ccd7a60e05145d00df3f05412d9c570262850da"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_0: 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":"core/src/test/java/com/alibaba/druid/stat/WebURIStatMemoryTest.java"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad53b00e1903cd3b0c4eb3e6726e51652f86a328294358051a9329c4f0745b0e"}},{"ruleId":"D10","level":"error","message":{"text":"Assertions commented out: test_false: The test body contains commented-out assertion calls and no live one \u2014 it runs, verifies nothing, and still passes. Restore the assertions or delete the test; a green test that checks nothing is worse than an absent one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/test/java/com/alibaba/druid/test/wall/MySqlResourceWallTest.java"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"040d52087ed5727edc7771e87bc1565b2dcfa13368a00684ba01f4f635f7d6a3"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_xx: 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":"core/src/test/java/com/alibaba/druid/test/wall/ResourceTest.java"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"caac15ce58f0f3e0a770bca3853f9d5cbc60668e8bb0b4578f40791405bcbac0"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_for_alib: 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":"core/src/test/java/com/alibaba/druid/test/AlibDriverTest.java"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"944f8098f1111b54fca3f9f685375db11a3c85666ca9b7de695c456852b0492f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_for_alib: 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":"core/src/test/java/com/alibaba/druid/test/AlibTest.java"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ed073f83d01925bd65e5d5492d7ac97bd38dd88b97a145ee67a2012b4235d13"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_fnv_32: 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":"core/src/test/java/com/alibaba/druid/test/FNVTest.java"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a08123ace6c72841904bc43123d8baf3f6209214c7d0f7a7d44386950656b2e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_mysql: 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":"core/src/test/java/com/alibaba/druid/test/RaspberryPiMySqlTest.java"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"277ba8d915cfa9a80a1f8eac57a0598ce9d3439c5cb06e0162a867dca73e3247"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testGenTestCode: 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":"core/src/test/java/com/alibaba/druid/util/DruidDataSourceUtilsTest.java"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a7948b0357264fb4f1431ffb30a3b8ee4128d81b1555b3b5bc80627d0031d63"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_bug: 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":"core/src/test/java/com/alibaba/druid/Bug_for_alibank.java"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"57055ef98452ce57dc9029b75b2f07cc63131dfd95edbc9f24fb87029c7b90f7"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_max: 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":"core/src/test/java/com/alibaba/druid/DBCPTest.java"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c964fbaa1debbdf3f4ca7772c4f4cbaecff915f9967b53cb9e3034bcd457791"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_0: 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":"core/src/test/java/com/alibaba/druid/DragoonMetaInfTest.java"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"27e9d8883b92047a2763934e5b7b92194b44f812e6f12dde6e9eb81933b099c3"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_0: 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":"core/src/test/java/com/alibaba/druid/LockTest.java"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5b3f6ea39e0d9907d1df7b528a29b11f468924f61c89cc0ef425db7419225e1"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_histogram: 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":"core/src/test/java/com/alibaba/druid/TestHistogram.java"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3a3d8cfb39a20e1611b311edc7b87cfbea86e104826f2946728ff0f01177dc0"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_lru: 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":"core/src/test/java/com/alibaba/druid/TestLRU.java"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c48bdf712bccec46205d9a9eb787bc71b23aaca539867e30426997c8c3e4af0"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_o: 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":"core/src/test/java/com/alibaba/druid/TestOraclePing.java"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2f2b41383aaf7b76b42337906a885a5f0986014555742b6be84d2e420dd9f94"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_0: 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":"core/src/test/java/com/alibaba/druid/TestReplaceLicense.java"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"2af5b5367b12db9f1b097cbcd2ccdcba5c3bf48ed8511a10338783d752a07e65"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_0: 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":"core/src/test/java/com/alibaba/druid/TestSqlServer.java"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9d27d534b08d46fb3e6f1dd83b78b9494e9801cfa10f6f765cac1de7f71cee4"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_loop: 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":"core/src/test/java/com/alibaba/druid/TestTraceFilter.java"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4c696a02768da5e912f9d70a1a0fb7178d631c25707cea104b38885c85182be"}},{"ruleId":"D13","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":"7ce6e9771f002485e4be4dfaf17b9c74ce768f5880214957e8d85fcb98ac5be8"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D13","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":"e9f47e4e578561ea63c5451efd6b0ec32c3a9e886a2ac1d3ba458b4d3d1b1c94"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D14","level":"error","message":{"text":"Banned license: com.mysql:mysql-connector-j: \u0060com.mysql:mysql-connector-j\u0060 8.0.33 is published on Maven Central under \u0060GPL-2.0\u0060, which this policy bans, and this repository declares it in a Maven or Gradle manifest. The licence was read from the artifact\u0027s POM \u0060\u003Clicenses\u003E\u0060 block \u2014 following \u0060\u003Cparent\u003E\u0060 where the POM inherits them \u2014 and normalised to SPDX before it was judged, because Maven publishes the name as free text (\u0060GNU Affero General Public License v3\u0060 is AGPL-3.0). Where a POM lists several licences they are read as a CHOICE, per Maven\u0027s own documentation, so this is charged only because EVERY listed licence is banned. Replace the dependency, or record an accepted exception."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ff622fa1e56b51ad7e29dfaee0cd2c23ceb3dbd2d7d656467a58bd35e61d3a8e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSelectParser.java: core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSelectParser.java changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 41 in PGSelectParser.query at line 49. 2 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-05-03..2026-08-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-05-03 19:32:53 \u002B08:00\u0027 --until=\u00272026-08-01 19:32:53 \u002B08:00\u0027 --full-history --no-merges -- core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSelectParser.java\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSelectParser.java"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"daed54f678720b7aaf2a62e0782b7383e7e8ddece3bfaf91355ec624d4e1e16a"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 4 significant file(s) lose their only recent owner: core/src/main/java/com/alibaba/druid/stat/JdbcSqlStat.java, core/src/main/java/com/alibaba/druid/filter/logging/LogFilter.java, core/src/main/java/com/alibaba/druid/filter/logging/CommonsLogFilter.java, core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableAlterColumn.java. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"c36963175a440d95112fde5cd3bb4f2f1e666d7ec3848d1ec81368732e5a962c"}},{"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 (8 single-owned of 500 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; 500 of the 1758 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: core/src/main/java/com/alibaba/druid/filter/config/ConfigTools.java, core/src/main/java/com/alibaba/druid/filter/FilterManager.java, core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerExprParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/redshift/parser/RedshiftCreateTableParser.java."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa9c9021c3fe1e64273fae924d2369f7442ee0b39aa9d8ce4236eded7454c776"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"f08117053709b2ee7bd5009e02e90a98ec91603ae77ba0fb8e1817d5318341a2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d8aadeca43ee4f9102414ee1be751f44d47886391dd212ddad2cfb24435be2f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd9d07c71ecb71480faeeb4d4ccd9838fc3a0634598265f922a4eb7143722360"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"93f70ab17c4ce6d2444893733e76aab8eae2299ef709bde782f7b6cf9b5a3cca"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"9822417b6a0b967e128346b10d2df930a94f08c54196261c9a8bb1a9f2a0617a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"71cb1fb7f08173a1d0560e5d6d1434c3eba3b5d317fb1d4762dd20495a5027da"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"056817b74268b3a761d1bdba905a2ef9a98e161af258f52b116c62bcd7497820"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"34551342834b39f807530cb12dc6731204ed40240ef1e234d100944fd1ff9f3d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ca5aacc3a34a444c97b6911fa6570add8fc26583de41a82b3bb5fcefd4b71e0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"a40152e60fa9e4d1ee610af2210aa80a524293f484799bf46b3b5a158141cede"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"21c7e13635575a61e55d54c778edfdab9b1b09c2bc1cc05c92aead9d0affb0bb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2b6718581c300d7510bcd08a1fc27c99979aa3a312789ab4e198b00e48579a0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4c29c0598886f45b414feb6b0a0ccfbd545c951df83b55d0f7cb600edb8c419"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ce524ada76175b671637791629c54d4ab0b523327eb73b289b4258c940123f7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e2ce7310c234389e981c6fc63765312da27f659216718b4f04ca34f235abeed"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"29ac7382d51df532bd62508106a9b2c8a277b4b9baa710adc488f307f7bd0e0d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a59753a0d5a0ebc44e4389f4f966052a7996e388a791147251d47bc4b6648b7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"66d5e7f94b60239157e6932392f6f44cf33d83ecbb15c4290465e8da187bd625"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ce98b5fc39474ac30f3de2446e8953ccc154bdf729c3f4264b98bbf55ea64cc"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf48e87bc85aa73937748d81da72be34401c0ab60c50fc73b0a1d3b05d875f69"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b1d3183b14287635f6528f87db28786b2e8ccc1ce418d1db0c9954e434e19ed"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef8460731c24cb14a85f2fad9f733b8e7c8b845ee9adb42c39bad08cc92f7917"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5639a72dac4ddf26109dbc7d3bb9321fc05cbdca7a2327c67bafc5f05b26605"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5c1e25a704775969535d579fd1c8c0f679d76598252976c897ca3c1fd368875"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"09afb674bb5e4354581913dafc98c8fffb53aa2a686ddc38591444db66ed326f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"434d9b4f1d071e042bd4846d47dae0e4a7e22ba080c91b2083789ce396a638f9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ed8f1538d07d1d7b163e05352a185097d691ca20580a10be8584c118eae7dba"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b68ea13f17fada5d25503069ffcb60e634e7320ed8c4f825d13e20ff108b07d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8fc4f096a94fd16bdb7524535d0348f4da018acad72cf5cb5109b8373455fd9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"af0eeba54eebe9ab57a2688f9d5cbf978c19e5e64055cd861c3ba9e6081bd265"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"c89c9d13eed6c5b127f568de13f7153277fa8a7a2de096d21b1f210c61f01a1a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"54d88000d12b1f69771ed937a7e2614cbac68833563684633977cf6d772bf943"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e2353075b8a0c5bdf9dd93000aac8979000d5321dec6d20d0b55157eeea4b0d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab3cf2674d1a98173e46d46f782b472f5fe1b1fedba44126958393c135727411"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"89b5ba73517e300735323f5652f0cf137da396a5c04606770e43f02ffa15f86c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"22e736c9963667b60cf2c2312ed53d5275a3a3174dcd5d083e7a9310046aef89"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1bbca2b125075be58519e6b66fccc354a7397fabfef16e04fda9fdcbea57c47"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"77d446a12d28112a31aac63fe282b10c711a58c0d9d92a274f82b63a44cd7c1a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7141d47b77a36289277329bda08b6e84cd1b57df288b765b115254ed68b5ca8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"9212c3cff56fc48f6ac89180d262c470e2f516e705ad7ab9e65ec99032c8188b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"4222abbab409474ce9dc684bf7780b902e2c839b90bb3b1e5a2fe2bc1eb285f1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"53aeaa31c940c9bd93072449eb4fa723b36b6cb48820095611f414d1152447a8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"c43d4354057eea00325866414baa234089b22e5972adce365c055c06450ecb6f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"31fc28d878277ab8953449d28fdd811dbc27e897a8f9a378e800ff80c4abe86f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"66da2dc331be6a10084327137a6d7f0a93b5241dc533a0b5e4d8a0fc0f09d183"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a512052d2b3aff93e18aba0ee9d7e8c502b41782a681980c493ddcf1581fb8e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"0958d1b39e4fd81bea143a87dd4ccd9a70d9591d1a866cff6a1ac62dcc110067"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ff8f930037a99a06060c58299acbc2318f29babc4d9e0790c40f3cf45d61cc3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f81e04cd75a01b74c7ceed2cc5bfd98cf06473ef97835b0ebf8ab6de0d93fc5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9e361007bfc802652d6af9d7fc2e8616027dd9270304910d1e46c3dc3981b62"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"7177b39aba2a36864be3a43236dd39290de5c7020b835d2ea446c988e7903d07"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e4af413d99dfb8a9027f1e1e4b5c6a7c2005282fd406eda5d0c1020460deca8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a6e0f44c8f1d8a09aa59b2fc131db39cdc25ea3abdf243bcede7f6150c5b146"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b69f2952dfb8653b85d479b27bc9a34e99b1265471f243fa8c820db9911870a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed55112a3788b76014b9a81d7e7a3e0797ff4ccc393ba4d45e36a1d18b26bc10"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e9c8397f43b227ea32593a3932afe649cf8cfc5366c6893647a55f789e2282f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"19a7b94ab5ef142e8688cb90718ecd4bfa65ee71f2b768e2a45b765877b8904b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"1256c50e3d474efa12a51cf3313b061b7c88fa6b12e82c785ccaacb468f35842"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"18eaa0a9ff1ed79178fcdc82f18c36a3cbee95ca06971673cdad2e35d835e57b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba537ce74843d6a129cf5d22106eae7fe8c81837ac5cb275b45aaa37e903c410"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dffacbe965c6cc961602b9d1d621a79afcce101e2f63f9c2c0bd8ef83bb22de"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fbcff447b23ccb48672ba57e730ceff2cfc84da3e00c05fa7494f84c03a5210"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c4c92989c9f84ba9908754953b89c9d637f5b2adab53e48feb04538fd2369b3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ae19c26632888c6bcbc8b4bad7a6d9ae4613778b3b10ee01cd9b5dfdd8cf00a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"4299a4cc2249297ef62657a18a235d99267ab208660db38bc84c97ca6da652e8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"47a0800b0c464e79f00d439f14adb227d0d0cfc7a9252b621188bf35a090e9fc"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5bb1c69230ab293a690f390c84302e16c31ec09537cf45d6d03e5f2a6d1e11e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"02544b3f742ae2c0c146ff83b8fd95a9d6b5e267b3f16e73b6851ea8db6949d0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9a2ec869fcd7a4ff4ad29b516a87cecf541d8d6aa78c9f86bd248f09efd10ad"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"327da3567ec953d9e8d9062c316051c49a167905626cb0ce4e88444f865edf2c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"c168a0eadb53c4412e8d619e9f2e4f62558360ffdc726a7657cfe4e748252c24"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"048d08a98cdf9d4a4e0dbabb9b94f83a376a8d15d5c68b132a295fbd475e2653"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fd3440e392a8204c02aaf5eb36f4dc390c87a348bc0eae1a4ee44275b5b825b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"281a92b59f3d8f77f5b464ff65c355d02f2c45f5fac43c3361f8e5bd05eb5b41"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f7c8880ece9d68394722e21c9f42133d21d44f523a1cdad98224ee16b2f739f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"780a9e4ec95e1d3e92db8e381c8393929efd0a39e9428970ef8a571ef7a1ad06"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"36f498a5122d2277a60d3a05b4256e15346a637cae64a3ed48774cf149dfe4c2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef174365d9cd65748ade0f759a13a69baf8633a155a2efb050a8d3377a3387d9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"05b8ce573553638dd58f47b70e48fc88ca3b9e8f23bb2889fc987fac99dfdfc5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"0819d522c1c5a7a8c3c25dcfdecefcac7b22ce57ce310ad31c7921dfc5cb81f7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ed79a440ef74ff3eed258f1d78d480277e6144031f14bc8d1bb64b4baf01882"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ce1dca4044eef6eea0981e051041d7357c182075a98c01668a898e3ead9aa10"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"767c34423120d672daaec312c4be65967918ca3aa56bcea6d506d0ef4486c80c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":593}}}],"partialFingerprints":{"codehealthFindingId/v1":"548ef1e8ac0ab9c2ee68c006138dc460c680a56c31a134e615e5d079723dcb33"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"28d21d1191855ee6e01ab1eb81483f8081a339a1aeb52b94c7e39bb835741959"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"16a0f422daf91c1c5cce7113a574a60bed91ac86fbced6c5e4be8d65b7dab1e1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bf24c8e46a493d91d369857e1ff204132a375dd7b43cc9d61b7745e85f063dc"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"f38773e22f327ce48f714bff78bf301a400f8271f7b38d7767900a613adcebf1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":618}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc129aec1c9b2a377b395d5821d994ad5a4ded72b50237d57bbb3f643ed36767"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":623}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6afb1c3246f50580b425e5eb0f8a1ec223b5daf5dde7b7894d1f7cf40750813"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":628}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8f1bc5619145e433c8d69e117f9306b692121eef9331782334f261f51765f31"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"b274627be4ef7452e58aaa90a7c567d52997d4287e76185e3d1b53a14aa50462"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":638}}}],"partialFingerprints":{"codehealthFindingId/v1":"69eab8341661b932ef1651d99010d1ad77f35393613cd66f7144051247e0c234"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"318d307b631d95bd685fb0bad9cbcc8bf09445cfc8a3e81ac110dc83df836869"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":648}}}],"partialFingerprints":{"codehealthFindingId/v1":"c082612f171e54eeac2cdefc0c7bb1c3255b497fdc26f90fad22358f6a51958f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"70eabd62b5f29bbfd9af0709051a74ad1e69493b7603361879b2a280a328a4cf"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":658}}}],"partialFingerprints":{"codehealthFindingId/v1":"43b2cbdbf1281a926615ec31794d7d02b347e1e902653f928c6b4b3ec055c415"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":663}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c190c9c0d5547b88ef3058966dd298c4ca7596d6d41fcd1e14532fd9037e160"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":668}}}],"partialFingerprints":{"codehealthFindingId/v1":"f865d20d66c65f55fd1504530bb6d8b5e3df29053703b52c179e9355010ac550"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":673}}}],"partialFingerprints":{"codehealthFindingId/v1":"78f36bba9d214bbfa2584b3e0b58da1b3690bbd6cae39eead30693fceb6eab40"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":679}}}],"partialFingerprints":{"codehealthFindingId/v1":"3caebce06c83d9608621c6616661ce019af20cc20521f93551004cfb5de7ca26"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":684}}}],"partialFingerprints":{"codehealthFindingId/v1":"54f582bac22637ad5e5bfe49173826c14a9f232f94e03cbb52d9e5abd4cf67cd"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":689}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1003ac01b168181447909725e03bda7379d06924af632cf5f8cf4d7b7002947"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e523758a0d07bb84572c2309ae5b23620799799ee078ab0337a17d1d5f395e1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":699}}}],"partialFingerprints":{"codehealthFindingId/v1":"4142ddff3cd74234e461ad75d1f891ec66030c00ede7fb27b1539e62c6d9dd0e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ee6342d285c072d55da5dee1fa0c11bf02f43c743a6acd92ee8bf8e876f46bf"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":709}}}],"partialFingerprints":{"codehealthFindingId/v1":"31243fc3197049f504ec5966fee12fb7ff0cc6909a8e90fc04ee3fb7bf35a1e3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":714}}}],"partialFingerprints":{"codehealthFindingId/v1":"49265b15d400c7f6735a0c9fed3dee483cb0ce097bf7f0c38dc4a3153fde0606"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":719}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6b4611c473e0bc24d989b62f9ab249f2c07f7f36a051b4f47c4b9946ba6c44b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"518c37381262d06d28b085aa3a8a2633c6ba21dcc9ef7504c04ec78fcfdd3e87"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":733}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d8e8f53050402c43c203bf20ac7d6d27f635431443c433697e3ba71c60872e9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":738}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f80e629c475b04b722a6cb3cbc589f648bbbacdfa366ddaf251a555b9fe983e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":743}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9e693e673e020218caad9b1241c362e65d7368f54772969dc2009a2e6696acd"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":748}}}],"partialFingerprints":{"codehealthFindingId/v1":"baa210de6874decf4a6dddb053c94c5f94799c1b75a6748db87c7785e2b7718e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":753}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4aa1a95bbf9af947b4b790afeecaa60168d38aa8dc4d1f01099ab3be9a44b1d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":758}}}],"partialFingerprints":{"codehealthFindingId/v1":"62a55743f5a8942bd81bd396a03454775692ceb95274df3f426de21ce127d2bf"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":763}}}],"partialFingerprints":{"codehealthFindingId/v1":"b232ff6e1dba49f738c61c7bc8f3eff1a2ddac178d6c765596c2341fd49b92f9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":768}}}],"partialFingerprints":{"codehealthFindingId/v1":"f09c0cfd6fdc564cb3c0a7cbe74ce688ca0761b9f3bf72da5dbbf4f204f3f6a9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":773}}}],"partialFingerprints":{"codehealthFindingId/v1":"b22d25678706bdf1cb5910aa2b19f88f1553ba1ab0d9757d8fb3bf744e429ea6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":778}}}],"partialFingerprints":{"codehealthFindingId/v1":"81d41deab4c655167daeea9aa8fea3e11d7cff8d1e7b41fb5d6ee5a7178026c7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":783}}}],"partialFingerprints":{"codehealthFindingId/v1":"361b793fa5602439684135eb4571d8dbf689ea08d857f1a6e8d76720f8a9196d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":788}}}],"partialFingerprints":{"codehealthFindingId/v1":"54a66668a9b2fddc5b4e59f9f93567b30b5e1cbdf04be4df206d6329c2649cdb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":793}}}],"partialFingerprints":{"codehealthFindingId/v1":"ced335be677d13e49ad0847d61787f42141bee8b971307cb944f268f42a7b9db"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":798}}}],"partialFingerprints":{"codehealthFindingId/v1":"d22dda028d2600cee4afeeeb927b51b17e18f165ba6cf5f4fa0bc3d8a3f22e4c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"b93b1dd9f2ba588dbe421bb12e7e386f1b781e4bcfaf4b92cf9e5483651618eb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":808}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a17ce62d37bcfdea315d48642ad6c435396494e55bbc6aac2b1a0d3fb125aaa"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":813}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cd2fc0232a8910ba24d27b70a1ae68a21571799021e98d15ed5522954aee8b2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":818}}}],"partialFingerprints":{"codehealthFindingId/v1":"9796a60f466ecf9ca6f4ad815f0c72384dc8555e9257b37a9234d68db188c96a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":823}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5a7dd93da72f9d0a6393ec6f5e5910c1a85734ee0b0b9ada8a63dc7130f1709"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":836}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bc38ff7720addce8f383a9124f92ddd9255e3b5e6afa6953bf05ffe9d3bcb0f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":842}}}],"partialFingerprints":{"codehealthFindingId/v1":"da6e6e9755f29ccc580d07db04f4b429fcb4925922bee72338d2ccf96016321f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":848}}}],"partialFingerprints":{"codehealthFindingId/v1":"58eeb7366827da78ac5b9ac2fc0f8628808da42bb2e8d2049178be01447405e5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":854}}}],"partialFingerprints":{"codehealthFindingId/v1":"12b6f8e993780c8b0cfd81fae7baaab0aad34fad9ad7738dc05f392b718f85e3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":860}}}],"partialFingerprints":{"codehealthFindingId/v1":"285646ef80089e191510aa977b756d6a835a08144b9fb5635632b8d37ff5075c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":866}}}],"partialFingerprints":{"codehealthFindingId/v1":"d716e11314f6a028064820438d256fc14232c8618b2240b4c6f9cddd84571a36"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":873}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b9a046a242413cd215b8e72630ce5efe5b5db1942e253085f670b5ca06af3ac"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":879}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d333533b77536e02c488dbd163ab82b4d758397349aa8c8b5180ea6e768b0b5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":885}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6fa7b80cb4b6a547527d8703244dbf1b65120e02feb0f3db009c8c1a5700ee1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":891}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d19dcb4245e75d368d57ab7bdc806ff5b1f03a5468608355857b02b6b15f713"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":901}}}],"partialFingerprints":{"codehealthFindingId/v1":"f805271b4d781cd743d186b5a46da766e53b1b91f566c8627d27cff518c44e9c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockConnection.java"},"region":{"startLine":907}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6c9c49545774f56e2eac5936fad82323eb2dc388bbe1ab64c38c7aa58052a68"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b0a7a392e1bd7440f32ffe5662483c4e553d08e240ab53537c9f1158beb1b94"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb04aae0a89ebce9f54da829b0fcdcd9093af17fd7ef0e3fdb8457fdea84f7b0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"16f8f26e645e397b63a5d13b813f09c42218a3b51ad54e128fcb53f01f55943c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e96cceb31f3674e0e8cb21bbb44cfaf7e3c7fc7681bea273a54e4d2dd6573b1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c32a3fa3e7538ef974666c003e9b15110d40d5a4ac2ce75b5a0a4424c188189"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"50c5ec72bd357e261c925776490ec3e68adf0b09e79f1709c6d875898a9a3d23"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c386c8de066bb0826badd0b8a27a43fc74f21c090acf4d944d405374d39ae72"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbf5b212e44164966e9bd4aa23763d7f428532757153c2fc7c950e87cfa072eb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"01b04cc6bcaa4a2a3206ec93fb187faad6bd73b0a32ed87c03b73d7060699417"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd0474cd7620dbe9e030e963d9a39badb1c35f2c1e16be5734bcfc56554adbe5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"47eab34f8449125ed1fface64c9aa116c9b0bd5cb9c9c327432b424a47f2fba5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecb2bd28428c7dedcb5501a280b4c28e3b17f8dd0aadb2b34fc18d95441ac467"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"073fba8b1b7a1d0efab9546cd6d455bfc2e86430e0d214c53ad8ba6f91ea28cd"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"45369f1a0a5fc365f0c662537ad5071dd4701b5ef4c8b8ba9954e650c0be7e75"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"15687359b843e27e0e9d115bd15bdca0150394e284b53bc82f4c979ec349ef91"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"f062ef39ca57aac665806bbcf493ab44d9011efa9e21d569ddb195d9d3f3843b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"c340ba66ea6cadc93d5ac29a7f7b6bd2c17e712f1d379e719385494e1fe43953"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"8554874951603a9688117e391061de2adc0e5aa2e0a686a1427fd4d9e96b7370"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"81606adb0266396f2a10b69ac87c6a5a84305c031db7b1beefd50e4e723ef1b9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"f595ec2fb3b706254813fb8b4bb2a439eea03f537f33f519f6bd1a56f44c666c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"787afc29e7662a5d5c13be3c48beeee666bc44761da14cac2468d3b65cd61a0d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"187319e8422cd9c2e6d94d47e2d68b2874e0fb5d5a903a0428126e0738721b17"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f70608afd2c01a3a18da975a4ff85b5bf15d10b3b698b837b750349b94cc160"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"da1a53e3b6f4d9ea9dad06424213a155a4b9e4b3efb5e1337320da4d3ee14de8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d8c16e29353b238adf9e23a453e1b6e69aef6d67826a91943d1dc4ef6ef5c0d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"36f702b6a21b5dd602b5837cf92b8c3cdd578b9988684680ea1585be56915d77"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"04ef61d9a14a31128a985d895471f9de981a0143fa02c2cc6a767a3aa3b6d3c8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"353066bb865803e8b947fcb6004f32670c071c88bb0edb8b9beb40ec52867fe5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f8b246cdd6f390c93e740e956d54fa4133e6771084267029c19ed6c1ce002c0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"7069c46bee8ef82f45fa5db086931957c79807d92e7ef59bd28a6aca3a1ce93d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe38c426505de77e3142fe0075e8a958a85f73e5eb63f1c5b0ad948b258c7532"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"efbe5c33a3c98a27292a9c4585d73c92cf6f38abc666bc2ed6f120936068b1d4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"1404048cad061a7e3721ba351e62cf93eb2faab9110083906994122cec6579d4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"b31ebfc95662df84975f139c8d19d754506aedf88d73c4b5048afd9ac4fe7c19"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"69e241b631571976b0b02ee81944537339e244e19c2a672391bb55641500abdb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aafcf4c6ac82fd2f17597bff3974f0645090440ede3621332a43b4f64715c9f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb787c3cc9ee03c80d8d9caea474f0b6f4e2aec8f8c20ddc15291f9e3d98aebf"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6b06de28684f2e03c666e1b5a94cd352b396e8b6c976976f52af93d826d3583"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e8ebcddeffd2cc5a3ffaa1d362632b3ad4de1ce2034bb726c677ca9686369e7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"f009e6d359f2a46f8f6216739710271981664aabc81b2ac6b36db71854053470"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c6c786442d23973c489b87d49fdb05da8d0433dd8d89342cfcdad2e162b194f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"899d9277dd635ac6b0b3d53674161ff18f3e79b1541ebeebc0e9a64b578444aa"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b821b1fd344f345d524a2cad11ec2e530e05f91b1d4480aacee3ffd435fdd70"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"4256d65835b55566454ad2c72ea9d0262092e3389a9fe11373e7e358cce5e9b0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"51a6bc42328838e0a1dc1fe3653ea00a14e8bdf547216ddf96a2c4ffc27ee4b1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"95c873562e415c004c4538dfb91b1f8f2cc03125c74d9212bd16553690150c82"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"851654ee80db3accf4fc76ffb072d0a29d5e9e9d32f436edcf1d08eee3e645a2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"5984ef23396a51d15c6538e36a5d81b3ac962b9403be8905dd4e9f431bc0437c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d1a8c8cbbc9391d7a00cf3e7992911645da785c114f376a62f66d48dc075725"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e1d4ced70ed770403e81658fd83ded2f7917a7147cea24b9ebf46fca7bd33ff"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"8674416825b344028a902cefbf927edf8b5a0df4aac6ff4741bfcc7cc4ae53e6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"645b004ab5815c670c329cd4c5fa1945359cbef2fb4bb9fdc6174ae025d5cae8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"57e7c6190cccd2173af62f249578877af3da98d15e045ffa9d24ba989297949a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"d69bcb546a39c7a80505bc0f390185641a1a8551a79996f32e9b8613feb6c7e8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"b06e3b3b11420bb74ad79f9307137bdb0ba7d3067785b8b1eec01e3a1cce313b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"19cf1091f5eb83d67170a52c8117b01610298cab19adaa59ba3b76ccc9daa6e4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"db3b89d74ea6fc2ff413fccb7736b1c3566119a4a568c039bafe522acad08ae3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f449747ae6ecd048afb997d0bd00fe75ef904d2ac7d13dbb1ed1340320e8ef7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e527f4c7b7b754d5da508f91424b683b181a182ac595c5a4c90add922e0d801"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"09b6b1e7a986b5b29e501e7bd11c29a8723ced8819aa1a754887af436de579df"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"a699fe093dcfcbceece75432cbd2e97997a87d81135d06f7b43df398ba57b631"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"b39ae1eb99a6a280abc24295494eab1b01e69ca364fb7a87d7c0605a042102ae"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c823268d9228163f38ebb5cce8b1e4413ba31bb4713895fe6555255efa28d50"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"9841e52e1a773db96b1d989ca40c36ead9977e5675ef13d82264cd93ef1c88c6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"a56c7e9989ab06300a5af1983cfb75db7549c815a243bed630fbf9a49cc5e6ea"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e7b1f52aeff53e6734641106d70793ce44e7dddc80653fd65fcaf33c532bfea"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"dacc7c07859b69fe4386312dd5018173f2a5cde0fe9e6319f9eabc3600a61d16"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4810bc2293a1b49e046d1765c402de5dd2cfdabda9b300d599d8ca870022def"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccd9d34dfe1fd1783c075f13edcc3ba40152af1e16aaa4af6777335559923054"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e50dde19d28009766a5dfb73274dfcdc2d3b5f618871eed61e31a6904667bde"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"5285091493ca7a6f97d17e4570b537a2546b1a0db0471e5cece9dfbf42428661"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a076701c3a9ef629d743cf1133cf9ccf1d8dbdde11af366a96f186fadff83dc"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdc0dc71e4c5e02e79b4870618d358416ac8918aa6f0e09ecea326b9b826277d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff6ac557abbff089bbce1d4ac0fecafc27cdb45cb3b3bde1701ca24cfc57d4ac"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"8169f8b6c7621b9cd87952a72e14cc8c68380dc2f386e24320aae1b23e649e1e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4bbf79aaa4c4bebb21729dbdc17bd0b8b19399bf4ed07746e78e6740fc9f480"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"d235f63c1af91bd835201cfadce9594869bd4cfc3fa1e3057fb5c4c8f6ab5315"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"13da2273ef5ef10fe88929dd5eb55887ea752e74969af5c7860b0f8fea5114fa"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"69adf0c85a7e5c09656d1a4f6dbe22688867000f3b75de6ad9393b69763be635"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"7feeb00ab52d54c26b8598254c76d0741255f0db3c8a005e8b5768c0b64a28e8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"5be10623ebe6d05b029c7cbef18e0296b31a0e3d4b784319dd2a5292eaabcbce"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"19589b85a6b3f2889517d24f4710cd8dcc3277d1018da34b9e822ccdb707a6e7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bfabc32e3451df326973429f58aa3871ba9c6f648fbdbff172b76001e909443"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6b4386d01a970b907de4387fb9acb0d09df3e0432a483b993d0552f539ada2a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"b79409dd44474a18b8ae69eb107ab3685792a73b68ad1781ca676212c61a9427"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"71cb44a2d686b29a5ed749fa6af05bb3be5ada301b193ee081536e7142756ad7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6fb49daf9614617d697f2b7b29e4cd7110a57cc4e085fe9dd32bb8cd6b8ccbe"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"74638fa1029b12fb739e6b1fa478b8f56c903550787595f64dbe270b60162ae0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4c1d0c0b3a5296e8e01590b6c00b8dfdf59901c016307959c5a81afcc5fd6d8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ea062f7cf64edd04d90f59d76f2bc1e91aa9fd9c34aad31f598896f8d1a3566"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"3acd397a0c0c557fa9e42998c0fbb93cf3dacd9a36c31faed7c5c8989c207ea7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c34b3f353c2bb44c2039ba89e7fcdff69fc9c62250c4d1e99a60b315ffae93f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"06d3381a0916e35b133f875c0461e40c57a87fe8a7f1b431e3785f02a32ee86f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"b46bb6279e7fd17fd95018baa1bdf125a8eaa6037f4e80c2265e7f480a9cc724"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"2332d980a1892ab68e832b00a3b8efaa28710980f7a89b375af6034b1cdc175d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"7adca3ba08540e5072cf125ef5accf0f5986bbc74558fd63a6f34247dd65de51"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"52171ca2b7341ea0ccc97ca74b38fa13754e24635892c2ec190a177123fa24df"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":628}}}],"partialFingerprints":{"codehealthFindingId/v1":"38b6fbd8ed10d923333ab3f2771e576ae8ebedc5a448184b979453b8d473195e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"a10fe174894dddb50a3f5dc582ad4ed384e2ed604a3b61abd318904359b672d7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":639}}}],"partialFingerprints":{"codehealthFindingId/v1":"85bb7fa94e17621bfa20120add27dbcfb8983b304a83c147a62f2fdc9ee0d025"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":645}}}],"partialFingerprints":{"codehealthFindingId/v1":"e142530eb761b640240acb182e1754a578259013e99c3a9ffc6178c567eefa7a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":651}}}],"partialFingerprints":{"codehealthFindingId/v1":"b379b066fe66b2abbb281e2052b3161e83868e1f7655d08fe60c426a7598c211"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":657}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e6b162ffba848395e623a325e4b010cd754abfa7a70f5376397fcaa79861bc7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":663}}}],"partialFingerprints":{"codehealthFindingId/v1":"17211715412b5716e20e6e64b96240ed75117606d64864c43f8c58fddc72713b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":669}}}],"partialFingerprints":{"codehealthFindingId/v1":"196d59155d47813473f86120d8198dad25e2e6931ebb9440e2cfdf9fb1e29535"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":675}}}],"partialFingerprints":{"codehealthFindingId/v1":"127f1e05f9dab487ef877ee294585c74bf264b99d309942047631c69858a3f2c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb55b267b4ad4cc684ef63332e054248992e5fc3f9d1eb1525bd89833c7a11b6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":687}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5f885e7ffcdbed10cccd7f2b40f2f6ba3dbdc0c2eb04ca7e81e5da90d60f5ac"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":693}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8efbabd8d55b3268d896c994abe277111faad5949cf7f911863b348da448aea"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":699}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f2b2ad062d451bcf3e20948c834f4001022484198cc0584c825a84771bf98bf"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"d900a30f04986f9a80a49b53777156d2aee02cdf7873e306f28d7bdf88fa356a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":709}}}],"partialFingerprints":{"codehealthFindingId/v1":"51efd3e0dfed101ec182a633be56cb1ad1b1bb4f392d5afe0fcdee3291332589"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":714}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8f648344f01e2aa3f43476d224e0f96e928e948ffd1af6afb202c2a27b8a3ff"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":725}}}],"partialFingerprints":{"codehealthFindingId/v1":"34a0667ef0451fa48335f570bcb914297a410604cda7a2d70e5198fc9ae82a11"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":730}}}],"partialFingerprints":{"codehealthFindingId/v1":"5258f53e63a879198742d2472148a597921b4c1903140e3b389e8951c27689a6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0c9a14c645fa0c1dbb8b41684d0b9fc0c63bfa6a12f3b4cc57ab4f84c4b11ca"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":750}}}],"partialFingerprints":{"codehealthFindingId/v1":"30f2351cc3f0d107f0a90068056708431a8f567744732e8d54fde5193907e2cf"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":756}}}],"partialFingerprints":{"codehealthFindingId/v1":"c38c9d9fa10f4b40489f8a87b19505fd4d089c3c4229b1bbbeee7c16c14210be"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":762}}}],"partialFingerprints":{"codehealthFindingId/v1":"15d259cf7910900fbc582c2c4c50a143b690bde2137781ed9f784a5eb18832de"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":768}}}],"partialFingerprints":{"codehealthFindingId/v1":"01bc880062f708d96df1c5be2f5339b326b5598ae461484d5c9856c2a88b531e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fe5a39095f221010acc0b305e128e5bccad972fa526528422f8e5c277d266fb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":780}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4ed53928f99f815106d3b3b21dd865c2839824e3f5e5e832c0f1e70631f41ff"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":786}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbd0b3a488803b0e80dbde059acddaa149e3be95fe7545a212e258a47d555fca"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":792}}}],"partialFingerprints":{"codehealthFindingId/v1":"d615c6745de338eb8a733e4d92dafdb5a424382e2cc4dfebca928948365332f8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":798}}}],"partialFingerprints":{"codehealthFindingId/v1":"097806745999235432558ec1acb4fcc81b8191540f26f08ab07d6d4c87d519a6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":804}}}],"partialFingerprints":{"codehealthFindingId/v1":"848d0adb83462ffced36081084104d0441d7fa3af51234fb5a26f29df9e70274"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":810}}}],"partialFingerprints":{"codehealthFindingId/v1":"92554c84569e2137fc58370b4f67f186a903d87ceeb97cc9726323a8dcd994be"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":815}}}],"partialFingerprints":{"codehealthFindingId/v1":"f141f2d676e8ed99c881bff653802ba0ebbda2d46819c6861df561f42112ce3c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":820}}}],"partialFingerprints":{"codehealthFindingId/v1":"203b8c8f15579b8f7513b94b7b944d14760708a440a97afb591fa1e3b78c9fd1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":826}}}],"partialFingerprints":{"codehealthFindingId/v1":"36a0727b2b6bfdd5b089e8983fdac481bf32748fc0473182bc976ef0940e8c44"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":832}}}],"partialFingerprints":{"codehealthFindingId/v1":"03265f93fed8ea8b89a39f83feb39a67b5358b949b680a8b187151d48029a606"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":838}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f9832e5e299fbc490ce43a15edaddaecdc42846a8ff0b7444ee1b3e5c46914e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":844}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbe4f6c712fe5928f59dc5799ce7d8db18ebe42478dbd65d4ca07640366a2bdb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":850}}}],"partialFingerprints":{"codehealthFindingId/v1":"c108d334cad3b8ca2e0d8a1f57886ab12f4396614c3f1ec8d68f05e7ef4fab4a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":856}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ce59d1934aa1a35e071299abf1cd9d3fdc2f1c76b02e7bc98ff2d0888a45738"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":862}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0af29dc1bbaf40206186bc0bce41ce32d46442abf3404fde1693dac7868a7cc"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":868}}}],"partialFingerprints":{"codehealthFindingId/v1":"28cd8c2a071c96f449d0ddaeb14037b072cd7a8ddafa4213f9a92b9b5e6069c2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":874}}}],"partialFingerprints":{"codehealthFindingId/v1":"84244d270aa5b3f482a7cb1ec628436df13e41acf030d63e680d60e272975959"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":880}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cd5490105ae4dffefb9512336359341ba951450142bfe3e3a35479c388332cb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":886}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d77660f0e875f992fad50f45a6b21671dd93c00ea1c79cd496042e947c318e2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":892}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a6351b88770c4e38aadfd7ebc19db8974b49ec32cc938463cbbe6645b8c375e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":898}}}],"partialFingerprints":{"codehealthFindingId/v1":"305111d10ac2094619469453de2ad8413fa9b2dcaf0d752e0bfc6f38cfcdc404"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":904}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9c73f487b1fccec24f74636a2f3fa6b5e9254aa0fd4e9c05320ecf9955688da"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":910}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd7d8376a350886e6554096316e8f209810507b39b863030d99087c45841a2c6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":916}}}],"partialFingerprints":{"codehealthFindingId/v1":"28e1df01ca80a4d08a6cc405b4fae59a8f87c78faa7060bc26fc556af73fa0c9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":922}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5c7067c20d3e72de71a7b5ade95380bbde6405ada244ffd7c98827b8ffd306a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":928}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bcbe0dc36db7d9860c08951b911d1a597809c41a0c3bafce6a6b94d5959ebc9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":934}}}],"partialFingerprints":{"codehealthFindingId/v1":"54b834163c22979bf63812590a7fc858d5080d4f4380e09080cd1a4401ce0a1d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":940}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4ea0dfe79ed245177d7c4e3cd15c546acabc09589c2bb93a7281ad0916168f2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":946}}}],"partialFingerprints":{"codehealthFindingId/v1":"89e1e426dbc707ba1d47376a99772401a38a31bd71c663f7f60d98563c3162c8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":952}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fac2d547426212b04643b267c10e60af57f831b0cd2a2808a7a146c8768c2f3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":958}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7668ccf77410a467491b9507cdce38dee91067e108b1f0e4a9ac5a648620b32"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":964}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7d4bdb76b7edf047e89d5ca14bb84b5e77666a3aca8b36db612159b0376d94c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockPreparedStatement.java"},"region":{"startLine":970}}}],"partialFingerprints":{"codehealthFindingId/v1":"5382bc2a32c50e70cd80bad5f6aeced459f0397ea416ca1dcd31d500aeea7456"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"47d8997fafd3440292d5bdb17ea141593b9715adae7e75db1dfc75153dc38a15"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"25ec014cc11863c04214695f160c77a499689404ded4016f14f57a2454827a46"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"534f4f3bf2bdf0c8227260272d4bb39b5da3bc7c1e0f3cafe33519963b0c0dfb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa9d5244b8915e42850dcad1972879a95d15be38bd729813c2b57ce198d928be"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"407460aa88ddee96a8a8c1b2b68221717cb7f7237e96ee7a51850b92f53410ca"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8c37d44d07fa85afe916e810a3af31a15062d59508ddde1860f27728f713f78"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"945c24b4b7cf0b6576f89b48d2827d7cf1d0e9743a03fab9f07f3cfb162cfc28"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ae141d4ffa3469f303940b569a0ac8898960d67a9e231e5208bda7269fe124b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"684a0d42dca8293723616860eaa2ff98bfa13ae834f76f74e552bea720fd88fa"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"f84af573deb4ec4e4419e66a17db33f45eaf03c352610a5655a22e32b4053fa3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"40504af8cd3a52a47cfcc89474f76978df0e27b5895b62b5014d66ba174d0207"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1d68f6bca2c6179539ba17f67206aa39151e19bf10d75cf66890f672eb7c355"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"60b0694883deabeb31ebb1011896af96892f5b1816210200c28506ae0ba64cbb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"539dfdb8ce8e232367dd07eb510c35f5a780e5e3a9948755a4dd7d29660f4c3c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3a11b59da6b22626eb32cb9393b02e0b77d166c1968bab85b7fbe1298ae1eb0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"4822aa8a91d2d36e06190a7c77eda7ba4222bfbe09574dbf187bb2849ef48fe5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0a67d54cce527f652232984f2d58f49a449d540d0af665ace3831854a595b14"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb556fd9db9be9dee83aeb6313691b00c640835d5e2ecec40e5a11709e121525"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"227718b464052a99003ba17eb4603e34e52c079deb255f3eba7c7c9b4c8632b0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6e1d1a04cb93cd0e5876d5bb0fef8047ab29ee7c2a637304f922166c4c05d2b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7004750a6d64ad2de987f6e9c75e2667158040e8b0ff9e31ecce35f9253ae40"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"12aeb617486c10c35ce7495866e9155ce502a46cb1d4281611ace85ac7445cea"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"03b13edb29c308137f6655d578de83cfb484ef580c0073fb5e3cf9d6e65d238d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"642b935ad7de2582d0cd3e1e3cce9fd97f9c9122545d33bcbf2c9e23009a7380"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"40188efec48e18659f32c18ac547faf07e8fa18b0094bafa61b736ad7c27ec9f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"c26a6e7b8926ac7a9ceb1464bca86079bc21bfc0df4b13a66ae65d9594a39c1f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"1348aa88a6bca0e9f188d653c8dbb2d7ce181f5b5233d4e3b043787a366cf1c8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"305940959a67e7fc63e621e92d00c2a09703991d6b23f09a9de2ed907df08827"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f17e033f31693c9ee4cdce4d88cee7ab6124b1d8ef454a35ca835150f225b6c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"27bddbc47e11dae59feabdf0e33fdc225dbeb85928f8cd5d8b213d5ab34121ee"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe2d14de0cd853dd9fe10b03dfe199cc22e7bbc58b051066b07d259726c908e8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddd7f7c62b131ea2698680674ff1322f935ec285aacf22cecb65b91be847ed83"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"459beae9e680c78711e9faf6706ecafacc42f584f7f339685fa761f54b7fcf0a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"8027de2e99b3ce2a2975406bd2bb54f7f85c4bd18334ebb4040e0f1091102c51"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d35e5b39818b938969bda5fd95bdc6983280c59669ea9bb24281f70a373893f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a4cac610b21ac9b61f6e2e77e1fb4df0ea467ac072b1b25459ae38ad39036f5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"b84cbfc9a51e446091a16f818aadaa84003da1fe47b65ca8fa0834648fe3eaa4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf7da09e5ad8c3c53d2db1046bc85b9921ac31072f5e41afa66b9a77bde4c881"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"374f76a32fe264e374cb4591cfadb35e760db8f97412da1d5522cb86d6a3cb90"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"22358e93805a2e8c8ac2395f47f3483a7f8b9cfd13c5697ea37bd8c52691ecca"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"7347e03913bd643ef5ba84ea0fb58a6274847fd8d0c5508a19e1ca082e003f38"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"842b1d9710dab151edea7e66609eab24cceb29b58795986aa3309232129265d4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c9b85ffa00603c391f532bfbe2cfec8c5114318e27391b8635005e9cefe6fd5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5ecbbba897589830b506df90497947972caf4f3d97e7ca6bfe5a956211a34c3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"f87f7da1aa4c49fbaf38308db9ddb0d52c517147446a0240cae751fd6d7a57b9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"3733d9cb96969c631526063ee5f9f13f51aa721617321d09eef52bb1d1ba4696"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"0aff5cf437c985ba4825257a47ce484ac06a3e2eef4301ea834fd629c54b1dc6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2fcfebd9578fee5035c37f648f42a48c72896cde611d6331bc356e8f999edc7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"97b74435262aee751e88b7db4e0c757d09cfe2bdd7f4d7a4d3dc122384d60d10"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8ae44968477322d480851072da5804681ffad71ca3ccbe55050cf6e8bfbc836"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a8aba53b8c567a8f8bc0248a47ec3d589335656dbaa02b97f081300370f0987"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"60b77fa4639df34b2cf3a2a6cd71c454a4bd9b6e296af5ea6f49b868786d1b10"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"78b00871e22a0ed794b59df1294b9027058c997c8ade560155e8db753d584a8a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"81c9e3edbb6285f40af2d8ecbcd76ff3bb37cdb40c9250ea40450f4f6f461c4f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6b3b762dabc1e99f94ea34051fc754b54382e223190edb9b2e9b12eb2876883"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"3214da8fd6d8eecc238dff926cd928687cd786d66a594bea1aa31060245f3659"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"e996db36cfae95d4829c94b895a4d2f04be9ac9e43f389aeb256216b4f72e4bc"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"503082550d6ec88c7a53c9ae90bac533e80061349e4f59d1a2a7c7ccd40e862a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"fde471c4114f6878f1827c086cc63440b9e43b07549e1606169084f635e5d5ea"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a9fe49ac759ecd85b6a4115934f17849018fd955d7ce0235ae4054985bbb196"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed0fcde4cdf49ae7f9fd90747e73bd4d691908e22e3e495fa6480e00adefee71"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"dad118f846a9108991117e9a4a7ca24490b5ce1bdd75ba5a16359f17c49307bd"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"817b0fa95e8065c89e720ad5152bfa337170fe4762ae39a749131cb7ec34bacd"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"9807155d23a0f647113e2d426f222ccd796c74cff0d41208eef718e57e646b10"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"52eda81e585b354492f4b148f16a680d476ce53d3196ed0f8043ef17050a9a1d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"eea059e13337ac6d57a44cdc667b798b29dc79f91fbffcd30d8dd1da3d58fadd"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"a16eb34836c906e91f22bbcf43a128dea7cf5d88a6a401d7170985f76223ce18"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"3050718045cedc0b7709b1d1001f6b733e673ac9eeaabb9cfe2e75345f474fab"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f79f15f69c2967ee9e76bb7faa5d7022bf286eb1f06c46c33887dc5a5eadcb8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c9b2c2ef9132746660ff4ca2a1c91dce712c2a49a59904a6296e6567435e889"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"63b828af949e2096a716ed4f438fae1f7e855d9f7afeb2e8a89349554cd29509"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"a24cbf2ad38a02352c506aa7209c3a51640fe671807e614018b2106289e5353b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"26d28d8a92edd9b70ab7802bdf3a169126a775f9a9991a051792108fe1be6ef8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccc084ed17580f3b2139ad83a7828c5d082457aa52dc4f3ec82a5c467a8b8986"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"86f27324fb47d429905a6b5c37ca7651a7e2bffa7d9c5452bd24ac93d8085198"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee70341b4b3597d9b0bb98019da1282196d45625ebcb5545d78de19b31094481"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae1eb51805ad8260bf1ef9f6b2d7753a6fea92407238b49e9cf41b57cb1114e4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"77b53771342908d80f192e25beb5da7dfedef48200d0d313036c8c5fb644d21f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f4f47c7024e1360c303b08f0dad497aee949ef20f7c6266bf4be49dbd1a827e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"69f2d3746e296c1fc00ac7d93f474cfaf9af44d06219d1727ff2cb50d0d75877"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6681a56bc99f524d02dbeda569a81de3d0970e88a43bb88334f48b79ff2c6c2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d1e00aa4d07a942a1326708a11e2a3cdc225964b2991f013e994209f5a13358"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7589230ccb26923b55e682a1d2d0c391b23e5dd60af7255febc0f03caf83d13"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"896af7e2634f96d436f88399c3f844a4bf6f86c8f0bd338b0ae340fa1d0b2835"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"87cdb621208763dc13e85ab34dbf2616c442eadb881ea9c4ab6412644244d08f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/test/util/OracleMockResultSet.java"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"c406e43f860eaeefa04faa58653712ca2bc6f95aa6afbe0dd972cbc8dcc2d029"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/test/java/com/alibaba/druid/bvt/pool/DruidDataSourceTest4.java"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"1971e2eb087899b3f965cab3f1eecdb1d26d34d8558633c84c85c7c3aed83be4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/visitor/SQLServerOutputVisitor.java"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e5b7142b6aa9e18afe7c2615a05c0f85b6e62ac869faf686a0ab420eddfcb9d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":4397}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e36fda6527f3faeb8ea0dc154aa651b2359f2c93689e3f8a7fa8ac018a31fbd"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/clause/MySqlDeclareConditionStatement.java"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"75e4fdf660907af6fc0c506439a9ca04e4f688151823dcca5b2793a7c4b1e114"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated catch block \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":"core/src/test/java/com/alibaba/druid/pool/ui/DruidDataSourceUIManager.java"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f8b2001a93b2f60abba80a568cb1717ed582a8c8aa44ba240ed64aa49351ba8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated catch block \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":"core/src/test/java/com/alibaba/druid/pool/ui/DruidDataSourceUIManager.java"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa0ed7fb3955a84e26682e09c89f8387db515a97a49ab6bd1f8b0e9ce9806622"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated catch block \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":"core/src/test/java/com/alibaba/druid/bvt/pool/TestLogLongTimeTransaction.java"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0bef30fa317a46b27f9835fc7abc6ff8fc659cfec7b5fcf42ca3749d6677b62"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated catch block \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":"core/src/test/java/com/alibaba/druid/bvt/pool/profile/FailFastTest.java"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd4dd26dbdfaa0265c804375d9532e5626fcca1f889232aeb70923a57cb9e68b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated catch block \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":"core/src/test/java/com/alibaba/druid/bvt/log/LoggerTest.java"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"20e36abd677866b79f16438abdd07331df7ac6e104dfe35055569cbc571d29ce"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO \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":"core/src/test/java/com/alibaba/druid/bvt/AlipayUseCaseTest.java"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"5574d54ec583f1b37b17e0775fa89b65b29c6ad8776789ce86650f36bbf536f2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO \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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":7743}}}],"partialFingerprints":{"codehealthFindingId/v1":"19a2cfd260ab949b42a984c9d23456bf32278e00c2e1abd6d17ee832663f98c1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO \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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java"},"region":{"startLine":1647}}}],"partialFingerprints":{"codehealthFindingId/v1":"208f1a0dbe01e7220bdb39f4e1e09a90311bc7333c28370abaaedb043cc04fc6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO \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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java"},"region":{"startLine":1649}}}],"partialFingerprints":{"codehealthFindingId/v1":"03fbe8de317fe8c254eafdaed800bd02cbec84e6e33502bedc7109e52c5209ab"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Need to improve parser to support the label in format \\\u0022\u003C\u003Clabel1\u003E\u003E\\\u0022 \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":"core/src/test/java/com/alibaba/druid/bvt/sql/postgresql/PGDoSQLTest.java"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b7a88fd29028e02387b563f53ed92eba4d2892dce0ecbe0380b9f66c875dac1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Need to improve parser to support the label in format \\\u0022\u003C\u003Clabel1\u003E\u003E\\\u0022 \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":"core/src/test/java/com/alibaba/druid/bvt/sql/postgresql/PGDoSQLTest.java"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad7fd61e7e9315e1842230f90702dcd03695fdf720958fd3de56a2ae16faf1b7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Need to improve parser to support the label in format \\\u0022\u003C\u003Clabel1\u003E\u003E\\\u0022 \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":"core/src/test/java/com/alibaba/druid/bvt/sql/postgresql/PGDoSQLTest.java"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d15d30d3cfb781a159c37e3617ee9054ec0eb67cf3227ec07fb52cd60d8b6cf"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Need to improve parser to support the label in format \\\u0022\u003C\u003Clabel1\u003E\u003E\\\u0022 \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":"core/src/test/java/com/alibaba/druid/bvt/sql/postgresql/PGDoSQLTest.java"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef95d960f86f3414a66266eea227247db443dc717507776f7b865b873c418eeb"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: //FIXME \u6B64\u5904\u662F\u5426\u8981\u7981\u7528\u5BA1\u6838h \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":"core/src/test/java/com/alibaba/druid/bvt/sql/mysql/AntlrMySqlTest.java"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c30f47a87ee6150156b0a0cfcbd74a242d00c5a947c9a2c3dd73490fc0f4344"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: //FIXME \u6B64\u5904\u662F\u5426\u8981\u7981\u7528\u5BA1\u6838 \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":"core/src/test/java/com/alibaba/druid/bvt/sql/mysql/AntlrMySqlTest.java"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"edb70a3be9f78e7138366fac079fdd9036604ec884c0c7ca1bb41a30bc7a8125"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: //FIXME /**/ \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":"core/src/test/java/com/alibaba/druid/bvt/filter/wall/mysql/MySqlWallTest72.java"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f9834ab3988edd5047c106345c7a40156f1876d256f4190fcdb1a0f6bdc3083"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: //FIXME \u4E0D\u77E5\u6B64\u6D4B\u8BD5\u7528\u4F8B\u7684\u771F\u5B9E\u610F\u56FE \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":"core/src/test/java/com/alibaba/druid/bvt/filter/wall/mysql/MySqlWallTest90.java"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dec90d59ead76aba9bc348741369e466a41927779c12916815bc889e5b799c5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo fix reset reset\u5B57\u6BB5\u4F1A\u5BFC\u81F4lexer\u7684\u6E38\u6807\u4E0D\u5BF9\u9F50 \u4E0D\u5EFA\u8BAE\u4F7F\u7528 \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":"core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java"},"region":{"startLine":3226}}}],"partialFingerprints":{"codehealthFindingId/v1":"b508f1a720b6d534bc829f80f3f720e86a15f9f40e867ce260e3fde5008842e5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo fix reset \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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectListCache.java"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9a895474b25c00eaa35bb5d2060c79167c1c7815a1c8bcd14920c21143aa773"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO for odps \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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":7720}}}],"partialFingerprints":{"codehealthFindingId/v1":"c830499b069e1921b2cba725374595f36ed6b4666bb93e312cbafa96b662394a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO(lingo): Support oracle-style outer join, see https://docs.aws.amazon.com/redshift/latest/dg/r_WHERE_oracle_outer.html"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/redshift/parser/RedshiftSelectParser.java"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"84e5ab344f11ab3ce6d59301de668640cacbd4be05d67719a4ca91ea8dc2d406"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO other cases \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":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGExprParser.java"},"region":{"startLine":623}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8dee33ac924e4f48c6a0683ff56cb6862bf75a3139f6adbec84216bb7843c3e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO other cases \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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarExprParser.java"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"f62ee3d8bfbfb65e9a1c22f52f7deb83e9f96c7e8bac77bf55effa5a9a88ee8b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // todo \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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleRowNumToLimit.java"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"11c8a6a45eccfe602b19b27e91137e0127bfad00318cde89752e79b968ca6985"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO COMPRESS BASIC \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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java"},"region":{"startLine":1946}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8dd6640664f1170317bcb89d71efab9d4e0b9873e1cbdf8e80fa2508761704e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO USAGE QUEUE \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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java"},"region":{"startLine":1995}}}],"partialFingerprints":{"codehealthFindingId/v1":"a24ee885bbc7b16d22982f384db2b173003f7da04599a70655a969d56c29fbc1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO OPAQUE 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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java"},"region":{"startLine":1999}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e0adf83212e544c87d824e009cec0eea8022998a071be6dbf02968354057d06"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // Hack here: Set previous comma to deal with negative number. \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":1417}}}],"partialFingerprints":{"codehealthFindingId/v1":"93ab5c049ceedfd867b0b1c4083087203a12578cef2903b31997c8a9bcba315b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: need check. \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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":6363}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc62691e0cdc7786978475b097b0d85a8883a471c9e5f6f28ec714ac6f5aa9bb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: \u0027partition by hash(id) partitions 4, hash(name) partitions 4\u0027 not supported yet \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":"core/src/main/java/com/alibaba/druid/sql/dialect/impala/parser/ImpalaCreateTableParser.java"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5f99c51bc35bf9fcda810b2ecd11667a1a8262bd9b916bedbbc48098cbf596c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: this is not correct because \u00270000-00-00 00:00:00\u0027 could be a real string value \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":"core/src/main/java/com/alibaba/druid/sql/dialect/h2/visitor/H2OutputVisitor.java"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"bac43060c173da4ef10313a67dcc897846681a9492bf6ebffde6e084737f9665"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: merge with OracleExceptionStatement \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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLExceptionStatement.java"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"167dbab1becb360748fb91bf1a70b1756a11ea67e4a5bc3515a7af589a4bb446"}},{"ruleId":"D17","level":"warning","message":{"text":"XxxComment: // XXX: not robust \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":"core/src/main/java/com/alibaba/druid/pool/DruidDataSource.java"},"region":{"startLine":3023}}}],"partialFingerprints":{"codehealthFindingId/v1":"29fcac1d5fae58a140529fd80db4f2ea9099b046f7426f53adaf8788c742f563"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO ADD OTHER PROPERTIES \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":"core/src/main/java/com/alibaba/druid/pool/DruidDataSource.java"},"region":{"startLine":3029}}}],"partialFingerprints":{"codehealthFindingId/v1":"62228338f67a46058f265bb30aeca4f2e3f9ad79960c9e4c900a1b68473463be"}},{"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 \u0060druid-demo-petclinic/build.gradle\u0060 makes this repository a deployable product (line 2)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/build.gradle"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"77526fd092d3f052866f537b1e8d3829d66d3c6d13ef7abc808da5f0777f2484"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 1 of 6 project(s) overshoot their size bounds, lowering Project Cohesion to 6.7/10. The most over is \u0060core\u0060 (268340 LoC, 1876 module-visible types across 199 directories). Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d5a94650dc74886a0f1f08eb9fb6775f1fc395279ef7e901c970c9d26f767a72"}},{"ruleId":"D27","level":"note","message":{"text":"High interface indirection: 38 % of calls go through an interface \u2014 tracing a call means resolving the implementation each hop. Prefer concrete types where there\u0027s a single implementation."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"cdce37f9abf7531f8d28e92afaa9d119cadea0ab8dd2d3958949c20b31f486ec"}},{"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":"9f295cdd70bcdd19c7a49c1d939018e53645f529bd45a44f8d567ebb4045a934"},"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":"4b1ebb9590d0846c1e9b341b950e85e7c0baa2d2da726c8a3e10462672270205"},"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":"ee632aefefc7953f0330b0c0e7c5860f39db3d0c20935c8a93eb40b68e6705cf"},"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":"981fbf463b763fc39f7190c7d5b81637f0b5668ef2a07902e6f6011953c4e422"},"taxa":[{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05: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":"f9ae6bc602dbb5959c1b613057650b18b80f03a9a47885ba86a91491a87cf435"},"taxa":[{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05: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":"f32a1b8fe0c5207bc86bfd15b2e9a3ef8a694c054e1fc1b6781184550882ee36"},"taxa":[{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05: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":"2da5ed86c39c7c5c7f5a4d7311734492ae6c4d91a0c809f82b4773cb5ad69ccf"},"taxa":[{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05: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":"4423578e975833d58eaf44c6b04936729d0805314c876f56c837550a4f721269"},"taxa":[{"id":"CWE-200","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"af5c71ca00edefc2f8e3d9c6a693d9a6ed2826b91ab0f4e78212f4c57d9ca68d"},"taxa":[{"id":"CWE-327","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"3377b0db4d9f7a9e9f2e10e232948eac4047f8b9c3499abcc10bbc5681f5c1c0"},"taxa":[{"id":"CWE-327","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"172f7b3c37ab398c5a17ad27cef3af6db65ce6dd9cb85f652e28a2f03ed9919d"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"81eaecbeb158a3fff55bebe0413978a4499f00749196df614a312d6ffc6913a1"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"16f88f8c8039c86a604f3b4aa38211060ebf602613aa2cc12779527a3d519dbf"},"taxa":[{"id":"CWE-328","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"b701801c3f92cbb096eef4dffc3d5d7036230e3229a0ccc87d17bbb1fa0e68c4"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"b7191b74ac868757b93de688b7362549baf9e785f9bc4f704a267e5bcb92b27b"},"taxa":[{"id":"CWE-1333","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"e84488b58bdfedf0570eaacafa29249d410a0f4ad0132dd695ea18f4c275017d"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"37d5cfbe16282d2512c8e20514a3f05fe54b4c4f4ff903263263878ff12cbf35"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"89865a0d3c58a58505863d244788c1728d4bd4026d8a6f3b9ebc65d3183f9f13"},"taxa":[{"id":"CWE-1333","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"e7882ac5fcd3a410a7f3e6e8d7d5e7fd0b5058be880227301d2ae3ff4ba32cbc"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D30","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":"b4c4abdf132765d9c6fef375b470678cc7b5fa267020fe6b411d4b9173676475"},"properties":{"dependency":{"package":"org.postgresql:postgresql","version":"42.2.18","advisory":"[GHSA redacted]","aliases":["BIT-postgresql-jdbc-driver-2022-21724","BIT-postgresql-jdbc-driver-2022-26520","BIT-postgresql-jdbc-driver-2022-31197","BIT-postgresql-jdbc-driver-2022-41946","BIT-postgresql-jdbc-driver-2024-1597","BIT-postgresql-jdbc-driver-2026-42198","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"c7f6c449d4df69c7b785d936ea02ae56bc33f2ac86fe3227f97044ba811cf841"},"properties":{"dependency":{"package":"log4j:log4j","version":"1.2.17","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"1e59a22a88c58698229b7069e135533c9ba3193a453975edc133ec3eefd4326a"},"properties":{"dependency":{"package":"org.springframework:spring-beans","version":"4.3.20.RELEASE","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"fc1e1d0c944223608bcad9fd8191fcb71e237b5888f614e4529581c5d92e7b4e"},"properties":{"dependency":{"package":"org.springframework:spring-webmvc","version":"4.3.20.RELEASE","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"d823a5a7bb1b754e0da6dffcd38fec3bfb53fba53ee1e86872bd5bd7d584678e"},"properties":{"dependency":{"package":"com.h2database:h2","version":"1.4.199","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","SNYK-JAVA-COMH2DATABASE-1769238"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"f2d813a210d1d64cb9861ade6c571793ae68802335b73a72898dc2575547dd96"},"properties":{"dependency":{"package":"org.springframework:spring-web","version":"4.3.20.RELEASE","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"04823e7788bbb4da883c8f51e3953bdf91d29ddc0f24c27ee2d2dc0dcf8ad8fb"},"properties":{"dependency":{"package":"com.alibaba:dubbo","version":"2.5.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"e40ddab5a3bc89b2e36420e684f05244658af0490910fe813cb81c99d8fd2f07"},"properties":{"dependency":{"package":"org.apache.zookeeper:zookeeper","version":"3.5.4-beta","advisory":"[GHSA redacted]","aliases":["BIT-zookeeper-2023-44981","[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"e2048a08a2d126b8bdf1110c50b6d39e16843a10817dd7d9fcddee035fe56daa"},"properties":{"dependency":{"package":"org.codehaus.jackson:jackson-mapper-asl","version":"1.9.13","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"a8c409b4e50158f05b6d9c184ce571657c944f30654e16fa48256c9269813569"},"properties":{"dependency":{"package":"io.netty:netty","version":"3.10.6.Final","advisory":"[GHSA redacted]","aliases":["BIT-zookeeper-2021-21295","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"bbab29c5cb2f288555a9f9e9ea81ea57529c6efdc62e0ed20731c8c5cc7f9532"},"properties":{"dependency":{"package":"org.jboss.netty:netty","version":"3.2.5.Final","advisory":"[GHSA redacted]","aliases":["BIT-zookeeper-2021-21295","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"78c6a96920191441a42a219ff7b10e99f06c357e0c3670629808a3e37b1cb57b"},"properties":{"dependency":{"package":"org.apache.calcite:calcite-core","version":"1.26.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"ecbe5da056665fcb24488c22ed74bd7fc29b756e4a900263967fe1a406c39328"},"properties":{"dependency":{"package":"org.apache.derby:derby","version":"10.12.1.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"5fe5ec090d9d6ec6889c3c7ff9e47da41baed46900fbda472d55e8069c91569c"},"properties":{"dependency":{"package":"org.springframework.boot:spring-boot-starter-web","version":"2.1.13.RELEASE","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"dc14e4c6efdd161810f9d9714e9ab354bf7fddeef086aaa3c8f576138a0a8b64"},"properties":{"dependency":{"package":"org.springframework:spring-beans","version":"5.1.14.RELEASE","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"d4917a77f64f14908a016a8ae17ff884d428bf48f96faf1223342451f351794f"},"properties":{"dependency":{"package":"org.springframework:spring-webmvc","version":"5.1.14.RELEASE","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"6bd02d256fdf13966e2c29c99581a6cb4f396caa851cf4684333a70e7edfcf04"},"properties":{"dependency":{"package":"org.springframework:spring-web","version":"5.1.14.RELEASE","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"daf33768f0c04d63c1a0e443a94f39d825f81360cb40c6569dc57f780c36fea9"},"properties":{"dependency":{"package":"org.bouncycastle:bcprov-jdk18on","version":"1.71","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"37a1d77a3971f8130b2906a2bf9d162a468a7d70a8654799ed93e73fdc2eda94"},"properties":{"dependency":{"package":"com.fasterxml.jackson.core:jackson-databind","version":"2.9.10.3","advisory":"[GHSA redacted]","aliases":["BIT-nifi-2021-20190","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"d6d9530bba0fba8a4f5cde8c83d7635550be5a9d4a5a5864d85bef8d8ce05851"},"properties":{"dependency":{"package":"io.undertow:undertow-core","version":"2.0.29.Final","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"5383136bb5f7abe5cd1e7715dc8c84055a0a136415d84f67796124c125738d6a"},"properties":{"dependency":{"package":"com.fasterxml.jackson.core:jackson-databind","version":"2.10.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"8eb8e36df9174474bd092d21c3a6cea9ff611ab7c780d1ef23d4c1a267c9b538"},"properties":{"dependency":{"package":"org.yaml:snakeyaml","version":"1.24","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"06733e639286eba47a72ffef4b2366eea768b00a6ff8e65a4430e10f9d2fbef4"},"properties":{"dependency":{"package":"net.minidev:json-smart","version":"2.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"579d4a2bf4aa4b157551b11e8bbdef8cefad94918a4dcb58458527882a51e7c0"},"properties":{"dependency":{"package":"com.google.code.gson:gson","version":"2.2.4","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","SNYK-JAVA-COMGOOGLECODEGSON-1730327"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"cab656d8f85c428a89485bd6946cdec67ea8d42919e9620ce5134e0e269bb4f3"},"properties":{"dependency":{"package":"com.mchange:c3p0","version":"0.9.5.4","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"45f8b021905d4e4316b363fd2a385e75c69f265aeeca3bd31fef299662b46960"},"properties":{"dependency":{"package":"org.xerial.snappy:snappy-java","version":"1.1.1.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"e878582df56deceb2ffef1b9f820dc95fbfdaf452999a5b901c2103b2394d043"},"properties":{"dependency":{"package":"com.google.protobuf:protobuf-java","version":"3.21.9","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"4371282788bbf23d68533f39126d2cecbe062302376735b8539e5cb5cae1b0f1"},"properties":{"dependency":{"package":"org.springframework:spring-expression","version":"4.3.20.RELEASE","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"ca777326cba8f2f1fa56438690c545c19143936c0823e62390a206991d2a3af4"},"properties":{"dependency":{"package":"commons-io:commons-io","version":"2.4","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"766a20c5483375b37f97302cef4b596292c3a9561a2e9f8eb4cce9cc702046dd"},"properties":{"dependency":{"package":"com.fasterxml.jackson.core:jackson-core","version":"2.10.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"3f23878cdb7f6e0a93dd25fa4009c72d78fdd1fbd44f868cc3177b31ca6fe838"},"properties":{"dependency":{"package":"net.jpountz.lz4:lz4","version":"1.3.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"e5cec86521e4de2193765406e1c6b8650968f421e00f14e02c4825ab8de28515"},"properties":{"dependency":{"package":"org.lz4:lz4-pure-java","version":"1.8.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"0518b878a7c9df9d98fb811148b1a2e32c7c4300ab0369556075793803932d1c"},"properties":{"dependency":{"package":"org.springframework:spring-context","version":"4.3.20.RELEASE","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"7c326510dead6e5abec58c718f149be2387621375b961dcfa8b77157d09a5b98"},"properties":{"dependency":{"package":"com.mchange:mchange-commons-java","version":"0.2.15","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"92f6785e4a23ad105327c98b1fdf3afbd295329ccee98807c10dcd7d4f6da2d1"},"properties":{"dependency":{"package":"com.mysql:mysql-connector-j","version":"8.0.33","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"fbd73b7128743b32926d68d168d817302b705cced0d9fd5f59ff8ce4f0726d3d"},"properties":{"dependency":{"package":"org.mybatis:mybatis","version":"3.4.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"b00be4b90ba716a01452cda06928d4ee109a1a603e0a33dd515b3d9ee2b726e6"},"properties":{"dependency":{"package":"org.apache.calcite.avatica:avatica-core","version":"1.9.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"cdb31deaba73cc6bbf6940da9deaaac82622e3cd9e45cb6d179ff4ff6842fbea"},"properties":{"dependency":{"package":"com.google.guava:guava","version":"30.1-jre","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","SNYK-JAVA-COMGOOGLEGUAVA-1015415"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"16b96aee630e6fd4453d41d1343206d60d21ffb21428ef99fe90986be063ef6d"},"properties":{"dependency":{"package":"com.alibaba.nacos:nacos-client","version":"1.1.4","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"84a5b03dd1ceaab5f45dae7ad0955add0483ff94e86d25591783cfac8d879534"},"properties":{"dependency":{"package":"com.thoughtworks.xstream:xstream","version":"1.4.11.1","advisory":"[GHSA redacted]","aliases":["BIT-activemq-2020-26217","BIT-activemq-2021-21341","BIT-activemq-2021-21342","BIT-activemq-2021-21343","BIT-activemq-2021-21344","BIT-activemq-2021-21345","BIT-activemq-2021-21346","BIT-activemq-2021-21347","BIT-activemq-2021-21348","BIT-activemq-2021-21349","BIT-activemq-2021-21350","BIT-activemq-2021-21351","BIT-jenkins-2021-43859","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"8d80fd3cdc5d012a9c66c9087107ef0ec78be75c12bde5482a8bf0472e41e5cb"},"properties":{"dependency":{"package":"org.bitbucket.b_c:jose4j","version":"0.7.12","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"d9b964416a3b468bccc6e141393940044893f5dc3ec577ddd37bc490a4339379"},"properties":{"dependency":{"package":"com.alibaba.nacos:nacos-common","version":"1.1.4","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"84df62227c821bb48bc2adb24c916bff94817f1613d6572b5d46e5b3a5ddaf74"},"properties":{"dependency":{"package":"com.squareup.okhttp3:okhttp","version":"3.14.9","advisory":"[GHSA redacted]","aliases":["A-171980069","ASB-A-171980069","[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"311ac06fabb721f2c02527550032ba985064e10216e2953a165d2aa6d5d8748a"},"properties":{"dependency":{"package":"org.yaml:snakeyaml","version":"1.23","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"99dca8019fea15cdc40f5b48ebd9c4d451ea00b248ecdffa39445d2ce4e9a2b7"},"properties":{"dependency":{"package":"com.google.code.gson:gson","version":"2.8.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","SNYK-JAVA-COMGOOGLECODEGSON-1730327"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"ee129395d6ce8fe3a840f50bbf17737a774cba0e0639b2bce1ec5a3749405056"},"properties":{"dependency":{"package":"com.google.protobuf:protobuf-java","version":"3.21.8","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"de0cb2bd4b5e70b8d99db1e933411a64fa11a85acdcbf04468891c37efb6b8cc"},"properties":{"dependency":{"package":"org.springframework:spring-expression","version":"5.1.14.RELEASE","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"4b97c5ffe9f404afaf283017c615804c81aefbc7072a27cb031f3d397bbcb622"},"properties":{"dependency":{"package":"commons-io:commons-io","version":"2.11.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"7e7ffe05ed944670cefebb6bf864b370a56c867369814dec823834f83addcecd"},"properties":{"dependency":{"package":"org.jboss.xnio:xnio-api","version":"3.3.8.Final","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"83c499f10027fa61ed44e377b9af9fc93c33b625ed0cbba059a4edd0cee88fd4"},"properties":{"dependency":{"package":"com.fasterxml.jackson.core:jackson-core","version":"2.9.10","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"0f3e93dd67eb3af74d1a0ab0791c9abca7cc2a23b1bc0674eb71f9e84e486fed"},"properties":{"dependency":{"package":"org.codehaus.jettison:jettison","version":"1.3.7","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"461c59fb412a23a5a4eb0be7cc2dadb32eca3c51a3fb18c1627672de4a6e6791"},"properties":{"dependency":{"package":"org.springframework.boot:spring-boot","version":"2.1.13.RELEASE","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"395e503d7e0cff0f9b883b98eb851528fa0f408277dfe63c28d40728ce939db8"},"properties":{"dependency":{"package":"org.springframework:spring-context","version":"5.1.14.RELEASE","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"7ff563ef08614a41592e7c30994291bb31046ff091de1002aa94d96c5eb3c2b0"},"properties":{"dependency":{"package":"org.springframework.security:spring-security-crypto","version":"5.1.8.RELEASE","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"0849c79fd4d85e72b9f00663639b0f904a638fd82ba17857a40d75ffe1f4f01c"},"properties":{"dependency":{"package":"com.alibaba:fastjson","version":"1.2.58","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","SNYK-JAVA-COMALIBABA-2859222"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"857f20d4c9c118623a84730fdfb85ec1c7d838a4ef2f29731c0c6a110ee7436a"},"properties":{"dependency":{"package":"ch.qos.logback:logback-classic","version":"1.2.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"e27f848e2471fce04307057c1ae403e8168cdd365c644281dcfada08e06d13f7"},"properties":{"dependency":{"package":"ch.qos.logback:logback-core","version":"1.2.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"809ad9b01fa37aa445628c4bb95ca928a5dca03018516c948c805f8cce8f47f0"},"properties":{"dependency":{"package":"org.springframework.boot:spring-boot-autoconfigure","version":"2.1.13.RELEASE","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"f7d1503ad2437df4cee945e5c6c9c536d154cf26140278daccc2f62f223948e9"},"properties":{"dependency":{"package":"com.google.guava:guava","version":"16.0.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","SNYK-JAVA-COMGOOGLEGUAVA-1015415"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"a1ecca9938104b75c40dbaab67a9c8fd014248d15f844ed4256f2f90061555b1"},"properties":{"dependency":{"package":"io.netty:netty-common","version":"4.1.48.Final","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"12be12eb6f7d470ffe8d32a7bf8236b294f909c98dd3c19a85f9da548c9642cf"},"properties":{"dependency":{"package":"org.apache.logging.log4j:log4j-core","version":"2.17.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"7e88bad52985dd99a93591bf3db99cea1c690719cf591fcd45d115b783b7dfa4"},"properties":{"dependency":{"package":"org.apache.httpcomponents:httpclient","version":"4.2.5","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"665fdee378d6b28056581f479865be4b56eab1fd3513f8caf60e43c3e9486e69"},"properties":{"dependency":{"package":"org.mariadb.jdbc:mariadb-java-client","version":"2.4.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"2cdca0f5dddf6ff0eb720551343ebacb5cec95de3af5b5ffe0489689b0e54c86"},"properties":{"dependency":{"package":"commons-lang:commons-lang","version":"2.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"df3b21223b228d04242042f7054b9a8b22b5c4da788ac8407bbf8591b1512b3a"},"properties":{"dependency":{"package":"org.apache.commons:commons-lang3","version":"3.8","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"cf7c55cf17e9ef5e890a78d5c21fcb0d00495d554e8c07620efc1dba6d8f20cb"},"properties":{"dependency":{"package":"com.jayway.jsonpath:json-path","version":"2.4.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"c8432cdc2170c205ccbf7a1c2c2efcd891dcc7f5f641a61e4fb40ae72b78ea92"},"properties":{"dependency":{"package":"org.apache.logging.log4j:log4j-api","version":"2.13.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"b01b0b5d79803b739528bc13f675d9ac6394060930b5e16f0c2194187b45efa6"},"properties":{"dependency":{"package":"org.springframework:spring","version":"2.5.6.SEC03","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"32cada330a65e5202ba486a4afc3e163eddc53b0987f8e8f25e94afbdce0f1ee"},"properties":{"dependency":{"package":"com.fasterxml.woodstox:woodstox-core","version":"5.0.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"f132c60ccc1281ee3d2a33b6b40e4ba7d9b8d995cbda6bd5ce031945e5db2676"},"properties":{"dependency":{"package":"org.apache.commons:commons-compress","version":"1.21","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"6918362e9379c000cd4e4c69305750bba2043e4d853f8ea4f4cb97b18b5ddfcd"},"properties":{"dependency":{"package":"org.bouncycastle:bcpkix-jdk15on","version":"1.64","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"059eba151396502921104acb001370d4d9b32fe0ef8d1e7103f2c46307f344ad"},"properties":{"dependency":{"package":"org.bouncycastle:bcpkix-jdk18on","version":"1.71","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"0285378ae96681055fb49afbc574f549dc84168fd4073302e356b3b33d1688bd"},"properties":{"dependency":{"package":"org.bouncycastle:bcprov-jdk15on","version":"1.64","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"5999d5498ceffefefe81ad0a0354d507babf0b5c9f071174dab1436336a8f005"},"properties":{"dependency":{"package":"org.apache.httpcomponents:httpclient","version":"4.5.11","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"3f9835581025aeadb662730c2de6264c7887d82cbaee0937c92fd930e53d3499"},"properties":{"dependency":{"package":"org.hibernate.validator:hibernate-validator","version":"6.0.18.Final","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"722ed2e6dd4530fc2a4add634e4746bd3a9fa71e9fd279f117724bbfca5b7c0c"},"properties":{"dependency":{"package":"org.apache.commons:commons-lang3","version":"3.8.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"1f2ba38c15f0903952ef07e4fae41fe0c60c748cbcfffa3315d003ad1ea05c9c"},"properties":{"dependency":{"package":"org.glassfish:javax.el","version":"3.0.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"0c5ad7803129e7bbd530533bd38f40c231556c780f220a49479ba7126ff10e4f"},"properties":{"dependency":{"package":"com.squareup.okio:okio","version":"1.17.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"757168eacbdc11d04c0d0667b23d9f1dab21a5056e98491a6ab0db23e49f9211"},"properties":{"dependency":{"package":"org.springframework:spring-core","version":"4.3.20.RELEASE","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"c267933d05bfcf154dc022697b02844b609eb8ecf424fe9ba06c50f49b60a69a"},"properties":{"dependency":{"package":"org.springframework:spring-core","version":"5.1.14.RELEASE","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"81f45f4d3692317fec1cd878c03f965b7b9dba3f471acfe84dd349501f5990de"},"properties":{"dependency":{"package":"commons-configuration:commons-configuration","version":"1.8","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D31","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":"8c26b314546e6ccef141712cebea7076fb433958cdba5dadb802fcae7ff1c6a2"},"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":"D31","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":"cc98b05b4d3445c929ea2c600ac3d4c7319f891755b43f4b8066d8588486b5a4"},"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":"D31","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":"2147bd31f52983a9517fe6a3de02c752d5ca3cd1a1cf4483b885aebc4a53cbf9"},"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":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e4958249f2412fc17ea7280c3185595c17a5aa92e811135bdce93678c989b60"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7f39beb4d7b410f43c01a6ede0c33fe8a7e31e042c34cd529d2e4d0981e32e4"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/java/com/alibaba/druid/admin/service/MonitorStatService.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1491af87bff01045290568bb4cb52bef94991350b626c597bc5a3a596733909c"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/presto/parser/PrestoStatementParser.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"56885290228a175710daa5063a7c1d865247ba16750a4fe32926e832776b0dac"}},{"ruleId":"D34","level":"note","message":{"text":"Further orphaned files (smaller): 90 smaller file(s) also have no living knowledge \u2014 folded into the freshness score and metrics rather than raised one row each \u2014 most significant first: core/src/main/java/com/alibaba/druid/pool/ha/HighAvailableDataSource.java, core/src/main/java/com/alibaba/druid/util/ConcurrentLruCache.java, core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/visitor/GaussDbOutputVisitor.java, core/src/main/java/com/alibaba/druid/stat/DruidStatService.java, core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarExprParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/h2/visitor/H2OutputVisitor.java, core/src/main/java/com/alibaba/druid/pool/ha/selector/RandomDataSourceValidateThread.java, core/src/main/java/com/alibaba/druid/pool/ha/node/ZookeeperNodeListener.java (and 82 more) (94 orphaned of 720 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; 720 of the 1758 production source files in this repository met that bar). Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/pool/ha/HighAvailableDataSource.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dd674d2a57fc60ab1f5e4102cfc711227ce0b7003d5eaf96af98325b3bcb943"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/util/ConcurrentLruCache.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6363567e897ac9b7e53b66aa59d39f3368360eb567e838c0fddaecd5fe9d566"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/visitor/GaussDbOutputVisitor.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f4f6429e85ef00dbf3c7ccda9e7688f47efbaedcbf89bca7f10da7b4c87f75b"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/stat/DruidStatService.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f34e1644bb7a1c8f0e43d02d4755fc4274155c60c285df2e3c68f2e5f083d95"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarExprParser.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd3eecccba0ce65ca39e850c8f623d0734dfb016bb57a64f33d8dd89e0ecc805"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/h2/visitor/H2OutputVisitor.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4a58d5e141b4a2d083d0c26c954d386da48977b125eeba3d5c8a1393da63c07"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/pool/ha/selector/RandomDataSourceValidateThread.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"20c908255d07d4f672b5987d10f190d721fc9e12e5a3ce4c0e42399411ca1997"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/pool/ha/node/ZookeeperNodeListener.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c24cddc35b6c3e8c1ce9c6469e0cb45339205c6a8b26ea3b99d34788217b3f6f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/pool/ha/selector/RandomDataSourceSelector.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"965b42849238769f7f8505c3b6805d084ddba6d308ce697c73725be792810241"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarSelectParser.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4146d0db5918fa35aff4ad604d6f1e7826661690df7cb18a219476ac348ebb5b"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/parser/GaussDbCreateTableParser.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7ed0de7e8254500c57d39f452e2e2e1bacb5579dcac2c940286dca80f829123"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/pool/ha/node/PoolUpdater.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e264c0112578cea0cda28825ce92b799f3278f0bfa8953f1702d6439640f20c2"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/pool/DruidStatementConnection.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"18c8a2f9fa19e198ea106da885eb6034a13c2524a83df8c1f92ef92eae4fa3cf"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/parser/GaussDbExprParser.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6217ca1d52013f0d3660635818edb1347272292b46353b70e82421860a981989"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/impala/parser/ImpalaCreateTableParser.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"006eef8a590c655fd90d63da6badf0603669be06bcd7f3fd5d1f06d5bc160a17"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/impala/visitor/ImpalaOutputVisitor.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0f34db7c59309a28f8920d5bed56bdadaa4731e1dde3a954451a09667088a63"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/parser/GaussDbStatementParser.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"10bf520dbd115145cb25b2637ddc99271ad5ad87e254630e5c38c462f95281a7"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/proxy/jdbc/ResultSetMetaDataProxyImpl.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c5c3f629b1a495dddfa0ed311b0f97808e54f584038fa38bf58e18ffd99c4da"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarLexer.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3efc41d37e823c04a8e15c34fd29dac670ff27fb5cfeb80a2d680e7ecdd0eccc"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/presto/parser/PrestoSelectParser.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"267ccb6b9d1b34cdc508d4f14398cbe0dacbd56e43d83885e4a3dd352aeb8a80"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/java/com/alibaba/druid/admin/model/dto/DataSourceResult.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"62640caa770f191ecc01283e936a3ccfa5cd96bde0f397b7c6ebf5cc825c57b2"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/pool/vendor/OceanBaseOracleExceptionSorter.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"61704ab4bfe0a4bc40391f0125641febf5868035e61501b4608ba08fd06be403"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/ast/stmt/OscarSelectQueryBlock.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7248a57255e5b55b679ebb97d77bae91fd153a4be602e0571ce1be384c5d9da"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/pool/ha/node/ZookeeperNodeRegister.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e85c8734e1a99f0fd6909d252d4cb4d6e204d9d2b416653d4bf30e7b69108ef7"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/ast/stmt/OscarInsertStatement.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"741c1bd54db9a5d0e812c401dc53b0901019d7ac6dd8ab97f5c1fe541876d4f1"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/redshift/visitor/RedshiftOutputVisitor.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cb647fca7a53168eac467d0bfe2c56c8b1059a512eff30dc7d93579a6d05db9"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-spring-boot-4-starter/src/main/java/com/alibaba/druid/spring/boot4/autoconfigure/properties/DruidStatProperties.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ea2bbdc9933e2dd2718c1c595b5524e9b6c3259b4cbf7cd246f2c82e17b36bb"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-spring-boot-starter/src/main/java/com/alibaba/druid/spring/boot/autoconfigure/properties/DruidStatProperties.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5a9bba6198c8882d4ff54a17b5501c84dcafccf4fc4e67f36e234e82cae3d04"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/ast/stmt/PGAlterDatabaseStatement.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a08955dd249ee612ea5ca39ba73b692acf3b246e706979daa573ad0b1f3bde6c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/java/org/springframework/samples/petclinic/owner/OwnerController.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"06a03a90dc168a80d0d225b4389564aaf8faf30de9111c483aff2a155c1c32a0"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/teradata/parser/TDSelectParser.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"05c4cf388b6bbbdc665e66445a8c8377dbd70ebd89324d9644d5070d263b06f3"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/pool/ha/node/FileNodeListener.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e602b76abc838ae56ebb438bd11c1bfe34aa9d61811cbc07a22c4039caeabbd2"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/java/com/alibaba/druid/admin/model/dto/WallResult.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"428d216a4f9e0bac9bf9361ac63a8bacc156936ed519faab060a458ed7598a9e"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/impala/parser/ImpalaExprParser.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac9af586f1443fb47608cdf56b6815d3198461226109b43aa9757007a49060f1"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/filter/mysql8datetime/MySQL8DateTimeResultSetMetaData.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f194e93b9c24ff3ca4dc618d0bc122e3f247d8c22f1558107f7d8414e8aebf19"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-spring-boot-4-starter/src/main/java/com/alibaba/druid/spring/boot4/autoconfigure/stat/DruidFilterConfiguration.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5342a008c1893b01f6bf8148edac68a7c346386b84249159c15d05039534dc1b"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-spring-boot-starter/src/main/java/com/alibaba/druid/spring/boot/autoconfigure/stat/DruidFilterConfiguration.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe4084c3ebc29bb763b78e2cca5adfb452fcc67eb222c6c467063cf86c05f95c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/teradata/parser/TDCreateTableParser.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"19fe6c35c7370b09c81225b9bef236d480fdde50214c7809d09d2a1d9efce959"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/teradata/visitor/TDOutputVisitor.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"92b490b8d7e25a2f69417f4df0298f3be63dca5bbde34cde1fa54e63195ec9f7"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/SQLPartitionOf.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"da06982e010b1972fe29fc696d366fe6109cf71e8ddfb6f56f93dc79d744f5fa"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/doris/visitor/DorisOutputVisitor.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bca1a53a5aa930f7a271b250f0a3886f2d8f3ec3b38fdd938ffd721521a5de8d"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/java/org/springframework/samples/petclinic/owner/Owner.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f7568fb490c750e4512b6df7ffd02d5d589acf3b5ba1a0987a205ab82a747b3"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/java/com/alibaba/druid/admin/model/dto/SqlDetailResult.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"44c1873f88cf0fb7e28ce18f8914b8dfd116cc05f9f0b7e3746b31e78fab81e3"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/filter/mysql8datetime/MySQL8DateTimeSqlTypeFilter.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"703b68935a7f333389189118989455e61c8e51609fd91e9cc8b4110df2522d01"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/pool/ha/selector/RandomDataSourceRecoverThread.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"796bccd5dc230b32cb3b3114a792974f8aa314f0edc944f9e3f2df59b65803e7"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/ast/stmt/PGVacuumStatement.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f070cd8a1ffdc990968a562488b0703e40cb00d3eb37b710dc0e4d70100830c0"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/java/com/alibaba/druid/admin/model/dto/SqlListResult.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"724f22259776c8db611e070cf67686b44eecad1c54933182aea862f5dcc89069"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/pool/ha/node/NodeEvent.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"207ee6e880d4ba8668e6b5adcabe6858f39d0fe06475c851dfd0be4a247f2e55"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/TidbSplitTableStatement.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fba7a8afcd90684d8c11215dfa8939f55d4a2a020f3063cb247bc894686d5e9"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/spark/ast/stmt/SparkCacheTableStatement.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a8aa3a935015401d733b2b83debb1a88a194ce014fe41619fae15a4d81dc406"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/pool/ha/PropertiesUtils.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5abe9227fc9db179008d9735868486ca34626b6ba316b9296caccb26948600eb"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/pool/ha/DataSourceCreator.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ebdcc9ab4b78a6863df796b4786428ef934de0cd58ba2285271127a07c09c53"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/spark/ast/stmt/SparkCreateScanStatement.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"47e85ea5696ed0af677c41103892b667b954df5ea56633805a7ade59b5fdd537"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/java/org/springframework/samples/petclinic/owner/PetController.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"16f9c3c367c717287f0b1cbeceb45cb1993aba5e65ba650d3a2ba26fcd420c64"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/doris/parser/DorisSelectParser.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"71e76603de40255ba08f314eb290875cb61de584defdda001b7fffb16dee7a1e"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/pool/ha/selector/StickyRandomDataSourceSelector.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"92dc1cd9e72ea0436a8407321028a7e131336598fd0cb2cc46c827e1259747f5"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-spring-boot-4-starter/src/main/java/com/alibaba/druid/spring/boot4/autoconfigure/DruidDataSourceAutoConfigure.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb6e81d9228d03b9de365ed72fed86313effd0a096fee0c961385b7158a95813"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/impala/parser/ImpalaStatementParser.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c70a19b05784b7088b2fd687aac3f5df0c029bf4c14247d9a9308350fb9b9f9d"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-spring-boot-starter/src/main/java/com/alibaba/druid/spring/boot/autoconfigure/DruidDataSourceAutoConfigure.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd20e814e05414c74b6557d0ad3c8b7115e58de0b78146b10660be8e172cf219"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/ast/stmt/GaussDbCreateTableStatement.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d997459849322d167339aa51830f749152e046733cac3f1a9fc7b663a9d0f7ea"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarASTVisitor.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f304bfbee7e6424b7e5b4470cf876693883cd802194cfac71ba43c1edd70e137"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/redshift/parser/RedshiftSelectParser.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a904b1db992da66a93701a335427d68f9c9649276a2e3136d73c1f67f97ee7a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/synapse/parser/SynapseCreateTableParser.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"adb49ac9a24426dec91428a29555d4af5140b1cc6f2b46eab300688fa9ca698b"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/ast/expr/PGAttrExpr.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4deb9db36163caed5c248481d0a9f0ae02514f1e4f32aae4d6398b31866dc894"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/java/com/alibaba/druid/admin/service/K8sDiscoveryClient.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6e7c17cc35817eb9db188e70e82e1ff29573651d271c7cbd8aa93e1201ce9cd"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarPermissionOutputVisitor.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e45601ef9268cd34e30832f21b750e2a8a83a6ba59246d0a48db38e7a0c4826c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/pool/ha/node/NodeListener.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"308480e7d8d07c16c47297191ea2a3fc41a79d910b79b2ae806f648c4a2d1f0e"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/java/org/springframework/samples/petclinic/owner/VisitController.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d2e32e33036205f1949ede51b391bd8b79bb5bfa61047eed6508dbac9271946"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/ast/GaussDbDistributeBy.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d04b919d6e82107d76faa6ca2929d0b8f6bedb74a1a5c2f1ed77700a8ac7dc2f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/presto/ast/stmt/PrestoPrepareStatement.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4be8f18a1a5e636f999c36c14162379b6f32d26895a123333f4aca8e0acf9ee7"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTypeExpr.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"889cbf8c2e5747a321817446b1272667ca82afce482e691e1e3813b42705fe66"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/java/org/springframework/samples/petclinic/owner/OwnerRepository.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ab2d0589ae6c75a2d2f47408771d97bc67dc79deef8545b99e8474980f53928"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/redshift/parser/RedshiftLexer.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f17b7419b68ff436078b85fbd69d8823c61cbdaf822470568b4902204d1e902f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-spring-boot-4-starter/src/main/java/com/alibaba/druid/spring/boot4/autoconfigure/stat/DruidWebStatFilterConfiguration.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb2ba495fec07510cb9e5c9f61b6771015cc000e52c30dc5972f07d081bfbd36"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-spring-boot-starter/src/main/java/com/alibaba/druid/spring/boot/autoconfigure/stat/DruidWebStatFilterConfiguration.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0c112144658543feabbcd5cb8d9b19b6b4cd0b69f72af2a953990c3a56ea19d"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/pool/ha/selector/NamedDataSourceSelector.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ee06458027e734c2277f6c75ae1c463043481185bbb2af5ffe0c6288d055f1a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-spring-boot-4-starter/src/main/java/com/alibaba/druid/spring/boot4/autoconfigure/DruidDataSourceWrapper.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"afffe2af903eeeafffd5f05a115e9068176f4f97c88b99cee35ff2d5b2341f88"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-spring-boot-starter/src/main/java/com/alibaba/druid/spring/boot/autoconfigure/DruidDataSourceWrapper.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"63a3b6e2bdd7da0e1f109f28883fc6e971db227e1b1bcb04aa981753bc9ef4a3"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/java/org/springframework/samples/petclinic/vet/VetController.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"28fc6de42c1be58d4a1f04c9c1ac92385071446aeffe9b168c816e7be8da6e2e"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-spring-boot-4-starter/src/main/java/com/alibaba/druid/spring/boot4/autoconfigure/stat/DruidStatViewServletConfiguration.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d72768aa585c53ec25b2d7df6ef58c24267a66429ee9da94ede6c42493e2f98a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/ast/OdpsGrantStmt.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b95fff6fa666cce208dab982121cc5bf1f25ce8f23cfead6f301ffedccb5fb0"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-spring-boot-starter/src/main/java/com/alibaba/druid/spring/boot/autoconfigure/stat/DruidStatViewServletConfiguration.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bd3d4564eb98b16459023ebc00d268f74886473102066b9ada73371042dba82"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/ast/stmt/OscarFunctionTableSource.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"18eb1382ddeceed24b7b6b66e41a49dc5b5c88229e63bb4fb0d49e27b9b097a5"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/java/com/alibaba/druid/admin/model/dto/WebResult.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"91b29a4f627fb4ca99cd2cca05018e187625b2a4bb5f4428510ca301cc47f2bb"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-spring-boot-4-starter/src/main/java/com/alibaba/druid/spring/boot4/autoconfigure/DruidDataSourceBuilder.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"099eb652344842f015c74fa680b2cfa57f5d11e6e67c3763e07e861f2660d1d6"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-spring-boot-starter/src/main/java/com/alibaba/druid/spring/boot/autoconfigure/DruidDataSourceBuilder.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"61c46a1bac5dd97257b3a4b28b022cd808769985b29903f74d682fa229adfadb"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/functions/Rpad.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"49868627633b1797c1b513ad93a9f39fe664f33345fe43f5347183dd74f20406"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/doris/parser/DorisCreateTableParser.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"650226dae1b6fe379b639f0cd806d04812d9a84ebc7176b0441abebb71adc853"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/starrocks/parser/StarRocksStatementParser.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed9769c009486aea3269ec10742140143398c5ef118da222b3df8cd7fdb90e31"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/java/org/springframework/samples/petclinic/vet/Vet.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"74ac05f20c63f29a790dd8a927724c19544c720b19401ba64574819df8a3a198"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: SQLServerStatementParser.java \u2192 SQLServerASTVisitor.java, SQLServerOutputVisitor.java, SQLServerSchemaStatVisitor.java: \u0060core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerStatementParser.java\u0060 changes together with 3 other files \u2014 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/visitor/SQLServerASTVisitor.java\u0060, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/visitor/SQLServerOutputVisitor.java\u0060, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/visitor/SQLServerSchemaStatVisitor.java\u0060 \u2014 none of which declares a dependency on it: one file is the hub of 3 separate couplings, not 3 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 3."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerStatementParser.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c0032df27d44d9ba19b3d8bdad1313272d446591faeafa7d5629183e1cbc7e3"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: OdpsOutputVisitor.java \u2192 OdpsCreateTableParser.java, OdpsSelectParser.java, OdpsStatementParser.java: \u0060core/src/main/java/com/alibaba/druid/sql/dialect/odps/visitor/OdpsOutputVisitor.java\u0060 changes together with 3 other files \u2014 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsCreateTableParser.java\u0060, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsSelectParser.java\u0060, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsStatementParser.java\u0060 \u2014 none of which declares a dependency on it: one file is the hub of 3 separate couplings, not 3 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 3."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/visitor/OdpsOutputVisitor.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e0aeb26ba515e33eea3a159ef53ed02a79f8414f8e6141e0c51591eced4eac3"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: SQLServerSelectParser.java \u2194 SQLServerOutputVisitor.java: \u0060core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerSelectParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/visitor/SQLServerOutputVisitor.java\u0060 change together 67% of the time (12 of the 18 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 12 shared commits counted here, the most recent 3 are \u0060354302f7\u0060 Unified top sqlnode, parser and outputvisitor.; \u006038979d91\u0060 Support \u0027option\u0027 on sqlserver select statement.; \u0060a288d101\u0060 bug fixed for sql server parser. for issue #1795 (at that commit the files were still \u0060src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerSelectParser.java\u0060 and \u0060src/main/java/com/alibaba/druid/sql/dialect/sqlserver/visitor/SQLServerOutputVisitor.java\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerSelectParser.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"97c24417f9a47347cbb958a1149b044d59e7692e0b88f0dfd1672c28546a8745"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: BigQueryStatementParser.java \u2194 BigQueryOutputVisitor.java: \u0060core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryStatementParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryOutputVisitor.java\u0060 change together 67% of the time (8 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are \u006008cc4abb\u0060 feat: enhance BigQuery dialect with EXPORT DATA, CREATE SCHEMA/PROCED\u2026; \u00604087fa9a\u0060 bigquery sql parser support create model; \u006054875e5c\u0060 bigquery sql parser support execute immediate \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryStatementParser.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c6625e1fd62d61139b39fb02a2eb19a3978b580d1e28495f8141fb64a4339fe"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: StarRocksCreateTableParser.java \u2194 StarRocksOutputVisitor.java: \u0060core/src/main/java/com/alibaba/druid/sql/dialect/starrocks/parser/StarRocksCreateTableParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/starrocks/visitor/StarRocksOutputVisitor.java\u0060 change together 65% of the time (11 of the 17 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 11 shared commits counted here, the most recent 3 are \u00608b76e1d2\u0060 Support parse bucket auto. (#6407); \u0060992bc0cf\u0060 \u652F\u6301 Doris AUTO PARTITION \u8BED\u6CD5\uFF0C\u53CA pg crate/alter/drop schema \u8BED\u53E5\u4E2D\u540C\u65F6\u6307\u5B9A\u5E93,db2 \u2026; \u006033eb0517\u0060 Fix sr index parser. \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/starrocks/parser/StarRocksCreateTableParser.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"392468492fafaf56dabe34d936114492dddf7605584cb83b837abb03a77a9930"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: CKCreateTableParser.java \u2194 CKOutputVisitor.java: \u0060core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/parser/CKCreateTableParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/visitor/CKOutputVisitor.java\u0060 change together 64% of the time (7 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are \u006078fa7415\u0060 feat: Add ClickHouse ON CLUSTER support for CREATE/DROP TABLE statements; \u00602a44a334\u0060 Fix ck create table comment.; \u00600dbf76df\u0060 Refactor clickhouse partition by. \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/parser/CKCreateTableParser.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d324fd8f0d90cac5e27dd8338fd373ba6486714673d9c6bf2ae57cbc26c4b0a1"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: OracleCreateTableParser.java \u2194 OracleOutputVisitor.java: \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleCreateTableParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java\u0060 change together 60% of the time (9 of the 15 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 9 shared commits counted here, the most recent 3 are \u0060b77a7511\u0060 refactor \u0026 improve bigquery support; \u0060ade87e4b\u0060 improved hive sql parser support. (at that commit the files were still \u0060src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleCreateTableParser.java\u0060 and \u0060src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java\u0060); \u0060888cdc34\u0060 improved sql parser for OracleCreateIndex. issue #1923 (at that commit the files were still \u0060src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleCreateTableParser.java\u0060 and \u0060src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleCreateTableParser.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f288411d6ae3407d67b48c25d146938a6fc2a89aedc72416ae817c89d404108"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: SQLASTOutputVisitor.java \u2192 BigQueryStatementParser.java, HiveCreateTableParser.java, SQLServerSelectParser.java, SQLServerASTVisitor.java, SQLCreateTableParser.java: \u0060core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java\u0060 changes together with 5 other files \u2014 \u0060core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryStatementParser.java\u0060, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveCreateTableParser.java\u0060, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerSelectParser.java\u0060, \u0060core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/visitor/SQLServerASTVisitor.java\u0060, \u0060core/src/main/java/com/alibaba/druid/sql/parser/SQLCreateTableParser.java\u0060 \u2014 none of which declares a dependency on it: one file is the hub of 5 separate couplings, not 5 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 5."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"02ce78fa8c849c883b68c3f46b917f0fba8f0f48871e401a9a70e159432662b0"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: PGSQLStatementParser.java \u2194 PGASTVisitor.java: \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGASTVisitor.java\u0060 change together 58% of the time (18 of the 31 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 18 shared commits counted here, the most recent 3 are \u00603fb4d2d2\u0060 improve dialect support for PostgreSQL, SQL Server, and ClickHouse (#\u2026; \u0060d5c89363\u0060 \u652F\u6301 PG DDL \u8BED\u53E5\u82E5\u5E72\uFF0CMySQL \u652F\u6301 create/alter database ... collate \u8BED\u53E5 (#6276); \u00600bc082ce\u0060 \u589E\u52A0pg\u7684do\u8BED\u6CD5\u89E3\u6790\u7684\u652F\u6301  #3468 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2974535eca31178d1129770ef7fcbb37ce5ef46deeb682900c8f45bec7604535"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: ExportParameterVisitorUtils.java \u2194 ParameterizedOutputVisitorUtils.java: \u0060core/src/main/java/com/alibaba/druid/sql/visitor/ExportParameterVisitorUtils.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/visitor/ParameterizedOutputVisitorUtils.java\u0060 change together 56% of the time (10 of the 18 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 10 shared commits counted here, the most recent 3 are \u006066499290\u0060 Support PolarDB-X.; \u006056b82fb8\u0060 \u6DFB\u52A0\u5BF9Lealone\u6570\u636E\u5E93\u7684\u652F\u6301; \u00608163f00a\u0060 \u91CD\u65B0\u63D0\u4EA4PR\u9488\u5BF9Postgresql \u52A0\u4E0A analyze\u548Cvacuum\u7684sql \u89E3\u6790#5412 (#5439) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/ExportParameterVisitorUtils.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6d477117cb8498a5e40bfddfadbc6fabc8d40f37d5b54e9849fc24e1e34e709"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: PGSQLStatementParser.java \u2194 PGASTVisitorAdapter.java: \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGASTVisitorAdapter.java\u0060 change together 50% of the time (12 of the 24 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 12 shared commits counted here, the most recent 3 are \u00609e2f59ae\u0060 \u589E\u52A0postgresql\u7684End\u8BED\u6CD5\u652F\u6301 #3538; \u00608343ca08\u0060 refactor sql parser. (at that commit the files were still \u0060src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java\u0060 and \u0060src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGASTVisitorAdapter.java\u0060); \u0060b531cb8c\u0060 \u6DFB\u52A0postgresql\u7684begin\uFF0Ccommit\uFF0Cset\u547D\u4EE4\u89E3\u6790 (at that commit the files were still \u0060src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java\u0060 and \u0060src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGASTVisitorAdapter.java\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f6951fed95f464a2b971d84f193e7186c4671b3a8f64073b9af0703b5ca2eb9"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: SQLBinaryOperator.java \u2194 Token.java: \u0060core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLBinaryOperator.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/parser/Token.java\u0060 change together 50% of the time (11 of the 22 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 11 shared commits counted here, the most recent 3 are \u00601026c18f\u0060 support double question mark and vertical bar token parser; \u006022353f3a\u0060 improved sql parser. (at that commit the files were still \u0060src/main/java/com/alibaba/druid/sql/ast/expr/SQLBinaryOperator.java\u0060 and \u0060src/main/java/com/alibaba/druid/sql/parser/Token.java\u0060); \u0060814cb1f0\u0060 improved postgresql parser. for issue #1841 (at that commit the files were still \u0060src/main/java/com/alibaba/druid/sql/ast/expr/SQLBinaryOperator.java\u0060 and \u0060src/main/java/com/alibaba/druid/sql/parser/Token.java\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLBinaryOperator.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6812ff8815bd0e6615b2999713ef9d2160550938cb4042eafb300b6e1e81883"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: BigQueryStatementParser.java \u2194 BigQueryVisitor.java: \u0060core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryStatementParser.java\u0060 and \u0060core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryVisitor.java\u0060 change together 50% of the time (5 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 5 shared commits counted here, the most recent 3 are \u006008cc4abb\u0060 feat: enhance BigQuery dialect with EXPORT DATA, CREATE SCHEMA/PROCED\u2026; \u00604087fa9a\u0060 bigquery sql parser support create model; \u006054875e5c\u0060 bigquery sql parser support execute immediate \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryStatementParser.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7f11747ef02d707136513b1c5ad27b4587a48b2bbd44b5c7778a8441872c4fd"}},{"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":"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":"57b10683f9ba325c618a8320fde9e1726db8b106169a2fd0a5fc7f8ba111e06b"},"taxa":[{"id":"CICD-SEC-5","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":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D44","level":"warning","message":{"text":"End-of-life framework: Spring Boot 2: druid-admin/pom.xml depends on \u0060org.springframework.boot\u0060 at a version that pins Spring Boot 2, and Spring Boot 2.x, open-source support ended 2023-11-24. The constraint cannot admit a different major, so this repository stays on it until the declaration is edited. An end-of-life framework receives no further releases, including security releases."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/pom.xml"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9c1f8330db889243cba9e21118e0d04f0f5b255f25310c85f2a76b3b84d7e2f"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/js/common.js"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dfadddc6b59fce9799dfc082047efa2a9883bac1ac30758a4b7ebb0fedef19b"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/resources/templates/error.html"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"57380d59bcd4ad61e234c174fe4f5d4b856a0ccb66e3e16ae9395a258a9c827d"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/resources/templates/welcome.html"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfb62f3839b9fd22febb8777514c6f3f5eaf28b745792dedcc14a0fe61a94326"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003Cfieldset\u003E without a \u003Clegend\u003E: A fieldset groups related controls but has no \u003Clegend\u003E to name the group. Add a \u003Clegend\u003E as its first child \u2014 or, if the group already has a visible caption beside it (or the fieldset is there only to disable its subtree and carries no group box), point aria-labelledby at that caption\u0027s id instead, which names the group without rendering a second one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/login.html"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf172afd9a5764e80075eb208f26f18a0bc26fcbfa2e815906187329ed3562ad"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/login.html"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"3505c6d25143cb6bf20d39683efb4089a92b70a2a76593a035ab4dc5dea7b5e7"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/login.html"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"335b05b3f9d307d4d8eee2c208a959bb395cfe0b75951982ed5d69e5e09622bf"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Ctextarea\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/sql-detail.html"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"68617067bad1879d9d949626675d2f8a52068b6ebffee3538a217b8e62a071bf"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003Cfieldset\u003E without a \u003Clegend\u003E: A fieldset groups related controls but has no \u003Clegend\u003E to name the group. Add a \u003Clegend\u003E as its first child \u2014 or, if the group already has a visible caption beside it (or the fieldset is there only to disable its subtree and carries no group box), point aria-labelledby at that caption\u0027s id instead, which names the group without rendering a second one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/login.html"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"234b1c0f71de21aadf6a31f9eabc66335b418ee013ff07aae23e13f6fca3ae2d"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/login.html"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"74c6ea9f19f34fe009de4fd343c1e3a2d0dc1727d289e9c866184f9273e12866"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/login.html"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"429af94906bb76eb7d0fa2f77172be6e0d42086697677085061f148ed9896001"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Ctextarea\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/sql-detail.html"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc8df487c11831a562199615f76d9124b69a163dacd126e53b8858fa05bc9822"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/resources/templates/fragments/inputField.html"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"64f7b50b9da9ed72e25d675a21d318f3f3777b9c4900cfa88a6597255c773d50"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/resources/templates/fragments/inputField.html"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"c69e8b8d901b0893482b44fcab24b9feb1145fdeb51bc402f09b943f6133778c"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/resources/templates/fragments/inputField.html"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"88398c3ac0e41812ee5be8640a998b146f94a6992fd347afcb94ebcd7abfdda7"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/resources/templates/fragments/selectField.html"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6074e67e5c09749124d99b80113ad9a0ad9fa7a23a0561067617101a2b24423"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cselect\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/resources/templates/fragments/selectField.html"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d9fc4d7d490633c29d043697251e9cad67b9afd3a81634fb143b56cd17e509a"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/resources/templates/owners/createOrUpdateOwnerForm.html"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"25ad0851ca8ea6a38ce1b462d89e4300f735653db1a9f52d936e5c019f219d20"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/resources/templates/owners/createOrUpdateOwnerForm.html"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"e55229acaf06b2ef096afd4036b536b526d5bcaa009cc47e1765c95ed185aae0"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/resources/templates/owners/createOrUpdateOwnerForm.html"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"36b65ee6c294be2cada806a8a63f67857298dd49c5c1ac0c4b09f15ebec93bdb"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/resources/templates/owners/createOrUpdateOwnerForm.html"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"98440dc19a4c9df1992c5226b7d2058512bfd5c2e901aabc764fb767abe4669c"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/resources/templates/owners/createOrUpdateOwnerForm.html"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e293ed427521ead4382eee03f97c0e3a60ec51f5ec2cbd24b94ecbcea66c381"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/resources/templates/owners/findOwners.html"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f304a1934478bc4aa219be62716e3fb057a15d2e2f82504adbcacd4c6c69bec"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/resources/templates/owners/findOwners.html"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b7faac44bf785cb85b28f141247934a01790bb3e9aaef4b0b7d05670ac87fc2"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/resources/templates/pets/createOrUpdatePetForm.html"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4ddc1437100a6092de0ac8eb22f4620b3bcc781fecaa52a10e55f822d4c8ab0"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/resources/templates/pets/createOrUpdatePetForm.html"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"9548be17494403702c5fcb274d383ec477de08602fd6e8cd34cf12fb38113204"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/resources/templates/pets/createOrUpdatePetForm.html"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"841fecdb35aca9d319d5a07937af69ef2e6f30dca2b9c0dbb65099b1297e3f03"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/resources/templates/pets/createOrUpdatePetForm.html"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a6f819c8690ebc62f438c1e1d8989a8d64c93d59be651f6294a3ddca97038bd"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/resources/templates/pets/createOrUpdateVisitForm.html"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9a200f7ad6a21f81b07d9ce8ea024b2c84eacf0d2825f2b4c9a738641a00122"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/resources/templates/pets/createOrUpdateVisitForm.html"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"f212d4501579ae0f3d2c405e9f695cfb48d648a5a1fba99c942ebdcf0650d7e1"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/activeConnectionStackTrace.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"aac19f396e1e9c1731ccd4dbfe13bcbd3cf4e489c86f56047de640bfc608756b"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/activeConnectionStackTrace.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"e44d8d258d78ac901bdcc44bd1a6be854cbc4e56be23dc9f30749041c0fde2a2"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/api.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"806b9ceb3151b503ff341ec1f05a0ad27dec71622d3dbedff7ebf10f13b13e3b"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/api.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"12ddfd2fe38e4f15e2bb6d4a624e64d06567c5627f2a76e1ede683252a57d3a2"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/connectionInfo.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"efd99fe9ee06bb6141920830334ebd4282df27c15ec6c5159a966ebfb9a004ee"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/connectionInfo.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"1628d846516e2730bdc5620118133b3c035476da4fc6b7f362582e0a4e095836"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/datasource.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"00fdd07fd45c984a6f5e89a4d8ccc79ee3c1e4b5b6c108f30e8143f3935053e1"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/datasource.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"53b837b9864190572d49abb0945d996019ab336613ae76416998cfa2e9dd2ff6"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/index.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"830e12ec6908702c678fa85d884f2670acc6b69929584d029f6d19c760f17601"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/index.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"7359507b0750836bdebe30d777f0ab34bb85f81e5c8007801442e0052e6e6cc7"}},{"ruleId":"AC3","level":"warning","message":{"text":"Data table has no header cells: A \u003Ctable\u003E with data cells but no \u003Cth\u003E gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as \u003Cth\u003E (with a scope)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/index.html"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e14b269979ece37be87ae49cce9f0d2df0e63dcf4dec1a7f7dffc0368a9cdad"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/login.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a170b62a264531c3099d06f03e3f045bfa0f36a43ab07ce43d93b99dd0c0d8b"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/nopermit.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc7eb68cfa5d9dbf418d90ae3a955e35971bb957e39b46d83ef463528cde0734"}},{"ruleId":"AC3","level":"error","message":{"text":"Document \u003Ctitle\u003E is empty: An empty \u003Ctitle\u003E gives no page name in the tab, history or screen-reader page list. Put descriptive text in the \u003Ctitle\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/nopermit.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7c7c27e22896582050290ddfca68dbb36ee9af1c9f6c145daca4e3a85f8bcba"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/nopermit.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"71d0ebbb13451cad80dc425cd3763531553ff061462f5d66a6f9b2b91916964c"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/spring-detail.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9a3a37dab579101df0466a1dd502079698c6ff433b8ff09da6c1c5f62531dc7"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/spring-detail.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"6859922aefd07106e95c64a028131f06bc23ff08934413e35feb1a846ef4d896"}},{"ruleId":"AC3","level":"warning","message":{"text":"Data table has no header cells: A \u003Ctable\u003E with data cells but no \u003Cth\u003E gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as \u003Cth\u003E (with a scope)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/spring-detail.html"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"c00de60274acf9d8451f01b625a660c084ef465e5fc61097505b065dd512440b"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/spring.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"96ea3de170570538b9df59ce99c1439b41bcdd7d630ddc760044f29ce00e42e3"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/spring.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"053ffa3ef9f2322b738a02e4d86a30f283b81e56dd7d7f78012fe767adace5b1"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/sql-detail.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0569b587ee92a83f2bd7bfeeda47d47756d8782a40843978a42f032723339e9"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/sql-detail.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"17c78adb43f8e0cb2bfd881dd02532ec4af456bfaa83bd1f1740a4edc9175750"}},{"ruleId":"AC3","level":"warning","message":{"text":"Heading level jumps from h3 to h5: Skipping heading levels breaks the document outline assistive tech relies on. Don\u0027t jump levels \u2014 increase by at most one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/sql-detail.html"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ca89cd841158e92a740fbd7e0482d44756f093272e305521a2d9c46694cf1d5"}},{"ruleId":"AC3","level":"warning","message":{"text":"Empty \u003Ch5\u003E heading: An empty heading appears in the document outline announced with no text. Give the heading text, or remove it if it\u0027s decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/sql-detail.html"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f4d70340b46401f703c67b95276e6648ecd4975aa112aa97bca42ff5ab35545"}},{"ruleId":"AC3","level":"warning","message":{"text":"Data table has no header cells: A \u003Ctable\u003E with data cells but no \u003Cth\u003E gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as \u003Cth\u003E (with a scope)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/sql-detail.html"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"1318435a9982dddec259872e8409c5893487beebef408d9a602724af9d77b9be"}},{"ruleId":"AC3","level":"warning","message":{"text":"Data table has no header cells: A \u003Ctable\u003E with data cells but no \u003Cth\u003E gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as \u003Cth\u003E (with a scope)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/sql-detail.html"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"2438d4869c2877b7b27657a6108d2c491f951ca2dc365e5e755b4a465e98274d"}},{"ruleId":"AC3","level":"warning","message":{"text":"Data table has no header cells: A \u003Ctable\u003E with data cells but no \u003Cth\u003E gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as \u003Cth\u003E (with a scope)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/sql-detail.html"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"69fe634a508b25bac3be4f67b2a925e442352f507d289b9c9e15268bad3e0d03"}},{"ruleId":"AC3","level":"warning","message":{"text":"Data table has no header cells: A \u003Ctable\u003E with data cells but no \u003Cth\u003E gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as \u003Cth\u003E (with a scope)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/sql-detail.html"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1420129d066f5555f3ca75a87592b9a04f91c55ebcbd3e9300eef3009ead9ff"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"983299f5b50b360c453ea4ebaf7d984f27a6a7e1e3bd43d43810e97d90b5bf86"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"60ddc00e0585e318d7b244e8a6b1c39bb67a7af1601dc317f1a6389658d12e05"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/wall.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a06a1badbdbeee2f56a9845da61309b28311829cc0bb067f5e53c7317b1c92c"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/wall.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"d21cc9fcd5b9e2172d41e8035e2f5f33f5383d0f4e686ffd650a6f9c60192a4d"}},{"ruleId":"AC3","level":"warning","message":{"text":"Data table has no header cells: A \u003Ctable\u003E with data cells but no \u003Cth\u003E gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as \u003Cth\u003E (with a scope)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/wall.html"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e1423fe6604ecfc9b531738eaf80014945cd03361dc44848342210b9941d582"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/webapp.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"4df904972f8456fe4508df83a0dd1cfd98db18b1ea36c67665dbd37b25cf7fda"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/webapp.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ba63def084bc7cceabd702036dd46f3d3ba9f6557a9e2252c9b5c8f8f69de4c"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/websession-detail.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"b990d9c9bb8e8223584b7d85bc82f397c51cf49bda4a4a2c0e892b70f7edb1db"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/websession-detail.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfa1a226fceab10627da3c7f58b1cf0687d07b109749b04e7b7910384e9260c9"}},{"ruleId":"AC3","level":"warning","message":{"text":"Data table has no header cells: A \u003Ctable\u003E with data cells but no \u003Cth\u003E gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as \u003Cth\u003E (with a scope)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/websession-detail.html"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"802e2f5396ca105e576fda75f04db93e7a2aae185bf4fa07c3f5100de05651be"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/websession.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a3fe448fe86fc7ff2f521a807d426e6c57560ac2f046606a17a199ff40c2ccf"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/websession.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce79eabca763fb8e581548b1f4dcb42d87edf038269274b65f01f4e4e0bab2ba"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/weburi-detail.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3ce299ff5a94d048b25def7231f4c14c8d4e2a56863e3f2223a82f23487e18c"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/weburi-detail.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f75915edb8f428c16d40018db8a183e9984047dc8e08af114c61b421e704a01"}},{"ruleId":"AC3","level":"warning","message":{"text":"Data table has no header cells: A \u003Ctable\u003E with data cells but no \u003Cth\u003E gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as \u003Cth\u003E (with a scope)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/weburi-detail.html"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4747d968c61cc023a5263039c1650b76f7a0aea283b31a6b347e5a5a19c8190"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/weburi.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"301e7ecc1b8438c66a1f2812ac1f5d48da2ecdfa0ec085ca4f6d518f3ac016cc"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/weburi.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"82f7fa3bceaa2890d6bf0694f8677056722e2143448525b90ba4ba4228d5be03"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/activeConnectionStackTrace.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8250e964bfc28d85f7f7bb06655b34fbd262f21966b59c07f2fa488a93b39d4"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/activeConnectionStackTrace.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5c51a1ddff98df106e790ac9b84ffd4dca9f1f07dad2cd846520e1f3104b14e"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/api.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e160ba1dbcc8534a4a51de963a9840c41116aa7845caf4993c938591f96fc7f"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/api.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1a59343c8d2476ec7d6279494d719fd37e8d7357f82afd73362480085bff56d"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/connectionInfo.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8cdc7d435f50a803c7e1028fa6e6b2d289897057247d82c94f6f97dbdccf6d9"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/connectionInfo.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"8553d4c72ed12056523df7480828a90c90e7095be48e4c2067a15dbc2e7e9632"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/datasource.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"70eaa4a048cba222a94df359e608c72aa47884f9a5d33661ab32bd3cde6bace4"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/datasource.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"adcdd3729fa5828681cd5f134aad64fa0fa53d7820acbd4f435bb5b513e9aaae"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/index.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2aca57fa535e5c6b609cbe995ea6e0a21f01a02bdb007d80d716939ad67ace5"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/index.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c3310239a97e7ad4a6eafcfb68ff5819efebe048fae099dbc6194297220783f"}},{"ruleId":"AC3","level":"warning","message":{"text":"Data table has no header cells: A \u003Ctable\u003E with data cells but no \u003Cth\u003E gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as \u003Cth\u003E (with a scope)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/index.html"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"a986dc40ec429768a323279ae4c0cd9d7fc3c2573bd279b539e9f7141abdde73"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/login.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eb2541bf8bcacec6f277a1628eb8fdf12a7a6d16c99ecf024d7ef6d59cb822f"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/nopermit.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ab292d60b9c765330b6bb2862a7c2ef4a269b60e620e3a2249ff36a1d378b8e"}},{"ruleId":"AC3","level":"error","message":{"text":"Document \u003Ctitle\u003E is empty: An empty \u003Ctitle\u003E gives no page name in the tab, history or screen-reader page list. Put descriptive text in the \u003Ctitle\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/nopermit.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"3934f0d1218df4b7cd5ff0f4cc16a19ec4221b633331f46275f4eca9bec2d527"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/nopermit.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccf1272ac980795d55cdf76feae323017e008e04a4ee9500c6a3d2b0475e8d1e"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/spring-detail.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"acb8f8bfd38c1e386741810561e9c0d1c9909b3d16d12571d0b2a795212ae8fe"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/spring-detail.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"a192b7be3de71402c4d9bf01152dc18596e8ef2806e7a77a67f300a6a1240367"}},{"ruleId":"AC3","level":"warning","message":{"text":"Data table has no header cells: A \u003Ctable\u003E with data cells but no \u003Cth\u003E gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as \u003Cth\u003E (with a scope)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/spring-detail.html"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cd39080b347ba6ad01d2b59fec44c48e2ec210875e0200c30381ac909a977b4"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/spring.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"50366886afe1ad8172b2f4875c0c8a8594d6c17195fec5dfeb2e34f45f9f1a04"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/spring.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"4553cc464ab0d47d30f4f68077d9748edc69a7876712c6d3467835bf3a8f63d6"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/sql-detail.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"e25d5f3342492eb2626538d821413e1d8a5ee6b1a12531f1967e79154a27d571"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/sql-detail.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"919f6d185e0e3fb11fc8500a3a4056a711b177c6f45597cbe01e5fdb8b983c6a"}},{"ruleId":"AC3","level":"warning","message":{"text":"Heading level jumps from h3 to h5: Skipping heading levels breaks the document outline assistive tech relies on. Don\u0027t jump levels \u2014 increase by at most one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/sql-detail.html"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc33b774c41391063b806b6da1af3870d179d54c6c0565afae8a78f3477059e0"}},{"ruleId":"AC3","level":"warning","message":{"text":"Empty \u003Ch5\u003E heading: An empty heading appears in the document outline announced with no text. Give the heading text, or remove it if it\u0027s decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/sql-detail.html"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"c76d036c41c5434fd830a7a21146a2461d6bd5581c9a8ebca32e53e1082bd4ef"}},{"ruleId":"AC3","level":"warning","message":{"text":"Data table has no header cells: A \u003Ctable\u003E with data cells but no \u003Cth\u003E gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as \u003Cth\u003E (with a scope)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/sql-detail.html"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"f428e8c8497cdee3c41736168a973351dab1bf7d96c9834924642045eb7973c1"}},{"ruleId":"AC3","level":"warning","message":{"text":"Data table has no header cells: A \u003Ctable\u003E with data cells but no \u003Cth\u003E gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as \u003Cth\u003E (with a scope)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/sql-detail.html"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f6bd8e542f7d0134fcd0eab65741dd7cf49b7b0ab211d6a4312d964dbae7c64"}},{"ruleId":"AC3","level":"warning","message":{"text":"Data table has no header cells: A \u003Ctable\u003E with data cells but no \u003Cth\u003E gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as \u003Cth\u003E (with a scope)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/sql-detail.html"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"df59b86e2bc23dc27cea978eebe5d4db047cfbf60245e2405740d4e76b9535b6"}},{"ruleId":"AC3","level":"warning","message":{"text":"Data table has no header cells: A \u003Ctable\u003E with data cells but no \u003Cth\u003E gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as \u003Cth\u003E (with a scope)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/sql-detail.html"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"03c5e9fde5cd3b9dd09ffdc39a2a305774302633d511dbaada738236d87d2683"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d95c6258ab62ed89131b26948b5265bbe38c5834bc15f0c1999328adbbc1f86"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cfa4bb1d42c1c719b30a6efe8084f80e1c90ee2e34bf8e056478ac4168b1f25"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/wall.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"a72ec9e4af51aa9a4ca91239d3a585ac594e19ac28f749949eeadb4552af6e1a"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/wall.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"41ca762abec93bfd10a9946d58c3d89aa98f5f4f17ab177d116da821ed1bec65"}},{"ruleId":"AC3","level":"warning","message":{"text":"Data table has no header cells: A \u003Ctable\u003E with data cells but no \u003Cth\u003E gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as \u003Cth\u003E (with a scope)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/wall.html"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"498a6a02025a37d7f4d5dbfe66399de7cffd40227349222566df85f44a76688d"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/webapp.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc65eef2118300e1025fa78af9f0fcec76d36f2c81f2c2ff82dbcd137d6521e2"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/webapp.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"efdbb9714320640c477b1e10cd8cd8f117ea989e03550f6bdf1586dedd31debc"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/websession-detail.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"de21f77e9b6a0c64b37ea0e40b17d8ed39b2fad5c81ab26a95ee36aaf009ef87"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/websession-detail.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f511c52aaa78b330259ac6ad59ffd883df6082757cfc15658a725fe6eee62b4"}},{"ruleId":"AC3","level":"warning","message":{"text":"Data table has no header cells: A \u003Ctable\u003E with data cells but no \u003Cth\u003E gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as \u003Cth\u003E (with a scope)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/websession-detail.html"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"69cbdf69a75e964349762c4ababf3f4d262602594775ec4b28320d6eeb9d11ba"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/websession.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4d8793394d917bc859df9575c9ff19f4d9c92c03f756afb70f5bf1e73a05191"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/websession.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"c097e3f916431dac485d5d6ed30a43d63269613f735ac97f7d7c96b62d7ad290"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/weburi-detail.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"349944540422abbcf026d7fc209a6f43734f03237a160134744d15208f439242"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/weburi-detail.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"39138af4179ec0120b5e74fd7b3b78010e7184897a31ab7e1a02e4cb8236185c"}},{"ruleId":"AC3","level":"warning","message":{"text":"Data table has no header cells: A \u003Ctable\u003E with data cells but no \u003Cth\u003E gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as \u003Cth\u003E (with a scope)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/weburi-detail.html"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"aee58e56b327180e51a05cfcceab01330082c8a58a65174ad5a471a16618a986"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/weburi.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c5be6f4a2d6f019cb8b38c54942fc44381a4520d88da1f716071df6a8c923a5"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/weburi.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac950b8931415ea1aeb52da88ceb8f8a8c1f8f5f11b9901fb606a3c9f20182d0"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/resources/templates/error.html"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"66389dc72c4f9744ebe96908e5cfc9be73893eaac78cf8c8bdce7bba123a4b99"}},{"ruleId":"AC3","level":"error","message":{"text":"Document without a \u003Ctitle\u003E: A page with no \u003Ctitle\u003E gives no name in the tab, history or screen-reader page list. Add a descriptive \u003Ctitle\u003E in \u003Chead\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/resources/templates/error.html"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a276a397b18b3b5d75377ed343da087fb224b0b79a906c09f8932ed87516d38"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/resources/templates/error.html"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"6610d01e83311fe4f47b769f8f89f9a208cb7f3854780ab6e77b12464f2116ac"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/resources/templates/fragments/inputField.html"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e3b19d4edfbe488f66e428fdfe075820d458056571b29ae98245fb0db33bba3"}},{"ruleId":"AC3","level":"error","message":{"text":"Document without a \u003Ctitle\u003E: A page with no \u003Ctitle\u003E gives no name in the tab, history or screen-reader page list. Add a descriptive \u003Ctitle\u003E in \u003Chead\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/resources/templates/fragments/inputField.html"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b3228d235de590c963a52b478453508fb92923e39084567050ccf377bcbaa2f"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/resources/templates/fragments/inputField.html"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"80d72118e8f74a84af409c0ffbf508230b94215454ee86919b9a30c0223a9cbb"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/resources/templates/fragments/layout.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"76800c219b6874de29f15b4c231a0147ef1ff5142fd0cc19f1bc63665160d35c"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/resources/templates/fragments/layout.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bab92baa7f487049112635b01f1259a8990a2f0f7750a2b847239a57cffd71d"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/resources/templates/fragments/selectField.html"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"97341d2ea63d994b8a7c845f05e549ff1c745949e711b734aea40cd986572c3d"}},{"ruleId":"AC3","level":"error","message":{"text":"Document without a \u003Ctitle\u003E: A page with no \u003Ctitle\u003E gives no name in the tab, history or screen-reader page list. Add a descriptive \u003Ctitle\u003E in \u003Chead\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/resources/templates/fragments/selectField.html"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9be89e135a7257c832ddb045b236482e8aa6f367f47b575b0e4583a76942a11"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/resources/templates/fragments/selectField.html"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"90ae495595cf0e50cb7309a5eb1c1cd1a4340643458ba0fff72c148e58301d3c"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/resources/templates/owners/createOrUpdateOwnerForm.html"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"588be3fb7724e43273a7d17be86673697df2389723565bab6f611a0c91cf99f0"}},{"ruleId":"AC3","level":"error","message":{"text":"Document without a \u003Ctitle\u003E: A page with no \u003Ctitle\u003E gives no name in the tab, history or screen-reader page list. Add a descriptive \u003Ctitle\u003E in \u003Chead\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/resources/templates/owners/createOrUpdateOwnerForm.html"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"28f4fe08d6d4f88768cb68323f402804da48d661fc70a90196654783e64501e3"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/resources/templates/owners/createOrUpdateOwnerForm.html"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b35ef949885a530034292ebd26850454cc3982775410ae457f82cce74cc5d85"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/resources/templates/owners/findOwners.html"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e3000af7ea38ebe7da28604ef043cec0810fcd36d95fdba1c0f14c0de9bbe2e"}},{"ruleId":"AC3","level":"error","message":{"text":"Document without a \u003Ctitle\u003E: A page with no \u003Ctitle\u003E gives no name in the tab, history or screen-reader page list. Add a descriptive \u003Ctitle\u003E in \u003Chead\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/resources/templates/owners/findOwners.html"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff5a5e9aa2fda53eeefe1e0a90fb773791856a2b73893161ca10226e7fe19acf"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/resources/templates/owners/findOwners.html"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"582fc393e14289caeaca3f49c514ef3d820b21c0527d812f8a54da398618ac96"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/resources/templates/owners/ownerDetails.html"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca787f16d5dad81e140acf164e0be952cbf516e5b9832809331e4871f7a9651a"}},{"ruleId":"AC3","level":"error","message":{"text":"Document without a \u003Ctitle\u003E: A page with no \u003Ctitle\u003E gives no name in the tab, history or screen-reader page list. Add a descriptive \u003Ctitle\u003E in \u003Chead\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/resources/templates/owners/ownerDetails.html"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff9bb836cab7065d09ca9c0193752313b97d3e4e5f135033e6aa6f695627c212"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/resources/templates/owners/ownerDetails.html"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"490ac7ea8d185f8e31d454edc14d904b8d0878d254070241914ef5eec93f2f81"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/resources/templates/owners/ownersList.html"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"3669aa6dcb21da3410ef8e7eb3c87c219eaa3348509bcaab91bcf1f878a1e792"}},{"ruleId":"AC3","level":"error","message":{"text":"Document without a \u003Ctitle\u003E: A page with no \u003Ctitle\u003E gives no name in the tab, history or screen-reader page list. Add a descriptive \u003Ctitle\u003E in \u003Chead\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/resources/templates/owners/ownersList.html"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e600e569eced1b3c3eab293f27c0ad2f8539df176692b970fbee157a4f6352a"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/resources/templates/owners/ownersList.html"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"d671b6022ae9b117fba925e851a41c1e323f1184d6f6450b6faf8c44880c05c8"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/resources/templates/pets/createOrUpdatePetForm.html"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccfd12a866537b0a79651d7a9c7aab59c8b109a1ce28f14194e25d7699ba1a61"}},{"ruleId":"AC3","level":"error","message":{"text":"Document without a \u003Ctitle\u003E: A page with no \u003Ctitle\u003E gives no name in the tab, history or screen-reader page list. Add a descriptive \u003Ctitle\u003E in \u003Chead\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/resources/templates/pets/createOrUpdatePetForm.html"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f620386bac59ce24443eb4f6b1ed6848e43b7a70b01a3dcbcb597a107d36e576"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/resources/templates/pets/createOrUpdatePetForm.html"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aec871c7046e0fde6de68cf13f5b93b67acf638875831551ccda8c2622df5227"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/resources/templates/pets/createOrUpdateVisitForm.html"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"22bcd2d07e9ba8b57a451eaa84ab25b40ec02f096a104946f7508ea4e16c12a5"}},{"ruleId":"AC3","level":"error","message":{"text":"Document without a \u003Ctitle\u003E: A page with no \u003Ctitle\u003E gives no name in the tab, history or screen-reader page list. Add a descriptive \u003Ctitle\u003E in \u003Chead\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/resources/templates/pets/createOrUpdateVisitForm.html"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd338f29f450583770e544a76461c34c4a1642a0de44ed2d1c2873864d6a30a0"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/resources/templates/pets/createOrUpdateVisitForm.html"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ee8c02ffca2343e946fb91e7ceeba628063fdd4a26c1e9f2be523a4de604773"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/resources/templates/vets/vetList.html"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4f2507d3a39e5948cfb10334ba19fa82f909faebcd55b5c0a4649c368fd261c"}},{"ruleId":"AC3","level":"error","message":{"text":"Document without a \u003Ctitle\u003E: A page with no \u003Ctitle\u003E gives no name in the tab, history or screen-reader page list. Add a descriptive \u003Ctitle\u003E in \u003Chead\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/resources/templates/vets/vetList.html"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f6160145fdebb4b40d918ca6dafdfe39257f14b79c8c18fc05ad9fe289869da"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/resources/templates/vets/vetList.html"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4e04d7623fa66381a4be8b566fe7d61c91e908630dd1a0d2eec48f49dc1df73"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/resources/templates/welcome.html"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"57c648ed6a14c39dbb98b1c0b2cbcb420b57be4446a45a856cb8f6b2e01b335f"}},{"ruleId":"AC3","level":"error","message":{"text":"Document without a \u003Ctitle\u003E: A page with no \u003Ctitle\u003E gives no name in the tab, history or screen-reader page list. Add a descriptive \u003Ctitle\u003E in \u003Chead\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/resources/templates/welcome.html"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"9634a6555d32de5c8c79ee5137eec24744f85ab7c4b54a327182ddf1c9f0d5ba"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/resources/templates/welcome.html"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6fe17fe3212467760c27b5cd91665e82b1074ac1420d9b8afac1452209bbb21"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/header.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5defb3ae463da182a4e4e237eaa1e94215fbb0a05f44d2e93b7108870bebe29"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/spring-detail.html"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"63ee90980b49ec21020655d3bc045a81e8136423d71395babfdfd8de3555b6e1"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/spring.html"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"92a86a69af38008fc31ac955f80480d4ae03a3a5f455a4b1a9bdac7c4855d1d7"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/spring.html"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbea97674f93222c858147f7fc3fbd8793411eb6e50a64aabad64fb85c7f6ba4"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/spring.html"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"18f9d0ee3f27d86a17dbf3ad7bb545e79795a356724788eeafd04d478b83ac97"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/spring.html"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"2378256b3d9be4e70faee2d847f061a123b126aa054c8938431df02ff6af3ccc"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/spring.html"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"71dece88152f8e0ccf040cb29d16f6370d0f299d04cd3f2465296ace6f527a67"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/spring.html"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"c84561f737d07994e1c8407f2e59c33d49a413c2514987f57f5ed63e991c901a"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/spring.html"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeb3d113f6486ef2f163a10636ffc49db254925238514bffd871d7830dde6146"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/spring.html"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"aebb4f4d8c0d22a14f67df4d182a2e78cd1b6c2ce0c64379c0b4a7654eafea70"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/sql-detail.html"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7f62ca9829f891cab716dd0ba85ba91f96267eb2122bf37becb1183fb574047"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7f4b46fe3f80f7e695d81e2e3ab850712dec68a71e9df8004d48607f0252a9c"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"8102b81af3cffe6e5294b18b63dd7e582047404da45dbace9c496c9a0b3a047b"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8f206a063eb3608a1af0bb30b962a7d286db7dd48e60d8eef4b84b6ad6cb1b1"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca9196139ef46b3ec0286ed9ad9066e71d52cbeb2e75c14ac73392df3fb2d841"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcb084035e37d9534611011410db780e47cd7553b69577a3bfea210cd3770efa"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"af434174ff8eab1c7980224efd83cd2a9ef8f4ab032bb1d145e760c019e1d65c"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"2493aa1d7784b21e52484bb9bdf76b0c270d974381737070b499b80802ebf403"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a4cd9cf023a04aafe3da9ca05d0920eca57dd6eaab8f345cdb2ae07716889c8"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"14535833e498d1697ce62c847f8b3feedf997133c10877683e49d8c81ee041cf"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"f291e9f8946db0d87ff67e0bdb6d40fdc741429388649a6b2ebb01fc60f6cfb0"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"443453a4969d600eb5466cc3943b0f57c01e6c34a93c7eafdccaab5d0a807e53"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"0de35230ecaf9f6bce94ac3dacde097af799785ae6ffee401c9d55c282de50cf"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"67d6eca3ff2c639beff48ab51b3fabfdd7b2ee39c142abb0dbaf2d9d09d39019"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"c05be55eb1b8a810a98086f83dec7d68089a41a3c7a02b407b0d61828dd073e3"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"69051282e19f5e6eddf6c55e0619e881c0247d0f11cc7c04881d769ab30cb70b"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"22610e09c7107863167b5ad5d60dc80f2ef9343c7025c39914f8ecb922a99274"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"52b78365e038ae33b4e6ebe9858dc014a5e8fba162f24a0ba7086977b0b1d9e8"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"1523bd6ee904bf5858b60320ee8d3c2ccb4821e132692ee9c73b03ba4eaedba8"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"d35cd9b1ce1a8035f1485e9a1ff177e94112c48158a9bcce47ad217218ae5f62"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9cfbfc48dda65afc9be478c5d412b5d46710bf4388aa76197df865dff2669ae"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"82d209fe29ebaf55ac6db7ca600d9092abb27a62cf584477a98f8a387aa10dad"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c8335348f80c2cba604124aa75bfbbd17de06f689f8506c51daf0b291ef6f78"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfb1a394a1e20c52dd600412fc8e1fbf336b95d8dd320588d662b4976dd9684c"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"876dc4b074b76751515dccb9141ff95539169f9eb51a92970f7d4a2a806a3387"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfcc6ee41a7fe8ced8ae53a9e676335560a3124e1b3b7887e3f1360c24f016bb"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2daf86e470caf6d0157d58637b8fcbb93800e102895b7f9474380e3023c0906"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"14dedf84093e80c14933c63db660a72650dfd86d46c5e330210656f67fdcdefe"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f5782259b280a0ef8f35a07b0458f9840dee45e26d9370147e0dd758a268209"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"bef780f5e0deb0c6dbee0fadc34f3cb0c4f6fdfbcd77a1a0ceae78d0308b6beb"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d96ed88a0adab3d4d4f62986054915906df5f6f6d931e8fcf40f4298355f894"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"30d478281a9c3fcf66dcff756dbc924c2bdb305876983b6c84793a4cafe62e2c"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"78881144a389db00151568ff40b540b12a43b54241a11a294f3047676b636441"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dfcdfee732071db4f3eb8d02b653ed9d0dd9afefca5b7e66dd1030e519240f7"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7a9316500af87b8fe7fafe4c127ce17fe4fc780f42af3c9cc9a068b1a9be551"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"50d34067358791f92a76f1c9a7ce072a9a49d344ec81648c5602cbefad117056"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"8481ddded26d6bbf61c58f21f878363dcacecb9acc863e3a0920e6cfa2a64bb1"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b86083a42b9502c763d9139f342421c3c31751cd470caead2ed25ea07e9e973"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"5416493ac959b904fba142a35ac0c77cad020414d20155bb0a081b0271e5706e"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"86f7620d07190b07a392838ba078f5f664d76e27ff1497fe0078dfd03b8dec5c"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/wall.html"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"66d70977040f74d2724d3433677c62cfcc2bcaa315b085e50a7aca7a18f0f671"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/wall.html"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"18d66f0750329ed3d4f3f729ee7ea15a0a020a21bed77116161a0868edbb403e"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/wall.html"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"58d4f560d427f98f1100ad570be2b15c8bd9757ed5100053519863dc933c9630"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/wall.html"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"654145a73a631e8d29db8a1fc807ffa1281ac9aba8a0020196c9a950078d2953"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/wall.html"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2c24d987d6c1f3e9d0f7c976ac71a6b34b18a5e05fd11c850fa8e89dadad76b"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/wall.html"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"86c913a0545a5643b2ad960defd0fcfb3d8c7fe21b8efc3936f0a264a68af6f6"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/wall.html"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a9a4f5803db46dc148f7d27af25ee7cd0da318375d52ff005ef9386e1759a4f"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/wall.html"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"b01a26f1b9a6a1f63d651c2eb0bbdda5e1959b3df657420ad19f5a69be7b0eb2"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/wall.html"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"817544e6dc17867056ee75f8fe034c79893d7475ac8de436f4f215fc3727516c"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/wall.html"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"27ae75af5fb98986d9c65b90407cfbd603c005953c7766333d5a0838a5894a9f"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/wall.html"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"9516369761130c0252c6613e5dd53df53bede15ce6f85c614ab86538071530b0"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/wall.html"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"f484a666fee44c8c0e02300b77145fce53c7748903a79655130a604543e61c7c"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/wall.html"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f2b06fcc81f7ea08fb52f40987cc965939c2305059135b9b211041339e69666"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/wall.html"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b762970e003eaa202101800577b09d28372992013953017b9d2065c3b406bd8"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/wall.html"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6ece3932b86f287d9f876a7ed2669f17c366f02ac4082af5d18d43f8519d4fc"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/wall.html"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"838cf963c045995d40d053219c4eaaae47eb8fa308e12c0cdafa6001fb14bcd2"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/wall.html"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"95102e02adf6c39fe896c92653755eeadc0eabb621bdc2eacc6da960b01a63ad"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/wall.html"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d79d64b30b4a8d5dd51da82f82284d062680001ab0ec9ced202ec0433d4e605"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/wall.html"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb9c3bd3c3e9cf3620291d3528ab2600152eb93a4bc125e24983055f0bbeb7bd"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/wall.html"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c04def8fc3989d4c5394e29f4a9a83531d62871f59100c1490b142de42e79ae"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/wall.html"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"b18afe02de1e5b8f44a23d247c5c70aa44afa30255d597e75ead7313a7f43562"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/wall.html"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"eea8f7ee9f56b0b0f9fe8ebb672bac3705da6b9d496ae46aa6b5195d14dc6c2f"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/wall.html"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b935f8e0957d5da249c9f521c6c0d261bece0c99878513532af5abaf1d42314"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/wall.html"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3d6c5f30b838fad16cbd2586d4b80fc58dbbac7f7549bfb118ae377bfbaad95"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/wall.html"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bb397f2da246d6d82edf7022217c201caa400fdec7c96422b26402e08567893"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/wall.html"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3246380a13e62ae0a2379a5835111e3080011e1b49f0408c930c13042c72936"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/wall.html"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ea716575d7476549e30383877ec6097b0b37cf85950dcad57ad09f8552125eb"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/wall.html"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"45c78756a37c05cf3428bd47686986756a71585b4c2f37b06c11825ec96e3ff4"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/wall.html"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"753235f60f9187f6e1d86c921750e8bb7b980ec34c5d1071f0f359e48d638ed1"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/wall.html"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8985be7e85690a4a5418b743df269ef8ff1e3f1cd6ca41e7093eeba87e48601"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/wall.html"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"a76137ee4a8281d5bc24c10e300fc87fbc9e119e4a17dcb085e2c61c577161ee"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/wall.html"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6242751ad70fc7ecadb917be3fbeef35923e491dc820a562fa3bd55422573ff"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/wall.html"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8d45714c1b9079e81400ead4c7f75b45a05330da7e78e5bcf874c16f26bb6b4"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/websession-detail.html"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6b2094223b6e77e81a9f363706c64e0bdeb8d9130c9066398bf62b9e14502e5"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/websession.html"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"00c55e8a13e7caaba9a5b20051a945c12580c902ccfcb49bdcba6a3df6e76232"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/websession.html"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"0accfb3b48c38f6674ee3a4d643f746f89b396fd6d5b4742b78dd2a644eea626"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/websession.html"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"e94ab533923d20214742a35e11cc6c7f72720cba9117f9d98c1ba9c7c8c6655a"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/websession.html"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"e46cf80c002b880b4867ed7f2d64a5c31e60dd1a795772415113aef523162167"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/websession.html"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"85da66c85cd24736f3e152f925b9a6c0ca60f70d3a2732b8d9d82dcfaebeaa60"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/websession.html"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"f77646ab6b840fcee0a1bb47bdb735b26ac7eefca583d362e3519bc84e298449"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/websession.html"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"59d0e43fb7a5d01d15a805eddcc60f85b79223a8bea9aa16724cb7ac26ba3d4a"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/websession.html"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"34f71266104d068b410cb4807b8996eaaf5789108b08e8e42fde69b8d3655337"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/websession.html"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d1dba32a4200beaaba2fbfd160121f35106e1a578b91241ac6c4dd78c62e002"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/websession.html"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"771939a402c5b6b571bb9eaa9cf91722090ba19662e48c112af80acfb5a3bac8"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/websession.html"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"17fbfda4fe2624620bfff2f4da545dee85c1101495c6782edf8c162d4eec9f90"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/websession.html"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"4562cc4b23a9c606a7dc853c80ca76df6ca09ba5bab7ed9a67121247687e485e"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/websession.html"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aad0724826dcbb5a9913b19790d644536b6667874e51679c26fb792a685e7a8"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/websession.html"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"10914ee1ef56c4b6d02e34a38cdaab24842223eb3106a6163de5b5e4155fe225"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/websession.html"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"635baac296744aeb6539d8e199f686ff00b0be20897d79e99b41723520bcb6d5"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/weburi-detail.html"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c541e250894e789ed640f80bdf0e06c21c1e524141ac0c070ef7e3f4b05501f"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/weburi-detail.html"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3de1c9f81708e8532ed9256665afdbb311729a63757df4f13a124184db37058"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/weburi.html"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"744d9e87d2e5bebd1009950ae3cee1de21d1ca54990bbcbfb102b6acc0adf553"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/weburi.html"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"98d141c5e2d50dc2c2b40868057acf0150cf875b8fbf434c3cdc4eac3b7ca23e"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/weburi.html"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef135a7907662dd2e4fc9507c465944be067b12f9e10f834f3d3324b9d36d7f1"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/weburi.html"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"d771fcf4e1cb7357913b734fe657b0e7c3b274ebc038c9a03ff21138830e8b1f"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/weburi.html"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"93721eb787b311bfa7d77a7b37b7d1d3a26171720b7aa6561da041cc87ea84a7"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/weburi.html"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"554587679f7f3f0d3a750bfda47ae558f2c7317929a992732d60acb829527ae9"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/weburi.html"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"2752bb5e9af02a9d1e5e2600a6fe91de8c1119e6d3f23d0200a25036fd3a6ba9"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/weburi.html"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f0f8e724dbeae81400608ef8067642c3b5e453bec6c0df5838c0dd6c9d2333b"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/weburi.html"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"f818a608577066c37dad299c93de8ff86adfda2041119918098dd7b474c710b9"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/weburi.html"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc7fe8a3474d6d5be28934013b3a84dcd4709af10e545f0496b557e6aa2613c1"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/weburi.html"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b68bdec7a9b9d23394377ed85fa3503a9183a5705769ded31df035cd574577e"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/weburi.html"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"81f8d101f10e55cacfa3bf948a68b53b69ce4b3c9f3acda076fac9bc2a0b73b4"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/weburi.html"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"29b14d3ba7b2d457b7e5c578438765c0104573a274c7f3393486b65239a4d684"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/weburi.html"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"a141d16517bb9a3acf96b08869f600f51fc9fc3aeb0c9709cd473bd8e86ba79b"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/weburi.html"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a2c2b6e7f830f13509f6e7a982dc2bb1bc92757c51809699316ee3b5ba82e82"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/weburi.html"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"340b444d1698e9bf1bfe1ce7d2da7ce6e014f5af7d8930cdc3029356cd3fef28"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/weburi.html"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac8a9dba13d42f3f722e5f138a25ca953f0deb5baa85cd2172c5ebd0f9ed1b0e"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/weburi.html"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b425ca693d309bbc8a158626ece6468927a6d98d74d0004cd7660eae9e848ec"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/weburi.html"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff0c5b3f370ce3cf9a83a0ab0f55fe867ae14f489eed5aaf352f1d6e8dd0262b"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/weburi.html"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4432fccf1021e482c50a77c84439e38f416bcf0b3d2b5c6569d31983eef5fef"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/weburi.html"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a36e49a10b17cd614bab96e97d93437f88864efc076777e47bcdb60219006f8"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/header.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b3edbe6e26460ea25ce2149efcc713b234149b3ff47ab9157769cf069249d3d"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/spring-detail.html"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"146040cbd026dc299c3963e0cd919226ce3fce290d6dfb42e0f27e2e377d15af"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/spring.html"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"9053283707cddf3e980d5ea1dd0d621dd5085020f7c70bb789c34bceddd8d015"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/spring.html"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"70b69230be246e0000729ab7c8b319e42027002dd476a2a17d8c1c1edb1c0498"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/spring.html"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7b969e49aa84c19f29a62e7da5512ed92410c2203e94ce1022e6d850c0321cb"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/spring.html"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"bee1c93bbf5aa01114cfea37edc7110b0fbe2f61292b5ed8f80b249536f29857"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/spring.html"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3cc905eb18bb75e868723666da105ada337dd752e42484cd274d07cef6385ef"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/spring.html"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"636ecac305d2a6c60bbce32828a7604232eb759b4d8b906d934a0ee9f82d70ab"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/spring.html"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"45ce464aa63e6cf3a9469da70f921a2a8d03fdb8511bf7e3aadab04f9e8803d0"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/spring.html"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc4fa756f9a595a641744ed9582343604dd2331da302a5a050a4fa4eb22d33f3"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/sql-detail.html"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0055d46f7d2a53cee24ddbc72a54c15ccc2d539d924ebf41100167134b3a14e"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"71c070ed2f82a272f5313808599dfd791280cad9449137e376fbb56e522207f2"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"c95b15bd5ebc691d8b3ce699a06d8687bf1675644c7d8c4d9a71a4344802a292"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"b535c429941e03554efd2b7f02435518b9b1c5da8e6743518d29627b86b9e461"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"765b3e8083561109f17bfe4a4608274ca70853d07e8bfb59c9089ea4565d7025"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"f57b2fe3ed9f3917bd3bd38431312d265cd6eb8293900476d1e06fff81116d0e"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ab90395e49ed7c6be5c3adbaa18100f0e72817180b9e25dbfaa7c1a0eee1c2f"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"09406a140b22046b286e9ed01a6c3942721587baed89b63c9af95a327b7a2632"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"c55b765fc1a2bddaa03b4144c630f7f49ed1f7e123f8b46fe3779876be720ef2"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"75df9bcfec6d6df216e7d5335161e22404bebdd85fa8248ac95d90a7ac96fe4c"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"19d23224f23e71bd6917b991ba19a4e30ff152f531cf71370c09ffe41dcab5ce"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b7c4aea980abd084c5365a0c9646bbe5b6a806b634cdc9294d640c294e8758f"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"d19d98b1fd6c1f4f91c16dc5d0e8bb5391a66114cb5dc2f33a66133233e24cba"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"7538eda1fbe552f5ce74f94452f7c0971079d76b32ff823036f6377e5fbba24d"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"0149ce97c01660f8662ce417574de3a0fd9c6819cf1c190c1e6b74f3bf22b015"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e39ff10960e99d0e7dc05d09d4182f6e6f8163e69ec4abf6d7367f35ea0dbc2"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"54b9e26562c0f9754058d0f29d7910b12cb13091a5db8bcbeed50f3bd0c6a7f5"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0d2b0a0db0df2967575d7aa058977e05282306e673948f749118aa62dab6e35"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"15fe435ec9aa2e11a833ed3f4538e3554983876378759083e04f890cfd828a41"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"e21af5caa8f57f0f8425f47c5d41cda8d6b913b0e4e94b83f8273ea308f88f9e"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a02f4ccadec02180b85876612ee05419a99fa68c2d2662709422cb7283e4e56"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"a41f166a67905da3d57981e13631742bbe539b7c7417d128b5e9301067d982c2"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"583e67f28cd465700a17fb28640bf183e0730ef7e377bdbcea062c3a6d9f31fd"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"15600f07cb375fdd9626c1e34eca3b8338a2337e423b9ebb38903d88b8b63df4"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe3167e1a101091b05ebc931e40f56e130e6f992c243ffabd9cd24bb79b2cb42"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9411f7e9428582deef812766647d31fcf0871888c9a347062850d26b72acfa1"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"f244694f7ee9cf4b48a069f2a28afffe7e72665baeac2f5ae42fbcbc89206d19"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"c675b6e823ebc20378dfa8c966b9b11189d1dc32caa1f8eeadd22f44ff88d03e"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"55f20710ae8cf0f45bfd3240b8340a80a0fb8a7d7b3ce63c25e7fc300bbab030"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"907607a5695364f0e232cc1b6acf8f799f53f0e554fc423edd13d353d980a76d"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4d2e635eb85772b6ec7860f598e06db7e7cfc7205cb206ab7cb3be59c3dab3e"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9fb0faa1b90cfdca6c7137211a0800b53c9b113cf9e04e10965ebc6a43f6563"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e687ce34ce72b400aed07e6b3da84ad05a34ec75c71a88d98b6b9aea21f2179"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0fe35cf14d1f32f4a8d36aba515b16e82a505e7abf317f59de5dbe700db5df7"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd051810dd24c28c19d695958efd9ffed051f49eb83fdcfbd5414d854a0c3d7f"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dbf8ff4edde370714534ba72d78f0c1c3810f0b70f694ed2379e301c284f8dc"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfa5afe50ce5f0d3de3ac965a7eb5bd0b2e3b92cd6f927d71bebc55726e12e8c"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cb7fc15b5f4112bab70db24ec13771e3cb2469967c80cbe04fdacff737cb65a"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"886a122394f229a0c370c947757e1ebe3f6f27042421084538c0d309d57c363f"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"d87bde14ee4b277638740692d1d0f71a05cc58a1f7122c51fa5ad0807fd8b970"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/sql.html"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"b510eca01e093aea6c9c8ef65e5951d06cea1744fdcd1bbd7a7f320633a39034"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/wall.html"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cd00dd4eb83224d7d23873e4bbabf98a89bb38c3ff12d6fe8ae41258fc54806"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/wall.html"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"e775ac7966a418ac1ea59a4c2ef7344715104d150f66a1ae705f39693d460f92"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/wall.html"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"80ac61ca0480a965df15b37041dcaf379515cdec56754d143f088cbed9bc215f"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/wall.html"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"28f17aff551174152a402e8ab5b0c11a2fe56b2792d821fa7d34f06bfafc4e3d"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/wall.html"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"d48a2cce8417e62635a2ac4370e29da844f8c2905b008c1ac349bac0af5cfff6"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/wall.html"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"9491b26236d05a219cefe8d73d448cc455ce12b09afe1097d93c2caa916369f1"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/wall.html"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"93e0b6379a5d8314a7a1f051d47366e9ad3aad56812080d0473fd94b1fa5dd63"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/wall.html"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"597a6165e38ec8d6b67bd8089c69bfe294f769ca74ab54e68bc7f4091fe2f3ae"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/wall.html"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e34d785f6ea55c2063f4be8f8da91ca5474b4ae8b989e521f7bbc61097bb0ac"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/wall.html"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"a50ebaa2fbf4cf3b732afb71c795bd0eed47faebcbef0be35ba3e9191ccd6ec3"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/wall.html"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"38557e18c9bd45266441e7e844221d437ef71989f40822b4cdb9619740087660"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/wall.html"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"25b1927394c19ae2c49390101ee56460d88fe33bc02fceaa5c067814d822b585"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/wall.html"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"39572bc639640d9895354a093fd4e24e8f500c36995e6f5de03add2ef2aebb55"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/wall.html"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"f58281c3cfafbd1ce791790f02cffa790867fa6fb7b7333f0a25c8280bffb8a2"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/wall.html"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"92d98c95eebca921e66d2449472d4fe55ae32f6e08fc4420c503839b68ba475a"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/wall.html"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea0e924e0dbd49c0d0235b7e6094c699623bd09299dd300fbb31407fdb7d842e"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/wall.html"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"00d867b7d1afbe9fef60cc0698a7a91131e99bfcdeb8aac3157c083bb12096e6"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/wall.html"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cce0f510b28d68e103450d6518062a92f9dc4d799bda8c8d1bc0f2b196711a5"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/wall.html"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"04f212def0480118c2517b04587be728ac6d2d761fc04830dfaf9f28739a0f49"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/wall.html"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"3251b88f69a3cff5bae25084fc77416cac36b5333cca3ec845612b48c3e705ac"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/wall.html"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7187fb034d2ea533e87091a69a65960b7f75ce1d5ed9927433d30105e586cac"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/wall.html"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc9ea583a58eda16106d4f5502a004bd6398436e0ceab65cd3f9f34f0d74920d"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/wall.html"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"396bec1f5218560a787126ccb82d4d15a661d0867d8b85f3ff0dc66bb0f23160"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/wall.html"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4c31b556be77868365c78ce5e129062f44742e3e80a1f0eb85174372519f630"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/wall.html"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fb818495329dabc106847cac4696b3a12da36f9c8c0e8533adb3eed66238620"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/wall.html"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2a01639c9a145df9cfc2453b4fadd363ce827183b0d3e6204c17911b5bd2242"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/wall.html"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc0b781e9d8fde50ee2f88d18e101619759b91ae4b25becd861b167f8972d9ba"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/wall.html"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"c14086e043d4f8a98cb7fdbdc273c2ac4400bf372c0f4a0a8c900aa626230aa8"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/wall.html"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab38cfbb70d41b89024fe8de43e19e751cac7ad836eff8c90143d92366f4e397"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/wall.html"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"48a427fd136b8ed91057554e257f5f3213bb2a4d1a28c9c826f94c87d6b6d223"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/wall.html"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"33c02f61fadbcd4c6aa1ff5b3917a9f4f75477aa547fc76cb2d5cc7a99c6ded5"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/wall.html"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"8257d9b45abdd70195d4ed412fe45748c4ac86be8e0eadef2d0f4d43346aec16"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/wall.html"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"999481dc19fecbc77139774b4d30de9235d9a167f27a078898cb62cc35a9c346"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/websession-detail.html"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"c24eb1caa51a5b0030e59613cc449bdf6177f08b20360b4e18da035fb28268a3"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/websession.html"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"f257bf69dc11cd84de820bed6f5b3bdffafce447fedace7c8a555099bea9c978"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/websession.html"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dbb15a3594e682ec97cdc0bc2f618c713c9786178c51d54e5c764bde9250fad"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/websession.html"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"4be4872922fba61e0c32c2fadcd5ab3a67c502990d6ca8572fb698481b5e518c"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/websession.html"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1db22015dc1a60a892a7937773fc486597a25bd923634b5242e3154b986e3f6"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/websession.html"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"03d726dd051fa40ad3227c61444c7eb917dad0e13769b74db50da3dd66f27aad"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/websession.html"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"afacaa80d611f48dccd6ccc0bdf4359978dfc34c2d072ca8b9d19b68e3ce59ff"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/websession.html"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"6883ad314f7f22ef7afc61108bfdbfd6b85dc6dcada9311bfac0e016f62ca593"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/websession.html"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca04dfa25144a2bbf3a48f79dfeebce2d06e4198e7fc625aecdf4a3094f1ffb7"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/websession.html"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b1dbdc09a4f120791f88994b6de1da30f57767555e6fad5bc34c33e7fa7d37e"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/websession.html"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bd9fa176272b7b62f02bd0d3245c337030eb799d5439ee1c933ef336ab8ecce"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/websession.html"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"565386e638fce3d79df75c22c4389195d0f97a9faa854f519d7ba37d72866abe"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/websession.html"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b7639baa7d258966f7d4b834be52d53920f2549c5bff1d3ad04a723a4adcf5c"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/websession.html"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6e6d18f450571b5966522d2252d7ac12db5a22899c5981fba95c9dad12a399f"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/websession.html"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4ef8c5c2fa219bcb4a6696d237b64c47c6bbdd164621feb8e9ae7b3744969f3"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/websession.html"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"fed5d0725e5645f1f9a4babade7a5e00e9ea6ac9c017030f920b7efe1d34e3e7"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/weburi-detail.html"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffbe3660a32a67a7db2dd557f35255611e39df9b74d73eb8458dfaea1da5aa7d"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/weburi-detail.html"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5db481d809cbf3e4c5a1a06a80d0a846fc03b2eaa0a79eef09a1e24f2c8915d"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/weburi.html"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"d903d03a6ee3c743d950a420c88184b4c87a7bdd1aaadbba146539e87c024c00"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/weburi.html"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f3871ab826f6c7bb5ad51081212c777e3944eab11220e4bf4841b54b1aafc67"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/weburi.html"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f9edf382f1b1aaf3dc49165b9b2973e4ec993ed1d6da9908096226479c60b3c"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/weburi.html"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"a78a0c9d89e7b385ddcaeeb9922097d51c3432385d011deef0b234207e49a9bc"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/weburi.html"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a97db6aa0485e6deebcf93d735b75b2b77ec496d0f6d3cf42a5e68e34ecfe40"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/weburi.html"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b8ccc08cb2ae758dca39e76893fa3ae40294e6e2f76e22c0656ec90f82041aa"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/weburi.html"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d754d4baa3e0d09b940f1692ceddb61b69b1a78a3b9fb933235910270cc4890"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/weburi.html"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"18d8824a17133ff629d8d5d70064af00f983c9f9e21443afb985c8a0a0fb6e62"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/weburi.html"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"9247fe6e7c032edea156528885038b4c5055fde6e53a7b4104a0a997883aec9f"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/weburi.html"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdf5c68b53568462488b572f9e69cfdd4bd5045b45b6735352bd6ea56b58ec62"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/weburi.html"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"5df63f7171d3427401389655a53ca8cac5594e2e377f4be48f86ceaeea6897c9"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/weburi.html"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4ab9bac3aed7299a5d5135ad450ccfe1c1b17bc5221044d3ab715c1f2e9c8a1"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/weburi.html"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8c9a219969e23b641340b95e70adf5c12627158a56c45b3232717c0f8c0804a"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/weburi.html"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"c728ef6cd39d6e7cc9ed71fed6e372c60011316d68ff84729d72ed64b01030e5"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/weburi.html"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7be2e53b80d3167acd5543d7385342480b67cb5affba380a721a74ad4e01203"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/weburi.html"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfd65ab6044cf5b171efa667bfca0698587608868575bbd59253f569dc416653"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/weburi.html"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"d50b8bc211b18924ac40fa2a66fe427f50fcc1a9d3627c7e954ef212a46ef4af"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/weburi.html"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bc08ef77f48b0975eaf84c4c44987c1949fd7637e2581dcb049b5a7848fdcd3"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/weburi.html"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"13863817eea00c21dfd2ae64907a92efcfbc93fa2a9b9e296a3d478846cc3c65"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/weburi.html"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec7102e24302cfe606879787849301d32ab4774bbb778fcdba51e656742c2737"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/weburi.html"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"d54059ae372615241c978d38b300ad262283443bd6988406406c001b8957924d"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (2.2:1): \u0060.navbar li:hover \u003E a\u0060 sets color: #eeeeee on background-color: #6db33f \u2014 2.2:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/scss/header.scss"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"210379967dfd842d2b37687bb6ba5557464afa0584d627226fc31e392a55003f"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (2.2:1): \u0060.navbar li:hover \u003E a\u0060 sets color: #eeeeee on background-color: #6db33f \u2014 2.2:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/resources/static/resources/css/petclinic.css"},"region":{"startLine":7973}}}],"partialFingerprints":{"codehealthFindingId/v1":"b42916dd95d2860301f2a9cd0a0abd233ac4a7b1e08083e6ced3a5e3ce9db332"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed in CSS without a :focus replacement: \u0060.btn-check:focus \u002B .btn\u0060 sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/resources/static/resources/css/petclinic.css"},"region":{"startLine":2137}}}],"partialFingerprints":{"codehealthFindingId/v1":"29c84b27caaad1e72668bce80fd2646137a0e99a06cfe8f317d1c63cd213a80b"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed in CSS without a :focus replacement: \u0060.modal\u0060 sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/resources/static/resources/css/petclinic.css"},"region":{"startLine":4105}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eb503b26a878145dc71e7f09b3f8c927c999a5e4933d1b8f2ca16d28c9ef605"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed in CSS without a :focus replacement: \u0060.modal-content\u0060 sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/resources/static/resources/css/petclinic.css"},"region":{"startLine":4146}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1b56734abf711af4a91d7e1fd9c28cd6b660b52f915a9a3a504e69e44f95a7f"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed in CSS without a :focus replacement: \u0060.carousel-control-prev:focus\u0060 sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/resources/static/resources/css/petclinic.css"},"region":{"startLine":4599}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9bbf8bbc0c1d3915a614a12bfe71c7cd093a43290f57520729727844b83544b"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed in CSS without a :focus replacement: \u0060.offcanvas\u0060 sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/resources/static/resources/css/petclinic.css"},"region":{"startLine":4742}}}],"partialFingerprints":{"codehealthFindingId/v1":"917d9f278ecfb683a5b8d45fc0271fab6661c8eeb6dd8b91c5804b8233768a6d"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.myspinner\u0060 moves (\u0060animation-name: spinner\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/scss/petclinic.scss"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2316b03f86b40900ccab6ded2a650a417e0463b826b6d658451bc705ef4ed59"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.spinner-border\u0060 moves (\u0060animation: 0.75s linear infinite spinner-border\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/resources/static/resources/css/petclinic.css"},"region":{"startLine":4699}}}],"partialFingerprints":{"codehealthFindingId/v1":"137a5a6f5f18b52a8d3c205d661578a7cd853f8f50fc03a3f489f373ffea884f"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.spinner-grow\u0060 moves (\u0060animation: 0.75s linear infinite spinner-grow\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/resources/static/resources/css/petclinic.css"},"region":{"startLine":4721}}}],"partialFingerprints":{"codehealthFindingId/v1":"78a1c4c3532c2379903ea08acea0cc0a85874cd9a6e605d7070b0fa699fe7c73"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.myspinner\u0060 moves (\u0060animation-name: spinner\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-demo-petclinic/src/main/resources/static/resources/css/petclinic.css"},"region":{"startLine":7869}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c6da44bcab5233b3d2ad850cb6c0997b1b326787dc69b02157c8257c4501338"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: LogFilterMBean (58 abstract methods): \u0060LogFilterMBean\u0060 declares 58 abstract methods: \u0060getConnectionLoggerName\u0060, \u0060getDataSourceLoggerName\u0060, \u0060getResultSetLoggerName\u0060, \u0060getStatementLoggerName\u0060, \u0060getStatementSqlFormatOption\u0060, \u0060isConnectionCloseAfterLogEnabled\u0060, \u0060isConnectionCommitAfterLogEnabled\u0060, \u0060isConnectionConnectAfterLogEnabled\u0060, \u0060isConnectionConnectBeforeLogEnabled\u0060, \u0060isConnectionLogEnabled\u0060, \u0060isConnectionLogErrorEnabled\u0060, \u0060isDataSourceLogEnabled\u0060, \u0060isResultSetCloseAfterLogEnabled\u0060, \u0060isResultSetLogEnabled\u0060, \u0060isResultSetLogErrorEnabled\u0060, \u0060isResultSetNextAfterLogEnabled\u0060, \u0060isResultSetOpenAfterLogEnabled\u0060, \u0060isStatementCloseAfterLogEnabled\u0060, \u0060isStatementCreateAfterLogEnabled\u0060, \u0060isStatementExecuteAfterLogEnabled\u0060, \u0060isStatementExecuteBatchAfterLogEnabled\u0060, \u0060isStatementExecuteQueryAfterLogEnabled\u0060, \u0060isStatementExecuteUpdateAfterLogEnabled\u0060, \u0060isStatementLogEnabled\u0060, \u0060isStatementLogErrorEnabled\u0060, \u0060isStatementParameterSetLogEnabled\u0060, \u0060isStatementPrepareAfterLogEnabled\u0060, \u0060isStatementPrepareCallAfterLogEnabled\u0060, \u0060isStatementSqlPrettyFormat\u0060, \u0060setConnectionCloseAfterLogEnabled\u0060, \u0060setConnectionCommitAfterLogEnabled\u0060, \u0060setConnectionConnectAfterLogEnabled\u0060, \u0060setConnectionConnectBeforeLogEnabled\u0060, \u0060setConnectionLogEnabled\u0060, \u0060setConnectionLogErrorEnabled\u0060, \u0060setConnectionLoggerName\u0060, \u0060setDataSourceLogEnabled\u0060, \u0060setDataSourceLoggerName\u0060, \u0060setResultSetCloseAfterLogEnabled\u0060, \u0060setResultSetLogEnabled\u0060, and 18 more. Counted over its ABSTRACT methods, once per signature; \u0060default\u0060, \u0060static\u0060 and \u0060private\u0060 methods and constants are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/filter/logging/LogFilterMBean.java"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9e103733ef74d28ae4abbb9d36c163b35f4bb8fd3d3a29ccf45d4ed3c3854ad"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: Filter (491 abstract methods): \u0060Filter\u0060 declares 491 abstract methods: \u0060callableStatement_getArray\u0060, \u0060callableStatement_getArray\u0060, \u0060callableStatement_getBigDecimal\u0060, \u0060callableStatement_getBigDecimal\u0060, \u0060callableStatement_getBigDecimal\u0060, \u0060callableStatement_getBlob\u0060, \u0060callableStatement_getBlob\u0060, \u0060callableStatement_getBoolean\u0060, \u0060callableStatement_getBoolean\u0060, \u0060callableStatement_getByte\u0060, \u0060callableStatement_getByte\u0060, \u0060callableStatement_getBytes\u0060, \u0060callableStatement_getBytes\u0060, \u0060callableStatement_getCharacterStream\u0060, \u0060callableStatement_getCharacterStream\u0060, \u0060callableStatement_getClob\u0060, \u0060callableStatement_getClob\u0060, \u0060callableStatement_getDate\u0060, \u0060callableStatement_getDate\u0060, \u0060callableStatement_getDate\u0060, \u0060callableStatement_getDate\u0060, \u0060callableStatement_getDouble\u0060, \u0060callableStatement_getDouble\u0060, \u0060callableStatement_getFloat\u0060, \u0060callableStatement_getFloat\u0060, \u0060callableStatement_getInt\u0060, \u0060callableStatement_getInt\u0060, \u0060callableStatement_getLong\u0060, \u0060callableStatement_getLong\u0060, \u0060callableStatement_getNCharacterStream\u0060, \u0060callableStatement_getNCharacterStream\u0060, \u0060callableStatement_getNClob\u0060, \u0060callableStatement_getNClob\u0060, \u0060callableStatement_getNString\u0060, \u0060callableStatement_getNString\u0060, \u0060callableStatement_getObject\u0060, \u0060callableStatement_getObject\u0060, \u0060callableStatement_getObject\u0060, \u0060callableStatement_getObject\u0060, \u0060callableStatement_getRef\u0060, and 451 more. Counted over its ABSTRACT methods, once per signature; \u0060default\u0060, \u0060static\u0060 and \u0060private\u0060 methods and constants are not counted, because no implementer is forced to write them. Those 491 declarations carry 294 distinct name(s), so part of the width is overloading rather than separate responsibilities \u2014 but 294 operations clears the \u003E15 bar on its own, so the row is about responsibilities, not signatures. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/filter/Filter.java"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"624bc657f6e6065ab77a72044e50e233dc910e77764d27bc7bec7a5edd2ede3c"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: FilterChain (490 abstract methods): \u0060FilterChain\u0060 declares 490 abstract methods: \u0060callableStatement_getArray\u0060, \u0060callableStatement_getArray\u0060, \u0060callableStatement_getBigDecimal\u0060, \u0060callableStatement_getBigDecimal\u0060, \u0060callableStatement_getBigDecimal\u0060, \u0060callableStatement_getBlob\u0060, \u0060callableStatement_getBlob\u0060, \u0060callableStatement_getBoolean\u0060, \u0060callableStatement_getBoolean\u0060, \u0060callableStatement_getByte\u0060, \u0060callableStatement_getByte\u0060, \u0060callableStatement_getBytes\u0060, \u0060callableStatement_getBytes\u0060, \u0060callableStatement_getCharacterStream\u0060, \u0060callableStatement_getCharacterStream\u0060, \u0060callableStatement_getClob\u0060, \u0060callableStatement_getClob\u0060, \u0060callableStatement_getDate\u0060, \u0060callableStatement_getDate\u0060, \u0060callableStatement_getDate\u0060, \u0060callableStatement_getDate\u0060, \u0060callableStatement_getDouble\u0060, \u0060callableStatement_getDouble\u0060, \u0060callableStatement_getFloat\u0060, \u0060callableStatement_getFloat\u0060, \u0060callableStatement_getInt\u0060, \u0060callableStatement_getInt\u0060, \u0060callableStatement_getLong\u0060, \u0060callableStatement_getLong\u0060, \u0060callableStatement_getNCharacterStream\u0060, \u0060callableStatement_getNCharacterStream\u0060, \u0060callableStatement_getNClob\u0060, \u0060callableStatement_getNClob\u0060, \u0060callableStatement_getNString\u0060, \u0060callableStatement_getNString\u0060, \u0060callableStatement_getObject\u0060, \u0060callableStatement_getObject\u0060, \u0060callableStatement_getObject\u0060, \u0060callableStatement_getObject\u0060, \u0060callableStatement_getRef\u0060, and 450 more. Counted over its ABSTRACT methods, once per signature; \u0060default\u0060, \u0060static\u0060 and \u0060private\u0060 methods and constants are not counted, because no implementer is forced to write them. Those 490 declarations carry 295 distinct name(s), so part of the width is overloading rather than separate responsibilities \u2014 but 295 operations clears the \u003E15 bar on its own, so the row is about responsibilities, not signatures. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/filter/FilterChain.java"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4e34ee4d5159afcb596553d22a56dec386820b6547419e0d0804f4c9767b95a"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: DruidAbstractDataSourceMBean (77 abstract methods): \u0060DruidAbstractDataSourceMBean\u0060 declares 77 abstract methods: \u0060getActiveConnectionStackTrace\u0060, \u0060getActiveCount\u0060, \u0060getCachedPreparedStatementAccessCount\u0060, \u0060getCachedPreparedStatementCount\u0060, \u0060getCachedPreparedStatementDeleteCount\u0060, \u0060getCachedPreparedStatementHitCount\u0060, \u0060getCachedPreparedStatementMissCount\u0060, \u0060getCloseCount\u0060, \u0060getClosedPreparedStatementCount\u0060, \u0060getCommitCount\u0060, \u0060getConnectCount\u0060, \u0060getConnectErrorCount\u0060, \u0060getConnectionErrorRetryAttempts\u0060, \u0060getCreateCount\u0060, \u0060getCreateErrorCount\u0060, \u0060getCreateTimespanMillis\u0060, \u0060getCreatedTime\u0060, \u0060getDbType\u0060, \u0060getDefaultCatalog\u0060, \u0060getDefaultReadOnly\u0060, \u0060getDefaultTransactionIsolation\u0060, \u0060getDestroyCount\u0060, \u0060getDriverClassName\u0060, \u0060getDriverMajorVersion\u0060, \u0060getDriverMinorVersion\u0060, \u0060getDupCloseCount\u0060, \u0060getExceptionSorterClassName\u0060, \u0060getFilterClassNames\u0060, \u0060getInitialSize\u0060, \u0060getLoginTimeout\u0060, \u0060getMaxActive\u0060, \u0060getMaxIdle\u0060, \u0060getMaxOpenPreparedStatements\u0060, \u0060getMaxPoolPreparedStatementPerConnectionSize\u0060, \u0060getMaxWait\u0060, \u0060getMaxWaitThreadCount\u0060, \u0060getMinEvictableIdleTimeMillis\u0060, \u0060getMinIdle\u0060, \u0060getName\u0060, \u0060getPoolingCount\u0060, and 37 more. Counted over its ABSTRACT methods, once per signature; \u0060default\u0060, \u0060static\u0060 and \u0060private\u0060 methods and constants are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/pool/DruidAbstractDataSourceMBean.java"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cba6787fd75a19a4f0a71a4f8cee528735c400b89ab5534d6edb68ade1872e3"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: DruidDataSourceC3P0AdapterMBean (24 abstract methods): \u0060DruidDataSourceC3P0AdapterMBean\u0060 declares 24 abstract methods: \u0060close\u0060, \u0060getCheckoutTimeout\u0060, \u0060getDataSourceName\u0060, \u0060getDriverClass\u0060, \u0060getIdleConnectionTestPeriod\u0060, \u0060getInitialPoolSize\u0060, \u0060getJdbcUrl\u0060, \u0060getLockQueueLength\u0060, \u0060getMaxIdleTime\u0060, \u0060getMaxPoolSize\u0060, \u0060getMinPoolSize\u0060, \u0060getNumBusyConnections\u0060, \u0060getNumConnections\u0060, \u0060getNumIdleConnections\u0060, \u0060getPreferredTestQuery\u0060, \u0060getProperties\u0060, \u0060getUser\u0060, \u0060getWaitThreadCount\u0060, \u0060isAutoCommitOnClose\u0060, \u0060isEnable\u0060, \u0060isTestConnectionOnCheckin\u0060, \u0060isTestConnectionOnCheckout\u0060, \u0060shrink\u0060, \u0060toString\u0060. Counted over its ABSTRACT methods, once per signature; \u0060default\u0060, \u0060static\u0060 and \u0060private\u0060 methods and constants are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/pool/DruidDataSourceC3P0AdapterMBean.java"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f14cdc42a5df27381d57e114fc6213e5bb540e11a1f7c509c4b921edd32a025"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: DruidDataSourceMBean (33 abstract methods): \u0060DruidDataSourceMBean\u0060 declares 33 abstract methods: \u0060clearStatementCache\u0060, \u0060dump\u0060, \u0060fill\u0060, \u0060fill\u0060, \u0060getActivePeak\u0060, \u0060getActivePeakTime\u0060, \u0060getDiscardCount\u0060, \u0060getErrorCount\u0060, \u0060getLockQueueLength\u0060, \u0060getNotEmptySignalCount\u0060, \u0060getNotEmptyWaitCount\u0060, \u0060getNotEmptyWaitMillis\u0060, \u0060getNotEmptyWaitNanos\u0060, \u0060getNotEmptyWaitThreadCount\u0060, \u0060getObjectName\u0060, \u0060getPoolingPeak\u0060, \u0060getPoolingPeakTime\u0060, \u0060getResetCount\u0060, \u0060getTimeBetweenLogStatsMillis\u0060, \u0060getUrl\u0060, \u0060getVersion\u0060, \u0060getWaitThreadCount\u0060, \u0060isEnable\u0060, \u0060isResetStatEnable\u0060, \u0060isUseGlobalDataSourceStat\u0060, \u0060removeAbandoned\u0060, \u0060resetStat\u0060, \u0060setConnectionProperties\u0060, \u0060setPoolPreparedStatements\u0060, \u0060setResetStatEnable\u0060, \u0060setStatLoggerClassName\u0060, \u0060setTimeBetweenLogStatsMillis\u0060, \u0060shrink\u0060. Counted over its ABSTRACT methods, once per signature; \u0060default\u0060, \u0060static\u0060 and \u0060private\u0060 methods and constants are not counted, because no implementer is forced to write them. Those 33 declarations carry 32 distinct name(s), so part of the width is overloading rather than separate responsibilities \u2014 but 32 operations clears the \u003E15 bar on its own, so the row is about responsibilities, not signatures. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/pool/DruidDataSourceMBean.java"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eabb1538ee16d3ea4629ce91c809cea8f2f78cc9b3e89d98f5d60c457c55b93"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: ResultSetProxy (25 abstract methods): \u0060ResultSetProxy\u0060 declares 25 abstract methods: \u0060addReadBytesLength\u0060, \u0060addReadStringLength\u0060, \u0060getCloseCount\u0060, \u0060getConstructNano\u0060, \u0060getCursorIndex\u0060, \u0060getFetchRowCount\u0060, \u0060getHiddenColumnCount\u0060, \u0060getHiddenColumns\u0060, \u0060getLogicColumn\u0060, \u0060getOpenInputStreamCount\u0060, \u0060getOpenReaderCount\u0060, \u0060getPhysicalColumn\u0060, \u0060getReadBytesLength\u0060, \u0060getReadStringLength\u0060, \u0060getResultSetRaw\u0060, \u0060getSql\u0060, \u0060getSqlStat\u0060, \u0060getStatementProxy\u0060, \u0060incrementOpenInputStreamCount\u0060, \u0060incrementOpenReaderCount\u0060, \u0060setConstructNano\u0060, \u0060setConstructNano\u0060, \u0060setHiddenColumns\u0060, \u0060setLogicColumnMap\u0060, \u0060setPhysicalColumnMap\u0060. Counted over its ABSTRACT methods, once per signature; \u0060default\u0060, \u0060static\u0060 and \u0060private\u0060 methods and constants are not counted, because no implementer is forced to write them. Those 25 declarations carry 24 distinct name(s), so part of the width is overloading rather than separate responsibilities \u2014 but 24 operations clears the \u003E15 bar on its own, so the row is about responsibilities, not signatures. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/proxy/jdbc/ResultSetProxy.java"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5978671d189d9c21e72ad6a1fc889ee49067f5a73e9ee168fa97734b64bea37"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: StatementProxy (18 abstract methods): \u0060StatementProxy\u0060 declares 18 abstract methods: \u0060getBatchSql\u0060, \u0060getBatchSqlList\u0060, \u0060getConnectionProxy\u0060, \u0060getLastExecuteSql\u0060, \u0060getLastExecuteStartNano\u0060, \u0060getLastExecuteTimeNano\u0060, \u0060getLastExecuteType\u0060, \u0060getParameter\u0060, \u0060getParameters\u0060, \u0060getParametersSize\u0060, \u0060getRawObject\u0060, \u0060getSqlStat\u0060, \u0060isFirstResultSet\u0060, \u0060setLastExecuteStartNano\u0060, \u0060setLastExecuteStartNano\u0060, \u0060setLastExecuteTimeNano\u0060, \u0060setLastExecuteTimeNano\u0060, \u0060setSqlStat\u0060. Counted over its ABSTRACT methods, once per signature; \u0060default\u0060, \u0060static\u0060 and \u0060private\u0060 methods and constants are not counted, because no implementer is forced to write them. Those 18 declarations carry 16 distinct name(s), so part of the width is overloading rather than separate responsibilities \u2014 but 16 operations clears the \u003E15 bar on its own, so the row is about responsibilities, not signatures. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/proxy/jdbc/StatementProxy.java"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f90624dbfbaf455c8e813861e322ac5adbc1ba6e02795f965da908eca718f19"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: SQLTableSource (22 abstract methods): \u0060SQLTableSource\u0060 declares 22 abstract methods: \u0060aliasHashCode64\u0060, \u0060clone\u0060, \u0060computeAlias\u0060, \u0060containsAlias\u0060, \u0060findColumn\u0060, \u0060findColumn\u0060, \u0060findTableSource\u0060, \u0060findTableSource\u0060, \u0060findTableSourceWithColumn\u0060, \u0060findTableSourceWithColumn\u0060, \u0060findTableSourceWithColumn\u0060, \u0060findTableSourceWithColumn\u0060, \u0060getAlias\u0060, \u0060getFlashback\u0060, \u0060getHints\u0060, \u0060getPivot\u0060, \u0060getUnpivot\u0060, \u0060resolveColumn\u0060, \u0060setAlias\u0060, \u0060setFlashback\u0060, \u0060setPivot\u0060, \u0060setUnpivot\u0060. Counted over its ABSTRACT methods, once per signature; \u0060default\u0060, \u0060static\u0060 and \u0060private\u0060 methods and constants are not counted, because no implementer is forced to write them. Those 22 declarations carry 17 distinct name(s), so part of the width is overloading rather than separate responsibilities \u2014 but 17 operations clears the \u003E15 bar on its own, so the row is about responsibilities, not signatures. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLTableSource.java"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"6660cd05d0874140714377ee7d48d9a7dc44f7832eb477172837217292a9eb3f"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: SQLDataType (16 abstract methods): \u0060SQLDataType\u0060 declares 16 abstract methods: \u0060clone\u0060, \u0060getArguments\u0060, \u0060getDbType\u0060, \u0060getName\u0060, \u0060getWithTimeZone\u0060, \u0060hasKeyLength\u0060, \u0060isInt\u0060, \u0060isNumberic\u0060, \u0060isString\u0060, \u0060isWithLocalTimeZone\u0060, \u0060jdbcType\u0060, \u0060nameHashCode64\u0060, \u0060setDbType\u0060, \u0060setName\u0060, \u0060setWithLocalTimeZone\u0060, \u0060setWithTimeZone\u0060. Counted over its ABSTRACT methods, once per signature; \u0060default\u0060, \u0060static\u0060 and \u0060private\u0060 methods and constants are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/SQLDataType.java"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"985c3f28c843f0c98b050c30adcd5ad193d6c5f43e9eda04f8b9f64db078862d"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: SQLObject (19 abstract methods): \u0060SQLObject\u0060 declares 19 abstract methods: \u0060accept\u0060, \u0060addAfterComment\u0060, \u0060addAfterComment\u0060, \u0060addBeforeComment\u0060, \u0060addBeforeComment\u0060, \u0060clone\u0060, \u0060containsAttribute\u0060, \u0060getAfterCommentsDirect\u0060, \u0060getAttribute\u0060, \u0060getAttributes\u0060, \u0060getAttributesDirect\u0060, \u0060getBeforeCommentsDirect\u0060, \u0060getParent\u0060, \u0060getParent\u0060, \u0060hasAfterComment\u0060, \u0060hasBeforeComment\u0060, \u0060output\u0060, \u0060putAttribute\u0060, \u0060setParent\u0060. Counted over its ABSTRACT methods, once per signature; \u0060default\u0060, \u0060static\u0060 and \u0060private\u0060 methods and constants are not counted, because no implementer is forced to write them. Those 19 declarations carry 16 distinct name(s), so part of the width is overloading rather than separate responsibilities \u2014 but 16 operations clears the \u003E15 bar on its own, so the row is about responsibilities, not signatures. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/SQLObject.java"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3773394a0d73bd5381cb273e1ea6f7794d672655988545ae8567fa3df462b13"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: OracleSegmentAttributes (22 abstract methods): \u0060OracleSegmentAttributes\u0060 declares 22 abstract methods: \u0060getCompress\u0060, \u0060getCompressLevel\u0060, \u0060getInitrans\u0060, \u0060getLogging\u0060, \u0060getMaxtrans\u0060, \u0060getPctfree\u0060, \u0060getPctincrease\u0060, \u0060getPctused\u0060, \u0060getStorage\u0060, \u0060getTablespace\u0060, \u0060isCompressForOltp\u0060, \u0060setCompress\u0060, \u0060setCompressForOltp\u0060, \u0060setCompressLevel\u0060, \u0060setInitrans\u0060, \u0060setLogging\u0060, \u0060setMaxtrans\u0060, \u0060setPctfree\u0060, \u0060setPctincrease\u0060, \u0060setPctused\u0060, \u0060setStorage\u0060, \u0060setTablespace\u0060. Counted over its ABSTRACT methods, once per signature; \u0060default\u0060, \u0060static\u0060 and \u0060private\u0060 methods and constants are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/OracleSegmentAttributes.java"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcfee4a72d178b5ad40f8d0321f9c2a45126264d63f5e386ad4fab7514218a9c"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: JdbcSqlStatMBean (19 abstract methods): \u0060JdbcSqlStatMBean\u0060 declares 19 abstract methods: \u0060getConcurrentMax\u0060, \u0060getErrorCount\u0060, \u0060getExecuteBatchSizeMax\u0060, \u0060getExecuteBatchSizeTotal\u0060, \u0060getExecuteCount\u0060, \u0060getExecuteErrorLastTime\u0060, \u0060getExecuteLastStartTime\u0060, \u0060getExecuteMillisMax\u0060, \u0060getExecuteMillisTotal\u0060, \u0060getExecuteNanoSpanMaxOccurTime\u0060, \u0060getExecuteSuccessCount\u0060, \u0060getFetchRowCount\u0060, \u0060getFile\u0060, \u0060getId\u0060, \u0060getName\u0060, \u0060getRunningCount\u0060, \u0060getSql\u0060, \u0060getUpdateCount\u0060, \u0060reset\u0060. Counted over its ABSTRACT methods, once per signature; \u0060default\u0060, \u0060static\u0060 and \u0060private\u0060 methods and constants are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/stat/JdbcSqlStatMBean.java"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3f2ad9219b22daa3274de117012b8265c9fdd655a08163b33ccde94bff34676"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: Log (16 abstract methods): \u0060Log\u0060 declares 16 abstract methods under just 13 distinct name(s): \u0060debug\u0060, \u0060debug\u0060, \u0060error\u0060, \u0060error\u0060, \u0060getDebugCount\u0060, \u0060getErrorCount\u0060, \u0060getInfoCount\u0060, \u0060getWarnCount\u0060, \u0060info\u0060, \u0060isDebugEnabled\u0060, \u0060isErrorEnabled\u0060, \u0060isInfoEnabled\u0060, \u0060isWarnEnabled\u0060, \u0060resetStat\u0060, \u0060warn\u0060, \u0060warn\u0060. Counted over its ABSTRACT methods, once per signature; \u0060default\u0060, \u0060static\u0060 and \u0060private\u0060 methods and constants are not counted, because no implementer is forced to write them. That is an OVERLOAD SET, not 16 separate responsibilities: a caller binds to 13 operation(s) and uses the overload it selected, so the Interface-Segregation harm does NOT apply on the caller\u0027s side and splitting this into role-interfaces would scatter one operation without relieving anything. The burden that does remain is the IMPLEMENTER\u0027s \u2014 all 16 signatures must be written and kept in step. Reduce it by collapsing overloads (optional or default parameters, or an options object) rather than by segregating the interface."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/support/logging/Log.java"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5b47d7deaa338fc8c015a398928e7475bd62c8c014bc4aec6d8586bf287242f"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: WallConfigMBean (56 abstract methods): \u0060WallConfigMBean\u0060 declares 56 abstract methods: \u0060getDenyFunctions\u0060, \u0060getDenyObjects\u0060, \u0060getDenySchemas\u0060, \u0060getDenyTables\u0060, \u0060getDenyVariants\u0060, \u0060getDir\u0060, \u0060getReadOnlyTables\u0060, \u0060init\u0060, \u0060isCommentAllow\u0060, \u0060isDeleteAllow\u0060, \u0060isDeleteWhereAlwayTrueCheck\u0060, \u0060isDenyFunction\u0060, \u0060isDenyObjects\u0060, \u0060isDenySchema\u0060, \u0060isFunctionCheck\u0060, \u0060isInited\u0060, \u0060isInsertAllow\u0060, \u0060isMergeAllow\u0060, \u0060isMultiStatementAllow\u0060, \u0060isNoneBaseStatementAllow\u0060, \u0060isObjectCheck\u0060, \u0060isSchemaCheck\u0060, \u0060isSelectHavingAlwayTrueCheck\u0060, \u0060isSelectIntoAllow\u0060, \u0060isSelectIntoOutfileAllow\u0060, \u0060isSelectUnionCheck\u0060, \u0060isSelectWhereAlwayTrueCheck\u0060, \u0060isSelelctAllow\u0060, \u0060isTableCheck\u0060, \u0060isTruncateAllow\u0060, \u0060isUpdateAllow\u0060, \u0060isUpdateWhereAlayTrueCheck\u0060, \u0060isVariantCheck\u0060, \u0060loadConfig\u0060, \u0060setCommentAllow\u0060, \u0060setDeleteAllow\u0060, \u0060setDeleteWhereAlwayTrueCheck\u0060, \u0060setDir\u0060, \u0060setFunctionCheck\u0060, \u0060setInsertAllow\u0060, and 16 more. Counted over its ABSTRACT methods, once per signature; \u0060default\u0060, \u0060static\u0060 and \u0060private\u0060 methods and constants are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/wall/WallConfigMBean.java"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1fa97ab8dbc39ec55c15f9a4bb6e6e60777ba463b3a6bdaee81336a0ecb609f"}},{"ruleId":"IC1","level":"warning","message":{"text":"Hollow method \u2014 returns a constant without doing the work: \u0060getPriority\u0060 looks like it should compute a result but its body just returns a constant \u2014 a placeholder return that was never filled in."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLBinaryOperator.java"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"456d96e1c5f86aec96a3e7b395bcc915fd82cff61fac7a36973eae2e211617a4"}},{"ruleId":"IC1","level":"warning","message":{"text":"Skeleton type \u2014 most members are unfinished: \u0060MySqlProcedureExecutor\u0060 has 12 unfinished members out of 12 declared methods (whether or not each carries a body) \u2014 a scaffolded class that was never implemented."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/executor/MySqlProcedureExecutor.java"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"67ee426589a11d5d6e7af2d7b21644926e2a182324833e047893acab1fd7d9be"}},{"ruleId":"IC1","level":"warning","message":{"text":"Hollow method \u2014 returns a constant without doing the work: \u0060executeStatements\u0060 looks like it should compute a result but its body just returns a constant \u2014 a placeholder return that was never filled in."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/executor/MySqlProcedureExecutor.java"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d3d0deb035cfde55d1ed8c3e43b1d72ee8ce1f956b39504e3dda8ecc8b31114"}},{"ruleId":"IC1","level":"warning","message":{"text":"Hollow method \u2014 returns a constant without doing the work: \u0060executeStatement\u0060 looks like it should compute a result but its body just returns a constant \u2014 a placeholder return that was never filled in."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/executor/MySqlProcedureExecutor.java"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"df20dd7dc8bb83cc05e9c17780b7b0e2216325b40b527311a71e8852cd10c238"}},{"ruleId":"IC1","level":"warning","message":{"text":"Hollow method \u2014 returns a constant without doing the work: \u0060executeIf\u0060 looks like it should compute a result but its body just returns a constant \u2014 a placeholder return that was never filled in."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/executor/MySqlProcedureExecutor.java"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a24ce645d9c9649d51884fab2d8611a3b29847a7de76780a1607f9051407add"}},{"ruleId":"IC1","level":"warning","message":{"text":"Hollow method \u2014 returns a constant without doing the work: \u0060executeWhile\u0060 looks like it should compute a result but its body just returns a constant \u2014 a placeholder return that was never filled in."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/executor/MySqlProcedureExecutor.java"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aa6ac8cbc375e270c2a9f67325ff2b919ad3ab4c45e3e8bfdaf344b0dbc1fa6"}},{"ruleId":"IC1","level":"warning","message":{"text":"Hollow method \u2014 returns a constant without doing the work: \u0060executeLoop\u0060 looks like it should compute a result but its body just returns a constant \u2014 a placeholder return that was never filled in."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/executor/MySqlProcedureExecutor.java"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"61e3bc058bf9b26c1d0e50b9883839d8b9646c2fcd49a80d95ae0d2d08c5247f"}},{"ruleId":"IC1","level":"warning","message":{"text":"Hollow method \u2014 returns a constant without doing the work: \u0060executeCase\u0060 looks like it should compute a result but its body just returns a constant \u2014 a placeholder return that was never filled in."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/executor/MySqlProcedureExecutor.java"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"571b2d91f2e34cae95bba20e28ba34132c49dfd054688286fb7f19fbd8d48538"}},{"ruleId":"IC1","level":"warning","message":{"text":"Hollow method \u2014 returns a constant without doing the work: \u0060executeAssign\u0060 looks like it should compute a result but its body just returns a constant \u2014 a placeholder return that was never filled in."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/executor/MySqlProcedureExecutor.java"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"91e19f8d884c35de71e38cb9aa10f29bf93992367886142e721f11535a843209"}},{"ruleId":"IC1","level":"warning","message":{"text":"Hollow method \u2014 returns a constant without doing the work: \u0060executeOpen\u0060 looks like it should compute a result but its body just returns a constant \u2014 a placeholder return that was never filled in."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/executor/MySqlProcedureExecutor.java"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"cec29b1bae3bbbd3b272c10b6da9e6196cb98abcc1d6b7b6fa3291f079b7f958"}},{"ruleId":"IC1","level":"warning","message":{"text":"Hollow method \u2014 returns a constant without doing the work: \u0060executeFetch\u0060 looks like it should compute a result but its body just returns a constant \u2014 a placeholder return that was never filled in."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/executor/MySqlProcedureExecutor.java"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4c69152ad99622c569e687c72002cdb0caa7100b64c78a5460f19e4d3565c16"}},{"ruleId":"IC1","level":"warning","message":{"text":"Hollow method \u2014 returns a constant without doing the work: \u0060executeClose\u0060 looks like it should compute a result but its body just returns a constant \u2014 a placeholder return that was never filled in."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/executor/MySqlProcedureExecutor.java"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"69ed2907122ebd851091f09c514bdeda731d1eb613394f8dca460c85ab7b2a64"}},{"ruleId":"IC1","level":"warning","message":{"text":"Hollow method \u2014 returns a constant without doing the work: \u0060executeSQL\u0060 looks like it should compute a result but its body just returns a constant \u2014 a placeholder return that was never filled in."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/executor/MySqlProcedureExecutor.java"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"038fdceca92b6d60c1f0061f1b9cf81c0a0f86aa47a18313f02858124369b9cf"}},{"ruleId":"IC1","level":"warning","message":{"text":"Hollow method \u2014 returns a constant without doing the work: \u0060executeFunction\u0060 looks like it should compute a result but its body just returns a constant \u2014 a placeholder return that was never filled in."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/executor/MySqlProcedureExecutor.java"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"5608c93433c9d83c3a318b7b34ea41342796fc5137255c18479ac0740b23b22b"}},{"ruleId":"IC1","level":"warning","message":{"text":"Unfinished stub \u2014 throws a \u0022not implemented\u0022 exception: \u0060parseCreateScan\u0060 throws an exception whose message says it isn\u0027t finished \u2014 a not-implemented stub wearing an ordinary exception. Implement it or remove it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":4256}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ed6ccc939e9128da38c812b8bd1d0ad37f0cf87779ef5b20bc9e7133f6cd3c3"}},{"ruleId":"IC1","level":"warning","message":{"text":"Unfinished stub \u2014 throws a \u0022not implemented\u0022 exception: \u0060parseClone\u0060 throws an exception whose message says it isn\u0027t finished \u2014 a not-implemented stub wearing an ordinary exception. Implement it or remove it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java"},"region":{"startLine":7980}}}],"partialFingerprints":{"codehealthFindingId/v1":"c16233889eef8c36b255f1639f9b6a3dd52da004d86e3ad6e6752fa8a8ab17c2"}},{"ruleId":"IC1","level":"note","message":{"text":"Empty method body: \u0060collect\u0060 has an empty body \u2014 confirm it\u0027s an intentional no-op and not an unfinished method."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/support/metrics/MetricCollector.java"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"c21a05fff9ed7689d57e95e4884a5e12fcf3004c7342d956579b0d15e10ac420"}},{"ruleId":"IC1","level":"note","message":{"text":"Empty method body: \u0060stop\u0060 has an empty body \u2014 confirm it\u0027s an intentional no-op and not an unfinished method."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/support/monitor/MonitorClient.java"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"9027ff3c0bf9155256c4ae069b224925bb23d86e1b93760b0ce1e1992e54f2f7"}},{"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":"core/src/test/java/com/alibaba/druid/bvt/sql/bigquery/BigQueryDirTest.java"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"46d35d8f0291e2cde23a8fd3bba29e257139e6b4a4c953602c49d3fa39ee9fd1"}},{"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":"core/src/test/java/com/alibaba/druid/oceanbase/OceanBaseOracleXATest.java"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d14998fdd062fa54822cad7770452b2a4ca805352ee17cf7719de7fcc8bafe0"}},{"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":"P10","level":"note","message":{"text":"Implementation type on the public API: 1 public type in \u0060com.alibaba.druid.filter\u0060 is marked as implementation by its own namespace, folder or name: \u0060FilterChainImpl\u0060 (core/src/main/java/com/alibaba/druid/filter/FilterChainImpl.java:36, name ends in \u0060Impl\u0060). While it is public, every consumer of the library can bind to it, so changing it is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/filter/FilterChainImpl.java"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e98d20546196ad99a619e16365e09a2931e2b93b19b651733e3315b45a015db"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 1 public type in \u0060com.alibaba.druid.mock.handler\u0060 is marked as implementation by its own namespace, folder or name: \u0060MySqlMockExecuteHandlerImpl\u0060 (core/src/main/java/com/alibaba/druid/mock/handler/MySqlMockExecuteHandlerImpl.java:37, name ends in \u0060Impl\u0060). While it is public, every consumer of the library can bind to it, so changing it is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/mock/handler/MySqlMockExecuteHandlerImpl.java"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"945d124b1876b1c597184b96db081b06622165ddcbf22296751d9ec03e46d2e7"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 1 public type in \u0060com.alibaba.druid.pool\u0060 is marked as implementation by its own namespace, folder or name: \u0060DruidDataSourceStatLoggerImpl\u0060 (core/src/main/java/com/alibaba/druid/pool/DruidDataSourceStatLoggerImpl.java:34, name ends in \u0060Impl\u0060). While it is public, every consumer of the library can bind to it, so changing it is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/pool/DruidDataSourceStatLoggerImpl.java"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"e75029f210fda8506e2c8b72c31231a6e4f70f619c1eac68a2d651f2af79269f"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 12 public types in \u0060com.alibaba.druid.proxy.jdbc\u0060 are marked as implementation by their own namespace, folder or name: \u0060CallableStatementProxyImpl\u0060 (core/src/main/java/com/alibaba/druid/proxy/jdbc/CallableStatementProxyImpl.java:30, name ends in \u0060Impl\u0060), \u0060ClobProxyImpl\u0060 (core/src/main/java/com/alibaba/druid/proxy/jdbc/ClobProxyImpl.java:31, name ends in \u0060Impl\u0060), \u0060ConnectionProxyImpl\u0060 (core/src/main/java/com/alibaba/druid/proxy/jdbc/ConnectionProxyImpl.java:30, name ends in \u0060Impl\u0060), \u0060DataSourceProxyImpl\u0060 (core/src/main/java/com/alibaba/druid/proxy/jdbc/DataSourceProxyImpl.java:39, name ends in \u0060Impl\u0060), \u0060DatabaseMetaDataProxyImpl\u0060 (core/src/main/java/com/alibaba/druid/proxy/jdbc/DatabaseMetaDataProxyImpl.java:23, name ends in \u0060Impl\u0060), \u0060JdbcParameterImpl\u0060 (core/src/main/java/com/alibaba/druid/proxy/jdbc/JdbcParameterImpl.java:20, name ends in \u0060Impl\u0060), \u0060NClobProxyImpl\u0060 (core/src/main/java/com/alibaba/druid/proxy/jdbc/NClobProxyImpl.java:20, name ends in \u0060Impl\u0060), \u0060PreparedStatementProxyImpl\u0060 (core/src/main/java/com/alibaba/druid/proxy/jdbc/PreparedStatementProxyImpl.java:34, name ends in \u0060Impl\u0060), and 4 more. While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/proxy/jdbc/CallableStatementProxyImpl.java"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"4256c55184ff6e2ccf466fbe5121e68ff3251e0c362fa3c7ee9484dd6695ee52"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 4 public types in \u0060com.alibaba.druid.sql.ast\u0060 are marked as implementation by their own namespace, folder or name: \u0060SQLDataTypeImpl\u0060 (core/src/main/java/com/alibaba/druid/sql/ast/SQLDataTypeImpl.java:29, name ends in \u0060Impl\u0060), \u0060SQLExprImpl\u0060 (core/src/main/java/com/alibaba/druid/sql/ast/SQLExprImpl.java:20, name ends in \u0060Impl\u0060), \u0060SQLObjectImpl\u0060 (core/src/main/java/com/alibaba/druid/sql/ast/SQLObjectImpl.java:31, name ends in \u0060Impl\u0060), \u0060SQLStatementImpl\u0060 (core/src/main/java/com/alibaba/druid/sql/ast/SQLStatementImpl.java:26, name ends in \u0060Impl\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/SQLDataTypeImpl.java"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c920e9d7e7e5bcd4268aa23d437731b77e00ececd6923a5767ff3b1d4d57671"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 4 public types in \u0060com.alibaba.druid.sql.ast.statement\u0060 are marked as implementation by their own namespace, folder or name: \u0060SQLConstraintImpl\u0060 (core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLConstraintImpl.java:25, name ends in \u0060Impl\u0060), \u0060SQLForeignKeyImpl\u0060 (core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLForeignKeyImpl.java:24, name ends in \u0060Impl\u0060), \u0060SQLPrimaryKeyImpl\u0060 (core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLPrimaryKeyImpl.java:20, name ends in \u0060Impl\u0060), \u0060SQLTableSourceImpl\u0060 (core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLTableSourceImpl.java:28, name ends in \u0060Impl\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLConstraintImpl.java"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"a707cc461ff6ce96f6b834fa44f06fe662a274d0320a232625d8221cf4434e04"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 4 public types in \u0060com.alibaba.druid.sql.builder.impl\u0060 are marked as implementation by their own namespace, folder or name: \u0060SQLBuilderImpl\u0060 (core/src/main/java/com/alibaba/druid/sql/builder/impl/SQLBuilderImpl.java:23, \u0060impl\u0060), \u0060SQLDeleteBuilderImpl\u0060 (core/src/main/java/com/alibaba/druid/sql/builder/impl/SQLDeleteBuilderImpl.java:33, \u0060impl\u0060), \u0060SQLSelectBuilderImpl\u0060 (core/src/main/java/com/alibaba/druid/sql/builder/impl/SQLSelectBuilderImpl.java:31, \u0060impl\u0060), \u0060SQLUpdateBuilderImpl\u0060 (core/src/main/java/com/alibaba/druid/sql/builder/impl/SQLUpdateBuilderImpl.java:36, \u0060impl\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/builder/impl/SQLBuilderImpl.java"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa7c0381b0ca539163dacd8d55ecfaff77c6a131fe26615d90a572ff34fb2e12"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 1 public type in \u0060com.alibaba.druid.sql.dialect.db2.ast\u0060 is marked as implementation by its own namespace, folder or name: \u0060DB2StatementImpl\u0060 (core/src/main/java/com/alibaba/druid/sql/dialect/db2/ast/DB2StatementImpl.java:23, name ends in \u0060Impl\u0060). While it is public, every consumer of the library can bind to it, so changing it is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/db2/ast/DB2StatementImpl.java"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e6a341e4acbef0e616511abe93c737f03d6ce10561ea8c6e59218b6f62ef668"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 1 public type in \u0060com.alibaba.druid.sql.dialect.dm.ast\u0060 is marked as implementation by its own namespace, folder or name: \u0060DmObjectImpl\u0060 (core/src/main/java/com/alibaba/druid/sql/dialect/dm/ast/DmObjectImpl.java:7, name ends in \u0060Impl\u0060). While it is public, every consumer of the library can bind to it, so changing it is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/ast/DmObjectImpl.java"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"162291cb88fe17aca9da4a76f350efb96fc79aebf816466f0504248215f78d5a"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 1 public type in \u0060com.alibaba.druid.sql.dialect.doris.ast\u0060 is marked as implementation by its own namespace, folder or name: \u0060DorisObjectImpl\u0060 (core/src/main/java/com/alibaba/druid/sql/dialect/doris/ast/DorisObjectImpl.java:6, name ends in \u0060Impl\u0060). While it is public, every consumer of the library can bind to it, so changing it is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/doris/ast/DorisObjectImpl.java"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"d96eb8baf94cf41000a3dd0094b0c0e93c80d9c5fe8b95c3b2b5604e56f19d0a"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 1 public type in \u0060com.alibaba.druid.sql.dialect.gaussdb.ast\u0060 is marked as implementation by its own namespace, folder or name: \u0060GaussDbObjectImpl\u0060 (core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/ast/GaussDbObjectImpl.java:7, name ends in \u0060Impl\u0060). While it is public, every consumer of the library can bind to it, so changing it is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/ast/GaussDbObjectImpl.java"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d0d5a6d3ebd87368c2b0ba0d68472eae893648b388d0846ea67a8e74f8f1e40"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 2 public types in \u0060com.alibaba.druid.sql.dialect.mysql.ast\u0060 are marked as implementation by their own namespace, folder or name: \u0060MySqlIndexHintImpl\u0060 (core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/MySqlIndexHintImpl.java:25, name ends in \u0060Impl\u0060), \u0060MySqlObjectImpl\u0060 (core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/MySqlObjectImpl.java:22, name ends in \u0060Impl\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/MySqlIndexHintImpl.java"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7a49739361aa391fdb3f3f4910ecd9a7fca274ea37e52ac89801452127de42d"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 1 public type in \u0060com.alibaba.druid.sql.dialect.mysql.ast.expr\u0060 is marked as implementation by its own namespace, folder or name: \u0060MySqlExprImpl\u0060 (core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/expr/MySqlExprImpl.java:22, name ends in \u0060Impl\u0060). While it is public, every consumer of the library can bind to it, so changing it is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/expr/MySqlExprImpl.java"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"a97ef1a5a7ec51e4d46906ab1687eebcd2814a73937b57f9a9cf33145dbffce2"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 1 public type in \u0060com.alibaba.druid.sql.dialect.mysql.ast.statement\u0060 is marked as implementation by its own namespace, folder or name: \u0060MySqlStatementImpl\u0060 (core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlStatementImpl.java:26, name ends in \u0060Impl\u0060). While it is public, every consumer of the library can bind to it, so changing it is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlStatementImpl.java"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"5afffd58884e4fd31047f4a9254f362941456fa7f3f076d65d67379cd33bf7ab"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 1 public type in \u0060com.alibaba.druid.sql.dialect.mysql.visitor\u0060 is marked as implementation by its own namespace, folder or name: \u0060MySqlEvalVisitorImpl\u0060 (core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlEvalVisitorImpl.java:28, name ends in \u0060Impl\u0060). While it is public, every consumer of the library can bind to it, so changing it is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlEvalVisitorImpl.java"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fbbfa5df80eee6bfc6de08854e4245ad4f6c4c88c20b307206f899b2ecc276d"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 2 public types in \u0060com.alibaba.druid.sql.dialect.odps.ast\u0060 are marked as implementation by their own namespace, folder or name: \u0060OdpsObjectImpl\u0060 (core/src/main/java/com/alibaba/druid/sql/dialect/odps/ast/OdpsObjectImpl.java:23, name ends in \u0060Impl\u0060), \u0060OdpsStatementImpl\u0060 (core/src/main/java/com/alibaba/druid/sql/dialect/odps/ast/OdpsStatementImpl.java:23, name ends in \u0060Impl\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/ast/OdpsObjectImpl.java"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"564349f3eac1cd974b54ed11f5cacda061c35839d0f4676f0ee7636efded0e8e"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 2 public types in \u0060com.alibaba.druid.sql.dialect.oracle.ast\u0060 are marked as implementation by their own namespace, folder or name: \u0060OracleSQLObjectImpl\u0060 (core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/OracleSQLObjectImpl.java:25, name ends in \u0060Impl\u0060), \u0060OracleSegmentAttributesImpl\u0060 (core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/OracleSegmentAttributesImpl.java:25, name ends in \u0060Impl\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/OracleSQLObjectImpl.java"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"c76de89de2648354ba249ddda0fc7cc18f4448940e8e1f4a5ecc9f78802ac018"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 1 public type in \u0060com.alibaba.druid.sql.dialect.oracle.ast.stmt\u0060 is marked as implementation by its own namespace, folder or name: \u0060OracleStatementImpl\u0060 (core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleStatementImpl.java:24, name ends in \u0060Impl\u0060). While it is public, every consumer of the library can bind to it, so changing it is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleStatementImpl.java"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdee571556a67564f5845b97264fd00fd9d96894a673b4c38e1fed4c2499641a"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 1 public type in \u0060com.alibaba.druid.sql.dialect.oscar.ast\u0060 is marked as implementation by its own namespace, folder or name: \u0060OscarObjectImpl\u0060 (core/src/main/java/com/alibaba/druid/sql/dialect/oscar/ast/OscarObjectImpl.java:22, name ends in \u0060Impl\u0060). While it is public, every consumer of the library can bind to it, so changing it is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/ast/OscarObjectImpl.java"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcefef8e4a289c450c0fd01f42ebe94a065df0f5e12f0d229410facfab41b2d2"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 1 public type in \u0060com.alibaba.druid.sql.dialect.phoenix.ast\u0060 is marked as implementation by its own namespace, folder or name: \u0060PhoenixStatementImpl\u0060 (core/src/main/java/com/alibaba/druid/sql/dialect/phoenix/ast/PhoenixStatementImpl.java:26, name ends in \u0060Impl\u0060). While it is public, every consumer of the library can bind to it, so changing it is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/phoenix/ast/PhoenixStatementImpl.java"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9945d5661ac2d09c641150912a652a744e9d1052ead5555f6c3cc2ba7f54079"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 1 public type in \u0060com.alibaba.druid.sql.dialect.postgresql.ast\u0060 is marked as implementation by its own namespace, folder or name: \u0060PGSQLObjectImpl\u0060 (core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/ast/PGSQLObjectImpl.java:22, name ends in \u0060Impl\u0060). While it is public, every consumer of the library can bind to it, so changing it is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/ast/PGSQLObjectImpl.java"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"24997fafa1272982a6910209c5db263cec030faf332742e7d32c14a74470abb1"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 1 public type in \u0060com.alibaba.druid.sql.dialect.postgresql.ast.expr\u0060 is marked as implementation by its own namespace, folder or name: \u0060PGExprImpl\u0060 (core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/ast/expr/PGExprImpl.java:23, name ends in \u0060Impl\u0060). While it is public, every consumer of the library can bind to it, so changing it is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/ast/expr/PGExprImpl.java"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"28166c5d58c065ee563950f699ec5377f9ebab9b3914f6834919c6762ec7b69d"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 1 public type in \u0060com.alibaba.druid.sql.dialect.redshift.stmt\u0060 is marked as implementation by its own namespace, folder or name: \u0060RedshiftObjectImpl\u0060 (core/src/main/java/com/alibaba/druid/sql/dialect/redshift/stmt/RedshiftObjectImpl.java:6, name ends in \u0060Impl\u0060). While it is public, every consumer of the library can bind to it, so changing it is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/redshift/stmt/RedshiftObjectImpl.java"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"107f9fde26a30fb3eda2c409cb364210ae5db83012a9aee37c272f0d93e51c09"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 2 public types in \u0060com.alibaba.druid.sql.dialect.sqlserver.ast\u0060 are marked as implementation by their own namespace, folder or name: \u0060SQLServerObjectImpl\u0060 (core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/ast/SQLServerObjectImpl.java:21, name ends in \u0060Impl\u0060), \u0060SQLServerStatementImpl\u0060 (core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/ast/SQLServerStatementImpl.java:23, name ends in \u0060Impl\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/ast/SQLServerObjectImpl.java"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"d533d2a96cc12b3e01f5ca12fb2c5c0f0af8c9e559ad2c860f06c5fb3693da15"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 1 public type in \u0060com.alibaba.druid.sql.visitor\u0060 is marked as implementation by its own namespace, folder or name: \u0060SQLEvalVisitorImpl\u0060 (core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorImpl.java:26, name ends in \u0060Impl\u0060). While it is public, every consumer of the library can bind to it, so changing it is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorImpl.java"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf212297dc24f82d9404e8f8231c465c129b88ac9d346ed665a8f2980d1383b5"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 1 public type in \u0060com.alibaba.druid.support.http\u0060 is marked as implementation by its own namespace, folder or name: \u0060AbstractWebStatImpl\u0060 (core/src/main/java/com/alibaba/druid/support/http/AbstractWebStatImpl.java:30, name ends in \u0060Impl\u0060). While it is public, every consumer of the library can bind to it, so changing it is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/support/http/AbstractWebStatImpl.java"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed2d9b2e7f6ad790c8d5ec87c10e4766b1c2d28c3ae561a773fbca2288458e11"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 1 public type in \u0060com.alibaba.druid.support.jakarta\u0060 is marked as implementation by its own namespace, folder or name: \u0060AbstractWebStatImpl\u0060 (core/src/main/java/com/alibaba/druid/support/jakarta/AbstractWebStatImpl.java:29, name ends in \u0060Impl\u0060). While it is public, every consumer of the library can bind to it, so changing it is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/support/jakarta/AbstractWebStatImpl.java"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dd2baa028263ab68db33f7282000cd0dfd98e81d6a7f80a8e2378bb8ca1ffd7"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 6 public types in \u0060com.alibaba.druid.support.logging\u0060 are marked as implementation by their own namespace, folder or name: \u0060JakartaCommonsLoggingImpl\u0060 (core/src/main/java/com/alibaba/druid/support/logging/JakartaCommonsLoggingImpl.java:21, name ends in \u0060Impl\u0060), \u0060Jdk14LoggingImpl\u0060 (core/src/main/java/com/alibaba/druid/support/logging/Jdk14LoggingImpl.java:21, name ends in \u0060Impl\u0060), \u0060Log4j2Impl\u0060 (core/src/main/java/com/alibaba/druid/support/logging/Log4j2Impl.java:22, name ends in \u0060Impl\u0060), \u0060Log4jImpl\u0060 (core/src/main/java/com/alibaba/druid/support/logging/Log4jImpl.java:21, name ends in \u0060Impl\u0060), \u0060NoLoggingImpl\u0060 (core/src/main/java/com/alibaba/druid/support/logging/NoLoggingImpl.java:18, name ends in \u0060Impl\u0060), \u0060SLF4JImpl\u0060 (core/src/main/java/com/alibaba/druid/support/logging/SLF4JImpl.java:22, name ends in \u0060Impl\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/support/logging/JakartaCommonsLoggingImpl.java"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a88626dd1c9e68eb818773294f90c45b4f610172c1d766271bbdcedee1d010b"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 1 public type in \u0060com.alibaba.druid.support.monitor.dao\u0060 is marked as implementation by its own namespace, folder or name: \u0060MonitorDaoJdbcImpl\u0060 (core/src/main/java/com/alibaba/druid/support/monitor/dao/MonitorDaoJdbcImpl.java:54, name ends in \u0060Impl\u0060). While it is public, every consumer of the library can bind to it, so changing it is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/support/monitor/dao/MonitorDaoJdbcImpl.java"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"138a62469e05bcbdd64eaefb62f6606e62b59b50bebed588c1a1552c9bcc8473"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 1 public type in \u0060com.alibaba.druid.wall\u0060 is marked as implementation by its own namespace, folder or name: \u0060WallProviderStatLoggerImpl\u0060 (core/src/main/java/com/alibaba/druid/wall/WallProviderStatLoggerImpl.java:25, name ends in \u0060Impl\u0060). While it is public, every consumer of the library can bind to it, so changing it is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/wall/WallProviderStatLoggerImpl.java"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b26b8f23ddd04366abe3c8dcd841b04cb524e68717f9966c5b959d8f47602ea"}},{"ruleId":"P12","level":"warning","message":{"text":"Coverage collected but not gated: CI collects a coverage report but no step enforces a minimum \u2014 coverage could halve and CI stays green. Add a step that fails the build when coverage drops below a floor (your coverage tool\u0027s minimum-threshold flag, or a coverage-gate action) so the number guards something. What was searched, so you can tell an absence from a miss: this repository\u0027s CI files AND its coverage configuration \u2014 the well-known coverage and test-runner config files, read at the repository root and inside workspace package directories two levels down, so a floor declared beside the tests rather than in the pipeline is credited \u2014 matched against the threshold settings this check knows by name. A floor set in your coverage service\u0027s web UI rather than in a committed file, or under a setting whose name is not one of those, is not seen here."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"7f63c06044cf998d9a0698692df30d8873e29bc9b0c98ee829255017c1193d33"}},{"ruleId":"P2","level":"note","message":{"text":"Logging is not universal: Only 6/7 runnable modules use logging (modules with no entry point or server are excluded \u2014 they are libraries a runnable module hosts). Silent: \u0060druid-demo-petclinic\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"91a94e21d6d4d0e6a2003f94505b0b02b157176f0b24c4820f3f82b4447a97fe"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add spotbugs with find-sec-bugs (or \u0060semgrep --config=auto\u0060, which runs on any language) as a CI step. What was searched, so you can tell an absence from a miss: the 2 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/ci.yaml"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P4","level":"note","message":{"text":"No rollback/health safety: Deployment is orchestrated by compose, but no service declares a \u0060healthcheck:\u0060 and nothing pins a previous image to fall back to \u2014 the runtime can tell that the container is up, not that it is serving, so a bad release is harder to detect and reverse."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"db6bab8a28a2145f47e5a4e6683cda39d2ba0296c723238e8057da979ae1c706"}},{"ruleId":"P6","level":"note","message":{"text":"No changelog: No CHANGELOG/HISTORY/RELEASES file \u2014 what shipped when isn\u0027t easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dda5aa5aed8cbb292c3ef2b733bc138f614293ae6426c85e98bf31ef330d9415"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060HttpClients.createDefault(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/java/com/alibaba/druid/admin/util/HttpUtil.java"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"fef6443a51dc0ac1cbb275cc9ccecc856ab17d71391e57e578a0d153d05cb8e7"}},{"ruleId":"PF1","level":"note","message":{"text":"Benchmarks don\u0027t track allocations: A JMH/Jetpack Benchmark suite exists but nothing turns on its allocation measurement \u2014 allocations (the main way hot code pressures a garbage collector or allocator) aren\u0027t being measured."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/test/java/com/alibaba/druid/bvt/pool/UsingDefaultLockModeBenchmarkTest.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"09e5190cf2c7b5942b1895886ebc38bfad7534f9730b7a0d03ed1045f7fd369b"}},{"ruleId":"R1","level":"warning","message":{"text":"Type Safety: 0 typed \u00B7 6 plain JS \u2014 the untyped files are core/src/main/resources/support/http/resources/js/common.js, core/src/main/resources/support/http/resources/js/doT.js, core/src/main/resources/support/http/resources/js/lang.js, druid-admin/src/main/resources/support/http/resources/js/common.js, druid-admin/src/main/resources/support/http/resources/js/doT.js, druid-admin/src/main/resources/support/http/resources/js/lang.js."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d00ee7953f55325a823d27e5db9657c80ca9b9861c0c0abf8fe487cd3fa586d3"}},{"ruleId":"R10","level":"warning","message":{"text":"Wholesale file copy (332 identical lines \u00D7 2 files): core/src/main/resources/support/http/resources/js/lang.js:1 \u00B7 druid-admin/src/main/resources/support/http/resources/js/lang.js:1 \u2014 these 2 files are line-for-line copies of one another \u2014 332 lines are identical, in the same order, in every one of them \u2014 so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) \u2014 the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/js/lang.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5ee8893871594f9172ab3f4192c8253dd85e18a44df9e387e29a622af8e5ec6"}},{"ruleId":"R10","level":"warning","message":{"text":"Wholesale file copy (129 identical lines \u00D7 2 files): core/src/main/resources/support/http/resources/js/common.js:1 \u00B7 druid-admin/src/main/resources/support/http/resources/js/common.js:1 \u2014 these 2 files are line-for-line copies of one another \u2014 129 lines are identical, in the same order, in every one of them \u2014 so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) \u2014 the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/js/common.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5f2c036f154ba24b9fa7259e48174d8f9c258d18218c7f7fbde53bac402f47e"}},{"ruleId":"R10","level":"warning","message":{"text":"Wholesale file copy (94 identical lines \u00D7 2 files): core/src/main/resources/support/http/resources/js/doT.js:5 \u00B7 druid-admin/src/main/resources/support/http/resources/js/doT.js:5 \u2014 these 2 files are line-for-line copies of one another \u2014 94 lines are identical, in the same order, in every one of them \u2014 so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) \u2014 the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/js/doT.js"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"e95153d809fbcb8f0c7ffe342f879f9814e777062db85824ce2f261e232bf4c1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function template (cyclomatic 16, cognitive 16): template has cyclomatic complexity 16 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/js/doT.js"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ae60a2cb6608d25cee5c5fe2fcb342fbe0ef0f0e390d98023b87ba591cd81c3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function template (cyclomatic 16, cognitive 16): template has cyclomatic complexity 16 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/js/doT.js"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e04fafbef0d952e5280afeef7527a234820e5fe753c8860135c543f3ddbacbd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!isAllowComment() \u0026\u0026 !isSafeComment(stringVal)\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java, core/src/main/java/com/alibaba/druid/sql/parser/Lexer.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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java"},"region":{"startLine":889}}}],"partialFingerprints":{"codehealthFindingId/v1":"30c104940577c7c7ff00af0d416387c9c984da4995ccb3938ba1dbfb8a2c7208"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060\u00220:0:0:0:0:0:0:1\u0022.equals(remoteAddress) || (denyList.isEmpty() \u0026\u0026 allowList.isEmpty())\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/support/http/ResourceServlet.java, core/src/main/java/com/alibaba/druid/support/jakarta/ResourceServlet.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":"core/src/main/java/com/alibaba/druid/support/http/ResourceServlet.java"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e7946e2a4ad245db7a7814129daa3578413674186e2231e4b07ded2974f47cb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(!bracket) \u0026\u0026 left instanceof SQLUnionQuery \u0026\u0026 ((SQLUnionQuery) left).getOperator() == operator \u0026\u0026 !right.isParenthesized() \u0026\u0026 x.getOrderBy(\u2026\u0060 appears character-identically in 3 files \u2014 core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java, core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java, core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.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":"core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java"},"region":{"startLine":2417}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cce01b4428f8c8dd9a2551a4eaf42d98c3e956d742dee650b4a44ddc6f7870e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(!isParameterized()) \u0026\u0026 isPrettyFormat() \u0026\u0026 x.hasBeforeComment()\u0060 appears character-identically in 5 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmOutputVisitor.java, core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java, core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java, core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.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":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmOutputVisitor.java"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5771e7243da5948f970c88d9e97d57c4c0751532ce831b21df4de8789735153"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(!leftUnion.isParenthesized()) \u0026\u0026 leftUnion.getOrderBy() == null \u0026\u0026 (!leftLeft.isParenthesized()) \u0026\u0026 (!leftRight.isParenthesized()) \u0026\u0026 leftL\u2026\u0060 appears character-identically in 5 files \u2014 core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLUnionQuery.java, core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java, core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java, core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLUnionQuery.java"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"223427d474c19728f5bb4589e36671ed5f5c5ee931a34b9f3d8962c813e10675"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(ch == \u0027/\u0027 \u0026\u0026 charAt(pos \u002B 1) == \u0027/\u0027) || (ch == \u0027-\u0027 \u0026\u0026 charAt(pos \u002B 1) == \u0027-\u0027)\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeLexer.java, core/src/main/java/com/alibaba/druid/sql/parser/Lexer.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":"core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeLexer.java"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"e40ebec8e52d500c6474a0790ebf069422b96d05c744635956b6b8f89fd19c20"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(dataTypeName.startsWith(\u0022TABLE OF\u0022) \u0026\u0026 x.getDefaultValue() == null) || dataTypeName.equalsIgnoreCase(\u0022REF CURSOR\u0022) || dataTypeName.startsWi\u2026\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java, core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.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":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java"},"region":{"startLine":2312}}}],"partialFingerprints":{"codehealthFindingId/v1":"b77ebc574a8a498e84967542036121b59b39ccc3558b5fb17226c5dbc64b02c2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(op == SQLBinaryOperator.BooleanAnd || op == SQLBinaryOperator.BooleanOr) \u0026\u0026 left instanceof SQLBinaryOpExpr \u0026\u0026 ((SQLBinaryOpExpr) left).get\u2026\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java, core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.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":"core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java"},"region":{"startLine":1334}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff89c39a23803a13f0ce3e0a489a75667a13834a05b95da950e80a05c4c1d22d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(parent instanceof SQLStatement \u0026\u0026 !(parent instanceof OracleForStatement)) || (parent instanceof SQLSelectItem \u0026\u0026 (parent.getParent() insta\u2026\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/odps/visitor/OdpsOutputVisitor.java, core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.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":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/visitor/OdpsOutputVisitor.java"},"region":{"startLine":1287}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6902347771a41672e2005ef2091fac7768773fdef5f2593475bdf7e27067fa6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(x.getAlias() != null) \u0026\u0026 (x.getAlias().length() != 0)\u0060 appears character-identically in 3 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java, core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java, core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"cadc5bda0f6c64f11f6efea6bf7224ed3c7e0dc0e3ac84288581c3eae853dbd5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u00601 == ((SQLMethodInvokeExpr) expr).getArguments().size() \u0026\u0026 ((SQLMethodInvokeExpr) expr).getArguments().get(0) instanceof SQLIntegerExpr\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLUnique.java, core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlTableIndex.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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLUnique.java"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b47b00f1ff222381d37c0db42a9907a16bc6ab967f2b7ab1d04a605bd10aa1d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060DbType.mysql == dbType \u0026\u0026 x.getParent() instanceof SQLCreateFunctionStatement\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java, core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.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":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java"},"region":{"startLine":2349}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b888727d2cfd390ae75d880ad3b927a591a6315fdb07a6d28180f126f23d3ee"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060DbType.oracle == dbType || dataType instanceof OracleFunctionDataType || dataType instanceof OracleProcedureDataType\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java, core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.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":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java"},"region":{"startLine":2296}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcace39700f0ccd7a759088548cbeef007f2d701445ba91efa1e99f4e078261f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060FnvHash.Constants.CURDATE == hash_lower \u0026\u0026 ident.charAt(0) != \u0027\u0060\u0027 \u0026\u0026 lexer.token() != Token.LPAREN\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveExprParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveExprParser.java"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d55320041bcd0404342c557706db6ea77124513abb854ef45a603712e9325c2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060FnvHash.Constants.CURRENT_DATE == hash_lower \u0026\u0026 ident.charAt(0) != \u0027\u0060\u0027 \u0026\u0026 lexer.token() != Token.LPAREN\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveExprParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveExprParser.java"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"f27f7832926668093820f9a8885f9dd7b4b19969a3c3224a3b6a736310a2a215"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060FnvHash.Constants.CURRENT_TIME == hash_lower \u0026\u0026 ident.charAt(0) != \u0027\u0060\u0027 \u0026\u0026 lexer.token() != Token.LPAREN\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveExprParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveExprParser.java"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"6481211ef07c5d5394d2270b7cbfaf7336cbf0158441afc95c4351146c0d53e6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060FnvHash.Constants.CURRENT_TIMESTAMP == hash_lower \u0026\u0026 ident.charAt(0) != \u0027\u0060\u0027 \u0026\u0026 lexer.token() != Token.LPAREN\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveExprParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveExprParser.java"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"b039fba8b676ca324214bdb1e76ca89464882814c186844e52f59055a8b71309"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060FnvHash.Constants.DATETIME == hash_lower \u0026\u0026 lexer.stringVal().charAt(0) != \u0027\u0060\u0027 \u0026\u0026 lexer.token() == Token.LITERAL_CHARS\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveExprParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveExprParser.java"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"1805c4260dd95b49dd73992d0bbd6c90aa405914a1e991420425f86c4cb6efa6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060FnvHash.Constants.LOCALTIME == hash_lower \u0026\u0026 ident.charAt(0) != \u0027\u0060\u0027 \u0026\u0026 lexer.token() != Token.LPAREN\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveExprParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveExprParser.java"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d98fbb1322ff95a21f731de8a4e0bd0e3e7a1328fafdbf3c36fd8bf8373bc42"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060FnvHash.Constants.LOCALTIMESTAMP == hash_lower \u0026\u0026 ident.charAt(0) != \u0027\u0060\u0027 \u0026\u0026 lexer.token() != Token.LPAREN\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveExprParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveExprParser.java"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"c705e08f0910647cf95d68c31801084bb2c3ae9d675f3655160677036d554a45"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060FnvHash.Constants.TIMESTAMP == hash_lower \u0026\u0026 lexer.stringVal().charAt(0) != \u0027\u0060\u0027 \u0026\u0026 lexer.token() == Token.LITERAL_CHARS\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveExprParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveExprParser.java"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7c2d728787a9161ed403095c24337ec7915303e4c476ae48e2ffb654fd595b9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060JdbcUtils.isPgsqlDbType(dbType) \u0026\u0026 x.getParent() instanceof SQLAlterTableAlterColumn\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/starrocks/visitor/StarRocksOutputVisitor.java, core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.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":"core/src/main/java/com/alibaba/druid/sql/dialect/starrocks/visitor/StarRocksOutputVisitor.java"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"059f5790c1cd109bd42ea2f3b0022f3d384389dad0c45db05da21407a2f37ab0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060System.getenv(\u0022MVNW_USERNAME\u0022) != null \u0026\u0026 System.getenv(\u0022MVNW_PASSWORD\u0022) != null\u0060 appears character-identically in 2 files \u2014 .mvn/wrapper/MavenWrapperDownloader.java, druid-demo-petclinic/.mvn/wrapper/MavenWrapperDownloader.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":".mvn/wrapper/MavenWrapperDownloader.java"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"a70af9953b705340464e34d3e7f9daf6aaacfeba4016e23abb6edcaf5e9fdb50"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060alias.length() \u003E 2 \u0026\u0026 alias.charAt(0) == \u0027\u0022\u0027 \u0026\u0026 alias.charAt(alias.length() - 1) == \u0027\u0022\u0027\u0060 appears character-identically in 3 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java, core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java, core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":5267}}}],"partialFingerprints":{"codehealthFindingId/v1":"48759c36ee9562bd8e5338917e0d767ada3b19f0810a8441a5a1b9654fd19aee"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060beforeComments != null \u0026\u0026 !beforeComments.isEmpty() \u0026\u0026 isPrettyFormat()\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/visitor/CKOutputVisitor.java, core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.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":"core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/visitor/CKOutputVisitor.java"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9c195414ee4a28c1cd4255e1eeb1f8d7ab7a9212f909c8c94f335b7d05007ee"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060blockStatement.getParameters().size() \u003E 0 || authid != null\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java, core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":2096}}}],"partialFingerprints":{"codehealthFindingId/v1":"85661fafe278ef8a96412ecbf8d625fee708ee9a7a63852448897729ae086f25"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060c0 == \u0027I\u0027 \u0026\u0026 c1 == \u0027N\u0027 \u0026\u0026 c2 == \u0027S\u0027 \u0026\u0026 c3 == \u0027E\u0027 \u0026\u0026 c4 == \u0027R\u0027 \u0026\u0026 c5 == \u0027T\u0027 \u0026\u0026 c6 == \u0027 \u0027\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"b389f6d1b6820b8b195aed545091a6c7671948b661e9cbd793e50ca2c8ff23e6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060c0 == \u0027S\u0027 \u0026\u0026 c1 == \u0027E\u0027 \u0026\u0026 c2 == \u0027L\u0027 \u0026\u0026 c3 == \u0027E\u0027 \u0026\u0026 c4 == \u0027C\u0027 \u0026\u0026 c5 == \u0027T\u0027 \u0026\u0026 c6 == \u0027 \u0027\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"658142bc2d4c6c44a502d78d8753d6d9fe73a44d3c3664d45dd41f3dafece407"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060c0 == \u0027U\u0027 \u0026\u0026 c1 == \u0027P\u0027 \u0026\u0026 c2 == \u0027D\u0027 \u0026\u0026 c3 == \u0027A\u0027 \u0026\u0026 c4 == \u0027T\u0027 \u0026\u0026 c5 == \u0027E\u0027 \u0026\u0026 c6 == \u0027 \u0027\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"4380b53f884006f2c7ab6582fff06418cd882494c35c0c60abba5cde39510fca"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060c0 == \u0027i\u0027 \u0026\u0026 c1 == \u0027n\u0027 \u0026\u0026 c2 == \u0027s\u0027 \u0026\u0026 c3 == \u0027e\u0027 \u0026\u0026 c4 == \u0027r\u0027 \u0026\u0026 c5 == \u0027t\u0027 \u0026\u0026 c6 == \u0027 \u0027\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0282d1a643713656746be725e36fdd07639741b5e19f9c05401f1363bdfd8f5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060c0 == \u0027s\u0027 \u0026\u0026 c1 == \u0027e\u0027 \u0026\u0026 c2 == \u0027l\u0027 \u0026\u0026 c3 == \u0027e\u0027 \u0026\u0026 c4 == \u0027c\u0027 \u0026\u0026 c5 == \u0027t\u0027 \u0026\u0026 c6 == \u0027 \u0027\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"687178fb90630506c1406a32e0aac97c66a32b3eb4c5f5071d0381345c4f7a4a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060c0 == \u0027u\u0027 \u0026\u0026 c1 == \u0027p\u0027 \u0026\u0026 c2 == \u0027d\u0027 \u0026\u0026 c3 == \u0027a\u0027 \u0026\u0026 c4 == \u0027t\u0027 \u0026\u0026 c5 == \u0027e\u0027 \u0026\u0026 c6 == \u0027 \u0027\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f92fdda747ef759e78119c50f5a7ae8d4b9ec09529e20b87480c5fc996d047b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060colProperties == null || colProperties.isEmpty()\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryOutputVisitor.java, core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.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":"core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/visitor/BigQueryOutputVisitor.java"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"404ec0c9f635fc7d4384ae0883e8a8f9f42c96d2920a8fae82dde2a61f730ddb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060collate.startsWith(\u0022\u0027\u0022) || collate.endsWith(\u0022\\\u0022\u0022)\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java, core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.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":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java"},"region":{"startLine":2917}}}],"partialFingerprints":{"codehealthFindingId/v1":"6551b457b3ce20b51b2bbbbe770e03f3a3861b41bdfc774e0dab43db39ec8b95"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060column instanceof SQLIdentifierExpr \u0026\u0026 ((SQLIdentifierExpr) column) .nameHashCode64() == columnNameHashCode64\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/ast/SQLPartitionBy.java, core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/ast/GaussDbDistributeBy.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":"core/src/main/java/com/alibaba/druid/sql/ast/SQLPartitionBy.java"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"66ee13de0e61dd283151ced8ffb54d014f7de6178f62fd581774247197c387c1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060column.getDataType() == null \u0026\u0026 column.getConstraints().isEmpty()\u0060 appears character-identically in 4 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2StatementParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmStatementParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/db2/parser/DB2StatementParser.java"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a3c0066eef15cf57cc920cc8d7ad445beca3fbb430cafcdbdb80de2a5150d71"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060comment.startsWith(\u0022#\u0022) \u0026\u0026 comment.length() \u003E 1 \u0026\u0026 comment.charAt(1) != \u0027 \u0027 \u0026\u0026 comment.charAt(1) != \u0027#\u0027\u0060 appears character-identically in 3 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/visitor/CKOutputVisitor.java, core/src/main/java/com/alibaba/druid/sql/dialect/hologres/visitor/HologresOutputVisitor.java, core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.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":"core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/visitor/CKOutputVisitor.java"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"01d21c7b4e11aed84b78dd759a21da57ad2f4fd3b01de5f602b1da3839c32b26"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060comment.startsWith(\u0022--\u0022) \u0026\u0026 comment.length() \u003E 2 \u0026\u0026 comment.charAt(2) != \u0027 \u0027 \u0026\u0026 comment.charAt(2) != \u0027-\u0027\u0060 appears character-identically in 3 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/visitor/CKOutputVisitor.java, core/src/main/java/com/alibaba/druid/sql/dialect/hologres/visitor/HologresOutputVisitor.java, core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.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":"core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/visitor/CKOutputVisitor.java"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"0af4583704600d09b58379a3bfca4e23152fbeb90b71021c91d22746ebc081bb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060commentHandler != null \u0026\u0026 commentHandler.handle(lastToken, stringVal)\u0060 appears character-identically in 3 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveLexer.java, core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java, core/src/main/java/com/alibaba/druid/sql/parser/Lexer.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":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveLexer.java"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"dba235c43f6cb4fc442e25d8d0c2318890b4c95514d038434739623db6d89b6d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060conditionSql == null || conditionSql.length() == 0\u0060 appears character-identically in 3 files \u2014 core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDeleteStatement.java, core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java, core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLUpdateStatement.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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDeleteStatement.java"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"f75c8920471dc598c553ec14cd60835cc33d99b7a5824c87f5636f91519b3c70"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060config.isVariantCheck() \u0026\u0026 config.getDenyVariants().contains(name)\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/wall/WallVisitor.java, core/src/main/java/com/alibaba/druid/wall/spi/OracleWallVisitor.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":"core/src/main/java/com/alibaba/druid/wall/WallVisitor.java"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"652b75f0449961b30598c52b1df647436be76c136454053ba15c5516aca8a0ba"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060connectionLogger.isDebugEnabled() \u0026\u0026 super.isConnectionLogEnabled()\u0060 appears character-identically in 4 files \u2014 core/src/main/java/com/alibaba/druid/filter/logging/CommonsLogFilter.java, core/src/main/java/com/alibaba/druid/filter/logging/Log4j2Filter.java, core/src/main/java/com/alibaba/druid/filter/logging/Log4jFilter.java, core/src/main/java/com/alibaba/druid/filter/logging/Slf4jLogFilter.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":"core/src/main/java/com/alibaba/druid/filter/logging/CommonsLogFilter.java"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d2fce2a6b6bb9120ee19f7ad22c0d8d48a85952d7adfec3f15d1c75e05910f3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060connectionLogger.isErrorEnabled() \u0026\u0026 super.isConnectionLogErrorEnabled()\u0060 appears character-identically in 3 files \u2014 core/src/main/java/com/alibaba/druid/filter/logging/CommonsLogFilter.java, core/src/main/java/com/alibaba/druid/filter/logging/Log4j2Filter.java, core/src/main/java/com/alibaba/druid/filter/logging/Slf4jLogFilter.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":"core/src/main/java/com/alibaba/druid/filter/logging/CommonsLogFilter.java"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd1d7204975f40b06ead7b39da427875324e36e562112b0f6df2c2b3da5aa363"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060connectionProperties == null || connectionProperties.trim().length() == 0\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/pool/DruidAbstractDataSource.java, core/src/main/java/com/alibaba/druid/pool/ha/HighAvailableDataSource.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":"core/src/main/java/com/alibaba/druid/pool/DruidAbstractDataSource.java"},"region":{"startLine":1210}}}],"partialFingerprints":{"codehealthFindingId/v1":"4823b85d9d2ffab9ea034e1d575d9046dc0ebd80788f4e06eed0210af0ab655e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060contextPath != null \u0026\u0026 requestURI.startsWith(contextPath)\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/support/http/WebStatFilter.java, core/src/main/java/com/alibaba/druid/support/jakarta/WebStatFilter.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":"core/src/main/java/com/alibaba/druid/support/http/WebStatFilter.java"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"188e4482b7eebe4241252db6b7fc033d1b8ec3f5b891514d5c7a4c621cebaa42"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060contextPath.equals(\u0022\u0022) || contextPath.equals(\u0022/\u0022)\u0060 appears character-identically in 4 files \u2014 core/src/main/java/com/alibaba/druid/support/http/ResourceServlet.java, core/src/main/java/com/alibaba/druid/support/http/StatViewServlet.java, core/src/main/java/com/alibaba/druid/support/jakarta/ResourceServlet.java, core/src/main/java/com/alibaba/druid/support/jakarta/StatViewServlet.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":"core/src/main/java/com/alibaba/druid/support/http/ResourceServlet.java"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b593584f422a838e5cc14db01e98f9ca9ee213ef905d8dc08acbc0bf00c8a7c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060createStmt != null \u0026\u0026 createStmt.getTableElementList().size() \u003E 0\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java, core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.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":"core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java"},"region":{"startLine":1136}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b2aa5ae6aea4e6e2af020cddeb79bd6430fc64b9a907e423fefc283a09f2efb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060dataSourceLogger.isDebugEnabled() \u0026\u0026 super.isDataSourceLogEnabled()\u0060 appears character-identically in 4 files \u2014 core/src/main/java/com/alibaba/druid/filter/logging/CommonsLogFilter.java, core/src/main/java/com/alibaba/druid/filter/logging/Log4j2Filter.java, core/src/main/java/com/alibaba/druid/filter/logging/Log4jFilter.java, core/src/main/java/com/alibaba/druid/filter/logging/Slf4jLogFilter.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":"core/src/main/java/com/alibaba/druid/filter/logging/CommonsLogFilter.java"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"db24d459c3b1c3bc717b5a2e441f8eab767b5d7ed7c25f4b0607c6615efe6554"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060dataSourceMap == null || dataSourceMap.isEmpty()\u0060 appears character-identically in 3 files \u2014 core/src/main/java/com/alibaba/druid/pool/ha/HighAvailableDataSource.java, core/src/main/java/com/alibaba/druid/pool/ha/selector/NamedDataSourceSelector.java, core/src/main/java/com/alibaba/druid/pool/ha/selector/RandomDataSourceSelector.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":"core/src/main/java/com/alibaba/druid/pool/ha/HighAvailableDataSource.java"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e96074372dd145b26936b489754f745fd18c373e077bf108c201b7536f0418a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060dataType instanceof OracleFunctionDataType \u0026\u0026 ((OracleFunctionDataType) dataType).getBlock() != null\u0060 appears character-identically in 3 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java, core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java, core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":2681}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1c981e0f432d255a4c319f5437ba4dd825555927acdd1dc2bf3ad3a4e7d79ad"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060dataType instanceof OracleProcedureDataType \u0026\u0026 ((OracleProcedureDataType) dataType).getBlock() != null\u0060 appears character-identically in 3 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java, core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java, core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":2685}}}],"partialFingerprints":{"codehealthFindingId/v1":"607fc6d26736fe4cb5a849bae97fe44ff9ae8c2d1fbdf105c28ac95fcabd2b8e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060distinctOn != null \u0026\u0026 distinctOn.size() \u003E 0\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java, core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ea8f4829d3f37d7b5649f0c2088ef17a9ae4511b4ffa75be5a6f8f6759c562f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060distinctOn.size() == 1 \u0026\u0026 distinctOn.get(0) instanceof SQLListExpr\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java, core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"e60baedc039f2ed1ef59c96c4d3adade289953491692d4b35bd14f921fb4b4cb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060excludesPattern == null || requestURI == null\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/support/http/WebStatFilter.java, core/src/main/java/com/alibaba/druid/support/jakarta/WebStatFilter.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":"core/src/main/java/com/alibaba/druid/support/http/WebStatFilter.java"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d5e3528dc92bf503b5b01963c38ac2daeec6900ff7f3446aeb07de91303090b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060exclusions != null \u0026\u0026 exclusions.trim().length() != 0\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/support/http/WebStatFilter.java, core/src/main/java/com/alibaba/druid/support/jakarta/WebStatFilter.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":"core/src/main/java/com/alibaba/druid/support/http/WebStatFilter.java"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"d86c9bef7386b0991cbad98d855f3dbdd6a3ae9dbf9eaeaa66c9e1c8807c1b85"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060executor == null || executor.isShutdown()\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/pool/ha/node/FileNodeListener.java, core/src/main/java/com/alibaba/druid/pool/ha/node/PoolUpdater.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":"core/src/main/java/com/alibaba/druid/pool/ha/node/FileNodeListener.java"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"a108fce31a45396ce0047a15ab042b6755124c8c65bc7fc3690b07f7faa89bea"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060expr instanceof SQLInListExpr || expr instanceof SQLNotExpr || expr instanceof SQLBinaryOpExprGroup || expr instanceof SQLQueryExpr\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/odps/visitor/OdpsOutputVisitor.java, core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.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":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/visitor/OdpsOutputVisitor.java"},"region":{"startLine":1156}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9c7dd3432820a99704071a00367d13dfa8fb91deeecb0301187247ed4a3fb83"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060expr instanceof SQLMethodInvokeExpr \u0026\u0026 SQLUtils.nameEquals(((SQLMethodInvokeExpr) expr).getMethodName(), columnName.getSimpleName())\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLUnique.java, core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlTableIndex.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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLUnique.java"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"57051638c86ddb78379b90b4f0a1aa0db5890149e7d4437af3acc770631be9a0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060expr instanceof SQLName \u0026\u0026 SQLUtils.nameEquals((SQLName) expr, columnName)\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLUnique.java, core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlTableIndex.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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLUnique.java"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"efaa9f90c26e32183038871dec6bb4c926012169c5b9ea10c71f071994fd5b98"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060expr instanceof SQLPropertyExpr \u0026\u0026 ((SQLPropertyExpr) expr).getName().equals(\u0022*\u0022)\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java, core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleRowNumToLimit.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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java"},"region":{"startLine":1648}}}],"partialFingerprints":{"codehealthFindingId/v1":"8042972a316ecd2cfb989f90a820a23caa3fbdf150cc0bba7523aabf4010022f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060first == \u0027.\u0027 || (first \u003E= \u00270\u0027 \u0026\u0026 first \u003C= \u00279\u0027)\u0060 appears character-identically in 3 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSelectParser.java, core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectParser.java"},"region":{"startLine":743}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a85f05ce1e98be273ac79b7da8abd7a922bb25395fd4c8f5089a460a41e5ee3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hashCode64 == FnvHash.Constants.STRUCT \u0026\u0026 acceptLPAREN\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryExprParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsExprParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryExprParser.java"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7b5b01b7f5d2ae7d9786f8bf2128ace2b337ad440ab267d5dd52f2188211c56"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hash_lower == FnvHash.Constants.CURRENT_USER \u0026\u0026 isEnabled(SQLParserFeature.EnableCurrentUserExpr)\u0060 appears character-identically in 3 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveExprParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/spark/parser/SparkExprParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveExprParser.java"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"06fa87c83ffc0fcdf246e1c768b423a1d9a1b5a67a02533d3996a00eb8bb1530"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060ident.equalsIgnoreCase(\u0022b\u0022) \u0026\u0026 lexer.token() == Token.LITERAL_CHARS\u0060 appears character-identically in 3 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmExprParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarExprParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGExprParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmExprParser.java"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"96f23ff9987b93e72f6a2a35038c9956cd311eba98e0b09b0b74fe200f47967c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060ident.length() \u003E 3 \u0026\u0026 ident.charAt(0) == \u0027\u0060\u0027 \u0026\u0026 ident.charAt(ident.length() - 1) == \u0027\u0060\u0027 \u0026\u0026 ident.indexOf(\u0027.\u0027) != -1\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryExprParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveExprParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryExprParser.java"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"be3fd68114966c4cf15c3f881aba395ce71f874d67f1707d9991f31ae4a9e5c1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060indexDefinition.getType() != null \u0026\u0026 indexDefinition.getType().equalsIgnoreCase(\u0022UNIQUE\u0022)\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableAddIndex.java, core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableAlterIndex.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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLAlterTableAddIndex.java"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b9dee8490f47263d083c60e9e4fbda151ff2b78e1fcbc90c12d754f90f2cf4a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060indexOptions.getKeyBlockSize() != null || indexOptions.getParserName() != null || indexOptions.getAlgorithm() != null || indexOptions.getLoc\u2026\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java, core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":2324}}}],"partialFingerprints":{"codehealthFindingId/v1":"bebabf4521b1ac75a3274a465fbf5b34c27a8845b1f6cf2795e0eea7cafa7fa8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isDeny(varName) \u0026\u0026 (WallVisitorUtils.isWhereOrHaving(x) || WallVisitorUtils.checkSqlExpr(x))\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/wall/spi/MySqlWallVisitor.java, core/src/main/java/com/alibaba/druid/wall/spi/SQLServerWallVisitor.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":"core/src/main/java/com/alibaba/druid/wall/spi/MySqlWallVisitor.java"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d63c6f1b8978ab86c51caa5c6895c02920677dbf44c43f62a141060933c65ce"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isEnabled(SQLParserFeature.IgnoreNameQuotes) \u0026\u0026 as.length() \u003E 1\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java, core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java"},"region":{"startLine":859}}}],"partialFingerprints":{"codehealthFindingId/v1":"18cec6dc5c02d413223640755d9180d54ff6b6585959a85c94666f76707ddeed"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isEnabled(VisitorFeature.OutputSkipMultilineComment) \u0026\u0026 comment.startsWith(\u0022/*\u0022)\u0060 appears character-identically in 3 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/visitor/CKOutputVisitor.java, core/src/main/java/com/alibaba/druid/sql/dialect/hologres/visitor/HologresOutputVisitor.java, core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.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":"core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/visitor/CKOutputVisitor.java"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb93da250c6a5f04796e1b90d58aa91deeade62579ab2f604a0aa8ea978f2294"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isEnabled(VisitorFeature.OutputSkipSingleLineComment) \u0026\u0026 (comment.startsWith(\u0022-\u0022) || comment.startsWith(\u0022#\u0022))\u0060 appears character-identically in 3 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/visitor/CKOutputVisitor.java, core/src/main/java/com/alibaba/druid/sql/dialect/hologres/visitor/HologresOutputVisitor.java, core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.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":"core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/visitor/CKOutputVisitor.java"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3961cc3c8f35b8e7dbb602eb802feb90a74f6aa323732dee132a86915f3d1cb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isPrettyFormat() \u0026\u0026 x.hasBeforeComment()\u0060 appears character-identically in 5 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/odps/visitor/OdpsOutputVisitor.java, core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java, core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java, core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.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":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/visitor/OdpsOutputVisitor.java"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5176215e1419ba75c38086f1552d2edd33a45e656c416fc1becc7a33dda0dfb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060left instanceof SQLName \u0026\u0026 right instanceof SQLName\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLBinaryOpExpr.java, core/src/main/java/com/alibaba/druid/support/opds/udf/SqlCodeStat.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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLBinaryOpExpr.java"},"region":{"startLine":843}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b54f4bc6da971f1f631a0f47b384a8b0c040129e26afbaee21a099be90ec566"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lexer.hasComment() \u0026\u0026 lexer.isKeepComments()\u0060 appears character-identically in 16 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/parser/CKSelectParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmSelectParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/parser/CKSelectParser.java"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"934abf9dc2c3bc4ed72d6f176c34aa0c53bb7f71b4b1079e3ac1db88e4d088c6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lexer.identifierEquals(\u0022FIELDS\u0022) || lexer.identifierEquals(\u0022COLUMNS\u0022)\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectIntoParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectIntoParser.java"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"40d2409e49dab9b07d0b6c7cc734cea9735bae60594f2c2322220a1f74283a6e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lexer.identifierEquals(\u0022FULL\u0022) || lexer.token() == Token.FULL\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java, core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java"},"region":{"startLine":2247}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0ece3265a0a08fce9f7a3cd4d93f29d66c8bb02d1f55a16acb128a934f6ec9b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lexer.identifierEquals(\u0022HASH\u0022) || lexer.identifierEquals(\u0022UNI_HASH\u0022)\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarCreateTableParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGCreateTableParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarCreateTableParser.java"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c031e3c2d3367ab46238e7fb3f207562d570dbf91b5662f16b57b4a0e9c6f98"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lexer.identifierEquals(\u0022TRANSACTION\u0022) || lexer.identifierEquals(\u0022TRAN\u0022)\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryStatementParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerStatementParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryStatementParser.java"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2e1286fac84efa6490cbdfa9e8f0589b241d468c82d783e381b45c2b9c50c7c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lexer.identifierEquals(FnvHash.Constants.CASCADE) || lexer.token == CASCADE\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java, core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":5168}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd57007f012697433de7f2dc44737a97d90a7bae9fa3707eb7587db28aa28dab"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lexer.identifierEquals(FnvHash.Constants.COLLATE) \u0026\u0026 lexer.stringVal().charAt(0) != \u0027\u0060\u0027\u0060 appears character-identically in 3 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveExprParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGExprParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveExprParser.java"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"04a0b1ae90da34ff305154efcf4e9e632f4620782e363d93b931651289d7b17f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lexer.identifierEquals(FnvHash.Constants.DATABASES) || lexer.identifierEquals(Constants.SCHEMAS)\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveStatementParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/presto/parser/PrestoStatementParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveStatementParser.java"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c9d8d39fdf6e8d7d6f18c37a0719d5caedb74a5a975bbb4460729dc2c89b939"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lexer.identifierEquals(FnvHash.Constants.JSON_SET) || lexer.identifierEquals(FnvHash.Constants.JSONB_SET)\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ce64bbe3b54fe31518d99fe9e734ef1480e22b7bfc8bcc169ed5277b82c025f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lexer.identifierEquals(FnvHash.Constants.NO_WAIT) || lexer.identifierEquals(FnvHash.Constants.NOWAIT)\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectParser.java, core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectParser.java"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"66d48505ecbc7d24898c47c1020260bfb43d2ebdf3c69873c5d365d8fc33d380"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lexer.identifierEquals(FnvHash.Constants.TABLESAMPLE) \u0026\u0026 tableSource instanceof SQLExprTableSource\u0060 appears character-identically in 3 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSelectParser.java, core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectParser.java"},"region":{"startLine":684}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a54ab44a6fe6d0cff6ba276408cc72d046b7fd6e591e70932a24a0ff8da39a3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lexer.identifierEquals(FnvHash.Constants.USING) || lexer.token() == Token.USING\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveCreateTableParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/impala/parser/ImpalaCreateTableParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveCreateTableParser.java"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"699d37abe2f2579842f3065b8bf1fc878374de5463247e3bc6c1cba6d294ffe6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lexer.isKeepComments() \u0026\u0026 lexer.hasComment()\u0060 appears character-identically in 13 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/athena/parser/AthenaCreateTableParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/blink/parser/BlinkCreateTableParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveCreateTableParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/impala/parser/ImpalaCreateTableParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/athena/parser/AthenaCreateTableParser.java"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f3b1131e5946c245e790bf76817012472f65613a8c17670e2208aa1ea51aa6a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lexer.isKeepComments() \u0026\u0026 lexer.hasComment() \u0026\u0026 column != null\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/blink/parser/BlinkCreateTableParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/blink/parser/BlinkCreateTableParser.java"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b3a9179c10674fd89158d6a8779fdcea59e27ab2b65646721c3252f44b2472b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lexer.nextIfIdentifier(\u0022TEMPORARY\u0022) || lexer.nextIfIdentifier(\u0022TEMP\u0022)\u0060 appears character-identically in 4 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryCreateTableParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/redshift/parser/RedshiftCreateTableParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeCreateTableParser.java, core/src/main/java/com/alibaba/druid/sql/parser/SQLCreateTableParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryCreateTableParser.java"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"34f7556997cd4946b636d777bb22341c86ff5b4e27d5b019f3bbf74ac220635a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lexer.token != Token.COMMA \u0026\u0026 lexer.token != Token.RPAREN\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java, core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":3259}}}],"partialFingerprints":{"codehealthFindingId/v1":"3113d93898386dc0f6e821f249b2524f0ee6163cb7a2916388d64e3430a70e47"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lexer.token == Token.IDENTIFIER || lexer.token == Token.LITERAL_ALIAS || lexer.token == Token.LITERAL_CHARS\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java, core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":954}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4a8669dac79e63e6998577a19a674b1bbffb7dadd9df7a40058966d91ff37f4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lexer.token == Token.PARTITION || lexer.identifierEquals(\u0022PARTITION\u0022)\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java, core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":2668}}}],"partialFingerprints":{"codehealthFindingId/v1":"dafc5abeaa19c7abdb7451f02251d2d290079b55e3bb6bf0adb81a92a4f24bda"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lexer.token == Token.USING || lexer.identifierEquals(FnvHash.Constants.USING)\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java, core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":1937}}}],"partialFingerprints":{"codehealthFindingId/v1":"8899cda13ce82af2a8d10a697032a1a385ea7db330eed79a9060109bad35a99c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lexer.token() != Token.BEGIN \u0026\u0026 lexer.token() != Token.RPAREN\u0060 appears character-identically in 3 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarSelectParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSelectParser.java, core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarSelectParser.java"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"3db7eeb4089fc1b95fe686ebb7358a223158f7f4678189e557f9ed3eab9cf4c7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lexer.token() != Token.IDENTIFIER \u0026\u0026 lexer.token() != Token.LITERAL_CHARS\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerExprParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java"},"region":{"startLine":1443}}}],"partialFingerprints":{"codehealthFindingId/v1":"7492d6ec077ae0687945554cd9d451c5d58d4db22003308f5bff99c66f249e06"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lexer.token() != Token.LITERAL_ALIAS \u0026\u0026 lexer.token() != Token.LITERAL_CHARS \u0026\u0026 lexer.token() != Token.WITH\u0060 appears character-identically in 3 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmExprParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarExprParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGExprParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmExprParser.java"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"afba223a55fc8696132e62baf49823476852fa00e13e0a60945e93692724f91d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lexer.token() != Token.LITERAL_CHARS \u0026\u0026 lexer.token() != Token.LITERAL_INT \u0026\u0026 lexer.token() != Token.VARIANT\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/parser/GaussDbExprParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGExprParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/gaussdb/parser/GaussDbExprParser.java"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddf2900916a61dd56a7cb01dda7474147e6ab90c50f68434071bd4f10b52ced8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lexer.token() != Token.LITERAL_INT \u0026\u0026 lexer.token() != Token.VARIANT\u0060 appears character-identically in 3 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmExprParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarExprParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmExprParser.java"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"badcd0402d7f49a13954108f657d1e2e2b2bf56fb711a34a3232a47d8d8dc6ec"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lexer.token() != Token.SEMI \u0026\u0026 lexer.token() != Token.EOF\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/sqlite/parser/SQLiteStatementParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerStatementParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/sqlite/parser/SQLiteStatementParser.java"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a8d7e1087dcff2395397be9841dc53efe9784dc7a1067b158749c69d1085fde"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lexer.token() == Token.AS \u0026\u0026 tableSource instanceof SQLExprTableSource\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarSelectParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSelectParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarSelectParser.java"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"e79c6f0ce97eb4cc044353e056b3e73adc34c986686eca9c0bfda96265c009be"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lexer.token() == Token.CASCADE || lexer.identifierEquals(FnvHash.Constants.CASCADE)\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":7630}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb6dfdc0a97f724d54835a03e5751fb532722402d20d9f0505b2fdd048bf412f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lexer.token() == Token.COLONEQ || lexer.token() == Token.DEFAULT\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java"},"region":{"startLine":2242}}}],"partialFingerprints":{"codehealthFindingId/v1":"3db38522ab33a2c6fdb2199d50116e290cbdf2b7b86bcf4a5866b14a4433cfe6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lexer.token() == Token.COMMA || lexer.token() == Token.RPAREN\u0060 appears character-identically in 3 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmExprParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarExprParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGExprParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmExprParser.java"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d6fc3fe58c288a0a462ef6daed5639b62baedd813b3b82982595d96ad3b6f6d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lexer.token() == Token.COMMA || lexer.token() == Token.SEMI\u0060 appears character-identically in 3 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarSelectParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSelectParser.java, core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarSelectParser.java"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"39e7dd9c69cb4e44965b12a2915f7084dcbb10c5b13d308891ab6f7eb9bf6b94"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lexer.token() == Token.DATABASE || lexer.token() == Token.SCHEMA\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java, core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":2883}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3269109bf5e6c0ebb8c447d8a34867e9f84895018cfb28ec55c9d25fd9ef821"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lexer.token() == Token.ESCAPE || lexer.identifierEquals(FnvHash.Constants.ESCAPED)\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/spark/parser/SparkExprParser.java, core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/spark/parser/SparkExprParser.java"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e6c41d779964625a0b83f9b92b95b3d65e85eb4b59183e77686ad78a82f4002"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lexer.token() == Token.FROM || lexer.token() == Token.IN\u0060 appears character-identically in 4 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveStatementParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsStatementParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/presto/parser/PrestoStatementParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveStatementParser.java"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"c52d9fdc81f96c226b4fbb425f50c9feaeb17ea1cd37ebc886d8a9a4a3fc392a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lexer.token() == Token.IDENTIFIER || lexer.token() == Token.CURSOR\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java"},"region":{"startLine":1960}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc99591c6bf1b304bb454a13286edee2a46056d877398b501c6e846714f35d14"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lexer.token() == Token.IDENTIFIER || lexer.token() == Token.DEFAULT\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/parser/CKCreateTableParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/parser/CKStatementParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/parser/CKCreateTableParser.java"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"054cd8047a2dbef42d5004503ded33ce0b681597afe706f5d5e4c54fcaa94921"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lexer.token() == Token.IDENTIFIER || lexer.token() == Token.LITERAL_ALIAS\u0060 appears character-identically in 3 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleSelectParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerStatementParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java"},"region":{"startLine":1504}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e7f2c763f5039b053da7637fee91d61a268baf2144afa6bdda5930a019920e6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lexer.token() == Token.IDENTIFIER || lexer.token() == Token.VARIANT\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsStatementParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerStatementParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsStatementParser.java"},"region":{"startLine":835}}}],"partialFingerprints":{"codehealthFindingId/v1":"e67b8c8c42e0c3fdaba54480bc495ae03961b7f02a7839b713612644a19f01ab"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lexer.token() == Token.IF || lexer.identifierEquals(\u0022IF\u0022)\u0060 appears character-identically in 4 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/blink/parser/BlinkCreateTableParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsCreateTableParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/blink/parser/BlinkCreateTableParser.java"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"e07826f3bda4a720daf47306e074f7fbef1e1578a1669eaff63394f27b39c64f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lexer.token() == Token.LBRACE || lexer.identifierEquals(\u0022CALL\u0022)\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java"},"region":{"startLine":8451}}}],"partialFingerprints":{"codehealthFindingId/v1":"0186276362ad6c9b3bd7ef3ede66000e0e7708253753423c8aa33679fa36cb2e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lexer.token() == Token.LITERAL_ALIAS || lexer.token() == Token.LITERAL_CHARS\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java"},"region":{"startLine":2606}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c6b31c0878998744a4e15615ea0f4918b8381f4f269ce6c252f7f1e50b3e218"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lexer.token() == Token.LITERAL_CHARS || lexer.token() == Token.LITERAL_ALIAS\u0060 appears character-identically in 6 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryExprParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveExprParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsExprParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/parser/BigQueryExprParser.java"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"22ff27ead4afdb6952e7fb335cb860b1ab8711b2a5e0cd8c71c528efb3629966"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lexer.token() == Token.LITERAL_INT || lexer.token() == Token.LITERAL_FLOAT\u0060 appears character-identically in 6 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveExprParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsExprParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSelectParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveExprParser.java"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"a747bf017f1dcfb99d6f1341baf5db41c10c1f97b401d68dcded537702962b3d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lexer.token() == Token.LITERAL_INT || lexer.token() == Token.QUES\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java, core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java"},"region":{"startLine":2748}}}],"partialFingerprints":{"codehealthFindingId/v1":"0258cb59f63af5f2f52f7ab94949976ab30e10a1d4cbbfd4342a02bbb74a7b4a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lexer.token() == Token.ROW || lexer.identifierEquals(FnvHash.Constants.ROW)\u0060 appears character-identically in 4 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/athena/parser/AthenaCreateTableParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveCreateTableParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveStatementParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/impala/parser/ImpalaCreateTableParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/athena/parser/AthenaCreateTableParser.java"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a93e92f9db4c1b918527829262da4b5b115778494a21496103430bfe8bd180a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lexer.token() == Token.ROW || lexer.token() == Token.ROWS\u0060 appears character-identically in 3 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmSelectParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/oscar/parser/OscarSelectParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSelectParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/parser/DmSelectParser.java"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"022178f52440eca8f408f879d1093ee23e146173411a32f532d503cc03b90a5c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lexer.token() == Token.SELECT || lexer.token() == Token.AS\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveCreateTableParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/impala/parser/ImpalaCreateTableParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveCreateTableParser.java"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e95b361d0eb9941546cd84560700be2f4e35d29432a547e61f29f246a0f6a63"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lexer.token() == Token.SELECT || lexer.token() == Token.LPAREN\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveCreateTableParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/sqlite/parser/SQLiteStatementParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveCreateTableParser.java"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa7d074440ba84724ffd681ed17ce0323150828feb2ce4490174e12730887003"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lexer.token() == Token.SELECT || lexer.token() == Token.WITH\u0060 appears character-identically in 3 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleSelectParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeSelectParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectParser.java"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e77d327939b706aaad31cd9191f7ae4ef45da4f401e064392b08944f00ac29f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lexer.token() == Token.SEMI || lexer.token() == Token.EOF\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsCreateTableParser.java, core/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsCreateTableParser.java"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"07df003720c47100464289e30ccdbd42c72a4c4cf38e14ce985ff45db136e180"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lexer.token() == Token.SET \u0026\u0026 dbType == DbType.odps\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsExprParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsStatementParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsExprParser.java"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"a102051486aec2eb2c5b3d7a1f16689a840e26f4044eef8ed01e98bf69193c4f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lexer.token() == Token.SUB \u0026\u0026 table instanceof SQLIdentifierExpr\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveStatementParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/presto/parser/PrestoStatementParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveStatementParser.java"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"623129f07dc9f21e29bb81d30ff5a7072a42abcb28c550329e814ad885fcc7e8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lexer.token() == Token.USING || lexer.identifierEquals(FnvHash.Constants.USING)\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/odps/parser/OdpsExprParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b4114bc1f432c3929a511ea02608281e1965e0edb616863f113286a356f12c0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lexer.token() == Token.VALUES || lexer.identifierEquals(\u0022VALUE\u0022)\u0060 appears character-identically in 3 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/h2/parser/H2StatementParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/sqlite/parser/SQLiteStatementParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/h2/parser/H2StatementParser.java"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2246bb6d6bfaee336292b8089cf50203d4202c8374de9437d0bf1679650773c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060line \u002B 1 == lexer.line \u0026\u0026 lexer.hasComment() \u0026\u0026 lexer.getComments().get(0).startsWith(\u0022--\u0022)\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java, core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.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":"core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.java"},"region":{"startLine":3314}}}],"partialFingerprints":{"codehealthFindingId/v1":"99d08b23bdfec9d11ce0b929e4955396e8e2a474c00623e980e484e3534038bc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060name.startsWith(\u0022v$\u0022) || name.startsWith(\u0022v_$\u0022)\u0060 appears character-identically in 3 files \u2014 core/src/main/java/com/alibaba/druid/wall/spi/DB2WallVisitor.java, core/src/main/java/com/alibaba/druid/wall/spi/OracleWallVisitor.java, core/src/main/java/com/alibaba/druid/wall/spi/PGWallVisitor.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":"core/src/main/java/com/alibaba/druid/wall/spi/DB2WallVisitor.java"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"b12afd42f685541764e4a02c5d31e75b10d188af4f28afa3cfa1909b438e2c10"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060name1 != null \u0026\u0026 name1.nameHashCode64() == nameHashCode\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateTableStatement.java, core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlCreateTableStatement.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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCreateTableStatement.java"},"region":{"startLine":1174}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a47ee2399752d43e016558fb9ce42b1225cf5d670da5d0873b0bd8efe1d7d4e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060nameNash == FnvHash.Constants.CHAR || nameNash == FnvHash.Constants.JSON\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/ast/SQLDataTypeImpl.java, core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCharacterDataType.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":"core/src/main/java/com/alibaba/druid/sql/ast/SQLDataTypeImpl.java"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"74e96496af240c5b03087026edf692120271b5f0644a2971f147816b24196d3a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060nameNash == FnvHash.Constants.NVARCHAR || nameNash == FnvHash.Constants.NVARCHAR2\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/ast/SQLDataTypeImpl.java, core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCharacterDataType.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":"core/src/main/java/com/alibaba/druid/sql/ast/SQLDataTypeImpl.java"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"60a05e3f6897c1819b52a129e7847783d9fab88ca5f0e85846d903df85a2e468"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060nameNash == FnvHash.Constants.VARCHAR || nameNash == FnvHash.Constants.VARCHAR2 || nameNash == FnvHash.Constants.STRING\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/ast/SQLDataTypeImpl.java, core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLCharacterDataType.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":"core/src/main/java/com/alibaba/druid/sql/ast/SQLDataTypeImpl.java"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a673f0e9bd5dcbb56f036b55d643abe7889d08f3a1dcb8623870848d00c5d94"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060onConflictDoNothing || (onConflictTarget != null \u0026\u0026 onConflictTarget.size() \u003E 0) || (onConflictUpdateSetItems != null \u0026\u0026 onConflictUpdateSet\u2026\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java, core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb3b0a7cf29ea9e0998ea8bd8f7026c1f73086205d79bd802ffd4af3a687a1aa"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060onConflictTarget != null \u0026\u0026 onConflictTarget.size() \u003E 0\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java, core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"e30e6913c40c983d8af8a567e851efa3a6ae53e785f9bbb576738fcd966c547e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060onConflictUpdateSetItems != null \u0026\u0026 onConflictUpdateSetItems.size() \u003E 0\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java, core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"57e19441b05a7b1bca48ce27b9883b9a498f785d856ca121ed33a115a081a29b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060operator == SQLBinaryOperator.BooleanAnd || operator == SQLBinaryOperator.BooleanOr\u0060 appears character-identically in 5 files \u2014 core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDeleteStatement.java, core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java, core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLUpdateStatement.java, core/src/main/java/com/alibaba/druid/sql/parser/SQLExprParser.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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLDeleteStatement.java"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dc4b9e951d7858966b576bc9252153135d1c02510902b9312753d57e3e54f88"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060p0 instanceof SQLIntegerExpr \u0026\u0026 ((SQLIntegerExpr) p0).getNumber() instanceof Integer\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/visitor/functions/Greatest.java, core/src/main/java/com/alibaba/druid/sql/visitor/functions/Least.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":"core/src/main/java/com/alibaba/druid/sql/visitor/functions/Greatest.java"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"b827355325fe9b159da452e114aa7d72e8e122aeab3311a17aba85c92ce7d173"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060pageCountParam != null \u0026\u0026 pageCountParam.length() \u003E 0\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/stat/DruidStatService.java, druid-admin/src/main/java/com/alibaba/druid/admin/service/MonitorStatService.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":"core/src/main/java/com/alibaba/druid/stat/DruidStatService.java"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"e49d2cc2869c3c0a90cf685668b1892cbeb3195fdda422cd6cc9faf0f6f2489b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060pageParam != null \u0026\u0026 pageParam.length() != 0\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/stat/DruidStatService.java, druid-admin/src/main/java/com/alibaba/druid/admin/service/MonitorStatService.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":"core/src/main/java/com/alibaba/druid/stat/DruidStatService.java"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a22c7c7c4a9f3d0baf64df97d5c9408a7920b6c6828a2fe1aaff0c0c24df95c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060param != null \u0026\u0026 param.trim().length() != 0\u0060 appears character-identically in 8 files \u2014 core/src/main/java/com/alibaba/druid/support/http/ResourceServlet.java, core/src/main/java/com/alibaba/druid/support/http/StatViewFilter.java, core/src/main/java/com/alibaba/druid/support/http/StatViewServlet.java, core/src/main/java/com/alibaba/druid/support/http/WebStatFilter.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":"core/src/main/java/com/alibaba/druid/support/http/ResourceServlet.java"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f0c12a326f66ce6b05052b0383df80dc7d7ba4a541e474e3b7adf894e90d1b2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060param instanceof SQLIntegerExpr \u0026\u0026 ((SQLIntegerExpr) param).getNumber() instanceof Integer\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/visitor/functions/Greatest.java, core/src/main/java/com/alibaba/druid/sql/visitor/functions/Least.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":"core/src/main/java/com/alibaba/druid/sql/visitor/functions/Greatest.java"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"814580f15f1e07204b09219be3da42c6248c5051bffa908b7cdfd992f573981d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060param0Value == null || param1Value == null\u0060 appears character-identically in 6 files \u2014 core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java, core/src/main/java/com/alibaba/druid/sql/visitor/functions/Instr.java, core/src/main/java/com/alibaba/druid/sql/visitor/functions/Left.java, core/src/main/java/com/alibaba/druid/sql/visitor/functions/Locate.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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1a9b24ee75c9a2cb5e3cb1e7ab389deac026ac8fe46cf3bce9bdd02b92bd2ab"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060param0Value == null || param1Value == null || param2Value == null\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/visitor/functions/Lpad.java, core/src/main/java/com/alibaba/druid/sql/visitor/functions/Rpad.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":"core/src/main/java/com/alibaba/druid/sql/visitor/functions/Lpad.java"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"79dd4dffdac42933af6083d8ce297966f2ec7db1f2e24475a4649a1beb1928d1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060parametersStr == null || parametersStr.length() == 0\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/stat/DruidStatService.java, druid-admin/src/main/java/com/alibaba/druid/admin/service/MonitorStatService.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":"core/src/main/java/com/alibaba/druid/stat/DruidStatService.java"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4eca4e796339bb1ae7e8409ed4483132b1d2085b902dc14de41846bfad00717"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060principalCookieName != null \u0026\u0026 httpRequest.getCookies() != null\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/support/http/AbstractWebStatImpl.java, core/src/main/java/com/alibaba/druid/support/jakarta/AbstractWebStatImpl.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":"core/src/main/java/com/alibaba/druid/support/http/AbstractWebStatImpl.java"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"be7ac1f66ea979993f2a546c7440b2b993bfbc19eccc24953e5666108634e18d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060printStmtSeperator \u0026\u0026 !preStmt.isAfterSemi()\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/SQLUtils.java, core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.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":"core/src/main/java/com/alibaba/druid/sql/SQLUtils.java"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"bde823ddb7a0764c1af69d47324680dfd2ee11b831181558289c6e72044b90ab"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060property != null \u0026\u0026 property.length() \u003E 0\u0060 appears character-identically in 6 files \u2014 core/src/main/java/com/alibaba/druid/pool/DruidDataSourceStatLoggerImpl.java, core/src/main/java/com/alibaba/druid/proxy/DruidDriver.java, core/src/main/java/com/alibaba/druid/stat/JdbcDataSourceStat.java, core/src/main/java/com/alibaba/druid/util/DruidDataSourceUtils.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":"core/src/main/java/com/alibaba/druid/pool/DruidDataSourceStatLoggerImpl.java"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"33ed0754a5550e38b6137d73b8de3a838d70a1c10fb9bcd4ec332a8aa4b4e4b9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060queryBlock.getSelectList().size() == 1 \u0026\u0026 queryBlock.getSelectList().get(0).getExpr() instanceof SQLAllColumnExpr\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/PagerUtils.java, core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.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":"core/src/main/java/com/alibaba/druid/sql/PagerUtils.java"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3a0b3540fdf5bff866e898dc25a05d19512f2740b6b2174fdb733a6cd04d289"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060remoteAddress != null \u0026\u0026 remoteAddress.indexOf(\u0027:\u0027) != -1\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/support/http/ResourceServlet.java, core/src/main/java/com/alibaba/druid/support/jakarta/ResourceServlet.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":"core/src/main/java/com/alibaba/druid/support/http/ResourceServlet.java"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"9da5c463d139664cae794ade77fbca92453a12123d1a45adbb262699b43b436f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060repository != null \u0026\u0026 x.getParent() == null\u0060 appears character-identically in 5 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/hive/visitor/HiveSchemaStatVisitor.java, core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlSchemaStatVisitor.java, core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleSchemaStatVisitor.java, core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGSchemaStatVisitor.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":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/visitor/HiveSchemaStatVisitor.java"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9b143b269c0ca6049c2593401519337927b6d4a37e49ba7b9a19d116a09908b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060request.getQueryString() != null \u0026\u0026 request.getQueryString().length() \u003E 0\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/support/http/ResourceServlet.java, core/src/main/java/com/alibaba/druid/support/jakarta/ResourceServlet.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":"core/src/main/java/com/alibaba/druid/support/http/ResourceServlet.java"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"37f3f80bdb7ed360a9a5cf6280da3fc532bd9cdc45f58e7b3068c45d85981372"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060restrict != null \u0026\u0026 restrict.booleanValue()\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/odps/visitor/OdpsOutputVisitor.java, core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.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":"core/src/main/java/com/alibaba/druid/sql/dialect/odps/visitor/OdpsOutputVisitor.java"},"region":{"startLine":1091}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b74fe61c796537894e2c1e55b4eab7ca2958a0750132b470d8c9e2b6e2c832c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060resultSetLogger.isDebugEnabled() \u0026\u0026 super.isResultSetLogEnabled()\u0060 appears character-identically in 4 files \u2014 core/src/main/java/com/alibaba/druid/filter/logging/CommonsLogFilter.java, core/src/main/java/com/alibaba/druid/filter/logging/Log4j2Filter.java, core/src/main/java/com/alibaba/druid/filter/logging/Log4jFilter.java, core/src/main/java/com/alibaba/druid/filter/logging/Slf4jLogFilter.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":"core/src/main/java/com/alibaba/druid/filter/logging/CommonsLogFilter.java"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3b5cfd0c312eb8903cd545a1b8dced906a3831e699e951ee1587e28d243b0b8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060resultSetLogger.isErrorEnabled() \u0026\u0026 super.isResultSetLogErrorEnabled()\u0060 appears character-identically in 3 files \u2014 core/src/main/java/com/alibaba/druid/filter/logging/CommonsLogFilter.java, core/src/main/java/com/alibaba/druid/filter/logging/Log4j2Filter.java, core/src/main/java/com/alibaba/druid/filter/logging/Slf4jLogFilter.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":"core/src/main/java/com/alibaba/druid/filter/logging/CommonsLogFilter.java"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca591ebd17eba70d4db89e94457fcd595d20feb070b0e66392d82e32bf55451b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060returning != null \u0026\u0026 returning.size() \u003E 0\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmOutputVisitor.java, core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.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":"core/src/main/java/com/alibaba/druid/sql/dialect/dm/visitor/DmOutputVisitor.java"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c9fce877ecd3e6cc217c7765f5811268e6ffccf736bbee19c375a89bc21d8ad"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060session != null \u0026\u0026 session.getAttribute(SESSION_USER_KEY) != null\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/support/http/ResourceServlet.java, core/src/main/java/com/alibaba/druid/support/jakarta/ResourceServlet.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":"core/src/main/java/com/alibaba/druid/support/http/ResourceServlet.java"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddac6132c5e42bb40c222021d9120c1d332ae79e8aa0331f12f1e64df8b8ff77"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060statementList != null \u0026\u0026 statementList.size() \u003E 0\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/SQLUtils.java, core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.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":"core/src/main/java/com/alibaba/druid/sql/SQLUtils.java"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"d00502133994f85d6834ef0e4e0a43e807967a8aa75ea2a963e7a67636811502"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060statementLogger.isDebugEnabled() \u0026\u0026 super.isStatementLogEnabled()\u0060 appears character-identically in 4 files \u2014 core/src/main/java/com/alibaba/druid/filter/logging/CommonsLogFilter.java, core/src/main/java/com/alibaba/druid/filter/logging/Log4j2Filter.java, core/src/main/java/com/alibaba/druid/filter/logging/Log4jFilter.java, core/src/main/java/com/alibaba/druid/filter/logging/Slf4jLogFilter.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":"core/src/main/java/com/alibaba/druid/filter/logging/CommonsLogFilter.java"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"e76d261312c0517cd6d9d227327f3fc1c2cbcb18d28d605c73ec72f0f36f9831"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060statementLogger.isErrorEnabled() \u0026\u0026 super.isStatementLogErrorEnabled()\u0060 appears character-identically in 3 files \u2014 core/src/main/java/com/alibaba/druid/filter/logging/CommonsLogFilter.java, core/src/main/java/com/alibaba/druid/filter/logging/Log4j2Filter.java, core/src/main/java/com/alibaba/druid/filter/logging/Slf4jLogFilter.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":"core/src/main/java/com/alibaba/druid/filter/logging/CommonsLogFilter.java"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa4a1d8b4b5f59b18e5d42aecb43446d039a1fca9b34863a55bde2a23970bb6a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060stmt.getClusteredBy().size() \u003E 0 || stmt.getSortedBy().size() \u003E 0\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/blink/parser/BlinkCreateTableParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveCreateTableParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/blink/parser/BlinkCreateTableParser.java"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbe852b42f5c83b04b46a7c4a59184d1e33f3c1160b6747eaea8d0aa2d33f46d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060str.charAt(2) != \u0027:\u0027 \u0026\u0026 str.charAt(5) != \u0027:\u0027\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLDateTimeExpr.java, core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLTimeExpr.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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLDateTimeExpr.java"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"005ed2f04731c67690d7afa384ed21a79ef942f3553765f3eb6ff4b7f354138f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060tableName == null || tableName.length() == 0\u0060 appears character-identically in 4 files \u2014 core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLJoinTableSource.java, core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSelectQueryBlock.java, core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleSelectJoin.java, core/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleSelectQueryBlock.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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLJoinTableSource.java"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"7872530404f8711536ff8209c3b186134d303a3228c72c0ecae07ac9eb4adb5d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060tableSource != null \u0026\u0026 \u0022LATERAL\u0022.equalsIgnoreCase(tableSource.getAlias())\u0060 appears character-identically in 4 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSelectParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/snowflake/SnowflakeSelectParser.java, core/src/main/java/com/alibaba/druid/sql/parser/SQLSelectParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectParser.java"},"region":{"startLine":789}}}],"partialFingerprints":{"codehealthFindingId/v1":"d648c99330923c9b0940208bd69fcbc69037f07680ae1d419debbf19520198d6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060tenantCallBack == null \u0026\u0026 (tenantTablePattern == null || tenantTablePattern.length() == 0)\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/wall/WallFilter.java, core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.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":"core/src/main/java/com/alibaba/druid/wall/WallFilter.java"},"region":{"startLine":1598}}}],"partialFingerprints":{"codehealthFindingId/v1":"07aa9414f0ad70f669f7500acad3b854026c899a3b884de3a4b1c757ba7e851b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060text.equalsIgnoreCase(\u0022TINYINT\u0022) || text.equalsIgnoreCase(\u0022BIGINT\u0022) || text.equalsIgnoreCase(\u0022INTEGER\u0022) || text.equalsIgnoreCase(\u0022DOUBLE\u0022) |\u2026\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/phoenix/parser/PhoenixStatementParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/presto/parser/PrestoStatementParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/phoenix/parser/PhoenixStatementParser.java"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b3d1befcc53a8c1b3461ed270ee73877298ec780319e76e1282a66a83cc6caa"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.alias == null || this.alias.length() == 0\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLAliasedExpr.java, core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLTableSourceImpl.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":"core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLAliasedExpr.java"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"d734eea4b5cad21edc175a85f68e7c901e65374b7affcca4db36703444cc79c3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.createStatements != null \u0026\u0026 !this.createStatements.isEmpty()\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/db2/ast/stmt/DB2CreateSchemaStatement.java, core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/ast/stmt/PGCreateSchemaStatement.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":"core/src/main/java/com/alibaba/druid/sql/dialect/db2/ast/stmt/DB2CreateSchemaStatement.java"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"b97f1e535ce5c511ddb816c776ef5d53e549f9759015ba5a46fbd71a5784eb14"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.isPrettyFormat() \u0026\u0026 element.hasAfterComment()\u0060 appears character-identically in 4 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/blink/vsitor/BlinkOutputVisitor.java, core/src/main/java/com/alibaba/druid/sql/dialect/h2/visitor/H2OutputVisitor.java, core/src/main/java/com/alibaba/druid/sql/dialect/hive/visitor/HiveOutputVisitor.java, core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.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":"core/src/main/java/com/alibaba/druid/sql/dialect/blink/vsitor/BlinkOutputVisitor.java"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9d6b04505cdda7fad651cbd269e59bc7df4d1eece90567613e85e199c4d3be2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.realIpHeader != null \u0026\u0026 this.realIpHeader.length() != 0\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/support/http/AbstractWebStatImpl.java, core/src/main/java/com/alibaba/druid/support/jakarta/AbstractWebStatImpl.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":"core/src/main/java/com/alibaba/druid/support/http/AbstractWebStatImpl.java"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"edf9453bb88dd23386e337360d98a43e0bc4d1808192b4d02a9b32738426c679"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060to.getDataType().hasKeyLength() \u0026\u0026 1 == to.getDataType().getArguments().size() \u0026\u0026 to.getDataType().getArguments().get(0) instanceof SQLInteg\u2026\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLUnique.java, core/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlTableIndex.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":"core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLUnique.java"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fb499bb356681d9330b385c312679384c5db9f747ae14d7d991c7d831b51595"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060token != Token.BEGIN \u0026\u0026 token != Token.RPAREN \u0026\u0026 token != Token.EOF \u0026\u0026 token != Token.FUNCTION \u0026\u0026 !lexer.identifierEquals(\u0022DETERMINISTIC\u0022)\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java"},"region":{"startLine":2258}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b942ca902c5325ce4fb756c4f32d8331a9130515453e801c47d032d6e693c2e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060token != Token.HINT \u0026\u0026 !isAllowComment()\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveLexer.java, core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleLexer.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":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveLexer.java"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"b20a44d85e2e4833a0f6b152cb38602493e59d305773551cb3aaa59035aadee9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060token == Token.COMMA || token == Token.SEMI || token == Token.IS\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java"},"region":{"startLine":2253}}}],"partialFingerprints":{"codehealthFindingId/v1":"57bcb3d22a75afe46e1fb0a480391969fca6f01011eb5a7d85883f023156659d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060token == Token.IDENTIFIER \u0026\u0026 LOCAL.equalsIgnoreCase(lexer.stringVal())\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarStatementParser.java"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"a82638cca060b82f7d7ca9229e03557d2e4ccc483fadf7915a2567e344554f52"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060token == Token.IDENTIFIER || token == Token.LITERAL_ALIAS\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveCreateTableParser.java, core/src/main/java/com/alibaba/druid/sql/parser/SQLCreateTableParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveCreateTableParser.java"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"486f2e6832e5d2b38bea76b45768026245759cb86421afdd430786fc5781b5f4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060token == Token.PRIMARY || token == Token.UNIQUE || token == Token.CHECK || token == Token.CONSTRAINT || token == Token.FOREIGN\u0060 appears character-identically in 3 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveCreateTableParser.java, core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java, core/src/main/java/com/alibaba/druid/sql/parser/SQLCreateTableParser.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":"core/src/main/java/com/alibaba/druid/sql/dialect/hive/parser/HiveCreateTableParser.java"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"1609de9dc2b196f84e6ee107a7dab8bf181b1530f4bfc7997360df3e6b84c3ec"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060topStatementContext != null \u0026\u0026 (topStatementContext.fromSysSchema() || topStatementContext.fromSysTable())\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/wall/spi/MySqlWallVisitor.java, core/src/main/java/com/alibaba/druid/wall/spi/SQLServerWallVisitor.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":"core/src/main/java/com/alibaba/druid/wall/spi/MySqlWallVisitor.java"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ecc35a58ad9af8df86d0ef4f5d41e285d3736351617371995b12e9e712b3d41"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060url == null || (url = url.trim()).length() == 0\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/stat/DruidStatService.java, druid-admin/src/main/java/com/alibaba/druid/admin/service/MonitorStatService.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":"core/src/main/java/com/alibaba/druid/stat/DruidStatService.java"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccd9e771ff9db261cd827338256ecbdf3fac8e90811877d53d623804827258d3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060url.startsWith(\u0022/connectionInfo-\u0022) \u0026\u0026 url.endsWith(\u0022.json\u0022)\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/stat/DruidStatService.java, druid-admin/src/main/java/com/alibaba/druid/admin/service/MonitorStatService.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":"core/src/main/java/com/alibaba/druid/stat/DruidStatService.java"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cae04bc0139fc10e4e32821e54af4017d9915bdaf918085623978b24b62776e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060url.startsWith(\u0022/websession-\u0022) \u0026\u0026 url.indexOf(\u0022.json\u0022) \u003E 0\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/stat/DruidStatService.java, druid-admin/src/main/java/com/alibaba/druid/admin/service/MonitorStatService.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":"core/src/main/java/com/alibaba/druid/stat/DruidStatService.java"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdfbddf513a47025d362a8f3de78bc612a85e0e836d84d841d866d14ddfa1430"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060url.startsWith(\u0022/weburi-\u0022) \u0026\u0026 url.indexOf(\u0022.json\u0022) \u003E 0\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/stat/DruidStatService.java, druid-admin/src/main/java/com/alibaba/druid/admin/service/MonitorStatService.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":"core/src/main/java/com/alibaba/druid/stat/DruidStatService.java"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f28b6e2cf42c94d5d46870ac5b1d0899fab663ff0b28f8f2729aa3281804686"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060username.equals(usernameParam) \u0026\u0026 password.equals(passwordParam)\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/support/http/ResourceServlet.java, core/src/main/java/com/alibaba/druid/support/jakarta/ResourceServlet.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":"core/src/main/java/com/alibaba/druid/support/http/ResourceServlet.java"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ce4b76fa8b10bee13ff70505504ad4da9fa7a48a795c3d3c64f5e4c35022f89"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060value instanceof SQLPropertyExpr \u0026\u0026 ((SQLPropertyExpr) value).getOwner() instanceof SQLVariantRefExpr\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java, core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.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":"core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2b9ccfcbc5f5cd42fa237f5983a684e6163aa69a3a773fd08db00a5d704ac5c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060x instanceof CKSelectQueryBlock \u0026\u0026 ((CKSelectQueryBlock) x).isFinal()\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/visitor/CKOutputVisitor.java, core/src/main/java/com/alibaba/druid/sql/dialect/hologres/visitor/HologresOutputVisitor.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":"core/src/main/java/com/alibaba/druid/sql/dialect/clickhouse/visitor/CKOutputVisitor.java"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2f28d1ba46a39c6a69c3a639be96ad96d5e3e86a7a70d4d986d104003c17e71"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060x.getHints() != null \u0026\u0026 x.getHints().size() \u003E 0\u0060 appears character-identically in 3 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java, core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/visitor/SQLServerOutputVisitor.java, core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.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":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java"},"region":{"startLine":1470}}}],"partialFingerprints":{"codehealthFindingId/v1":"253c20a471fb50397d33adf4ff4969fdc3def5e179a2ea89f9b28a7fe205b7a4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060x.getParent() != null \u0026\u0026 x.getParent().getParent() instanceof HiveInsert \u0026\u0026 x.getParent().getParent().getParent() instanceof HiveMultiInsert\u2026\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java, core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.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":"core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java"},"region":{"startLine":1418}}}],"partialFingerprints":{"codehealthFindingId/v1":"50b84f043162938a1b139f67bce3200d7a11cb3d71207832d97b3c22c229955b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060x.getParent() instanceof SQLCreateProcedureStatement || x.getParent() instanceof SQLCreateFunctionStatement || x.getParent() instanceof Orac\u2026\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java, core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.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":"core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.java"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"25bced787096cc159da4ab397edae7b2675d447986d5f6711d15a2836faabf05"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060x.getValue() instanceof SQLLiteralExpr || x.getValue() instanceof SQLVariantRefExpr\u0060 appears character-identically in 3 files \u2014 core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java, core/src/main/java/com/alibaba/druid/sql/dialect/oscar/visitor/OscarOutputVisitor.java, core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/visitor/PGOutputVisitor.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":"core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2ea7c18240b3442afc05a4d8c1a1ee7aeb57582fdc8a75cfb42890c97243a54"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060x.isParenthesized() \u0026\u0026 !(x.getParent() instanceof SQLUnionQueryTableSource)\u0060 appears character-identically in 4 files \u2014 core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java, core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java, core/src/main/java/com/alibaba/druid/sql/visitor/SchemaStatVisitor.java, core/src/main/java/com/alibaba/druid/wall/spi/WallVisitorUtils.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":"core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java"},"region":{"startLine":2415}}}],"partialFingerprints":{"codehealthFindingId/v1":"b792f7d475daa9b80a2cc8e3e352b36950fd590425290a7d5c675b1bf7a9f8a8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060x.methodNameHashCode64() == FnvHash.Constants.TRIM \u0026\u0026 arguments.size() == 1 \u0026\u0026 arguments.get(0) instanceof SQLCharExpr \u0026\u0026 x.getTrimOption() \u2026\u0060 appears character-identically in 2 files \u2014 core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java, core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTParameterizedVisitor.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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java"},"region":{"startLine":1884}}}],"partialFingerprints":{"codehealthFindingId/v1":"a59243610c9ecd3843cabaa86cedc027ecea859c5a21842699072af49658fb7e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060langInCookie == LANG_CN || langInCookie == LANG_EN\u0060 appears character-identically in 2 files \u2014 core/src/main/resources/support/http/resources/js/lang.js, druid-admin/src/main/resources/support/http/resources/js/lang.js. 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":"core/src/main/resources/support/http/resources/js/lang.js"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"8967c56d1972f155baec9f06f4ab3375382d59b30802738634214a58dfc05e64"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof define === \u0027function\u0027 \u0026\u0026 define.amd\u0060 appears character-identically in 2 files \u2014 core/src/main/resources/support/http/resources/js/doT.js, druid-admin/src/main/resources/support/http/resources/js/doT.js. 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":"core/src/main/resources/support/http/resources/js/doT.js"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"47bf4c777f16fb76a07e6836997f004cb17582f7393e2f2315120b512f482197"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060html\u0060 is text this program did not author, and it is written into the text of an element through \u0060innerHTML\u0060 with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework\u0027s escaping output, or sanitise it if it must stay markup."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/js/common.js"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6337e6f95e6194b5c138e98beeb3f6539826dd48907571b817293b064004bb5"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060html\u0060 is text this program did not author, and it is written into the text of an element through \u0060innerHTML\u0060 with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework\u0027s escaping output, or sanitise it if it must stay markup."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/resources/support/http/resources/js/common.js"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e10525ab77381ecdaf6f47766b6bc7fe0bdff21320c7ab9b48d72fd473e4b8d"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060html\u0060 is text this program did not author, and it is written into the text of an element through \u0060innerHTML\u0060 with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework\u0027s escaping output, or sanitise it if it must stay markup."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/js/common.js"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"837d49385e9a35c4dea836ea81898fec73956b894fb375ca2a1d81a6f628118f"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060html\u0060 is text this program did not author, and it is written into the text of an element through \u0060innerHTML\u0060 with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework\u0027s escaping output, or sanitise it if it must stay markup."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/resources/support/http/resources/js/common.js"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"5295d2bbed46ff81997a9eceb9000a34a130564448cf2bac47c758aca2cd4995"}},{"ruleId":"X27","level":"warning","message":{"text":"Collection is structurally changed while it is being enumerated: \u0060this.tables\u0060 is enumerated directly, and line 153 calls \u0060this.tables.add(\u2026)\u0060 inside the loop body \u2014 a structural change to a \u0060ArrayList\u0060. The loop\u0027s hidden iterator is fail-fast, so its next \u0060next()\u0060 throws \u0060ConcurrentModificationException\u0060: every pass that reaches this call ends the loop by exception instead of by running out of elements, and the remaining elements are never seen."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/wall/WallProviderStatValue.java"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"91ce20fd645c14a420bed5f8b9584318debd86f0016309ebf8b3d6616a47e7bd"}},{"ruleId":"X27","level":"warning","message":{"text":"Collection is structurally changed while it is being enumerated: \u0060this.functions\u0060 is enumerated directly, and line 162 calls \u0060this.functions.add(\u2026)\u0060 inside the loop body \u2014 a structural change to a \u0060ArrayList\u0060. The loop\u0027s hidden iterator is fail-fast, so its next \u0060next()\u0060 throws \u0060ConcurrentModificationException\u0060: every pass that reaches this call ends the loop by exception instead of by running out of elements, and the remaining elements are never seen."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/wall/WallProviderStatValue.java"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b0e28c56186d54c23c6a2292fb9bc9d124acf7cb93e17130e5b77d37fa522f5"}},{"ruleId":"X27","level":"warning","message":{"text":"Collection is structurally changed while it is being enumerated: \u0060this.blackList\u0060 is enumerated directly, and line 170 calls \u0060this.blackList.add(\u2026)\u0060 inside the loop body \u2014 a structural change to a \u0060ArrayList\u0060. The loop\u0027s hidden iterator is fail-fast, so its next \u0060next()\u0060 throws \u0060ConcurrentModificationException\u0060: every pass that reaches this call ends the loop by exception instead of by running out of elements, and the remaining elements are never seen."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/wall/WallProviderStatValue.java"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"42a5366b353cbc5210e415ba204702548d383f6cd1826939832e9ab6f0500ba7"}},{"ruleId":"X27","level":"warning","message":{"text":"Collection is structurally changed while it is being enumerated: \u0060this.whiteList\u0060 is enumerated directly, and line 178 calls \u0060this.whiteList.add(\u2026)\u0060 inside the loop body \u2014 a structural change to a \u0060ArrayList\u0060. The loop\u0027s hidden iterator is fail-fast, so its next \u0060next()\u0060 throws \u0060ConcurrentModificationException\u0060: every pass that reaches this call ends the loop by exception instead of by running out of elements, and the remaining elements are never seen."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/wall/WallProviderStatValue.java"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"334cea392036a84ab192e34c1fe9afab1f0029e92d89852ec598039a4094644b"}},{"ruleId":"X27","level":"warning","message":{"text":"Collection is structurally changed while it is being enumerated: \u0060supportOptions\u0060 is enumerated directly, and line 74 calls \u0060supportOptions.add(\u2026)\u0060 inside the loop body \u2014 a structural change to a \u0060HashSet\u0060. The loop\u0027s hidden iterator is fail-fast, so its next \u0060next()\u0060 throws \u0060ConcurrentModificationException\u0060: every pass that reaches this call ends the loop by exception instead of by running out of elements, and the remaining elements are never seen."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlCreateTableParser.java"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e9bdc9c0f09876e2623eead0c72812c1836c806248b4f68583ea3a023db31ed"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/DbType.java"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"27fe311230eb514227d9c16c67ea4388a1def12ff616d8da146ae2996ca73d11"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/util/MySqlUtils.java"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"764840bc520fa61d90eef544ce124e38acd210907422cd012c5864fdbb70f89e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/util/MySqlUtils.java"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1ec6ffef432a61d4a324d19ce76d256b84c14fb716209e67245e4c8340a7994"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/util/MySqlUtils.java"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"b21e848d9471649f4d804964ac33f2f4ee9ee310f143c82661088a2e03dc293f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/util/MySqlUtils.java"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"d47309de69a85d934f4a0ffb03486fbdc6cf4d5610426c82cc8dab7ca0ea225a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/util/MySqlUtils.java"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"796b5ad881cfc6f363820b3a612c9cfbf2dec24cd5f3958ac04ead6f37498ce6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/util/MySqlUtils.java"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e0725853027f37039d2de7b98b141dc752e4cfe965ed76a9994027f174a0c9e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/util/MySqlUtils.java"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"e15ec90ee332d0febcf2c72b1c3aa33843e2d879928c1d6c6c6843436c406804"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/util/Utils.java"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"31f7008ccfa74d1d5cdcc0e8fb01c1bf6fb12cc895c2898475e001c4511fee96"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/support/opds/udf/ExportColumns.java"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"28900635b12281f236c3101018a04afcd7d6d4b7892df8d8cd1105121d73b8b9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/support/opds/udf/ExportTables.java"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc5bdd1cb5ebf3e3b12cde66f8b67b4db228600fb49442c1bb1004831cbe7417"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/support/logging/LogFactory.java"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"6af1019542667086b66687506d8d36b0a00d387b2ba5b1c620119f8e20b16dd5"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/support/logging/LogFactory.java"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"e38d6d8f3187840e12e7318ee722b7186c254725e4c10c17611f62f6e85c9df1"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/support/logging/LogFactory.java"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"57ab8e2865051ea7cfbd7271598b2db9983f0570381e0368ccd052ff9a100f26"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/support/logging/LogFactory.java"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5767e6de1c5b668cae88a835f96a2f1998bcae6e1de2e2694c95c0adc490fa4"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/support/ibatis/IbatisUtils.java"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4bf4fdcfd6f60368cdabd6eeaa6224565cd312c2dee95a61a45687b1bd8f209"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/SQLUtils.java"},"region":{"startLine":915}}}],"partialFingerprints":{"codehealthFindingId/v1":"456797fb0471dc173f670da7d8c74dcf99b7913a31c50c0944f187490db6bf5d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/SQLUtils.java"},"region":{"startLine":963}}}],"partialFingerprints":{"codehealthFindingId/v1":"a63b6035ba44703fe454b7eacc2ccdf10495c2d216cd13a19546ae43a62c2c2d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/SQLUtils.java"},"region":{"startLine":1011}}}],"partialFingerprints":{"codehealthFindingId/v1":"88c5453f5114bfc176a50c6c5a4c50fd855d51436a6ba669e3a23414847af94c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/SQLUtils.java"},"region":{"startLine":1366}}}],"partialFingerprints":{"codehealthFindingId/v1":"53740207015e5a0fef985ef6fea9f2f4e69277f2aea47aa532df51d591e540ac"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/SQLUtils.java"},"region":{"startLine":1441}}}],"partialFingerprints":{"codehealthFindingId/v1":"59ae77a4568d2616b754686f236fda73bc6797fb680f3ff717182558d0081f1f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/SQLUtils.java"},"region":{"startLine":1511}}}],"partialFingerprints":{"codehealthFindingId/v1":"984da080e6a77c56f227cfe1fa48c8c5d2f0545dd060ac5457461f0ff8e5b5a1"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/SQLUtils.java"},"region":{"startLine":1613}}}],"partialFingerprints":{"codehealthFindingId/v1":"8363ca757e9ed080caa0e0830d3b0125a2bb6f6f0a372202a96a3ec49fe5e660"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/repository/SchemaRepository.java"},"region":{"startLine":1017}}}],"partialFingerprints":{"codehealthFindingId/v1":"73cdeb8859a3d1b7450539b41c00a3fb763fd7c9b6240ed72c565d57b106b1cf"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/sql/parser/SQLParserUtils.java"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e0f8ea785459b6806b404af06debd537e522ac725294d3f1327ec859206ed31"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/pool/DruidAbstractDataSource.java"},"region":{"startLine":1044}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d70097b85af3c963566d97a5b665b3e0eb5edf1b6ac3b7a9faafb5df0bf0595"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/pool/DruidAbstractDataSource.java"},"region":{"startLine":1068}}}],"partialFingerprints":{"codehealthFindingId/v1":"df392ff6040ec8c1bab2ef4ea74594a618c28396ea69717e8e2fd67256bfc7f4"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/pool/DruidAbstractDataSource.java"},"region":{"startLine":1579}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6c36d6198571712263b532b89b1455c882b1fc4dd2ce21994aea8e252bb1179"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/pool/DruidAbstractDataSource.java"},"region":{"startLine":1828}}}],"partialFingerprints":{"codehealthFindingId/v1":"10561f49c0cc242486e9e1a5b599530fd1b8f469f3305495bb89bee32eb7d8a9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/druid/pool/DruidConnectionHolder.java"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"680957b2f4d60c20ceb01b243590a3a869542b27a7a6457cdb4cef58665b243f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 54 is handed a message assembled at the call \u2014 a string concatenated with a value, or \u0060String.format\u0060 \u2014 through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: \u0060log.info(\u0022Order {} moved to {}\u0022, orderId, status)\u0060, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2\u0027s JsonTemplateLayout, OpenTelemetry), or \u0060log.atInfo().addKeyValue(\u0022order_id\u0022, orderId).log(\u0022order moved\u0022)\u0060 with SLF4J 2\u0027s fluent API. An exception goes last, as the throwable argument, not into the text."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/java/com/alibaba/druid/admin/service/K8sDiscoveryClient.java"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaf9971fee886751bb7296851daba10fc5ed6070ca322f4146e7877f95f4600d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 393 is handed a message assembled at the call \u2014 a string concatenated with a value, or \u0060String.format\u0060 \u2014 through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: \u0060log.info(\u0022Order {} moved to {}\u0022, orderId, status)\u0060, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2\u0027s JsonTemplateLayout, OpenTelemetry), or \u0060log.atInfo().addKeyValue(\u0022order_id\u0022, orderId).log(\u0022order moved\u0022)\u0060 with SLF4J 2\u0027s fluent API. An exception goes last, as the throwable argument, not into the text."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"druid-admin/src/main/java/com/alibaba/druid/admin/service/MonitorStatService.java"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"890e8c8a7073121956050400a953542c033acfde5fa2d0af2867983e9300c362"}},{"ruleId":"X5","level":"note","message":{"text":"Java packages are not null-marked everywhere: 0/217 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: \u0060eval\u0060 returns \u0060false\u0060 when \u0060ParseException\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":"core/src/main/java/com/alibaba/druid/sql/visitor/functions/ToDate.java"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"0add1af49b3e41ae65c1a8d084f8efa5e0cfa4cd61f40af296f0b5f714a7df2d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060castToNumber\u0060 returns \u00600\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":"core/src/main/java/com/alibaba/druid/sql/visitor/SQLEvalVisitorUtils.java"},"region":{"startLine":1468}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca50d15cc68ec31b39b27333ed20a30b8b1700035aa970c1969ccba1d981f719"}}],"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-1032","guid":"5f21e517-68aa-a650-9a25-5771ef024637","name":"OWASP Top Ten \u2014 Security Misconfiguration category","shortDescription":{"text":"OWASP Top Ten \u2014 Security Misconfiguration category"},"helpUri":"https://cwe.mitre.org/data/definitions/1032.html"},{"id":"CWE-1059","guid":"a2381a08-60f6-9554-a8b8-f3018cfaaca5","name":"Insufficient Technical Documentation","shortDescription":{"text":"Insufficient Technical Documentation"},"helpUri":"https://cwe.mitre.org/data/definitions/1059.html"},{"id":"CWE-1333","guid":"11a336ce-63de-c45c-845e-29ca1e8df13d","name":"CWE-1333","shortDescription":{"text":"CWE-1333"},"helpUri":"https://cwe.mitre.org/data/definitions/1333.html"},{"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-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.html"},{"id":"CWE-200","guid":"b0ce3b1d-7a29-fe50-8aab-9aba899d2988","name":"Exposure of Sensitive Information to an Unauthorized Actor","shortDescription":{"text":"Exposure of Sensitive Information to an Unauthorized Actor"},"helpUri":"https://cwe.mitre.org/data/definitions/200.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-327","guid":"e51910ff-67b5-3c51-aa3d-92837d9eab90","name":"Use of a Broken or Risky Cryptographic Algorithm","shortDescription":{"text":"Use of a Broken or Risky Cryptographic Algorithm"},"helpUri":"https://cwe.mitre.org/data/definitions/327.html"},{"id":"CWE-328","guid":"f0ffc869-97c3-dc5c-8825-be1159f1fc5f","name":"Reversible One-Way Hash","shortDescription":{"text":"Reversible One-Way Hash"},"helpUri":"https://cwe.mitre.org/data/definitions/328.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-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-732","guid":"1da27e8f-b330-7650-ab63-bd61953eae5d","name":"Incorrect Permission Assignment for Critical Resource","shortDescription":{"text":"Incorrect Permission Assignment for Critical Resource"},"helpUri":"https://cwe.mitre.org/data/definitions/732.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-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.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":"A01:2025","guid":"df693558-c822-0452-8f7b-4d53cb6bcc59","name":"Broken Access Control","shortDescription":{"text":"Broken Access Control"},"helpUri":"https://top10.owasp.org/2025/A01_2025-Broken_Access_Control/"},{"id":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"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":"A04:2025","guid":"6a9f5bfd-1a56-6453-beec-a7eff0ba3007","name":"Cryptographic Failures","shortDescription":{"text":"Cryptographic Failures"},"helpUri":"https://top10.owasp.org/2025/A04_2025-Cryptographic_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/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_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-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-5","guid":"cc7f4610-8859-e654-9029-d5f97d992220","name":"Insufficient PBAC (Pipeline-Based Access Controls)","shortDescription":{"text":"Insufficient PBAC (Pipeline-Based Access Controls)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-05-Insufficient-PBAC"},{"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":110,"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."]}]}