{"$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":"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"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"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":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"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"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"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"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"]}},{"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"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"]}},{"id":"D33","name":"JS/npm Dependency Vulnerabilities","shortDescription":{"text":"JS/npm Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D33","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"]}],"properties":{"cwe":["CWE-1395","CWE-937"]}},{"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"]}],"properties":{"cwe":["CWE-1357","CWE-494"]}},{"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"]}],"properties":{"cwe":["CWE-1059"]}},{"id":"D40","name":"Network Egress Confinement","shortDescription":{"text":"Network Egress Confinement"},"helpUri":"https://codehealth.canine.dev/dimensions/D40"},{"id":"D41","name":"Kernel \u0026 Syscall Confinement","shortDescription":{"text":"Kernel \u0026 Syscall Confinement"},"helpUri":"https://codehealth.canine.dev/dimensions/D41"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"RowsLogBuffer.fetchValue (cyclomatic 118): RowsLogBuffer.fetchValue has cyclomatic complexity 118 (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":"dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/event/RowsLogBuffer.java"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"4728446af1524f59eade7e2dc115e9853f0fab4f0b823d8d15a87637a4415689"}},{"ruleId":"D1","level":"warning","message":{"text":"SyncUtil.setPStmt (cyclomatic 72): SyncUtil.setPStmt has cyclomatic complexity 72 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-adapter/rdb/src/main/java/com/alibaba/otter/canal/client/adapter/rdb/support/SyncUtil.java"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1f7dd4f30fab649817f9b3a738676c14829c80e7a87dc0ceba414d71e78138c"}},{"ruleId":"D1","level":"warning","message":{"text":"LogEventConvert.parseOneRow (cyclomatic 70): LogEventConvert.parseOneRow 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":"parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/dbsync/LogEventConvert.java"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"59cd0d0ad33a54b680e6f5b96f62e0cc75dfb8f7fc4b27644b7f951d6e35e099"}},{"ruleId":"D1","level":"warning","message":{"text":"SyncUtil.setPStmt (cyclomatic 69): SyncUtil.setPStmt has cyclomatic complexity 69 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/support/SyncUtil.java"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e8d1e2e4f0836b27714bd1661ca9c6a76d2d02b85aa578a22adb1ceae527071"}},{"ruleId":"D1","level":"warning","message":{"text":"SyncUtil.setPStmt (cyclomatic 69): SyncUtil.setPStmt has cyclomatic complexity 69 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-adapter/phoenix/src/main/java/com/alibaba/otter/canal/client/adapter/phoenix/support/SyncUtil.java"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"de197b88b6bacf8449aadf150d05200a67bcdda7f8e07f6237ca3fc0dd13f84e"}},{"ruleId":"D1","level":"warning","message":{"text":"LogDecoder.decode (cyclomatic 67): LogDecoder.decode has cyclomatic complexity 67 (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":"dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogDecoder.java"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e261789d5a114e38e0580a3cffc600b0fca5a86c4d5667d7be82f8b8925b73b"}},{"ruleId":"D1","level":"warning","message":{"text":"ESSyncUtil.typeConvert (cyclomatic 60): ESSyncUtil.typeConvert 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":"client-adapter/escore/src/main/java/com/alibaba/otter/canal/client/adapter/es/core/support/ESSyncUtil.java"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"4caf1692cb74c4c898c2b0b4fa055dae4d45164d6133e2096697693737e0b570"}},{"ruleId":"D1","level":"warning","message":{"text":"SecurityUtil.hexStr2Bytes (cyclomatic 51): SecurityUtil.hexStr2Bytes has cyclomatic complexity 51 (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":"protocol/src/main/java/com/alibaba/otter/canal/protocol/SecurityUtil.java"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f10a44de9db3c56a4cd3e53f631379dc17a548f90747e88c26f149f611a017c"}},{"ruleId":"D1","level":"warning","message":{"text":"TypeUtil.getPhoenixType (cyclomatic 46): TypeUtil.getPhoenixType has cyclomatic complexity 46 (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":"client-adapter/phoenix/src/main/java/com/alibaba/otter/canal/client/adapter/phoenix/support/TypeUtil.java"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"9692e9be9ec52105b7ce8df590e1db624cf8e3f0ad2a2c208a1fa7db016041aa"}},{"ruleId":"D1","level":"warning","message":{"text":"LogBuffer.getDecimal0 (cyclomatic 46): LogBuffer.getDecimal0 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":"dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java"},"region":{"startLine":1422}}}],"partialFingerprints":{"codehealthFindingId/v1":"e64271fba4a324369eaa9971b5bc5fec00236612c715f1d8fbe808d6f7761203"}},{"ruleId":"D1","level":"warning","message":{"text":"HbaseEtlService.executeSqlImport (cyclomatic 43): HbaseEtlService.executeSqlImport 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":"client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/service/HbaseEtlService.java"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"68914a2d98d8233acd5402a662523d492156d4013f70f7f18561e8bb10862ba9"}},{"ruleId":"D1","level":"warning","message":{"text":"QueryLogEvent.unpackVariables (cyclomatic 43): QueryLogEvent.unpackVariables has cyclomatic complexity 43 (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":"dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/event/QueryLogEvent.java"},"region":{"startLine":720}}}],"partialFingerprints":{"codehealthFindingId/v1":"83b9842912d0fdddd833c8b570143478151a9527e2b9839b8b857fa24149157f"}},{"ruleId":"D1","level":"warning","message":{"text":"RowsLogBuffer.mysqlToJavaType (cyclomatic 39): RowsLogBuffer.mysqlToJavaType has cyclomatic complexity 39 (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":"dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/event/RowsLogBuffer.java"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8c7b000aa0fa2d94621d8eeb64d024f60f9a656cd8a33d6b954ef71b29a9183"}},{"ruleId":"D1","level":"warning","message":{"text":"ESSyncService.update (cyclomatic 36): ESSyncService.update 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":"client-adapter/escore/src/main/java/com/alibaba/otter/canal/client/adapter/es/core/service/ESSyncService.java"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3eb44c704d3ca9a09251eb9f13af321ba8dbe0f78d2380ae399f7f0fea4adb0"}},{"ruleId":"D1","level":"warning","message":{"text":"JdbcTypeUtil.typeConvert (cyclomatic 32): JdbcTypeUtil.typeConvert 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":"client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/JdbcTypeUtil.java"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"92699596653fa924b23ff1961dfb8ee17992e1801440f6729d1ceb17d06a49b3"}},{"ruleId":"D1","level":"warning","message":{"text":"JdbcTypeUtil.typeConvert (cyclomatic 32): JdbcTypeUtil.typeConvert 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":"connector/core/src/main/java/com/alibaba/otter/canal/connector/core/util/JdbcTypeUtil.java"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dcc54924766bf6d6b2d012023c39f29a9801ca0f6859a27380a9c71f9b648ed"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionHandler.messageReceived (cyclomatic 32): SessionHandler.messageReceived 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":"server/src/main/java/com/alibaba/otter/canal/server/netty/handler/SessionHandler.java"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"943ae547ee3819605a75dee2b5d07bb52cebab8755513a0d247e8c30efd66ad4"}},{"ruleId":"D1","level":"warning","message":{"text":"PhTypeUtil.toBytes (cyclomatic 30): PhTypeUtil.toBytes 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":"client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/support/PhTypeUtil.java"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"31be7ebe00e4380f149978921377a3b33ab522810c6dcc0f9a371d633e30e1bc"}},{"ruleId":"D1","level":"warning","message":{"text":"PhTypeUtil.toObject (cyclomatic 29): PhTypeUtil.toObject 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":"client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/support/PhTypeUtil.java"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"caaf22725a4cb8c816c60b1a25241e3a4c0001c2a15093ba153245334a46219c"}},{"ruleId":"D1","level":"warning","message":{"text":"MysqlConnector.negotiate (cyclomatic 29): MysqlConnector.negotiate 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":"driver/src/main/java/com/alibaba/otter/canal/parse/driver/mysql/MysqlConnector.java"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"99b999fd932e6bb5b9bbc82339ca18fe5ebe38d63b62db4f6be2770b5d30dc5f"}},{"ruleId":"D1","level":"warning","message":{"text":"1.run (cyclomatic 29): 1.run 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":"parse/src/main/java/com/alibaba/otter/canal/parse/inbound/AbstractEventParser.java"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"41a79fdf9e11269181211804d30c1bce025b480d0bb7cfbe2a3c951771fe657d"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionHandler.messageReceived (cyclomatic 28): SessionHandler.messageReceived 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":"server/src/main/java/com/alibaba/otter/canal/admin/handler/SessionHandler.java"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d137bfbe1b13085ffdca8ad5e7226915bcc7560c92767116caf0b0c9b80a038"}},{"ruleId":"D1","level":"warning","message":{"text":"MysqlEventParser.findStartPositionInternal (cyclomatic 28): MysqlEventParser.findStartPositionInternal 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":"parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/MysqlEventParser.java"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"820985fb7824cf76958cddc741d8cf74a357c51b6f53b27109c5be7b2276cefd"}},{"ruleId":"D1","level":"warning","message":{"text":"SyncUtil.getTablestoreValue (cyclomatic 27): SyncUtil.getTablestoreValue 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":"client-adapter/tablestore/src/main/java/com/alibaba/otter/canal/client/adapter/tablestore/support/SyncUtil.java"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"56d9779bbcd4b48ef5be31b35310de8046b702c0d10b98f7d27912e23036cd38"}},{"ruleId":"D1","level":"warning","message":{"text":"DruidDdlParser.parse (cyclomatic 27): DruidDdlParser.parse 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":"parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/ddl/DruidDdlParser.java"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8990834e727b2ddfa45d185d45965fa91885845fda4004abdcf7b6080cf55eb"}},{"ruleId":"D1","level":"warning","message":{"text":"TableMapLogEvent.\u003Cinit\u003E (cyclomatic 27): TableMapLogEvent.\u003Cinit\u003E 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":"dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/event/TableMapLogEvent.java"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dff258019c3d4d3d9f8b4a0c797e92e66423dccd0c7dd20bdee6a77ea65a515"}},{"ruleId":"D1","level":"warning","message":{"text":"LogEventConvert.processFilter (cyclomatic 26): LogEventConvert.processFilter 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":"parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/dbsync/LogEventConvert.java"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fb8bc4fedddb94a8ac8f1fb0fd1efc09aaaff156baf01b3f8800383fc91a53b"}},{"ruleId":"D1","level":"warning","message":{"text":"PhoenixSyncService.alter (cyclomatic 25): PhoenixSyncService.alter 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":"client-adapter/phoenix/src/main/java/com/alibaba/otter/canal/client/adapter/phoenix/service/PhoenixSyncService.java"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"07b5c1283ce1428e22d9d0cf0d7341eab7b0665c62020287142cab35d70e3f52"}},{"ruleId":"D1","level":"warning","message":{"text":"MemoryTableMeta.processTableElement (cyclomatic 25): MemoryTableMeta.processTableElement 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":"parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/tsdb/MemoryTableMeta.java"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd35c19d4afdc4d4461d6ed693dcca650dba803d92481873bdec6af2f74bfa22"}},{"ruleId":"D1","level":"warning","message":{"text":"MessageUtil.parse4Dml (cyclomatic 24): MessageUtil.parse4Dml 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":"client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/MessageUtil.java"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aabf614fa93a1a5772aeeaefa17a5a9b78f2cbb23d1c946665c7a643caffcba"}},{"ruleId":"D1","level":"warning","message":{"text":"PhType.getType (cyclomatic 24): PhType.getType 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":"client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/support/PhType.java"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"1628751f288e7436c6191f44f7edd6c946b1fdfecdd4e984ae232078ca47767b"}},{"ruleId":"D1","level":"warning","message":{"text":"AdapterProcessor.process (cyclomatic 24): AdapterProcessor.process 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":"client-adapter/launcher/src/main/java/com/alibaba/otter/canal/adapter/launcher/loader/AdapterProcessor.java"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f09656f6560166c702054a43f1e58fe92597380f4fa87edce51e772582115ee"}},{"ruleId":"D1","level":"warning","message":{"text":"MessageUtil.convert (cyclomatic 24): MessageUtil.convert 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":"connector/core/src/main/java/com/alibaba/otter/canal/connector/core/util/MessageUtil.java"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"5845c301732a51eebba29372f3e49af62713d940c343eec72c2c8fbea094e7ab"}},{"ruleId":"D1","level":"warning","message":{"text":"Json_Value.toJsonString (cyclomatic 24): Json_Value.toJsonString 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":"dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/JsonConversion.java"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ca593044dc3439e609a27b026c2c0baf774ed821393327c9e1ce8cc5824b7d9"}},{"ruleId":"D1","level":"warning","message":{"text":"NameCache.name (cyclomatic 24): NameCache.name has cyclomatic complexity 24 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/NameCache.java"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"c872e63d015aac894c67ff63c2286a059f9c7b32916f4d10315c334c50f3e642"}},{"ruleId":"D1","level":"warning","message":{"text":"ESEtlService.executeSqlImport (cyclomatic 23): ESEtlService.executeSqlImport 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":"client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/etl/ESEtlService.java"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c06beebfdf7deae62268e6108d7e98ddf83ffff9654ce9383177cc8f81103da"}},{"ruleId":"D1","level":"warning","message":{"text":"ESEtlService.executeSqlImport (cyclomatic 23): ESEtlService.executeSqlImport 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":"client-adapter/es7x/src/main/java/com/alibaba/otter/canal/client/adapter/es7x/etl/ESEtlService.java"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"714cffb81b326a0d46a010a50e397a1bf6635b8986fc76080db8a78370602705"}},{"ruleId":"D1","level":"warning","message":{"text":"ESEtlService.executeSqlImport (cyclomatic 23): ESEtlService.executeSqlImport 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":"client-adapter/es8x/src/main/java/com/alibaba/otter/canal/client/adapter/es8x/etl/ESEtlService.java"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"a00f982aa81d13e170f1d26d079d268710f872954934a5259941014a51a81cd7"}},{"ruleId":"D1","level":"warning","message":{"text":"ESSyncService.delete (cyclomatic 23): ESSyncService.delete 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":"client-adapter/escore/src/main/java/com/alibaba/otter/canal/client/adapter/es/core/service/ESSyncService.java"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ffdcfd1098b816bcbcf72294d6e06ca734c92edea84017f4c5559e60ebca2d9"}},{"ruleId":"D1","level":"warning","message":{"text":"TypeUtil.toObject (cyclomatic 23): TypeUtil.toObject 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":"client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/support/TypeUtil.java"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"43d79aaa596b2fb7773066e976699149363c314e373d256fa983888e77bb4479"}},{"ruleId":"D1","level":"warning","message":{"text":"MQMessageUtils.messageConverter (cyclomatic 23): MQMessageUtils.messageConverter 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":"connector/core/src/main/java/com/alibaba/otter/canal/connector/core/producer/MQMessageUtils.java"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4d366fb10a686556d0745d35b64674c0865ef4189d4d8a9b1d2cdf27bc6e51f"}},{"ruleId":"D1","level":"warning","message":{"text":"JsonConversion.parse_scalar (cyclomatic 23): JsonConversion.parse_scalar 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":"dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/JsonConversion.java"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"415be2dc4b371d6b6112ea9cd1f182978b0562c1a6a19e6e0fb99f1e4530a207"}},{"ruleId":"D1","level":"warning","message":{"text":"HbaseSyncService.update (cyclomatic 22): HbaseSyncService.update 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":"client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/service/HbaseSyncService.java"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d5e68ae09f5bcf041003786f1d69da95eedb67a2e387ff8ab3d08b25cd6f971"}},{"ruleId":"D1","level":"warning","message":{"text":"TypeUtil.toObject (cyclomatic 22): TypeUtil.toObject 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":"client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/support/TypeUtil.java"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"c47432ba3781e6c47d5f1ff5c606cafc38c54b3d0c838fb5c92ee9c318ed61fe"}},{"ruleId":"D1","level":"warning","message":{"text":"KuduTemplate.fillRow (cyclomatic 22): KuduTemplate.fillRow has cyclomatic complexity 22 (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":"client-adapter/kudu/src/main/java/com/alibaba/otter/canal/client/adapter/kudu/support/KuduTemplate.java"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"2169d095a496a14c857d6607ce47ab6cf2ec95e5a43a7a6fb4fb9cca28dbf2e7"}},{"ruleId":"D1","level":"warning","message":{"text":"PhoenixSyncService.insert (cyclomatic 22): PhoenixSyncService.insert 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":"client-adapter/phoenix/src/main/java/com/alibaba/otter/canal/client/adapter/phoenix/service/PhoenixSyncService.java"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"17ecd5b8d724183d66d2f44b556755b0ee6417ff848f6329001bfb1408b2c496"}},{"ruleId":"D1","level":"warning","message":{"text":"ESSyncService.wholeSqlOperation (cyclomatic 21): ESSyncService.wholeSqlOperation 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":"client-adapter/escore/src/main/java/com/alibaba/otter/canal/client/adapter/es/core/service/ESSyncService.java"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0b312772cf883d60778df3ce24d35819bdc4834bd42176669e3b7cc8cc22bee"}},{"ruleId":"D1","level":"warning","message":{"text":"Type.getType (cyclomatic 21): Type.getType 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":"client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/support/Type.java"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"430a55f48002517c9dbb8055abd577785384efc541b92554fc0380e1be5da58c"}},{"ruleId":"D1","level":"warning","message":{"text":"TypeUtil.toBytes (cyclomatic 21): TypeUtil.toBytes 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":"client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/support/TypeUtil.java"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"591ded07a002c440206532976f8065356b45801636d5ba50468d41d27985438f"}},{"ruleId":"D1","level":"warning","message":{"text":"MQMessageUtils.messagePartition (cyclomatic 21): MQMessageUtils.messagePartition 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":"connector/core/src/main/java/com/alibaba/otter/canal/connector/core/producer/MQMessageUtils.java"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fb6bfd44d5cc3feafb4939094338b1ba92988dd27f1a33771ce7f1b1e407a1f"}},{"ruleId":"D1","level":"warning","message":{"text":"ExtensionLoader.loadFile (cyclomatic 21): ExtensionLoader.loadFile 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":"connector/core/src/main/java/com/alibaba/otter/canal/connector/core/spi/ExtensionLoader.java"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"61be7bd96214035e0c375f955e41d421e2eee9830f61dcba153f5f6918c1b689"}},{"ruleId":"D1","level":"warning","message":{"text":"CanalPulsarMQProducer.send (cyclomatic 21): CanalPulsarMQProducer.send 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":"connector/pulsarmq-connector/src/main/java/com/alibaba/otter/canal/connector/pulsarmq/producer/CanalPulsarMQProducer.java"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"322cca3120e1ec52f35b362bc2a40c0f031dcf0852e64c7b4ff4b08f8ffb03d3"}},{"ruleId":"D1","level":"warning","message":{"text":"JsonDiffConversion.print_json_diff (cyclomatic 21): JsonDiffConversion.print_json_diff 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":"dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/JsonDiffConversion.java"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"b560d6d3fca5de3d186ffd8203a13e7a30d776067cb830a8ec36919f8dd6cbb7"}},{"ruleId":"D1","level":"warning","message":{"text":"ExtensionLoader.loadFile (cyclomatic 20): ExtensionLoader.loadFile 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":"client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/ExtensionLoader.java"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9b55f9586c935544b44207c9b7990af99eda1af7556d9db87e033eeb4556261"}},{"ruleId":"D1","level":"warning","message":{"text":"MemoryEventStoreWithBuffer.doGet (cyclomatic 20): MemoryEventStoreWithBuffer.doGet 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":"store/src/main/java/com/alibaba/otter/canal/store/memory/MemoryEventStoreWithBuffer.java"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"313895d2e1a3f80f8fdf048c503dee472f3fdeeacb76f928fa9ea496a2a94cf2"}},{"ruleId":"D1","level":"warning","message":{"text":"ESSyncService.subTableSimpleFieldOperation (cyclomatic 19): ESSyncService.subTableSimpleFieldOperation 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":"client-adapter/escore/src/main/java/com/alibaba/otter/canal/client/adapter/es/core/service/ESSyncService.java"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"367076cc8fe9eea353c274fab43d04053caff1716f4493bb4eee0510f4cd63a4"}},{"ruleId":"D1","level":"warning","message":{"text":"PhoenixEtlService.syncSchema (cyclomatic 19): PhoenixEtlService.syncSchema 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":"client-adapter/phoenix/src/main/java/com/alibaba/otter/canal/client/adapter/phoenix/service/PhoenixEtlService.java"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7aba72b579674422cceee4570e072cfa123b64fa22a823f426bc343e8beb1d7"}},{"ruleId":"D1","level":"warning","message":{"text":"CanalRocketMQProducer.send (cyclomatic 19): CanalRocketMQProducer.send 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":"connector/rocketmq-connector/src/main/java/com/alibaba/otter/canal/connector/rocketmq/producer/CanalRocketMQProducer.java"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"93b8dc9d3fc959ff83c14b85b5afe8f02ed2162c548e88867c4471f37ce90d09"}},{"ruleId":"D1","level":"warning","message":{"text":"CanalController.\u003Cinit\u003E (cyclomatic 19): CanalController.\u003Cinit\u003E 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":"deployer/src/main/java/com/alibaba/otter/canal/deployer/CanalController.java"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa3491a55f829fa89be238336e741c9818283415e9904088d78cdfac82d52655"}},{"ruleId":"D1","level":"warning","message":{"text":"DatabaseTableMeta.compareTableMeta (cyclomatic 19): DatabaseTableMeta.compareTableMeta 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":"parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/tsdb/DatabaseTableMeta.java"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"842f1db0c5818871c40ce5995da23190c4b8d742ace9b9b02f9f26de3f7ecd68"}},{"ruleId":"D1","level":"warning","message":{"text":"MysqlEventParser.preDump (cyclomatic 19): MysqlEventParser.preDump 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":"parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/MysqlEventParser.java"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f6fe77357dd6adb776b7de83e33e9e73d3f054f8a40136b6c9cc7f9b9191b23"}},{"ruleId":"D1","level":"warning","message":{"text":"CanalInstanceServiceImpl.findList (cyclomatic 18): CanalInstanceServiceImpl.findList 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":"admin/admin-web/src/main/java/com/alibaba/otter/canal/admin/service/impl/CanalInstanceServiceImpl.java"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"82b041abd7ccde3734424c4dc8f3b3778e803416fea9b6e107a8ae621e2ce45f"}},{"ruleId":"D1","level":"warning","message":{"text":"ESSyncService.insert (cyclomatic 18): ESSyncService.insert 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":"client-adapter/escore/src/main/java/com/alibaba/otter/canal/client/adapter/es/core/service/ESSyncService.java"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"eac1983ae9321eee21024c945a106e92c7b1b3c9fd699bcec617e28e3289136e"}},{"ruleId":"D1","level":"warning","message":{"text":"PhoenixEtlService.executeSqlImport (cyclomatic 18): PhoenixEtlService.executeSqlImport 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":"client-adapter/phoenix/src/main/java/com/alibaba/otter/canal/client/adapter/phoenix/service/PhoenixEtlService.java"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"5177ff205bbd7d1895a52b458df0f01f951e1018ed070674b89e09863b5b9703"}},{"ruleId":"D1","level":"warning","message":{"text":"AviaterRegexFilter.splitPattern (cyclomatic 18): AviaterRegexFilter.splitPattern 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":"connector/core/src/main/java/com/alibaba/otter/canal/connector/core/filter/AviaterRegexFilter.java"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"729deaa3588b0fbf0069b7760c7f18998d6a1f59c8e84db502494fc5c7674dcc"}},{"ruleId":"D1","level":"warning","message":{"text":"MQMessageUtils.messagePartition (cyclomatic 18): MQMessageUtils.messagePartition 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":"connector/core/src/main/java/com/alibaba/otter/canal/connector/core/producer/MQMessageUtils.java"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"d718dfcf92ff6bf32405cd5e28b49a39bdd73f76e350f0ff03e45ae89e933eb5"}},{"ruleId":"D1","level":"warning","message":{"text":"NettySocketChannel.writeCache (cyclomatic 18): NettySocketChannel.writeCache 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":"driver/src/main/java/com/alibaba/otter/canal/parse/driver/mysql/socket/NettySocketChannel.java"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d61aed78ebee34a695aa1422ad06a78f85cad371bedd9bc93cac9be68a4324f"}},{"ruleId":"D1","level":"warning","message":{"text":"LogEventConvert.parseQueryEvent (cyclomatic 18): LogEventConvert.parseQueryEvent 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":"parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/dbsync/LogEventConvert.java"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"65a3d4048eda288aae97ac84ccd9b1639f9fc41f3e9114349898600c6fe3c850"}},{"ruleId":"D1","level":"warning","message":{"text":"AviaterRegexFilter.splitPattern (cyclomatic 18): AviaterRegexFilter.splitPattern 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":"filter/src/main/java/com/alibaba/otter/canal/filter/aviater/AviaterRegexFilter.java"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"1407b7f36fc8edac6877f935bfd7934c1b51c27fa21fb650bd0e53ed8b7e85df"}},{"ruleId":"D1","level":"warning","message":{"text":"CanalInstanceWithManager.doInitEventParser (cyclomatic 18): CanalInstanceWithManager.doInitEventParser 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":"instance/manager/src/main/java/com/alibaba/otter/canal/instance/manager/CanalInstanceWithManager.java"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"5aa94dc4c3b680d01ff5c30397f53af272cd43e23d62d5dbd96b068178ee65fa"}},{"ruleId":"D1","level":"warning","message":{"text":"CanalMQStarter.worker (cyclomatic 18): CanalMQStarter.worker has cyclomatic complexity 18 (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":"server/src/main/java/com/alibaba/otter/canal/server/CanalMQStarter.java"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e60ac047d21f97c872799f496a38957935266c724a7025ec2f0e06485670240"}},{"ruleId":"D1","level":"warning","message":{"text":"ClickHouseBatchSyncService.insert (cyclomatic 17): ClickHouseBatchSyncService.insert 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":"client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/service/ClickHouseBatchSyncService.java"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"24a44b23acfcf5ff34451df83c41574d8253a2ff2a2b68422e9b9da1b0bc2705"}},{"ruleId":"D1","level":"warning","message":{"text":"TypeUtil.toBytes (cyclomatic 17): TypeUtil.toBytes 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":"client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/support/TypeUtil.java"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ae36f49140240535345f132d15c6e5c36100134742b3552dba7f8a1291cc83f"}},{"ruleId":"D1","level":"warning","message":{"text":"TablestoreSyncService.getUpdateChanges (cyclomatic 17): TablestoreSyncService.getUpdateChanges 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":"client-adapter/tablestore/src/main/java/com/alibaba/otter/canal/client/adapter/tablestore/service/TablestoreSyncService.java"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"3883c0ab510893afd6250ca2093570b254a2ffabadc5336192e668010f3a8611"}},{"ruleId":"D1","level":"warning","message":{"text":"SpringInstanceConfigMonitor.scan (cyclomatic 17): SpringInstanceConfigMonitor.scan 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":"deployer/src/main/java/com/alibaba/otter/canal/deployer/monitor/SpringInstanceConfigMonitor.java"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c84e01f2e5b0ce67a7af28793205e708cec88a6b53fdc7fe96575b20c1c29ef"}},{"ruleId":"D1","level":"warning","message":{"text":"DatabaseTableMeta.dumpTableMeta (cyclomatic 17): DatabaseTableMeta.dumpTableMeta 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":"parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/tsdb/DatabaseTableMeta.java"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"60ce639ef192ddf1a51034736960ddfe568c413bcb4f9e55cd7077d91efc517a"}},{"ruleId":"D1","level":"warning","message":{"text":"AbstractEtlService.importData (cyclomatic 16): AbstractEtlService.importData 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":"client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/AbstractEtlService.java"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f2859981e24189d8035e5efa3de205165924d291c4a051f9c0da0aa0875f809"}},{"ruleId":"D1","level":"warning","message":{"text":"PhoenixSyncService.sync (cyclomatic 16): PhoenixSyncService.sync 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":"client-adapter/phoenix/src/main/java/com/alibaba/otter/canal/client/adapter/phoenix/service/PhoenixSyncService.java"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"71fdf05432d122c2709acf520913b0a51c4a89cf4a4a6cad23b3190fae02bdc3"}},{"ruleId":"D1","level":"warning","message":{"text":"TablestoreAdapter.sync (cyclomatic 16): TablestoreAdapter.sync 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":"client-adapter/tablestore/src/main/java/com/alibaba/otter/canal/client/adapter/tablestore/TablestoreAdapter.java"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"eab9390f378dca3dc3ce0845f4687bfa142da8e8dd95d4dc94036d26e4ba4dc5"}},{"ruleId":"D1","level":"warning","message":{"text":"FileUtils.readFileFromOffset (cyclomatic 16): FileUtils.readFileFromOffset 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":"common/src/main/java/com/alibaba/otter/canal/common/utils/FileUtils.java"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd1c637741b9f0d034d321eb93509735712e15a80930373bfc4c64743cc50a58"}},{"ruleId":"D1","level":"warning","message":{"text":"BioSocketChannelPool.getSSLContext (cyclomatic 16): BioSocketChannelPool.getSSLContext 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":"driver/src/main/java/com/alibaba/otter/canal/parse/driver/mysql/socket/BioSocketChannelPool.java"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dc9413d1227cd717338c7610f8655ef0b9914d474584c8f65c3446dd4c7b670"}},{"ruleId":"D1","level":"warning","message":{"text":"DirectLogFetcher.fetch (cyclomatic 16): DirectLogFetcher.fetch 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":"parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/dbsync/DirectLogFetcher.java"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"898a951a99b1d0c1075a697c910540938bad96866bf675bc46b3909d04f89518"}},{"ruleId":"D1","level":"warning","message":{"text":"LogEventConvert.parseRowsEvent (cyclomatic 16): LogEventConvert.parseRowsEvent 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":"parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/dbsync/LogEventConvert.java"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a4627d72150fc4d2d46e6d133f808617d63ec173d4e3511ad32311a93410935"}},{"ruleId":"D1","level":"warning","message":{"text":"AuthenticationInfo.equals (cyclomatic 16): AuthenticationInfo.equals 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":"parse/src/main/java/com/alibaba/otter/canal/parse/support/AuthenticationInfo.java"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fb3fa1e94a9685bc9aa6ba9583927fa05da93df4f32c3a43dab7809b552b459"}},{"ruleId":"D2","level":"warning","message":{"text":"ESSyncService.update (cognitive 134): ESSyncService.update has cognitive complexity 134 (threshold 15). Drivers by points: if/else 79, loops 44, boolean chains 7, ternaries 4 (nesting depth added 95). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-adapter/escore/src/main/java/com/alibaba/otter/canal/client/adapter/es/core/service/ESSyncService.java"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"896e012f3ae663b8c2d07dc163e2500408e8c55571de57f73e24dbf12f3f5f0f"}},{"ruleId":"D2","level":"warning","message":{"text":"HbaseEtlService.executeSqlImport (cognitive 133): HbaseEtlService.executeSqlImport has cognitive complexity 133 (threshold 15). Drivers by points: if/else 117, loops 8, boolean chains 6, error handling 2 (nesting depth added 82). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/service/HbaseEtlService.java"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"69c14878a740646046a23ace5b5956fa72195db77d6ba8f0aa855eaa8d8ecb74"}},{"ruleId":"D2","level":"warning","message":{"text":"ESSyncUtil.typeConvert (cognitive 128): ESSyncUtil.typeConvert has cognitive complexity 128 (threshold 15). Drivers by points: if/else 122, boolean chains 5, match/switch 1 (nesting depth added 66). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-adapter/escore/src/main/java/com/alibaba/otter/canal/client/adapter/es/core/support/ESSyncUtil.java"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9a85ce162ae80c20372eb1ec95a133ad094cff99c7cc99d91b87c2d373e7cb7"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncUtil.setPStmt (cognitive 124): SyncUtil.setPStmt has cognitive complexity 124 (threshold 15). Drivers by points: if/else 123, match/switch 1 (nesting depth added 53). 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":"client-adapter/rdb/src/main/java/com/alibaba/otter/canal/client/adapter/rdb/support/SyncUtil.java"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"c877d19a54ba1a3a2562c039731d0503a06d550222b5cfa0f9c20b09343fc4e5"}},{"ruleId":"D2","level":"warning","message":{"text":"LogEventConvert.parseOneRow (cognitive 117): LogEventConvert.parseOneRow has cognitive complexity 117 (threshold 15). Drivers by points: if/else 82, boolean chains 12, match/switch 11, ternaries 11, loops 1 (nesting depth added 63). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/dbsync/LogEventConvert.java"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"337de9bb9ae73fb358ff56653b24c7ebe3e6ec7902c2bd9951e0011857259208"}},{"ruleId":"D2","level":"warning","message":{"text":"RowsLogBuffer.fetchValue (cognitive 115): RowsLogBuffer.fetchValue has cognitive complexity 115 (threshold 15). Drivers by points: if/else 82, match/switch 25, error handling 3, ternaries 3, boolean chains 2 (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":"dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/event/RowsLogBuffer.java"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"d78e8cd13a3bd21c6f11eec63b36dcad5323636901f8d0f888cf42a0b928bf4a"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncUtil.setPStmt (cognitive 101): SyncUtil.setPStmt has cognitive complexity 101 (threshold 15). Drivers by points: if/else 100, match/switch 1 (nesting depth added 36). 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":"client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/support/SyncUtil.java"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ec36baade7735c50f4bc1a8c344833890b0b8e63c3a7b2e9cc1da4bff713942"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncUtil.setPStmt (cognitive 101): SyncUtil.setPStmt has cognitive complexity 101 (threshold 15). Drivers by points: if/else 100, match/switch 1 (nesting depth added 36). 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":"client-adapter/phoenix/src/main/java/com/alibaba/otter/canal/client/adapter/phoenix/support/SyncUtil.java"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"f27ebf9d92afcc09f1211fb4627a0c3357ffb8a7011b1e74738d3a00a8677ae0"}},{"ruleId":"D2","level":"warning","message":{"text":"ExtensionLoader.loadFile (cognitive 91): ExtensionLoader.loadFile has cognitive complexity 91 (threshold 15). Drivers by points: if/else 60, error handling 16, loops 14, boolean chains 1 (nesting depth added 69). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"connector/core/src/main/java/com/alibaba/otter/canal/connector/core/spi/ExtensionLoader.java"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d200ca2df9eaa031a564c044278e70679723bda164b3f1de15d2ae749885c12"}},{"ruleId":"D2","level":"warning","message":{"text":"LogBuffer.getDecimal0 (cognitive 89): LogBuffer.getDecimal0 has cognitive complexity 89 (threshold 15). Drivers by points: if/else 44, loops 30, boolean chains 6, match/switch 5, ternaries 4 (nesting depth added 48). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java"},"region":{"startLine":1422}}}],"partialFingerprints":{"codehealthFindingId/v1":"73518cba3bab8dc8bfc7a4dcbda2fc31cd08e912fb5166580b1c7a57fc50b174"}},{"ruleId":"D2","level":"warning","message":{"text":"ExtensionLoader.loadFile (cognitive 88): ExtensionLoader.loadFile has cognitive complexity 88 (threshold 15). Drivers by points: if/else 57, error handling 16, loops 14, boolean chains 1 (nesting depth added 67). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/ExtensionLoader.java"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"abee7d6fb26c1c1a0d749c6f8867eb47e000424d466754068dc34f5d59c1df76"}},{"ruleId":"D2","level":"warning","message":{"text":"MessageUtil.parse4Dml (cognitive 86): MessageUtil.parse4Dml has cognitive complexity 86 (threshold 15). Drivers by points: if/else 69, loops 13, boolean chains 2, error handling 2 (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":"client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/MessageUtil.java"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"42523d1c523e71a240dc12f5467411ddc1da95c2a96e8d12f0023623e817f1d9"}},{"ruleId":"D2","level":"warning","message":{"text":"MessageUtil.convert (cognitive 86): MessageUtil.convert has cognitive complexity 86 (threshold 15). Drivers by points: if/else 69, loops 13, boolean chains 2, error handling 2 (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":"connector/core/src/main/java/com/alibaba/otter/canal/connector/core/util/MessageUtil.java"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6ef361e9b51e5ba38c3eadf8d51c1aebc6b18db64f2d8ffbf34d1b64a273ca4"}},{"ruleId":"D2","level":"warning","message":{"text":"PhoenixSyncService.alter (cognitive 83): PhoenixSyncService.alter has cognitive complexity 83 (threshold 15). Drivers by points: if/else 43, loops 24, error handling 15, boolean chains 1 (nesting depth added 59). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-adapter/phoenix/src/main/java/com/alibaba/otter/canal/client/adapter/phoenix/service/PhoenixSyncService.java"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca4529b21911561c049fa1ddfd59f03a78b2649901902e47102ff4c859e4ba2e"}},{"ruleId":"D2","level":"warning","message":{"text":"MQMessageUtils.messagePartition (cognitive 83): MQMessageUtils.messagePartition has cognitive complexity 83 (threshold 15). Drivers by points: if/else 56, loops 25, boolean chains 2 (nesting depth added 59). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"connector/core/src/main/java/com/alibaba/otter/canal/connector/core/producer/MQMessageUtils.java"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee65cd8432df377ec467ce7e3547fcd750c2e94618d747036729dbd598689c23"}},{"ruleId":"D2","level":"warning","message":{"text":"MQMessageUtils.messageConverter (cognitive 79): MQMessageUtils.messageConverter has cognitive complexity 79 (threshold 15). Drivers by points: if/else 63, loops 13, boolean chains 3 (nesting depth added 54). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"connector/core/src/main/java/com/alibaba/otter/canal/connector/core/producer/MQMessageUtils.java"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"fff61875625ebd526b4dfdcce013ea29e4b36d6a9142a096298d7fdc6c74fab6"}},{"ruleId":"D2","level":"warning","message":{"text":"LogEventConvert.parseQueryEvent (cognitive 78): LogEventConvert.parseQueryEvent has cognitive complexity 78 (threshold 15). Drivers by points: if/else 68, loops 8, boolean chains 2 (nesting depth added 59). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/dbsync/LogEventConvert.java"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"b16e59488a6f2bf012dbd0d914f875212e47b2cb85e4e29b9242c3d671197be6"}},{"ruleId":"D2","level":"warning","message":{"text":"PhTypeUtil.toObject (cognitive 75): PhTypeUtil.toObject has cognitive complexity 75 (threshold 15). Drivers by points: if/else 37, ternaries 36, boolean chains 2 (nesting depth added 47). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/support/PhTypeUtil.java"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"de0092964ba053723e55a66852cf6a666150d568af2d092c079f1d823f15fc3d"}},{"ruleId":"D2","level":"warning","message":{"text":"ESSyncService.wholeSqlOperation (cognitive 74): ESSyncService.wholeSqlOperation has cognitive complexity 74 (threshold 15). Drivers by points: if/else 38, loops 35, error handling 1 (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":"client-adapter/escore/src/main/java/com/alibaba/otter/canal/client/adapter/es/core/service/ESSyncService.java"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"16e9dbfcef84fbe7411a9fbb16f8328966d2ddb4c04d066aacc41cabd807564e"}},{"ruleId":"D2","level":"warning","message":{"text":"MQMessageUtils.messagePartition (cognitive 73): MQMessageUtils.messagePartition has cognitive complexity 73 (threshold 15). Drivers by points: if/else 59, loops 12, boolean chains 2 (nesting depth added 54). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"connector/core/src/main/java/com/alibaba/otter/canal/connector/core/producer/MQMessageUtils.java"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"ace8b8fd16c9a0500ff1b3f3614bba80359baf0bdee0a69421425ac640015dee"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionHandler.messageReceived (cognitive 73): SessionHandler.messageReceived has cognitive complexity 73 (threshold 15). Drivers by points: if/else 49, loops 15, boolean chains 7, error handling 1, match/switch 1 (nesting depth added 37). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/src/main/java/com/alibaba/otter/canal/server/netty/handler/SessionHandler.java"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"c173f4b855dd7576e21116ae337bc101c8f8f1f9ccfab737d84042ec3dddb9c6"}},{"ruleId":"D2","level":"warning","message":{"text":"NettySocketChannel.writeCache (cognitive 71): NettySocketChannel.writeCache has cognitive complexity 71 (threshold 15). Drivers by points: if/else 47, error handling 23, loops 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":"driver/src/main/java/com/alibaba/otter/canal/parse/driver/mysql/socket/NettySocketChannel.java"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"7afa8a0cd76f34b20ec2343a4d19fb799fec6e3e2dc6cfd256406199624704cc"}},{"ruleId":"D2","level":"warning","message":{"text":"PhTypeUtil.toBytes (cognitive 66): PhTypeUtil.toBytes has cognitive complexity 66 (threshold 15). Drivers by points: if/else 63, boolean chains 3 (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":"client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/support/PhTypeUtil.java"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"90262074c3c544294143ed6c6a292501f9325eb4cc913ecfa6243cc111cf472b"}},{"ruleId":"D2","level":"warning","message":{"text":"TypeUtil.toObject (cognitive 66): TypeUtil.toObject has cognitive complexity 66 (threshold 15). Drivers by points: if/else 65, boolean chains 1 (nesting depth added 44). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/support/TypeUtil.java"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"1edab7d7df1e5d4bac57d151c122a173d46052f89bd0e3e741cb76484c99268a"}},{"ruleId":"D2","level":"warning","message":{"text":"MysqlConnector.negotiate (cognitive 65): MysqlConnector.negotiate has cognitive complexity 65 (threshold 15). Drivers by points: if/else 45, error handling 12, boolean chains 6, ternaries 2 (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":"driver/src/main/java/com/alibaba/otter/canal/parse/driver/mysql/MysqlConnector.java"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ba0cf414cffda284c3ec2c77b4779165e74023942bef73c6a672e3a8cffb8a0"}},{"ruleId":"D2","level":"warning","message":{"text":"DruidDdlParser.parse (cognitive 65): DruidDdlParser.parse has cognitive complexity 65 (threshold 15). Drivers by points: if/else 36, loops 27, boolean chains 1, error handling 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":"parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/ddl/DruidDdlParser.java"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"eba317a0a98cd749f2eaca8c3b8448d13ddb8051174c7cdf44e19f7c82f3b4fa"}},{"ruleId":"D2","level":"warning","message":{"text":"ESSyncService.delete (cognitive 64): ESSyncService.delete has cognitive complexity 64 (threshold 15). Drivers by points: if/else 48, loops 11, boolean chains 5 (nesting depth added 37). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-adapter/escore/src/main/java/com/alibaba/otter/canal/client/adapter/es/core/service/ESSyncService.java"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b3483d43e6175f3c6dfb5a8aefa03e59bfe1c360e6ab59e2b4773d38a05877d"}},{"ruleId":"D2","level":"warning","message":{"text":"AdapterProcessor.process (cognitive 63): AdapterProcessor.process has cognitive complexity 63 (threshold 15). Drivers by points: if/else 36, error handling 15, loops 9, boolean chains 2, ternaries 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":"client-adapter/launcher/src/main/java/com/alibaba/otter/canal/adapter/launcher/loader/AdapterProcessor.java"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"17d5432ef37ba35900eb78d9d93bd57162ce8767b1cb708c6178e63eb6a1882f"}},{"ruleId":"D2","level":"warning","message":{"text":"TablestoreSyncService.getUpdateChanges (cognitive 62): TablestoreSyncService.getUpdateChanges has cognitive complexity 62 (threshold 15). Drivers by points: if/else 50, loops 12 (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":"client-adapter/tablestore/src/main/java/com/alibaba/otter/canal/client/adapter/tablestore/service/TablestoreSyncService.java"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"da82f742f206f2ca4ae0f3cae0f4041521b39db4fc79d0340afb22205f0cea04"}},{"ruleId":"D2","level":"warning","message":{"text":"1.run (cognitive 62): 1.run has cognitive complexity 62 (threshold 15). Drivers by points: if/else 43, error handling 12, boolean chains 6, loops 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":"parse/src/main/java/com/alibaba/otter/canal/parse/inbound/AbstractEventParser.java"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"67f63afdf6504694280ba076ab378ed3ec1e40939cb213e72909e5305cdec4fa"}},{"ruleId":"D2","level":"warning","message":{"text":"MemoryTableMeta.processTableElement (cognitive 61): MemoryTableMeta.processTableElement has cognitive complexity 61 (threshold 15). Drivers by points: if/else 44, loops 16, boolean chains 1 (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":"parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/tsdb/MemoryTableMeta.java"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"1038b40555c66126f4143190053cce810da80ab8030b4d8e1e2b088fde7bfa0b"}},{"ruleId":"D2","level":"warning","message":{"text":"MysqlEventParser.findStartPositionInternal (cognitive 61): MysqlEventParser.findStartPositionInternal has cognitive complexity 61 (threshold 15). Drivers by points: if/else 51, boolean chains 10 (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":"parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/MysqlEventParser.java"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"69d7703fca08f44c986e38d1fb87bb7dcc5a14c8d1d8ae5b9a2b743ac66370a4"}},{"ruleId":"D2","level":"warning","message":{"text":"ESSyncService.subTableSimpleFieldOperation (cognitive 59): ESSyncService.subTableSimpleFieldOperation has cognitive complexity 59 (threshold 15). Drivers by points: if/else 33, loops 25, error handling 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":"client-adapter/escore/src/main/java/com/alibaba/otter/canal/client/adapter/es/core/service/ESSyncService.java"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"a01eb7f233e9192b7d8619a0a9aab612a8f983ecaf14ca9bb614c1a2bdc88b4e"}},{"ruleId":"D2","level":"warning","message":{"text":"HbaseSyncService.update (cognitive 54): HbaseSyncService.update has cognitive complexity 54 (threshold 15). Drivers by points: if/else 40, loops 10, boolean chains 4 (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":"client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/service/HbaseSyncService.java"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb2d70b34919c6a251fd936542d629f5dd06d8b23af7904c39770c3f3095c8ca"}},{"ruleId":"D2","level":"warning","message":{"text":"CanalPulsarMQProducer.send (cognitive 53): CanalPulsarMQProducer.send has cognitive complexity 53 (threshold 15). Drivers by points: if/else 23, loops 20, ternaries 6, boolean chains 4 (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":"connector/pulsarmq-connector/src/main/java/com/alibaba/otter/canal/connector/pulsarmq/producer/CanalPulsarMQProducer.java"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d62c4b958e6b9301a338215197c66ddbba06c14cf8f8451aff1e376ab06a121"}},{"ruleId":"D2","level":"warning","message":{"text":"LogEventConvert.processFilter (cognitive 53): LogEventConvert.processFilter has cognitive complexity 53 (threshold 15). Drivers by points: if/else 40, boolean chains 11, loops 2 (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":"parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/dbsync/LogEventConvert.java"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"7809c463a183fe25448759bb33d525669479e5a6f9fa993117c71b518d641b28"}},{"ruleId":"D2","level":"warning","message":{"text":"ESEtlService.executeSqlImport (cognitive 51): ESEtlService.executeSqlImport has cognitive complexity 51 (threshold 15). Drivers by points: if/else 40, loops 6, error handling 4, 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":"client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/etl/ESEtlService.java"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dce45495aa76736227691879c1d3f340de3fc1161bef6fb6802834438f15323"}},{"ruleId":"D2","level":"warning","message":{"text":"ESEtlService.executeSqlImport (cognitive 51): ESEtlService.executeSqlImport has cognitive complexity 51 (threshold 15). Drivers by points: if/else 40, loops 6, error handling 4, 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":"client-adapter/es7x/src/main/java/com/alibaba/otter/canal/client/adapter/es7x/etl/ESEtlService.java"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e57335826a83643812807dc6b52929def749cfe41b2ebdaebabd0babff16237"}},{"ruleId":"D2","level":"warning","message":{"text":"ESEtlService.executeSqlImport (cognitive 51): ESEtlService.executeSqlImport has cognitive complexity 51 (threshold 15). Drivers by points: if/else 40, loops 6, error handling 4, 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":"client-adapter/es8x/src/main/java/com/alibaba/otter/canal/client/adapter/es8x/etl/ESEtlService.java"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"f51c90b2ce3f5f4d0385469c9c58022d66eb6e2dc2025b74f2136a2050b9f00e"}},{"ruleId":"D2","level":"warning","message":{"text":"ESSyncService.insert (cognitive 51): ESSyncService.insert has cognitive complexity 51 (threshold 15). Drivers by points: if/else 33, loops 14, boolean chains 4 (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":"client-adapter/escore/src/main/java/com/alibaba/otter/canal/client/adapter/es/core/service/ESSyncService.java"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6d1cf4cd0bc68404a1883aeb73980851891b8c730fe2f32cf97c424e52d550f"}},{"ruleId":"D2","level":"warning","message":{"text":"CanalRocketMQProducer.send (cognitive 48): CanalRocketMQProducer.send has cognitive complexity 48 (threshold 15). Drivers by points: if/else 23, loops 16, ternaries 6, boolean chains 3 (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":"connector/rocketmq-connector/src/main/java/com/alibaba/otter/canal/connector/rocketmq/producer/CanalRocketMQProducer.java"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf72d2ac739a21f8f4a3adfab57890cd7404162320d3e7fb393508041647df37"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncUtil.getTablestoreValue (cognitive 45): SyncUtil.getTablestoreValue has cognitive complexity 45 (threshold 15). Drivers by points: if/else 22, error handling 13, ternaries 9, match/switch 1 (nesting depth added 23). 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":"client-adapter/tablestore/src/main/java/com/alibaba/otter/canal/client/adapter/tablestore/support/SyncUtil.java"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"1995e723d56352b771da50fdacbb70a4269161a0e32580747c521b10a583c3e9"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionHandler.messageReceived (cognitive 43): SessionHandler.messageReceived has cognitive complexity 43 (threshold 15). Drivers by points: ternaries 27, if/else 8, match/switch 7, error handling 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":"server/src/main/java/com/alibaba/otter/canal/admin/handler/SessionHandler.java"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9f159c25a91fdc3028678afba9f9d91a4e05f432aadafad7c6afb89b86d82b3"}},{"ruleId":"D2","level":"warning","message":{"text":"HbaseMapping.setColumns (cognitive 41): HbaseMapping.setColumns has cognitive complexity 41 (threshold 15). Drivers by points: if/else 32, error handling 5, boolean chains 2, loops 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":"client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/config/MappingConfig.java"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e5932c17f0aabc9d5443a99cbc8fd9dec4e8227d997ac4032c115d18878dd38"}},{"ruleId":"D2","level":"warning","message":{"text":"HbaseSyncService.convertData2Row (cognitive 41): HbaseSyncService.convertData2Row has cognitive complexity 41 (threshold 15). Drivers by points: if/else 30, error handling 7, boolean chains 3, 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":"client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/service/HbaseSyncService.java"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c5f2bd5f17007e1ae946f39d808298b06a8b146e8a0e106ce97b67def8591ab"}},{"ruleId":"D2","level":"warning","message":{"text":"PhoenixSyncService.insert (cognitive 39): PhoenixSyncService.insert has cognitive complexity 39 (threshold 15). Drivers by points: if/else 31, loops 4, boolean chains 3, error handling 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":"client-adapter/phoenix/src/main/java/com/alibaba/otter/canal/client/adapter/phoenix/service/PhoenixSyncService.java"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"87de0df8baca64309e8d4cc5157c8572e8aef33f35e234435b1f931233b2f8dc"}},{"ruleId":"D2","level":"warning","message":{"text":"SpringInstanceConfigMonitor.scan (cognitive 39): SpringInstanceConfigMonitor.scan has cognitive complexity 39 (threshold 15). Drivers by points: if/else 26, loops 9, boolean chains 4 (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":"deployer/src/main/java/com/alibaba/otter/canal/deployer/monitor/SpringInstanceConfigMonitor.java"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e0504194666318c41c5a35059a615ff2d74fa67512969daaade1ea139709a18"}},{"ruleId":"D2","level":"warning","message":{"text":"MemoryEventStoreWithBuffer.doGet (cognitive 39): MemoryEventStoreWithBuffer.doGet has cognitive complexity 39 (threshold 15). Drivers by points: if/else 26, boolean chains 6, loops 5, ternaries 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"store/src/main/java/com/alibaba/otter/canal/store/memory/MemoryEventStoreWithBuffer.java"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"c957a0450664ef24896b80da37188819d9301829491f4a4cea2eb8f19bbfa137"}},{"ruleId":"D2","level":"warning","message":{"text":"Json_Value.toJsonString (cognitive 39): Json_Value.toJsonString has cognitive complexity 39 (threshold 15). Drivers by points: if/else 33, loops 4, boolean chains 1, match/switch 1 (nesting depth added 22). 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":"dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/JsonConversion.java"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"25aef405f54518662c68bc0a4c25128cf5aa40a9029a8391cae2aaf40248fe43"}},{"ruleId":"D2","level":"warning","message":{"text":"PhoenixEtlService.syncSchema (cognitive 38): PhoenixEtlService.syncSchema has cognitive complexity 38 (threshold 15). Drivers by points: if/else 25, error handling 7, boolean chains 4, loops 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":"client-adapter/phoenix/src/main/java/com/alibaba/otter/canal/client/adapter/phoenix/service/PhoenixEtlService.java"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c189288da679e1f8b481e98be86a2f7776cd94ef4150640f2addcb26c28ecf5"}},{"ruleId":"D2","level":"warning","message":{"text":"TableMapLogEvent.\u003Cinit\u003E (cognitive 38): TableMapLogEvent.\u003Cinit\u003E has cognitive complexity 38 (threshold 15). Drivers by points: if/else 25, loops 8, match/switch 3, 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":"dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/event/TableMapLogEvent.java"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6f45d391f5cd67481e174198ff02847174c2836b3460e054e43bd11bac202ee"}},{"ruleId":"D2","level":"warning","message":{"text":"CanalKafkaProducer.send (cognitive 37): CanalKafkaProducer.send has cognitive complexity 37 (threshold 15). Drivers by points: if/else 19, loops 9, ternaries 7, 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":"connector/kafka-connector/src/main/java/com/alibaba/otter/canal/connector/kafka/producer/CanalKafkaProducer.java"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"0650247f1f6bbd0948c92394bc7e95995fc4f90c91f3d361e8ebaf83e97e6447"}},{"ruleId":"D2","level":"warning","message":{"text":"MysqlEventParser.preDump (cognitive 36): MysqlEventParser.preDump has cognitive complexity 36 (threshold 15). Drivers by points: if/else 22, boolean chains 6, loops 6, error handling 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":"parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/MysqlEventParser.java"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"2214909c05e3fe73921d335f48fb174d204eead22b57b16101059f2ba30de8b6"}},{"ruleId":"D2","level":"warning","message":{"text":"CanalMQStarter.worker (cognitive 36): CanalMQStarter.worker has cognitive complexity 36 (threshold 15). Drivers by points: error handling 14, if/else 10, boolean chains 5, loops 4, ternaries 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":"server/src/main/java/com/alibaba/otter/canal/server/CanalMQStarter.java"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4e0c1ec5a561accb3733c351e55201d4591685648d53440693fb956c6f7c056"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseCanalClientTest.printEntry (cognitive 35): BaseCanalClientTest.printEntry has cognitive complexity 35 (threshold 15). Drivers by points: if/else 17, error handling 12, loops 4, 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":"example/src/main/java/com/alibaba/otter/canal/example/BaseCanalClientTest.java"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"28220b92cd224692786c28735240fdada918301bd61d2441e6c5d9fdd62e8564"}},{"ruleId":"D2","level":"warning","message":{"text":"ExtensionLoader.loadExtensionClasses (cognitive 34): ExtensionLoader.loadExtensionClasses has cognitive complexity 34 (threshold 15). Drivers by points: if/else 23, error handling 5, loops 4, 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":"connector/core/src/main/java/com/alibaba/otter/canal/connector/core/spi/ExtensionLoader.java"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa50cc8534e73f6b65d13e8a20a65ab43daeba82854ebc8a6e33d27bcd3aae45"}},{"ruleId":"D2","level":"warning","message":{"text":"QueryLogEvent.unpackVariables (cognitive 34): QueryLogEvent.unpackVariables has cognitive complexity 34 (threshold 15). Drivers by points: if/else 22, loops 4, ternaries 4, match/switch 2, boolean chains 1, error handling 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":"dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/event/QueryLogEvent.java"},"region":{"startLine":720}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bc09f6a25d913237197d49f80bef44dd22702d8db8a900d55cf68a002350a31"}},{"ruleId":"D2","level":"warning","message":{"text":"JsonDiffConversion.print_json_diff (cognitive 34): JsonDiffConversion.print_json_diff has cognitive complexity 34 (threshold 15). Drivers by points: if/else 29, loops 3, 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":"dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/JsonDiffConversion.java"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e4dfdf1fdcf91b9830e17b0a5e9790cf8bff91729a89563dca454bfe7e68ebb"}},{"ruleId":"D2","level":"warning","message":{"text":"Util.parseDate2 (cognitive 33): Util.parseDate2 has cognitive complexity 33 (threshold 15). Drivers by points: if/else 22, loops 8, boolean chains 2, error handling 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":"client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/Util.java"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1dca004fd80af5336f6ad3bba4f5bf89ea2f4ca90c10ee863e0aaab1f362c2f"}},{"ruleId":"D2","level":"warning","message":{"text":"MQMessageUtils.messageTopics (cognitive 33): MQMessageUtils.messageTopics has cognitive complexity 33 (threshold 15). Drivers by points: if/else 16, loops 12, error handling 3, 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":"connector/core/src/main/java/com/alibaba/otter/canal/connector/core/producer/MQMessageUtils.java"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"664d7abbfa647f631f1fe57c977bcbc24b296d4712778dbdf7afae472991c972"}},{"ruleId":"D2","level":"warning","message":{"text":"CanalKafkaOffsetClientExample.process (cognitive 33): CanalKafkaOffsetClientExample.process has cognitive complexity 33 (threshold 15). Drivers by points: if/else 18, error handling 7, loops 7, 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":"example/src/main/java/com/alibaba/otter/canal/example/kafka/CanalKafkaOffsetClientExample.java"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"612f2f12b903d1ad869440d202a6519495d789b73206bb4b2f97535a492a838e"}},{"ruleId":"D2","level":"warning","message":{"text":"CanalInstanceWithManager.doInitEventParser (cognitive 33): CanalInstanceWithManager.doInitEventParser has cognitive complexity 33 (threshold 15). Drivers by points: if/else 32, 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":"instance/manager/src/main/java/com/alibaba/otter/canal/instance/manager/CanalInstanceWithManager.java"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3e693514342b785a90b1b4eeb317e5567b3772b33178aa15c8672355cc05872"}},{"ruleId":"D2","level":"warning","message":{"text":"CanalInstanceServiceImpl.findList (cognitive 31): CanalInstanceServiceImpl.findList has cognitive complexity 31 (threshold 15). Drivers by points: if/else 22, loops 5, error handling 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":"admin/admin-web/src/main/java/com/alibaba/otter/canal/admin/service/impl/CanalInstanceServiceImpl.java"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2afb96feb23ddecbf2a48f590dca47d947289b1251d180ca5228d54623c961c"}},{"ruleId":"D2","level":"warning","message":{"text":"PhoenixEtlService.executeSqlImport (cognitive 31): PhoenixEtlService.executeSqlImport has cognitive complexity 31 (threshold 15). Drivers by points: if/else 18, loops 7, error handling 6 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-adapter/phoenix/src/main/java/com/alibaba/otter/canal/client/adapter/phoenix/service/PhoenixEtlService.java"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c183cd500545913c9846bc633dc30a365f8593642f7a06b7daa8cc82391a6cf"}},{"ruleId":"D2","level":"warning","message":{"text":"X509TrustManagerWrapper.checkServerTrusted (cognitive 31): X509TrustManagerWrapper.checkServerTrusted has cognitive complexity 31 (threshold 15). Drivers by points: if/else 15, error handling 8, loops 8 (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":"driver/src/main/java/com/alibaba/otter/canal/parse/driver/mysql/socket/BioSocketChannelPool.java"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"492c052d30b5cffb21a5f35742e74be5169d9bb91cba01185a4970b3f4f9c18b"}},{"ruleId":"D2","level":"warning","message":{"text":"TypeUtil.toBytes (cognitive 30): TypeUtil.toBytes has cognitive complexity 30 (threshold 15). Drivers by points: if/else 29, 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":"client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/support/TypeUtil.java"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"65d4367ec487a39ff4cb5d7896d4bfd8ed0f244a2a73918a7872b69d6dba34ac"}},{"ruleId":"D2","level":"warning","message":{"text":"FileUtils.readFileFromOffset (cognitive 30): FileUtils.readFileFromOffset has cognitive complexity 30 (threshold 15). Drivers by points: if/else 25, error handling 3, 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":"common/src/main/java/com/alibaba/otter/canal/common/utils/FileUtils.java"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"0aeb663e4df480a72ce6cf6d9c633a61c3fbb8142ad6402c17eed993e1cf8cdc"}},{"ruleId":"D2","level":"warning","message":{"text":"CanalMessageSerializerUtil.serializer (cognitive 30): CanalMessageSerializerUtil.serializer has cognitive complexity 30 (threshold 15). Drivers by points: if/else 13, loops 13, boolean chains 3, 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":"connector/core/src/main/java/com/alibaba/otter/canal/connector/core/util/CanalMessageSerializerUtil.java"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba8f377ee360c829ff7f4292d6236b62cd7242797b6e07b7ad41613bd2131071"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalBinLogConnection.dump (cognitive 30): LocalBinLogConnection.dump has cognitive complexity 30 (threshold 15). Drivers by points: if/else 22, loops 7, error handling 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":"parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/LocalBinLogConnection.java"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"8769a0ff81b2304bb66ef84efee24b0f9fdaabe7531088a9a12ad92643c75fd5"}},{"ruleId":"D2","level":"warning","message":{"text":"SqlParser.visitColumn (cognitive 29): SqlParser.visitColumn has cognitive complexity 29 (threshold 15). Drivers by points: if/else 25, loops 4 (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":"client-adapter/escore/src/main/java/com/alibaba/otter/canal/client/adapter/es/core/config/SqlParser.java"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"93c060c9f2c2032d41a6548c4a140bf72e3dc9d0a3495ccad7ba6aafb50cbfd5"}},{"ruleId":"D2","level":"warning","message":{"text":"TypeUtil.getPhoenixType (cognitive 29): TypeUtil.getPhoenixType has cognitive complexity 29 (threshold 15). Drivers by points: if/else 28, match/switch 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":"client-adapter/phoenix/src/main/java/com/alibaba/otter/canal/client/adapter/phoenix/support/TypeUtil.java"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"049835fd86ff04e663a7cb9ec9ce82116b90235d069c5d330f5b333f02f343ff"}},{"ruleId":"D2","level":"warning","message":{"text":"DatabaseTableMeta.dumpTableMeta (cognitive 29): DatabaseTableMeta.dumpTableMeta has cognitive complexity 29 (threshold 15). Drivers by points: if/else 16, loops 9, boolean chains 3, error handling 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":"parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/tsdb/DatabaseTableMeta.java"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0f794957ce1270addae0f4f9f96be0e17c3c198711db898d7afccbb4413abb1"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalBinLogConnection.dump (cognitive 29): LocalBinLogConnection.dump has cognitive complexity 29 (threshold 15). Drivers by points: if/else 26, loops 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":"parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/LocalBinLogConnection.java"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e60d579278882d55d5ae6997c93c76b7607e0a6302761f1c13c74875691f233"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalBinLogConnection.dump (cognitive 29): LocalBinLogConnection.dump has cognitive complexity 29 (threshold 15). Drivers by points: if/else 26, loops 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":"parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/LocalBinLogConnection.java"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"4db667ac05260c42821cf60b8041d99c3a0181a2011021e663ca94af08696bfc"}},{"ruleId":"D2","level":"warning","message":{"text":"DbMapping.init (cognitive 28): DbMapping.init has cognitive complexity 28 (threshold 15). Drivers by points: if/else 19, loops 3, ternaries 3, boolean chains 2, error handling 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":"client-adapter/tablestore/src/main/java/com/alibaba/otter/canal/client/adapter/tablestore/config/MappingConfig.java"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c6494a66c34f7247583d4a82f16a8dcd42c3c625df9bd0239396a27b7834ca5"}},{"ruleId":"D2","level":"warning","message":{"text":"DatabaseTableMeta.applySnapshotToDB (cognitive 28): DatabaseTableMeta.applySnapshotToDB has cognitive complexity 28 (threshold 15). Drivers by points: if/else 19, loops 4, boolean chains 3, error handling 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":"parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/tsdb/DatabaseTableMeta.java"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8616a2817e5a4c4ddfc2b6a894e10e9813fa88e244fe1ad265b27d2451c07b6"}},{"ruleId":"D2","level":"warning","message":{"text":"PrometheusCanalEventDownStreamHandler.before (cognitive 28): PrometheusCanalEventDownStreamHandler.before has cognitive complexity 28 (threshold 15). Drivers by points: if/else 22, match/switch 3, loops 2, boolean chains 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":"prometheus/src/main/java/com/alibaba/otter/canal/prometheus/impl/PrometheusCanalEventDownStreamHandler.java"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9e2b7034ac6874cda2a42584dc9244303ddd210973fac469a03373dc1c9923a"}},{"ruleId":"D2","level":"warning","message":{"text":"JdbcTypeUtil.typeConvert (cognitive 27): JdbcTypeUtil.typeConvert has cognitive complexity 27 (threshold 15). Drivers by points: if/else 21, boolean chains 4, error handling 1, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/JdbcTypeUtil.java"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"cab3b46feed751921a7d40a35e8ece0207bd9be1949bb89b24e3a5b25e28035f"}},{"ruleId":"D2","level":"warning","message":{"text":"KuduSyncService.delete (cognitive 27): KuduSyncService.delete has cognitive complexity 27 (threshold 15). Drivers by points: if/else 16, loops 7, boolean chains 2, error handling 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-adapter/kudu/src/main/java/com/alibaba/otter/canal/client/adapter/kudu/service/KuduSyncService.java"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"47a3e65d4d88492b5a547f6f0b12dc00b63d0da0390619a6fd7a57b3947e4f98"}},{"ruleId":"D2","level":"warning","message":{"text":"PhoenixSyncService.sync (cognitive 27): PhoenixSyncService.sync has cognitive complexity 27 (threshold 15). Drivers by points: if/else 16, loops 6, error handling 4, 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":"client-adapter/phoenix/src/main/java/com/alibaba/otter/canal/client/adapter/phoenix/service/PhoenixSyncService.java"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5e375440b14a9338a747b6478921400bc8514d7bf301acd80a8b068af000667"}},{"ruleId":"D2","level":"warning","message":{"text":"JdbcTypeUtil.typeConvert (cognitive 27): JdbcTypeUtil.typeConvert has cognitive complexity 27 (threshold 15). Drivers by points: if/else 21, boolean chains 4, error handling 1, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"connector/core/src/main/java/com/alibaba/otter/canal/connector/core/util/JdbcTypeUtil.java"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"5341de1770dce58ce9f94a76ded90da80a7858e955ea74fc9da1724699cf30fc"}},{"ruleId":"D2","level":"warning","message":{"text":"ExtensionLoader.loadExtensionClasses (cognitive 26): ExtensionLoader.loadExtensionClasses has cognitive complexity 26 (threshold 15). Drivers by points: if/else 18, error handling 4, loops 3, boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/ExtensionLoader.java"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f599b845819c93c9d46bac0bdc2eb4227d059dd7f134488e22a1234318fb377"}},{"ruleId":"D2","level":"warning","message":{"text":"PhoenixSyncService.sync (cognitive 26): PhoenixSyncService.sync has cognitive complexity 26 (threshold 15). Drivers by points: if/else 15, error handling 5, loops 4, 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":"client-adapter/phoenix/src/main/java/com/alibaba/otter/canal/client/adapter/phoenix/service/PhoenixSyncService.java"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"6848059da12d9f5bdd8975e9c879670e469713e585a5081c0cc9ba4ef7ae6289"}},{"ruleId":"D2","level":"warning","message":{"text":"BioSocketChannelPool.getSSLContext (cognitive 26): BioSocketChannelPool.getSSLContext has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9, ternaries 8, error handling 5, boolean chains 2, loops 2 (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":"driver/src/main/java/com/alibaba/otter/canal/parse/driver/mysql/socket/BioSocketChannelPool.java"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"57ed3a32721256e94169388684c7483f0ed624abd0d670ae7987329b93e5223b"}},{"ruleId":"D2","level":"warning","message":{"text":"BinlogDownloadQueue.saveFile (cognitive 26): BinlogDownloadQueue.saveFile has cognitive complexity 26 (threshold 15). Drivers by points: if/else 17, loops 7, boolean chains 1, ternaries 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/rds/BinlogDownloadQueue.java"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"8352efc91cc69671eab05d804dbfb997225edbd6b4a79f46b8ba535bd693db91"}},{"ruleId":"D2","level":"warning","message":{"text":"DownloadThread.run (cognitive 26): DownloadThread.run has cognitive complexity 26 (threshold 15). Drivers by points: error handling 12, if/else 10, loops 4 (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":"parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/rds/BinlogDownloadQueue.java"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8bdafe4eff174f4acc5a4f2ef968327e25a28ed30ec6915c9d849fa7018d27e"}},{"ruleId":"D2","level":"warning","message":{"text":"DatabaseTableMeta.compareTableMeta (cognitive 26): DatabaseTableMeta.compareTableMeta has cognitive complexity 26 (threshold 15). Drivers by points: if/else 17, boolean chains 6, ternaries 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":"parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/tsdb/DatabaseTableMeta.java"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"052b19ef6206bfbb3e7c9f408afe7c24bab6d184ae1d431871cf0db6d7a88bd5"}},{"ruleId":"D2","level":"warning","message":{"text":"MemoryTableMeta.find (cognitive 26): MemoryTableMeta.find has cognitive complexity 26 (threshold 15). Drivers by points: if/else 26 (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":"parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/tsdb/MemoryTableMeta.java"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad82576b17c9b13d29a7d5a17f43349955cd0f2420259a2c19f867da70bcd7c4"}},{"ruleId":"D2","level":"warning","message":{"text":"FileLogFetcher.fetch (cognitive 26): FileLogFetcher.fetch has cognitive complexity 26 (threshold 15). Drivers by points: if/else 26 (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":"dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/FileLogFetcher.java"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eba52a38b3b7e0ee706a1129e33d5450368751c606a0a188efbaddd6df56cb5"}},{"ruleId":"D2","level":"warning","message":{"text":"JsonConversion.parse_scalar (cognitive 26): JsonConversion.parse_scalar has cognitive complexity 26 (threshold 15). Drivers by points: if/else 18, loops 4, match/switch 3, boolean chains 1 (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":"dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/JsonConversion.java"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e9734a3e34586689484bc4745cd621fa628c11a86f381ec72299c02f36adf75"}},{"ruleId":"D2","level":"warning","message":{"text":"HbaseSyncService.deleteAndInsert (cognitive 25): HbaseSyncService.deleteAndInsert has cognitive complexity 25 (threshold 15). Drivers by points: if/else 14, loops 8, 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":"client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/service/HbaseSyncService.java"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"a370a20b03f86209e9051e5c572fb0ec9b99e1ee7ff7b64d175e20f67988c43a"}},{"ruleId":"D2","level":"warning","message":{"text":"KuduTemplate.fillRow (cognitive 25): KuduTemplate.fillRow has cognitive complexity 25 (threshold 15). Drivers by points: error handling 11, if/else 8, ternaries 3, boolean chains 2, match/switch 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":"client-adapter/kudu/src/main/java/com/alibaba/otter/canal/client/adapter/kudu/support/KuduTemplate.java"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"3849f937bb85f2f2fdb9b21cd801d29a8ada2b186a79e3393d7039f0e91ffabf"}},{"ruleId":"D2","level":"warning","message":{"text":"PhoenixSupportUtil.sqlRS (cognitive 25): PhoenixSupportUtil.sqlRS has cognitive complexity 25 (threshold 15). Drivers by points: error handling 13, if/else 12 (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":"client-adapter/phoenix/src/main/java/com/alibaba/otter/canal/client/adapter/phoenix/support/PhoenixSupportUtil.java"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"22fbf1ace3f50ec3b14421881f40fdb0ffd9d0f1cf2fd0e47001aa5f9ffea44c"}},{"ruleId":"D2","level":"warning","message":{"text":"PhoenixAdapter.etl (cognitive 25): PhoenixAdapter.etl has cognitive complexity 25 (threshold 15). Drivers by points: if/else 23, loops 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":"client-adapter/phoenix/src/main/java/com/alibaba/otter/canal/client/adapter/phoenix/PhoenixAdapter.java"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"2043c4faa04fc565e0100dd90d1223d3b09cf972d27f97bb5ae3c5bc5e4620e2"}},{"ruleId":"D2","level":"warning","message":{"text":"LogDecoder.decode (cognitive 25): LogDecoder.decode has cognitive complexity 25 (threshold 15). Drivers by points: if/else 23, boolean chains 1, 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":"dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogDecoder.java"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e02553534551ce1f2c29ee251fbbe84a84db5c344dd3afc0db452845cbb46c7"}},{"ruleId":"D2","level":"warning","message":{"text":"ClickHouseBatchSyncService.distributeDml (cognitive 24): ClickHouseBatchSyncService.distributeDml has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13, loops 9, error handling 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":"client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/service/ClickHouseBatchSyncService.java"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"b83f44c17ecb63b93496dc4d7c9dfe1eee03539423abb090da8aeec4770db01a"}},{"ruleId":"D2","level":"warning","message":{"text":"ClickHouseBatchSyncService.insert (cognitive 24): ClickHouseBatchSyncService.insert has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14, boolean chains 5, loops 4, 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":"client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/service/ClickHouseBatchSyncService.java"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd20fd6540ad2f543e64bd7c4cc8b40fb1dd1ded0ba852aa0aae85a6a993e6f8"}},{"ruleId":"D2","level":"warning","message":{"text":"ClickHouseEtlService.executeSqlImport (cognitive 24): ClickHouseEtlService.executeSqlImport has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14, loops 7, error handling 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/service/ClickHouseEtlService.java"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2d54dbe201c387bac4c017f2996cc01f894fba08a8f5d55ff1957f668af6f79"}},{"ruleId":"D2","level":"warning","message":{"text":"PhType.getType (cognitive 24): PhType.getType has cognitive complexity 24 (threshold 15). Drivers by points: if/else 17, 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":"client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/support/PhType.java"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"65423cc0e92c662f0dcd81abcfcbdd3f4c7f4b6f013fbe05cd38447aca9d56d6"}},{"ruleId":"D2","level":"warning","message":{"text":"RdbEtlService.executeSqlImport (cognitive 24): RdbEtlService.executeSqlImport has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14, loops 7, error handling 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-adapter/rdb/src/main/java/com/alibaba/otter/canal/client/adapter/rdb/service/RdbEtlService.java"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"02b367b667c25a3cf13fce065b07b5dd49ea6447559caad43034df56e864d932"}},{"ruleId":"D2","level":"warning","message":{"text":"TablestoreAdapter.sync (cognitive 24): TablestoreAdapter.sync has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13, error handling 5, loops 4, 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":"client-adapter/tablestore/src/main/java/com/alibaba/otter/canal/client/adapter/tablestore/TablestoreAdapter.java"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"2240cafb220d08d9abae68c0022aac1897406673766a6dcb5dc7a2566b1cb836"}},{"ruleId":"D2","level":"warning","message":{"text":"AddressUtils.getHostAddress (cognitive 24): AddressUtils.getHostAddress has cognitive complexity 24 (threshold 15). Drivers by points: error handling 9, if/else 9, loops 6 (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":"common/src/main/java/com/alibaba/otter/canal/common/utils/AddressUtils.java"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"5acad5625d0f67ae10b6f2f3dbd8309bdc3991563cf3be77ebeab8420c3e1639"}},{"ruleId":"D2","level":"warning","message":{"text":"AviaterRegexFilter.splitPattern (cognitive 24): AviaterRegexFilter.splitPattern has cognitive complexity 24 (threshold 15). Drivers by points: if/else 19, boolean chains 2, match/switch 2, 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":"connector/core/src/main/java/com/alibaba/otter/canal/connector/core/filter/AviaterRegexFilter.java"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"67d0a993ce2c0c004634a03f67c0fc8a4cba72293faebe838fac00727cf680a0"}},{"ruleId":"D2","level":"warning","message":{"text":"AviaterRegexFilter.splitPattern (cognitive 24): AviaterRegexFilter.splitPattern has cognitive complexity 24 (threshold 15). Drivers by points: if/else 19, boolean chains 2, match/switch 2, 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":"filter/src/main/java/com/alibaba/otter/canal/filter/aviater/AviaterRegexFilter.java"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa1b14cbf9316fcea569a79c6bb85404b05b369d509b5848e076c469b661fa71"}},{"ruleId":"D2","level":"warning","message":{"text":"MemoryEventStoreWithBuffer.cleanUntil (cognitive 24): MemoryEventStoreWithBuffer.cleanUntil has cognitive complexity 24 (threshold 15). Drivers by points: if/else 16, loops 5, boolean chains 3 (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":"store/src/main/java/com/alibaba/otter/canal/store/memory/MemoryEventStoreWithBuffer.java"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"131043177047864a8b7be08b8189a99ad21b4fa5fd28dca0b3f33017d4c6b2d8"}},{"ruleId":"D2","level":"warning","message":{"text":"TypeUtil.toObject (cognitive 23): TypeUtil.toObject has cognitive complexity 23 (threshold 15). Drivers by points: if/else 16, 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":"client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/support/TypeUtil.java"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"843aed6b1c2828d6f69878cb858fc475700b092946239c697e9560e543e9bb47"}},{"ruleId":"D2","level":"warning","message":{"text":"PhoenixEtlService.appendCondition (cognitive 23): PhoenixEtlService.appendCondition has cognitive complexity 23 (threshold 15). Drivers by points: if/else 15, loops 4, boolean chains 3, 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":"client-adapter/phoenix/src/main/java/com/alibaba/otter/canal/client/adapter/phoenix/service/PhoenixEtlService.java"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3077d29e33293fba3d6f1a87ccc393ee551692cb40dd96b2c771ef8ee1f9466"}},{"ruleId":"D2","level":"warning","message":{"text":"CanalKafkaClientExample.process (cognitive 23): CanalKafkaClientExample.process has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8, error handling 7, loops 7, 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":"example/src/main/java/com/alibaba/otter/canal/example/kafka/CanalKafkaClientExample.java"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"15a11408eeeb9141524ad970849b8c668488715ecaa19180d6bf7426b24fcf08"}},{"ruleId":"D2","level":"warning","message":{"text":"CanalKafkaClientFlatMessageExample.process (cognitive 23): CanalKafkaClientFlatMessageExample.process has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8, error handling 7, loops 7, 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":"example/src/main/java/com/alibaba/otter/canal/example/kafka/CanalKafkaClientFlatMessageExample.java"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"6359c42c4c25ead3795d4c03371db89c5a35a8a6ac4d884af4bab110862c9cb4"}},{"ruleId":"D2","level":"warning","message":{"text":"AbstractEtlService.importData (cognitive 22): AbstractEtlService.importData has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10, loops 6, ternaries 3, error handling 2, 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":"client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/AbstractEtlService.java"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee6e2821fa8ba33420f609491826f33a89bb395ebf3bb6bd67103ef9c74985f0"}},{"ruleId":"D2","level":"warning","message":{"text":"PhoenixEtlService.importData (cognitive 22): PhoenixEtlService.importData has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14, loops 4, error handling 2, boolean chains 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":"client-adapter/phoenix/src/main/java/com/alibaba/otter/canal/client/adapter/phoenix/service/PhoenixEtlService.java"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff3d237b6d36b39f9c8c408cc60750592c301da6efc8ad328c9654341d37b1e5"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncUtil.getColumnsMap (cognitive 22): SyncUtil.getColumnsMap has cognitive complexity 22 (threshold 15). Drivers by points: if/else 15, loops 6, 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":"client-adapter/phoenix/src/main/java/com/alibaba/otter/canal/client/adapter/phoenix/support/SyncUtil.java"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"7515b300f38d2b9ae9de85bf8741764dd2d1a3ba8225861e9de68aadffd409af"}},{"ruleId":"D2","level":"warning","message":{"text":"ClusterCanalConnector.connect (cognitive 22): ClusterCanalConnector.connect has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11, error handling 8, loops 3 (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":"client/src/main/java/com/alibaba/otter/canal/client/impl/ClusterCanalConnector.java"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"aca84affe25929305112ec1e3925dc4c4fecd430fd468332d10e465b194d0c1a"}},{"ruleId":"D2","level":"warning","message":{"text":"CanalRocketMQProducer.sendMessage (cognitive 22): CanalRocketMQProducer.sendMessage has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14, loops 5, error handling 3 (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":"connector/rocketmq-connector/src/main/java/com/alibaba/otter/canal/connector/rocketmq/producer/CanalRocketMQProducer.java"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"83493c45f8efc63fd28987570e4aa17b39c790328fcd346a9f8b2ddb20998ac9"}},{"ruleId":"D2","level":"warning","message":{"text":"CanalController.\u003Cinit\u003E (cognitive 22): CanalController.\u003Cinit\u003E has cognitive complexity 22 (threshold 15). Drivers by points: if/else 19, 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":"deployer/src/main/java/com/alibaba/otter/canal/deployer/CanalController.java"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"14c36bc519ff0cdc2c26d49a4a46e4d552b034fe15a54063529c4f88df77abfe"}},{"ruleId":"D2","level":"warning","message":{"text":"DirectLogFetcher.fetch (cognitive 22): DirectLogFetcher.fetch has cognitive complexity 22 (threshold 15). Drivers by points: if/else 17, error handling 3, 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":"parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/dbsync/DirectLogFetcher.java"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"56df0b6bee7a37cae68726838cd52fe4945601b641feee9af6085574a8679c6a"}},{"ruleId":"D2","level":"warning","message":{"text":"LogEventConvert.parseRowsEvent (cognitive 22): LogEventConvert.parseRowsEvent has cognitive complexity 22 (threshold 15). Drivers by points: if/else 17, boolean chains 3, error handling 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":"parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/dbsync/LogEventConvert.java"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1d1ccfd248615c8f5da601ba2e59340551703905cd129adee29c8be635b0e97"}},{"ruleId":"D2","level":"warning","message":{"text":"EntryEventSink.sinkData (cognitive 22): EntryEventSink.sinkData has cognitive complexity 22 (threshold 15). Drivers by points: if/else 15, boolean chains 6, 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":"sink/src/main/java/com/alibaba/otter/canal/sink/entry/EntryEventSink.java"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"811ffb3d8231fd68fa179b0e922f47bc482503edacf543fbce5be3bc8d090439"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncUtil.getColumnsMap (cognitive 21): SyncUtil.getColumnsMap has cognitive complexity 21 (threshold 15). Drivers by points: if/else 15, loops 6 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/support/SyncUtil.java"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3bc8934fb8f7986d25f84fa014c5f240ac38a8dad201a2894e0ac721d60dd94"}},{"ruleId":"D2","level":"warning","message":{"text":"ES6xAdapter.etl (cognitive 21): ES6xAdapter.etl has cognitive complexity 21 (threshold 15). Drivers by points: if/else 19, 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":"client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/ES6xAdapter.java"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"78f1246f05065fc8eefff2a4edf5049490ee02dc6ebd53627bfc3fc17b5e0df8"}},{"ruleId":"D2","level":"warning","message":{"text":"ES7xAdapter.etl (cognitive 21): ES7xAdapter.etl has cognitive complexity 21 (threshold 15). Drivers by points: if/else 19, 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":"client-adapter/es7x/src/main/java/com/alibaba/otter/canal/client/adapter/es7x/ES7xAdapter.java"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"303a23de690bfefdc254765b93fa758190b8be69f5d73d1e3f2b49b48ab9a3f5"}},{"ruleId":"D2","level":"warning","message":{"text":"ES8xAdapter.etl (cognitive 21): ES8xAdapter.etl has cognitive complexity 21 (threshold 15). Drivers by points: if/else 19, 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":"client-adapter/es8x/src/main/java/com/alibaba/otter/canal/client/adapter/es8x/ES8xAdapter.java"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"94796070c596fa175f5fde70ee8bc2ebd61af2e9f67c20b9e8f895f0b4e18255"}},{"ruleId":"D2","level":"warning","message":{"text":"Type.getType (cognitive 21): Type.getType has cognitive complexity 21 (threshold 15). Drivers by points: if/else 14, 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":"client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/support/Type.java"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"97cf288897207e0f57b434eabecaaaa8aca0c348c410e9eca400ba15c7fdbbdc"}},{"ruleId":"D2","level":"warning","message":{"text":"TypeUtil.toBytes (cognitive 21): TypeUtil.toBytes has cognitive complexity 21 (threshold 15). Drivers by points: if/else 14, 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":"client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/support/TypeUtil.java"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccddc79815011a0b327e244db88d8914d41cf799d541cc2f869a96d0ebda6de8"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncUtil.getColumnsMap (cognitive 21): SyncUtil.getColumnsMap has cognitive complexity 21 (threshold 15). Drivers by points: if/else 15, loops 6 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-adapter/kudu/src/main/java/com/alibaba/otter/canal/client/adapter/kudu/support/SyncUtil.java"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"a29362db31c37ff773e8ac7f4f0d4b799d5e1470fd7df082e926e3e85a7f236f"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncUtil.getColumnsMap (cognitive 21): SyncUtil.getColumnsMap has cognitive complexity 21 (threshold 15). Drivers by points: if/else 15, loops 6 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-adapter/rdb/src/main/java/com/alibaba/otter/canal/client/adapter/rdb/support/SyncUtil.java"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"8453173f6effa8c080fc0ce82577d48b9b7ad280831a48e5174ddb86df0cc0d4"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalBinLogConnection.dump (cognitive 21): LocalBinLogConnection.dump has cognitive complexity 21 (threshold 15). Drivers by points: if/else 17, loops 3, error handling 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/LocalBinLogConnection.java"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"d301eb60c6969975343695cf5b24fd00862a9b89d3aa10f73661ee067a71a8ae"}},{"ruleId":"D2","level":"warning","message":{"text":"RowsLogBuffer.mysqlToJavaType (cognitive 21): RowsLogBuffer.mysqlToJavaType has cognitive complexity 21 (threshold 15). Drivers by points: if/else 16, match/switch 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":"dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/event/RowsLogBuffer.java"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7b1d61ad60a534ea8141032a9021f997bb744e302589a36a767cd17a141d841"}},{"ruleId":"D2","level":"warning","message":{"text":"CanalInstanceServiceImpl.remoteOperation (cognitive 20): CanalInstanceServiceImpl.remoteOperation has cognitive complexity 20 (threshold 15). Drivers by points: if/else 20 (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":"admin/admin-web/src/main/java/com/alibaba/otter/canal/admin/service/impl/CanalInstanceServiceImpl.java"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a9d383b7d2d33204b9d175617c73ec532c67e720a32f3738cf22f3446ad2c5c"}},{"ruleId":"D2","level":"warning","message":{"text":"KuduAdapter.sync (cognitive 20): KuduAdapter.sync has cognitive complexity 20 (threshold 15). Drivers by points: if/else 17, 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":"client-adapter/kudu/src/main/java/com/alibaba/otter/canal/client/adapter/kudu/KuduAdapter.java"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b1cd9d48e65b2fe1664ee841e68df33972825d54a09b761805206084cf076b3"}},{"ruleId":"D2","level":"warning","message":{"text":"TablestoreEtlService.executeSqlImport (cognitive 20): TablestoreEtlService.executeSqlImport has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9, error handling 7, boolean chains 2, loops 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-adapter/tablestore/src/main/java/com/alibaba/otter/canal/client/adapter/tablestore/service/TablestoreEtlService.java"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"d097fd5d0f006f2fb155360eed8ed0b9ada5038aa5853b8603ccd0e975594ac9"}},{"ruleId":"D2","level":"warning","message":{"text":"TablestoreSyncService.getDeleteChanges (cognitive 20): TablestoreSyncService.getDeleteChanges has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13, loops 7 (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":"client-adapter/tablestore/src/main/java/com/alibaba/otter/canal/client/adapter/tablestore/service/TablestoreSyncService.java"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"f478309364f7ef4d6d699082926797ac4d2d89ee6ce634fd1a859288b371604f"}},{"ruleId":"D2","level":"warning","message":{"text":"DbRemoteConfigLoader.loadModifiedAdapterConfigs (cognitive 20): DbRemoteConfigLoader.loadModifiedAdapterConfigs has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9, loops 7, error handling 4 (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":"client-adapter/launcher/src/main/java/com/alibaba/otter/canal/adapter/launcher/monitor/remote/DbRemoteConfigLoader.java"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8bfee56b23bdaa4b7605b3a59650f772c1da16a14e55d0654099074573413db"}},{"ruleId":"D2","level":"warning","message":{"text":"CanalKafkaConsumer.getMessage (cognitive 20): CanalKafkaConsumer.getMessage has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14, loops 6 (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":"connector/kafka-connector/src/main/java/com/alibaba/otter/canal/connector/kafka/consumer/CanalKafkaConsumer.java"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"9da461cd0953eb28c908da4fd5c531e3f4b8f8fad258c0ed3c0984a5b9bfdd4c"}},{"ruleId":"D2","level":"warning","message":{"text":"MysqlEventParser.findByStartTimeStamp (cognitive 20): MysqlEventParser.findByStartTimeStamp has cognitive complexity 20 (threshold 15). Drivers by points: if/else 16, error handling 2, 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":"parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/MysqlEventParser.java"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"b24da07ab2809ccc906181f1830697811988510938486f81dcb1337692c5aeef"}},{"ruleId":"D2","level":"warning","message":{"text":"MysqlMultiStageCoprocessor.publish (cognitive 20): MysqlMultiStageCoprocessor.publish has cognitive complexity 20 (threshold 15). Drivers by points: if/else 16, error handling 2, 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":"parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/MysqlMultiStageCoprocessor.java"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"879ad71b79faf55a8da5890ec673406cd7de0d8760b8e17ffa204aad8a79596d"}},{"ruleId":"D2","level":"warning","message":{"text":"EntryEventSink.doSink (cognitive 20): EntryEventSink.doSink has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12, loops 7, 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":"sink/src/main/java/com/alibaba/otter/canal/sink/entry/EntryEventSink.java"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"23805da9cc09c86d23e52a86bc7c1ce66a0808364820be5a4bab1770ca1413de"}},{"ruleId":"D2","level":"warning","message":{"text":"KuduEtlService.executeSqlImport (cognitive 19): KuduEtlService.executeSqlImport has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12, loops 4, error handling 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":"client-adapter/kudu/src/main/java/com/alibaba/otter/canal/client/adapter/kudu/service/KuduEtlService.java"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"d50e8be0ad3c96c8f17e2c0c7d75ad95cc8c32dcb35e7eb447cfe4b50c5ffd23"}},{"ruleId":"D2","level":"warning","message":{"text":"CanalPulsarMQProducer.getProducer (cognitive 19): CanalPulsarMQProducer.getProducer has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12, match/switch 3, boolean chains 2, error handling 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":"connector/pulsarmq-connector/src/main/java/com/alibaba/otter/canal/connector/pulsarmq/producer/CanalPulsarMQProducer.java"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f363c0a4a4f2a729783017106f340c2064ce0a950b41e20066cfe6a3a8f9625"}},{"ruleId":"D2","level":"warning","message":{"text":"NettySocketChannel.read (cognitive 19): NettySocketChannel.read has cognitive complexity 19 (threshold 15). Drivers by points: if/else 14, error handling 3, boolean chains 1, 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":"driver/src/main/java/com/alibaba/otter/canal/parse/driver/mysql/socket/NettySocketChannel.java"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbb6751d3008cbd387644368511536bc788c903e19e4e843f70936463b0fe25c"}},{"ruleId":"D2","level":"warning","message":{"text":"AuthenticationInfo.equals (cognitive 19): AuthenticationInfo.equals has cognitive complexity 19 (threshold 15). Drivers by points: if/else 19 (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":"parse/src/main/java/com/alibaba/otter/canal/parse/support/AuthenticationInfo.java"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"5443f0c66d4887ac298ae97bb88476e945c621d45276de62addbcb2be66fb7ea"}},{"ruleId":"D2","level":"warning","message":{"text":"RowsLogEvent.\u003Cinit\u003E (cognitive 19): RowsLogEvent.\u003Cinit\u003E has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9, loops 6, match/switch 3, boolean chains 1 (nesting depth added 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":"dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/event/RowsLogEvent.java"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcdc5cd19fd481bebf5c5ef97ab4bc099afa38821330a4a0cb3d759dcf4dfa33"}},{"ruleId":"D2","level":"warning","message":{"text":"LogBuffer.fillBitmap0 (cognitive 19): LogBuffer.fillBitmap0 has cognitive complexity 19 (threshold 15). Drivers by points: if/else 18, 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":"dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java"},"region":{"startLine":1606}}}],"partialFingerprints":{"codehealthFindingId/v1":"19977563900580b9ad650ad1674c2068ff2926f906036ebb01ba970a54063163"}},{"ruleId":"D2","level":"warning","message":{"text":"LogDecoder.decode (cognitive 19): LogDecoder.decode has cognitive complexity 19 (threshold 15). Drivers by points: if/else 15, error handling 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":"dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogDecoder.java"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"40cd9c80620de7ae58f10314a891e1402d1851a49392b6569bef9ed31144ffd5"}},{"ruleId":"D2","level":"warning","message":{"text":"CanalConfigServiceImpl.getCanalConfig (cognitive 18): CanalConfigServiceImpl.getCanalConfig has cognitive complexity 18 (threshold 15). Drivers by points: if/else 16, 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":"admin/admin-web/src/main/java/com/alibaba/otter/canal/admin/service/impl/CanalConfigServiceImpl.java"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"84c370fe92970de0f256b47a93737e8a475f7005939ee53e81932b03679ad821"}},{"ruleId":"D2","level":"warning","message":{"text":"ClickHouseMirrorDbBatchSyncService.sync (cognitive 18): ClickHouseMirrorDbBatchSyncService.sync has cognitive complexity 18 (threshold 15). Drivers by points: if/else 15, 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":"client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/service/ClickHouseMirrorDbBatchSyncService.java"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"d15d70a6b0f676fb3522e10de7491a38d0fa8e71b8df6f342e477ec617d3026b"}},{"ruleId":"D2","level":"warning","message":{"text":"ClickHouseAdapter.etl (cognitive 18): ClickHouseAdapter.etl has cognitive complexity 18 (threshold 15). Drivers by points: if/else 16, loops 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":"client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/ClickHouseAdapter.java"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a5af3f03df4f3407c22e5ba922cc2d8aecd92da5f5050d6847c7e9ef0c4cbe2"}},{"ruleId":"D2","level":"warning","message":{"text":"PhTypeUtil.decodeDecimal (cognitive 18): PhTypeUtil.decodeDecimal has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10, loops 3, ternaries 3, boolean chains 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":"client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/support/PhTypeUtil.java"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9d0b55c264a3409e5e202eb6df09943f217fa2d4e61c4e075d99121d72df219"}},{"ruleId":"D2","level":"warning","message":{"text":"HbaseAdapter.etl (cognitive 18): HbaseAdapter.etl has cognitive complexity 18 (threshold 15). Drivers by points: if/else 16, loops 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":"client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/HbaseAdapter.java"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"38cc21f9e228943c8498831bab5d688d005612691341e4f64193e945cca65b80"}},{"ruleId":"D2","level":"warning","message":{"text":"KuduTemplate.delete (cognitive 18): KuduTemplate.delete has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13, loops 4, error handling 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":"client-adapter/kudu/src/main/java/com/alibaba/otter/canal/client/adapter/kudu/support/KuduTemplate.java"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"09426fc1cd897b67c4c11683d4a982427c4bdbc01237a790095a7ca6b8b39e3d"}},{"ruleId":"D2","level":"warning","message":{"text":"KuduTemplate.insert (cognitive 18): KuduTemplate.insert has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13, loops 4, error handling 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":"client-adapter/kudu/src/main/java/com/alibaba/otter/canal/client/adapter/kudu/support/KuduTemplate.java"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc9fdb80cff0cf95b4d58ef2bc472f203518b38ca20fd0e40ad9c4600e364129"}},{"ruleId":"D2","level":"warning","message":{"text":"KuduTemplate.upsert (cognitive 18): KuduTemplate.upsert has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13, loops 4, error handling 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":"client-adapter/kudu/src/main/java/com/alibaba/otter/canal/client/adapter/kudu/support/KuduTemplate.java"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffb49c36e02b05d76a0abec22eaff0e022c0b3290dd544df1f71c7b04ad28650"}},{"ruleId":"D2","level":"warning","message":{"text":"KuduAdapter.etl (cognitive 18): KuduAdapter.etl has cognitive complexity 18 (threshold 15). Drivers by points: if/else 16, loops 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":"client-adapter/kudu/src/main/java/com/alibaba/otter/canal/client/adapter/kudu/KuduAdapter.java"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"589392501176e4565af96b49a569d54e43ed61f17e3b1f0ea2df4e259e5fa77f"}},{"ruleId":"D2","level":"warning","message":{"text":"PhoenixSyncService.getTargetColumnType (cognitive 18): PhoenixSyncService.getTargetColumnType has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11, error handling 5, loops 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":"client-adapter/phoenix/src/main/java/com/alibaba/otter/canal/client/adapter/phoenix/service/PhoenixSyncService.java"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d42284786ac6bd4fb7d5d7d582a89ab6c1cbf466b9a56b51760a07338621430"}},{"ruleId":"D2","level":"warning","message":{"text":"RdbMirrorDbSyncService.sync (cognitive 18): RdbMirrorDbSyncService.sync has cognitive complexity 18 (threshold 15). Drivers by points: if/else 15, 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":"client-adapter/rdb/src/main/java/com/alibaba/otter/canal/client/adapter/rdb/service/RdbMirrorDbSyncService.java"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"0088d680f3d093f2b6dcbae1e01735c12836560208ff9f05097090c15ad73f93"}},{"ruleId":"D2","level":"warning","message":{"text":"RdbAdapter.etl (cognitive 18): RdbAdapter.etl has cognitive complexity 18 (threshold 15). Drivers by points: if/else 16, loops 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":"client-adapter/rdb/src/main/java/com/alibaba/otter/canal/client/adapter/rdb/RdbAdapter.java"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"e66f4a0d7d4e8e4503ebdce71cb643989f74ac6e9e87593ed745cb1d4820fba3"}},{"ruleId":"D2","level":"warning","message":{"text":"TableMetaCache.getTableMeta (cognitive 18): TableMetaCache.getTableMeta has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12, error handling 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":"parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/dbsync/TableMetaCache.java"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f2ab7a7890182b5cb6457fe2444df961d9b68a116f5af75ab8249db9b8f08ab"}},{"ruleId":"D2","level":"warning","message":{"text":"ClickHouseBatchSyncService.update (cognitive 17): ClickHouseBatchSyncService.update has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, loops 4, 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":"client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/service/ClickHouseBatchSyncService.java"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c466669c140e121267b09932c7d5eb0a8010c22d853c7e8847343847f330545"}},{"ruleId":"D2","level":"warning","message":{"text":"RdbSyncService.update (cognitive 17): RdbSyncService.update has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, loops 4, 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":"client-adapter/rdb/src/main/java/com/alibaba/otter/canal/client/adapter/rdb/service/RdbSyncService.java"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"c61d8621bac3e5bec74647a7731733c27a7059422d855586f5ee6c92e3455dfa"}},{"ruleId":"D2","level":"warning","message":{"text":"RocketMQCanalConnector.process (cognitive 17): RocketMQCanalConnector.process has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10, error handling 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":"client/src/main/java/com/alibaba/otter/canal/client/rocketmq/RocketMQCanalConnector.java"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"8244d49ca821ba24ad9515f8d854232029e41596e76761701d6b6d9ada578c9a"}},{"ruleId":"D2","level":"warning","message":{"text":"CanalMessageDeserializer.deserializer (cognitive 17): CanalMessageDeserializer.deserializer has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9, loops 4, match/switch 2, boolean chains 1, error handling 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":"client/src/main/java/com/alibaba/otter/canal/client/CanalMessageDeserializer.java"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"131a635eef5233def9dd300311c7ca0abc90f7254c36850bdc7bff2800dce6cc"}},{"ruleId":"D2","level":"warning","message":{"text":"CanalMessageSerializerUtil.deserializer (cognitive 17): CanalMessageSerializerUtil.deserializer has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9, loops 4, match/switch 2, boolean chains 1, error handling 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":"connector/core/src/main/java/com/alibaba/otter/canal/connector/core/util/CanalMessageSerializerUtil.java"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"6512ced0ba048f40cde1e4bb8150a6584799fd6ef8dff1587dd680a639dcbf15"}},{"ruleId":"D2","level":"warning","message":{"text":"CanalController.start (cognitive 17): CanalController.start has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13, 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":"deployer/src/main/java/com/alibaba/otter/canal/deployer/CanalController.java"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9019ba1a51c3be5acba53b69db552c941d36ee834c2bf72d84e24ff167ff915"}},{"ruleId":"D2","level":"warning","message":{"text":"HttpHelper.getCurlRequest (cognitive 17): HttpHelper.getCurlRequest has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12, loops 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":"parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/rds/HttpHelper.java"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"eea17f1ba023fa59328cac3cdf48d8f04e1aa740b0679ee34a8097eeaef34403"}},{"ruleId":"D2","level":"warning","message":{"text":"CanalRocketMQClientExample.process (cognitive 17): CanalRocketMQClientExample.process has cognitive complexity 17 (threshold 15). Drivers by points: loops 7, if/else 5, error handling 4, 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":"example/src/main/java/com/alibaba/otter/canal/example/rocketmq/CanalRocketMQClientExample.java"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"a34293808d55afad2c9f6699cee3a9a15e378b10464d29152dfdc49432ff6455"}},{"ruleId":"D2","level":"warning","message":{"text":"CanalRocketMQClientFlatMessageExample.process (cognitive 17): CanalRocketMQClientFlatMessageExample.process has cognitive complexity 17 (threshold 15). Drivers by points: loops 7, if/else 5, error handling 4, 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":"example/src/main/java/com/alibaba/otter/canal/example/rocketmq/CanalRocketMQClientFlatMessageExample.java"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"4670e8ce40285f6702df1506780a739dc99772421afc64a16b15f182883a099b"}},{"ruleId":"D2","level":"warning","message":{"text":"ClientAuthenticationHandler.messageReceived (cognitive 17): ClientAuthenticationHandler.messageReceived has cognitive complexity 17 (threshold 15). Drivers by points: if/else 15, boolean chains 1, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/src/main/java/com/alibaba/otter/canal/server/netty/handler/ClientAuthenticationHandler.java"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"42998ebd2fa02f0216ddb57098c6093aad8d91af82009996e562ced12a5912c9"}},{"ruleId":"D2","level":"warning","message":{"text":"ClientRunningMonitor.initRunning (cognitive 16): ClientRunningMonitor.initRunning has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9, error handling 6, 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":"client/src/main/java/com/alibaba/otter/canal/client/impl/running/ClientRunningMonitor.java"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b8474a0fc112b7dadd3a0ba6315ddb838a9cfe2e784ed428947325ff807c785"}},{"ruleId":"D2","level":"warning","message":{"text":"CanalAdapterLoader.loadAdapter (cognitive 16): CanalAdapterLoader.loadAdapter has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9, loops 6, error handling 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-adapter/launcher/src/main/java/com/alibaba/otter/canal/adapter/launcher/loader/CanalAdapterLoader.java"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a2e0fd45133f8e0b774c8debd5b6202d1965c8a22161e7e1ee1bae2fb13b29b"}},{"ruleId":"D2","level":"warning","message":{"text":"CanalPulsarMQConsumer.connect (cognitive 16): CanalPulsarMQConsumer.connect has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, ternaries 6, error handling 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":"connector/pulsarmq-connector/src/main/java/com/alibaba/otter/canal/connector/pulsarmq/consumer/CanalPulsarMQConsumer.java"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"8154aaeff815b81b8e2da0103e96cb66bd611b7f7645a537739a27f1de1e3673"}},{"ruleId":"D2","level":"warning","message":{"text":"CanalController.stop (cognitive 16): CanalController.stop has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, loops 3, 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":"deployer/src/main/java/com/alibaba/otter/canal/deployer/CanalController.java"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"53ca6ec0df5ce46207cb727175718eafa7d0d2fa35df218621456a17e098d224"}},{"ruleId":"D2","level":"warning","message":{"text":"AbstractCanalClientTest.process (cognitive 16): AbstractCanalClientTest.process has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7, error handling 5, loops 3, 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":"example/src/main/java/com/alibaba/otter/canal/example/AbstractCanalClientTest.java"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"77bec33698812213db43a9c97297ed84bb1e7de7a7488575b5ef7f665d3f462f"}},{"ruleId":"D2","level":"warning","message":{"text":"TimelineTransactionBarrier.isPermit (cognitive 16): TimelineTransactionBarrier.isPermit has cognitive complexity 16 (threshold 15). Drivers by points: if/else 15, 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":"sink/src/main/java/com/alibaba/otter/canal/sink/entry/group/TimelineTransactionBarrier.java"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cc993b8951afbcc792a140f2fe406c0d5350034736660b76a9443a50238e438"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CanalParameter: TooManyMethods \u2014 168 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"instance/manager/src/main/java/com/alibaba/otter/canal/instance/manager/model/CanalParameter.java"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"38338f41c4404f8efd3933fe24c74b5c81ba991519da96eb6c2981d6d85a195e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LogBuffer: TooManyMethods \u2014 108 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"1de5ae152e7e6d216e9553794e0bf38ae9b511d1ef809c6c855a8df68d0e2518"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AbstractEventParser: TooManyMethods \u2014 59 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"parse/src/main/java/com/alibaba/otter/canal/parse/inbound/AbstractEventParser.java"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d61f5a32e7c2baf09b927b236baa1c259642540b599caaf23b3afdb15add149"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: binlog/LogBuffer.java: FileTooLong \u2014 840 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: LogBuffer (22-1832). 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":"dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed1c66e5f6446f49f1f88e3f72b5e8c907c2b5191f38ca25134de3a34e2b2db1"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MysqlConnection: TooManyMethods \u2014 49 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/MysqlConnection.java"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2dd19fcc1ec144b291f28dfefab8abffdafdc3fc832179b40afdb4ca9ecb37e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MysqlEventParser: TooManyMethods \u2014 49 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/MysqlEventParser.java"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"1412811d4ce4b436d78ca6bfbedd9261433250b547b49ad7b966363c8cfb46b7"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LogEventConvert: TooManyMethods \u2014 48 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/dbsync/LogEventConvert.java"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"9959f741500c54180d726661b75bc2605fb8cb12d1d0255b2267bd98ea2f7fb4"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MemoryEventStoreWithBuffer: TooManyMethods \u2014 48 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"store/src/main/java/com/alibaba/otter/canal/store/memory/MemoryEventStoreWithBuffer.java"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d9a3569cb33dc26285ed71d91bc15c523cc2c25e227dd3fef6e530c3de5cc27"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: event/RowsLogBuffer.java: FileTooLong \u2014 785 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/event/RowsLogBuffer.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"425a5d2e7662fc8920506f44bf896abcd38bf9b888184c716b88801ecca0184c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CanalClientConfig: TooManyMethods \u2014 45 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/CanalClientConfig.java"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"448670e7d12e4fe3b89cd5aba5b89b864cec55937d9a1d9e407b8d818f6b038e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: dbsync/LogEventConvert.java: FileTooLong \u2014 740 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: LogEventConvert (56-1123). 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":"parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/dbsync/LogEventConvert.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3ea79deed8e8f179aca7af68f70bdde1c330e2b186cb0a60aea6bdc5b6a954e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SimpleCanalConnector: TooManyMethods \u2014 42 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/otter/canal/client/impl/SimpleCanalConnector.java"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"af3aae716d6387c72af05872a1cb5833ffb77c54d59e7ba8cbac189102c84d3d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MysqlConnector: TooManyMethods \u2014 41 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"driver/src/main/java/com/alibaba/otter/canal/parse/driver/mysql/MysqlConnector.java"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d9bcd8c9ae0c47e5eca8c125ba2cc486a3e73acb292e4188e77a480a2325c2b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: model/CanalParameter.java: FileTooLong \u2014 634 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: CanalParameter (21-1198). 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":"instance/manager/src/main/java/com/alibaba/otter/canal/instance/manager/model/CanalParameter.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ba44e1a2abc18674b5fbc49df2e8a7fde2bf2970c4ffff7814678cf4f6fe89a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DbMapping: TooManyMethods \u2014 38 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-adapter/phoenix/src/main/java/com/alibaba/otter/canal/client/adapter/phoenix/config/MappingConfig.java"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a9556f2860838be502b5fdb8c8d0dceb8da12993c2555bbd68b89bf45f9b304"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AbstractMysqlEventParser: TooManyMethods \u2014 38 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/AbstractMysqlEventParser.java"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"5271c79fd796856d0f807b8bac929f205bb19fa129d0a989695ddbff04b961a1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: mysql/MysqlEventParser.java: FileTooLong \u2014 617 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: MysqlEventParser (46-991). 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":"parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/MysqlEventParser.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a9afdcd7fe2058a225ff2a81f4400b9f10fb07ff05a1e715d407ced181b26c7"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PhTypeUtil: TooManyMethods \u2014 36 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/support/PhTypeUtil.java"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"b97ca9c67e5e5d72c440b98df83aa51d82e4988257209056c0dd020e18647ace"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: HbaseMapping: TooManyMethods \u2014 35 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/config/MappingConfig.java"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"28f494d434507439860e33764f4d4384ee4ad3afbe2ab1ce77188e49e431494e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DatabaseTableMeta: TooManyMethods \u2014 35 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/tsdb/DatabaseTableMeta.java"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"261222e8e87b66fd1e1d783fa3b308bb2da4c25191ef525317aff53d61c31715"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: service/ESSyncService.java: FileTooLong \u2014 534 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: ESSyncService (32-875). 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":"client-adapter/escore/src/main/java/com/alibaba/otter/canal/client/adapter/es/core/service/ESSyncService.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"860be2209f2638f8e2edbe09a56bff5856ce903181bdf422c318ae1abef50c68"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: FlatMessage: TooManyMethods \u2014 32 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"protocol/src/main/java/com/alibaba/otter/canal/protocol/FlatMessage.java"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"25789e2791fcdd140afbc9eb5712291f8a1a45a8e4412d7941868ceff606bc05"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ClusterCanalConnector: TooManyMethods \u2014 31 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/otter/canal/client/impl/ClusterCanalConnector.java"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc203981e7c8cb2d498f1ad064d0b46b2e2e8e20ac1297f57e28f4bf55712835"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): server/src/main/java/com/alibaba/otter/canal/admin/netty/CanalAdminWithNetty.java:56-72 | server/src/main/java/com/alibaba/otter/canal/server/netty/CanalServerWithNetty.java:62-78 \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 \u0060server/src/main/java/com/alibaba/otter/canal/admin/netty/CanalAdminWithNetty.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/src/main/java/com/alibaba/otter/canal/admin/netty/CanalAdminWithNetty.java"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"32f5a908a8fa87e2f00e762a1700db6f95710684af4c44e926c14dc02048acb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/JdbcTypeUtil.java:153-169 | connector/core/src/main/java/com/alibaba/otter/canal/connector/core/util/JdbcTypeUtil.java:153-169 \u2014 before extracting anything, compare \u0060client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/JdbcTypeUtil.java\u0060 and \u0060connector/core/src/main/java/com/alibaba/otter/canal/connector/core/util/JdbcTypeUtil.java\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/JdbcTypeUtil.java:153\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":"client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/JdbcTypeUtil.java"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"64af58e22b5d32ffadb3f8fecf022fe07272a7ab1d7a4c5a314ca6abb38b6603"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/MessageUtil.java:109-125 | connector/core/src/main/java/com/alibaba/otter/canal/connector/core/util/MessageUtil.java:111-127 \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 \u0060client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/MessageUtil.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":"client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/MessageUtil.java"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a534de38497493341d8fac331a04dd71ac74b52c81d031b37065c011e55b706"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): connector/core/src/main/java/com/alibaba/otter/canal/connector/core/filter/AviaterRegexFilter.java:39-55 | filter/src/main/java/com/alibaba/otter/canal/filter/aviater/AviaterRegexFilter.java:41-57 \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":"connector/core/src/main/java/com/alibaba/otter/canal/connector/core/filter/AviaterRegexFilter.java"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"07e592cf9a0e7a11ed8c4a2c6ea2a65a351f411a66c89c45ac006892b4a0618a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): connector/core/src/main/java/com/alibaba/otter/canal/connector/core/filter/AviaterRegexFilter.java:73-89 | filter/src/main/java/com/alibaba/otter/canal/filter/aviater/AviaterRegexFilter.java:75-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060connector/core/src/main/java/com/alibaba/otter/canal/connector/core/filter/AviaterRegexFilter.java:73\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":"connector/core/src/main/java/com/alibaba/otter/canal/connector/core/filter/AviaterRegexFilter.java"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"e39ebcb7de0d059d907beacf8c78f5a3aa8619ebb3e60d8192dd24829fbd0fa9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/LocalBinLogConnection.java:236-252 | parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/LocalBinLogConnection.java:378-394 \u2014 both copies are in the same file, so extract the block 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 \u0060parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/LocalBinLogConnection.java:236\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":"parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/LocalBinLogConnection.java"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b87438e6c0c96f8405438251dfdd8ba39ec4ff7f2b327fd55afa725ebb2c45d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/event/RowsLogBuffer.java:457-473 | dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/event/RowsLogBuffer.java:550-566 \u2014 both copies are in the same file, so extract the block 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 \u0060dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/event/RowsLogBuffer.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":"dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/event/RowsLogBuffer.java"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"2defe0d0e254d3153ab2aefefa12ef8f3d7e4bf2ce36bc58e22512dd46b16b78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): client-adapter/escore/src/main/java/com/alibaba/otter/canal/client/adapter/es/core/service/ESSyncService.java:148-163 | client-adapter/escore/src/main/java/com/alibaba/otter/canal/client/adapter/es/core/service/ESSyncService.java:274-291 | client-adapter/escore/src/main/java/com/alibaba/otter/canal/client/adapter/es/core/service/ESSyncService.java:391-408 \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 \u0060client-adapter/escore/src/main/java/com/alibaba/otter/canal/client/adapter/es/core/service/ESSyncService.java:148\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":"client-adapter/escore/src/main/java/com/alibaba/otter/canal/client/adapter/es/core/service/ESSyncService.java"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ade5d561e29998953f37fed4d83dc6ad09829dc439c8faa5b06fb295d45bdea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/ExtensionLoader.java:366-381 | connector/core/src/main/java/com/alibaba/otter/canal/connector/core/spi/ExtensionLoader.java:374-392 \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 \u0060client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/ExtensionLoader.java:366\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":"client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/ExtensionLoader.java"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"10def39287e027f77eb5085bc76aac9a9f0d79f426d88aecfd87df1272fd76c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): client/src/main/java/com/alibaba/otter/canal/client/pulsarmq/PulsarMQCanalConnector.java:257-272 | connector/pulsarmq-connector/src/main/java/com/alibaba/otter/canal/connector/pulsarmq/consumer/CanalPulsarMQConsumer.java:186-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 \u0060client/src/main/java/com/alibaba/otter/canal/client/pulsarmq/PulsarMQCanalConnector.java:257\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":"client/src/main/java/com/alibaba/otter/canal/client/pulsarmq/PulsarMQCanalConnector.java"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"73f01086eab22ef618a0bc9455818e2d350bd4a086d8a1d1f8a99c9c67e4894a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/support/SyncUtil.java:40-54 | client-adapter/kudu/src/main/java/com/alibaba/otter/canal/client/adapter/kudu/support/SyncUtil.java:51-65 | client-adapter/rdb/src/main/java/com/alibaba/otter/canal/client/adapter/rdb/support/SyncUtil.java:40-54 \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 \u0060client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/support/SyncUtil.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":"client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/support/SyncUtil.java"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"d038eb5b889d05441d35ee4efb3be7264a305190aea2ff3f69bd54be6cebce4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/service/ClickHouseEtlService.java:152-166 | client-adapter/rdb/src/main/java/com/alibaba/otter/canal/client/adapter/rdb/service/RdbEtlService.java:148-162 \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 \u0060client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/service/ClickHouseEtlService.java:152\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":"client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/service/ClickHouseEtlService.java"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"f496301cc383ab227394421eb7edc1cf99dac65f104834bc7d7245e9c7b02a6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/ExtensionLoader.java:226-240 | connector/core/src/main/java/com/alibaba/otter/canal/connector/core/spi/ExtensionLoader.java:227-241 \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 \u0060client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/ExtensionLoader.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":"client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/ExtensionLoader.java"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"26914abd591deb924cbe57bb7b9cd6da5437a2b77c5865b89ab34ec5048f0a21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/JdbcTypeUtil.java:82-96 | connector/core/src/main/java/com/alibaba/otter/canal/connector/core/util/JdbcTypeUtil.java:82-96 \u2014 before extracting anything, compare \u0060client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/JdbcTypeUtil.java\u0060 and \u0060connector/core/src/main/java/com/alibaba/otter/canal/connector/core/util/JdbcTypeUtil.java\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/JdbcTypeUtil.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 matched lines also transfer control out of the body holding them, 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":"client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/JdbcTypeUtil.java"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b4951d047618e381f96bd8f974415cc3ed92dfc39157f7f37fbec6d491d4338"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/URLClassExtensionLoader.java:25-40 | connector/core/src/main/java/com/alibaba/otter/canal/connector/core/spi/URLClassExtensionLoader.java:24-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/URLClassExtensionLoader.java:25\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":"client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/URLClassExtensionLoader.java"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6fe37d3c16487e200bd4eb206d3701558a43e2ea2022f66fea72440dcb39fc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): client-adapter/phoenix/src/main/java/com/alibaba/otter/canal/client/adapter/phoenix/service/PhoenixSyncService.java:141-155 | client-adapter/rdb/src/main/java/com/alibaba/otter/canal/client/adapter/rdb/service/RdbSyncService.java:132-146 \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 \u0060client-adapter/phoenix/src/main/java/com/alibaba/otter/canal/client/adapter/phoenix/service/PhoenixSyncService.java:141\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":"client-adapter/phoenix/src/main/java/com/alibaba/otter/canal/client/adapter/phoenix/service/PhoenixSyncService.java"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"9656929118f6edf06d122bfa3dbb65658f5a4476a66eec2ecbfecc173ddcf14a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): connector/pulsarmq-connector/src/main/java/com/alibaba/otter/canal/connector/pulsarmq/producer/CanalPulsarMQProducer.java:184-198 | connector/rocketmq-connector/src/main/java/com/alibaba/otter/canal/connector/rocketmq/producer/CanalRocketMQProducer.java:163-177 \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 \u0060connector/pulsarmq-connector/src/main/java/com/alibaba/otter/canal/connector/pulsarmq/producer/CanalPulsarMQProducer.java:184\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":"connector/pulsarmq-connector/src/main/java/com/alibaba/otter/canal/connector/pulsarmq/producer/CanalPulsarMQProducer.java"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a688f39965e064d5dae606c80bc0f72905b26fba2a24b25f5e6955674d6a616"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/dbsync/DirectLogFetcher.java:87-101 | dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/DirectLogFetcher.java:290-304 \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 \u0060parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/dbsync/DirectLogFetcher.java:87\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/dbsync/DirectLogFetcher.java"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"86fd814523a265c611e15fa4b0317ade9f834e3c9e2409bd7f399ef3e2c842c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/LocalBinLogConnection.java:129-143 | parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/LocalBinLogConnection.java:290-304 \u2014 both copies are in the same file, so extract the block 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 \u0060parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/LocalBinLogConnection.java:129\u0060 it does not close everything it opens, so those exact 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":"parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/LocalBinLogConnection.java"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdbc8b6482f124a3421c1c39122ffdca6581702643a8d777294c36e1836bb915"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/event/RowsLogBuffer.java:571-592 | dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/JsonConversion.java:375-389 \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":"dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/event/RowsLogBuffer.java"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"6544abb9ad15ca71ef698a43ad3c1584000d2597ca6109fd9941bd668e1c5eca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/service/ClickHouseEtlService.java:73-86 | client-adapter/phoenix/src/main/java/com/alibaba/otter/canal/client/adapter/phoenix/service/PhoenixEtlService.java:312-330 | client-adapter/rdb/src/main/java/com/alibaba/otter/canal/client/adapter/rdb/service/RdbEtlService.java:72-85 \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 \u0060client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/service/ClickHouseEtlService.java:73\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":"client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/service/ClickHouseEtlService.java"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff2c3d760b78d5624c99ba7517c7fb5b6cb338e93e8fef431d2ffebe21b96d7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): server/src/main/java/com/alibaba/otter/canal/admin/handler/ClientAuthenticationHandler.java:79-92 | server/src/main/java/com/alibaba/otter/canal/server/netty/handler/ClientAuthenticationHandler.java:101-114 \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 \u0060server/src/main/java/com/alibaba/otter/canal/admin/handler/ClientAuthenticationHandler.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":"server/src/main/java/com/alibaba/otter/canal/admin/handler/ClientAuthenticationHandler.java"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca77554cc79d73a646d5722fb0b9c171dbbd87702652dbb173c478fabaf1babf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/support/SyncUtil.java:246-259 | client-adapter/phoenix/src/main/java/com/alibaba/otter/canal/client/adapter/phoenix/support/SyncUtil.java:240-253 \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 \u0060client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/support/SyncUtil.java:246\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":"client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/support/SyncUtil.java"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"dec318a241bc5e8709e0e1659a5eecd99bdabd0dd421a08f410665f072fdc5e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/JdbcTypeUtil.java:101-114 | connector/core/src/main/java/com/alibaba/otter/canal/connector/core/util/JdbcTypeUtil.java:101-114 \u2014 before extracting anything, compare \u0060client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/JdbcTypeUtil.java\u0060 and \u0060connector/core/src/main/java/com/alibaba/otter/canal/connector/core/util/JdbcTypeUtil.java\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/JdbcTypeUtil.java:101\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":"client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/JdbcTypeUtil.java"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc856fcd29395332c83649bd1f053ef4213bf864691f08122246e5b30fc29e41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/MessageUtil.java:26-39 | connector/core/src/main/java/com/alibaba/otter/canal/connector/core/util/MessageUtil.java:31-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 \u0060client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/MessageUtil.java:26\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":"client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/MessageUtil.java"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"448d6809544ac0538b3b8b31beb9f15c657c4406d07bf107cea50e3948b084f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): client-adapter/escore/src/main/java/com/alibaba/otter/canal/client/adapter/es/core/service/ESSyncService.java:558-571 | client-adapter/escore/src/main/java/com/alibaba/otter/canal/client/adapter/es/core/service/ESSyncService.java:665-678 \u2014 both copies are in the same file, so extract the block 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 \u0060client-adapter/escore/src/main/java/com/alibaba/otter/canal/client/adapter/es/core/service/ESSyncService.java:558\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":"client-adapter/escore/src/main/java/com/alibaba/otter/canal/client/adapter/es/core/service/ESSyncService.java"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"8449b8e70f792d6017d0c0e8437b802de50469e7cbd89883c497acb2c52d7870"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): deployer/src/main/java/com/alibaba/otter/canal/deployer/CanalController.java:193-208 | deployer/src/main/java/com/alibaba/otter/canal/deployer/CanalController.java:520-533 \u2014 both copies are in the same file, so extract the block 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 \u0060deployer/src/main/java/com/alibaba/otter/canal/deployer/CanalController.java:193\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":"deployer/src/main/java/com/alibaba/otter/canal/deployer/CanalController.java"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b35c103debc517c691ac5f1bd9c9d4c9af3420b4844dbfa089a19f194ad628e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/LocalBinlogEventParser.java:89-102 | parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/MysqlEventParser.java:165-178 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/LocalBinlogEventParser.java"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f41fbf3ebc79161d0a86150258fbf3c1fefa0bb08c9919b6e0bfaf0e9ed0e93"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): instance/manager/src/main/java/com/alibaba/otter/canal/instance/manager/plain/HttpHelper.java:100-113 | instance/manager/src/main/java/com/alibaba/otter/canal/instance/manager/plain/HttpHelper.java:151-164 \u2014 both copies are in the same file, so extract the block 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 \u0060instance/manager/src/main/java/com/alibaba/otter/canal/instance/manager/plain/HttpHelper.java:100\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":"instance/manager/src/main/java/com/alibaba/otter/canal/instance/manager/plain/HttpHelper.java"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"b422f0bebaf879f53f3eb3d7de1ab82c5fce97e6fa87261a95781100e602fe79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/event/RowsLogBuffer.java:139-152 | dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/event/TableMapLogEvent.java:796-809 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/event/RowsLogBuffer.java:139\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":"dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/event/RowsLogBuffer.java"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f8056e4997b5a1b4b6700406ae439c7dc34378cfcbda8f2356db8de54aca442"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/JsonConversion.java:144-157 | dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/JsonConversion.java:180-193 \u2014 both copies are in the same file, so extract the block 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 \u0060dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/JsonConversion.java:144\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":"dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/JsonConversion.java"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a07cc1c5994c7627a1aec562200eafe26d80681f1e4a04b872d1ec0225257ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java:1443-1456 | dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.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. The matched lines also transfer control out of the body holding them, 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":"dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java"},"region":{"startLine":1443}}}],"partialFingerprints":{"codehealthFindingId/v1":"72c61031b4b821bc1404a67c1491799ef8e733c9cbef01213a10121f8ba72096"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 5): example/src/main/java/com/alibaba/otter/canal/example/kafka/CanalKafkaClientExample.java:47-59 | example/src/main/java/com/alibaba/otter/canal/example/kafka/CanalKafkaClientFlatMessageExample.java:48-60 | example/src/main/java/com/alibaba/otter/canal/example/kafka/CanalKafkaOffsetClientExample.java:55-67 | example/src/main/java/com/alibaba/otter/canal/example/rocketmq/CanalRocketMQClientExample.java:64-76 | example/src/main/java/com/alibaba/otter/canal/example/rocketmq/CanalRocketMQClientFlatMessageExample.java:46-58 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060example/src/main/java/com/alibaba/otter/canal/example/kafka/CanalKafkaClientExample.java:47\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":"example/src/main/java/com/alibaba/otter/canal/example/kafka/CanalKafkaClientExample.java"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fc5a5a9472c42fef089b3e862207a35f8980efea1e0ed6d3c7fb4169c8b0cd8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/support/ES6xTemplate.java:137-149 | client-adapter/es7x/src/main/java/com/alibaba/otter/canal/client/adapter/es7x/support/ES7xTemplate.java:129-141 | client-adapter/es8x/src/main/java/com/alibaba/otter/canal/client/adapter/es8x/support/ES8xTemplate.java:129-141 \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 \u0060client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/support/ES6xTemplate.java:137\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":"client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/support/ES6xTemplate.java"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5805e9a087f022f9214784c1d35a2210e6a52ab3634ba8b5faa8486e08730b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): server/src/main/java/com/alibaba/otter/canal/admin/netty/CanalAdminWithNetty.java:94-106 | server/src/main/java/com/alibaba/otter/canal/server/netty/CanalServerWithNetty.java:100-112 \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 \u0060server/src/main/java/com/alibaba/otter/canal/admin/netty/CanalAdminWithNetty.java:94\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/src/main/java/com/alibaba/otter/canal/admin/netty/CanalAdminWithNetty.java"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aab04a5d83ab5522574ccd36ddafadf54e937193121b7b395e88dd4d815c9da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/service/ClickHouseBatchSyncService.java:172-184 | client-adapter/rdb/src/main/java/com/alibaba/otter/canal/client/adapter/rdb/service/RdbSyncService.java:169-181 \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 \u0060client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/service/ClickHouseBatchSyncService.java:172\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":"client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/service/ClickHouseBatchSyncService.java"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dc2c6f31a49c8b25bafbeae8d9543c18542efe8a89f6c5242459543593e9b56"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/JdbcTypeUtil.java:34-46 | connector/core/src/main/java/com/alibaba/otter/canal/connector/core/util/JdbcTypeUtil.java:34-46 \u2014 before extracting anything, compare \u0060client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/JdbcTypeUtil.java\u0060 and \u0060connector/core/src/main/java/com/alibaba/otter/canal/connector/core/util/JdbcTypeUtil.java\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/JdbcTypeUtil.java:34\u0060 it does not close everything it opens, so those exact 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":"client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/JdbcTypeUtil.java"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5b070d381c6060ae4ffdb2c662cb94f8a1d8bb47dd6f330605dcaea06a571b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/Util.java:186-198 | client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/Util.java:204-216 \u2014 both copies are in the same file, so extract the block 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 \u0060client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/Util.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":"client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/Util.java"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ee77d8c554c70392f44f69329e21db9ca197042abaa04d2a9df88f1fd22380d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): client-adapter/es7x/src/main/java/com/alibaba/otter/canal/client/adapter/es7x/support/ESConnection.java:132-144 | client-adapter/es8x/src/main/java/com/alibaba/otter/canal/client/adapter/es8x/support/ESConnection.java:142-154 \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 \u0060client-adapter/es7x/src/main/java/com/alibaba/otter/canal/client/adapter/es7x/support/ESConnection.java:132\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":"client-adapter/es7x/src/main/java/com/alibaba/otter/canal/client/adapter/es7x/support/ESConnection.java"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a713f8902c5a5cd23dcd0e9ed9ece1c1bbbbc08822eaca840a213c023bf7565"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): client-adapter/escore/src/main/java/com/alibaba/otter/canal/client/adapter/es/core/service/ESSyncService.java:673-685 | client-adapter/escore/src/main/java/com/alibaba/otter/canal/client/adapter/es/core/service/ESSyncService.java:786-799 \u2014 both copies are in the same file, so extract the block 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 \u0060client-adapter/escore/src/main/java/com/alibaba/otter/canal/client/adapter/es/core/service/ESSyncService.java:673\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":"client-adapter/escore/src/main/java/com/alibaba/otter/canal/client/adapter/es/core/service/ESSyncService.java"},"region":{"startLine":673}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0c29f6f6b2bdb7b48b06a398e8d66727f324559354dbb49edd9a9d3d26bfce3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): connector/core/src/main/java/com/alibaba/otter/canal/connector/core/producer/MQMessageUtils.java:206-218 | connector/core/src/main/java/com/alibaba/otter/canal/connector/core/producer/MQMessageUtils.java:227-239 \u2014 both copies are in the same file, so extract the block 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 \u0060connector/core/src/main/java/com/alibaba/otter/canal/connector/core/producer/MQMessageUtils.java:206\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":"connector/core/src/main/java/com/alibaba/otter/canal/connector/core/producer/MQMessageUtils.java"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a7568c0e32ea2bb42cd7a2c3c03436eab9a766759dcc5540196319c8f64a29c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): deployer/src/main/java/com/alibaba/otter/canal/deployer/admin/CanalAdminController.java:92-104 | server/src/main/java/com/alibaba/otter/canal/server/embedded/CanalServerWithEmbedded.java:115-127 \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 \u0060deployer/src/main/java/com/alibaba/otter/canal/deployer/admin/CanalAdminController.java:92\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":"deployer/src/main/java/com/alibaba/otter/canal/deployer/admin/CanalAdminController.java"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"f39a1097e0156796bb8875018e0df3a3234401ff4c8e9976e207d1831a80e4b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/rds/HttpHelper.java:246-258 | parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/rds/HttpHelper.java:308-320 \u2014 both copies are in the same file, so extract the block 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 \u0060parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/rds/HttpHelper.java:246\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":"parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/rds/HttpHelper.java"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5400873466c4d5130cb837773615531d4906a77dcaadc1c2f72a449004157c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): meta/src/main/java/com/alibaba/otter/canal/meta/ZooKeeperMetaManager.java:243-255 | meta/src/main/java/com/alibaba/otter/canal/meta/ZooKeeperMetaManager.java:270-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060meta/src/main/java/com/alibaba/otter/canal/meta/ZooKeeperMetaManager.java:243\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":"meta/src/main/java/com/alibaba/otter/canal/meta/ZooKeeperMetaManager.java"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a19193b06deb323d36011fb42f1dac787dda82bbdb72235889065eede8eff4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 7): client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/ClickHouseAdapter.java:208-219 | client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/ES6xAdapter.java:103-114 | client-adapter/es7x/src/main/java/com/alibaba/otter/canal/client/adapter/es7x/ES7xAdapter.java:102-113 | client-adapter/es8x/src/main/java/com/alibaba/otter/canal/client/adapter/es8x/ES8xAdapter.java:98-109 | client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/HbaseAdapter.java:155-166 | client-adapter/phoenix/src/main/java/com/alibaba/otter/canal/client/adapter/phoenix/PhoenixAdapter.java:179-190 | client-adapter/rdb/src/main/java/com/alibaba/otter/canal/client/adapter/rdb/RdbAdapter.java:191-202 \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 \u0060client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/ClickHouseAdapter.java:208\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":"client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/ClickHouseAdapter.java"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"e426641acabb51600fad0683ae432cf8c5a7c22a3a280b32cc2e1e5201f59d5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 6): client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/config/ConfigLoader.java:38-49 | client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/config/MappingConfigLoader.java:36-47 | client-adapter/kudu/src/main/java/com/alibaba/otter/canal/client/adapter/kudu/config/KuduMappingConfigLoader.java:34-45 | client-adapter/phoenix/src/main/java/com/alibaba/otter/canal/client/adapter/phoenix/config/ConfigLoader.java:32-43 | client-adapter/rdb/src/main/java/com/alibaba/otter/canal/client/adapter/rdb/config/ConfigLoader.java:36-47 | client-adapter/tablestore/src/main/java/com/alibaba/otter/canal/client/adapter/tablestore/config/ConfigLoader.java:36-47 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 6 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 6 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/config/ConfigLoader.java:38\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":"client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/config/ConfigLoader.java"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c553c79c485931762e7f29f749fb93a3a4964cf5e8e7376e809923691a44219"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/etl/ESEtlService.java:96-107 | client-adapter/es7x/src/main/java/com/alibaba/otter/canal/client/adapter/es7x/etl/ESEtlService.java:96-107 | client-adapter/es8x/src/main/java/com/alibaba/otter/canal/client/adapter/es8x/etl/ESEtlService.java:96-107 \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 \u0060client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/etl/ESEtlService.java:96\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":"client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/etl/ESEtlService.java"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fc86dd6c83fe38e7af8333ffd54b74f9e55bd2e15204a1cb208d609c700e284"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/etl/ESEtlService.java:161-172 | client-adapter/es7x/src/main/java/com/alibaba/otter/canal/client/adapter/es7x/etl/ESEtlService.java:163-174 | client-adapter/es8x/src/main/java/com/alibaba/otter/canal/client/adapter/es8x/etl/ESEtlService.java:163-174 \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 \u0060client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/etl/ESEtlService.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/etl/ESEtlService.java"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"3454553003050334a0dfb4e203338dff5c901aa89a3055c727d4b2995dc337ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/support/ES6xTemplate.java:188-199 | client-adapter/es7x/src/main/java/com/alibaba/otter/canal/client/adapter/es7x/support/ES7xTemplate.java:179-190 | client-adapter/es8x/src/main/java/com/alibaba/otter/canal/client/adapter/es8x/support/ES8xTemplate.java:179-190 \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 \u0060client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/support/ES6xTemplate.java:188\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/support/ES6xTemplate.java"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dbb5a8688c18aff420eae001307939f9b6b05d59895507e96e78bf74f9607d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/support/ES6xTemplate.java:261-272 | client-adapter/es7x/src/main/java/com/alibaba/otter/canal/client/adapter/es7x/support/ES7xTemplate.java:252-263 | client-adapter/es8x/src/main/java/com/alibaba/otter/canal/client/adapter/es8x/support/ES8xTemplate.java:252-263 \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 \u0060client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/support/ES6xTemplate.java:261\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":"client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/support/ES6xTemplate.java"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"83312c367238b5ed7175d538685add8bba084ab71f60568a0b9d31b68de4fcda"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/support/ES6xTemplate.java:442-453 | client-adapter/es7x/src/main/java/com/alibaba/otter/canal/client/adapter/es7x/support/ES7xTemplate.java:434-445 | client-adapter/es8x/src/main/java/com/alibaba/otter/canal/client/adapter/es8x/support/ES8xTemplate.java:430-441 \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 \u0060client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/support/ES6xTemplate.java:442\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":"client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/support/ES6xTemplate.java"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"244f15cea579224146c9c86fea23ef67cd88a13566134f8fbd06fbde53af3d6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/ES6xAdapter.java:80-91 | client-adapter/es7x/src/main/java/com/alibaba/otter/canal/client/adapter/es7x/ES7xAdapter.java:79-90 | client-adapter/es8x/src/main/java/com/alibaba/otter/canal/client/adapter/es8x/ES8xAdapter.java:75-86 \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 \u0060client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/ES6xAdapter.java:80\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":"client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/ES6xAdapter.java"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6fc2a3e58e0756f01d69a6dd613a008b960e40a1e1fb79f11ccf8b8774ceb75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/service/ClickHouseBatchSyncService.java:398-409 | client-adapter/rdb/src/main/java/com/alibaba/otter/canal/client/adapter/rdb/service/RdbSyncService.java:349-360 \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 \u0060client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/service/ClickHouseBatchSyncService.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":"client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/service/ClickHouseBatchSyncService.java"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9c37f33b19105122fc8afa73670ef2579cc26cf5bcabee82655da2c5f20fd26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/service/ClickHouseBatchSyncService.java:490-501 | client-adapter/rdb/src/main/java/com/alibaba/otter/canal/client/adapter/rdb/service/RdbSyncService.java:441-452 \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 \u0060client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/service/ClickHouseBatchSyncService.java:490\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":"client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/service/ClickHouseBatchSyncService.java"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"43b591436018c025b2378ae19bb30f5eebf8994c93ad981643f6b81590a96798"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/service/ClickHouseMirrorDbBatchSyncService.java:73-84 | client-adapter/rdb/src/main/java/com/alibaba/otter/canal/client/adapter/rdb/service/RdbMirrorDbSyncService.java:64-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 \u0060client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/service/ClickHouseMirrorDbBatchSyncService.java:73\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":"client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/service/ClickHouseMirrorDbBatchSyncService.java"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"5663c710bfe7620bf6a0eea90bf484d65b50d1ce8d2ab67122a99f4cf580140f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/ClickHouseAdapter.java:103-114 | client-adapter/rdb/src/main/java/com/alibaba/otter/canal/client/adapter/rdb/RdbAdapter.java:111-122 \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 \u0060client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/ClickHouseAdapter.java:103\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":"client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/ClickHouseAdapter.java"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"37f05586ad53ea95cc607585c26a19e8424e18d8c6620a494a6690531b6cb9fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): client/src/main/java/com/alibaba/otter/canal/client/rabbitmq/RabbitMQCanalConnector.java:119-130 | connector/rabbitmq-connector/src/main/java/com/alibaba/otter/canal/connector/rabbitmq/consumer/CanalRabbitMQConsumer.java:110-121 \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 \u0060client/src/main/java/com/alibaba/otter/canal/client/rabbitmq/RabbitMQCanalConnector.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/otter/canal/client/rabbitmq/RabbitMQCanalConnector.java"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"373c77969379b50359c91074027a2a8bc9afd6826c4e1c9ab6b1d4dbfddc1ca8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): client/src/main/java/com/alibaba/otter/canal/client/rabbitmq/RabbitMQCanalConnector.java:254-265 | client/src/main/java/com/alibaba/otter/canal/client/rocketmq/RocketMQCanalConnector.java:191-202 \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 \u0060client/src/main/java/com/alibaba/otter/canal/client/rabbitmq/RabbitMQCanalConnector.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/otter/canal/client/rabbitmq/RabbitMQCanalConnector.java"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"629b2c2fd5ecb69fcbc2a841ebc1dabc47305f43e4fbfd8bbf328e92a0ac9c28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): common/src/main/java/com/alibaba/otter/canal/common/utils/PropertiesUtils.java:19-30 | deployer/src/main/java/com/alibaba/otter/canal/deployer/CanalController.java:464-475 \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":"common/src/main/java/com/alibaba/otter/canal/common/utils/PropertiesUtils.java"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcf97c171ccd28a8b63bef07e62936d12fc0dfd01e4b2fa45c10c097a17561ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/dbsync/DirectLogFetcher.java:112-124 | dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/DirectLogFetcher.java:308-319 \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 \u0060parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/dbsync/DirectLogFetcher.java:112\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":"parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/dbsync/DirectLogFetcher.java"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b41a5bb2d2d5030a999ae5a263fa89cd6cef6955dc703547796c1fa1b0048ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): example/src/main/java/com/alibaba/otter/canal/example/kafka/CanalKafkaClientExample.java:119-130 | example/src/main/java/com/alibaba/otter/canal/example/kafka/CanalKafkaClientFlatMessageExample.java:119-130 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060example/src/main/java/com/alibaba/otter/canal/example/kafka/CanalKafkaClientExample.java:119\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":"example/src/main/java/com/alibaba/otter/canal/example/kafka/CanalKafkaClientExample.java"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff36ea7e6df00f4913bd5277d295bdcd94e092d597ac7454678a8aab841c4547"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): store/src/main/java/com/alibaba/otter/canal/store/memory/MemoryEventStoreWithBuffer.java:294-305 | store/src/main/java/com/alibaba/otter/canal/store/memory/MemoryEventStoreWithBuffer.java:313-324 \u2014 both copies are in the same file, so extract the block 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 \u0060store/src/main/java/com/alibaba/otter/canal/store/memory/MemoryEventStoreWithBuffer.java:294\u0060 it does not close everything it opens, so those exact 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":"store/src/main/java/com/alibaba/otter/canal/store/memory/MemoryEventStoreWithBuffer.java"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3bfd37ce46a23b58407d72607308de72903ccd4acc24042cc8f2fb30d950c64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/event/RowsLogBuffer.java:483-494 | dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/event/RowsLogBuffer.java:605-616 \u2014 both copies are in the same file, so extract the block 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 \u0060dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/event/RowsLogBuffer.java:483\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":"dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/event/RowsLogBuffer.java"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"267982ae49831435014a18c621763f64aa44e9268112099c729375f047ca5e8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): client/src/main/java/com/alibaba/otter/canal/client/rabbitmq/RabbitMQCanalConnector.java:194-204 | client/src/main/java/com/alibaba/otter/canal/client/rabbitmq/RabbitMQCanalConnector.java:222-232 | client/src/main/java/com/alibaba/otter/canal/client/rocketmq/RocketMQCanalConnector.java:230-240 | client/src/main/java/com/alibaba/otter/canal/client/rocketmq/RocketMQCanalConnector.java:258-268 \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 \u0060client/src/main/java/com/alibaba/otter/canal/client/rabbitmq/RabbitMQCanalConnector.java:194\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/otter/canal/client/rabbitmq/RabbitMQCanalConnector.java"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7f29cb9edbc6609f317d29971c52fa2de015638701dc0267d7fda613f89fb72"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): server/src/main/java/com/alibaba/otter/canal/server/netty/handler/SessionHandler.java:72-82 | server/src/main/java/com/alibaba/otter/canal/server/netty/handler/SessionHandler.java:221-231 | server/src/main/java/com/alibaba/otter/canal/server/netty/handler/SessionHandler.java:258-268 \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 \u0060server/src/main/java/com/alibaba/otter/canal/server/netty/handler/SessionHandler.java:72\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":"server/src/main/java/com/alibaba/otter/canal/server/netty/handler/SessionHandler.java"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fd660c5c6327436494a4fc87e4eda57352848260fe904ccbec59d30c5b5e823"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogDecoder.java:403-413 | dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogDecoder.java:460-470 | dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogDecoder.java:473-483 \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 \u0060dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogDecoder.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":"dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogDecoder.java"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"c944b488e6172f8abb3bb1561ebf218b85f9d590327eaad5e4a6a390d628676f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/ClickHouseAdapter.java:248-258 | client-adapter/rdb/src/main/java/com/alibaba/otter/canal/client/adapter/rdb/RdbAdapter.java:231-241 \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 \u0060client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/ClickHouseAdapter.java:248\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":"client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/ClickHouseAdapter.java"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcd6a7e97ede03e78003a4f5fff361753c70ee8336b49d8622ea644d45d940a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/ExtensionLoader.java:277-287 | connector/core/src/main/java/com/alibaba/otter/canal/connector/core/spi/ExtensionLoader.java:280-290 \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 \u0060client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/ExtensionLoader.java:277\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/ExtensionLoader.java"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"1625bea4a477bb7f031ccea3219906f3fdc6c9dffc923b8c0c29037048217f1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/support/HbaseTemplate.java:146-156 | client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/support/HbaseTemplate.java:173-183 \u2014 both copies are in the same file, so extract the block 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 \u0060client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/support/HbaseTemplate.java:146\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":"client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/support/HbaseTemplate.java"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"20da4bf33cd04b4af5fa08eb2b0d62899951d039a87193e7734a8ec1c7186dd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): client-adapter/kudu/src/main/java/com/alibaba/otter/canal/client/adapter/kudu/service/KuduSyncService.java:141-151 | client-adapter/kudu/src/main/java/com/alibaba/otter/canal/client/adapter/kudu/service/KuduSyncService.java:183-193 \u2014 both copies are in the same file, so extract the block 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 \u0060client-adapter/kudu/src/main/java/com/alibaba/otter/canal/client/adapter/kudu/service/KuduSyncService.java:141\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":"client-adapter/kudu/src/main/java/com/alibaba/otter/canal/client/adapter/kudu/service/KuduSyncService.java"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ff078f56ce69f5e113ba970304054fb2571a0311add0cd24e9fba297f003394"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): client-adapter/phoenix/src/main/java/com/alibaba/otter/canal/client/adapter/phoenix/service/PhoenixSyncService.java:82-92 | client-adapter/rdb/src/main/java/com/alibaba/otter/canal/client/adapter/rdb/service/RdbSyncService.java:97-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060client-adapter/phoenix/src/main/java/com/alibaba/otter/canal/client/adapter/phoenix/service/PhoenixSyncService.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-adapter/phoenix/src/main/java/com/alibaba/otter/canal/client/adapter/phoenix/service/PhoenixSyncService.java"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e295d6eb844e47e900d8e3df23bb9bbb5cd9c30ccc9a3b64351fb7f9ff4b3a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): client-adapter/tablestore/src/main/java/com/alibaba/otter/canal/client/adapter/tablestore/service/TablestoreSyncService.java:142-152 | client-adapter/tablestore/src/main/java/com/alibaba/otter/canal/client/adapter/tablestore/service/TablestoreSyncService.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. 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":"client-adapter/tablestore/src/main/java/com/alibaba/otter/canal/client/adapter/tablestore/service/TablestoreSyncService.java"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd48c62d2dd456df4b0332f457db0309516f76754a4f461fe6134952715db63c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): client/src/main/java/com/alibaba/otter/canal/client/impl/running/ClientRunningMonitor.java:181-191 | common/src/main/java/com/alibaba/otter/canal/common/zookeeper/running/ServerRunningMonitor.java:192-202 \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 \u0060client/src/main/java/com/alibaba/otter/canal/client/impl/running/ClientRunningMonitor.java:181\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":"client/src/main/java/com/alibaba/otter/canal/client/impl/running/ClientRunningMonitor.java"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a04579d1845dbc71716d2255818553facd59b3bdb3b7ae890fc1804470eb9b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): client/src/main/java/com/alibaba/otter/canal/client/rocketmq/RocketMQCanalConnector.java:111-121 | connector/rocketmq-connector/src/main/java/com/alibaba/otter/canal/connector/rocketmq/consumer/CanalRocketMQConsumer.java:107-117 \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 \u0060client/src/main/java/com/alibaba/otter/canal/client/rocketmq/RocketMQCanalConnector.java:111\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":"client/src/main/java/com/alibaba/otter/canal/client/rocketmq/RocketMQCanalConnector.java"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"b05b4684bf7b227518444d2d52ce5156e05d07284cfe8e7db4c4dbf9aa89574d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): client/src/main/java/com/alibaba/otter/canal/client/CanalMessageDeserializer.java:46-56 | connector/core/src/main/java/com/alibaba/otter/canal/connector/core/util/CanalMessageSerializerUtil.java:120-130 \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 \u0060client/src/main/java/com/alibaba/otter/canal/client/CanalMessageDeserializer.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/otter/canal/client/CanalMessageDeserializer.java"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"52f1f1d3b3463f9f1d5d1d524003775710d681fd5c5bd5e9f7bd31a2b802c9b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): client-adapter/launcher/src/main/java/com/alibaba/otter/canal/adapter/launcher/common/SyncSwitch.java:132-142 | client-adapter/launcher/src/main/java/com/alibaba/otter/canal/adapter/launcher/common/SyncSwitch.java:156-166 \u2014 both copies are in the same file, so extract the block 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 \u0060client-adapter/launcher/src/main/java/com/alibaba/otter/canal/adapter/launcher/common/SyncSwitch.java:132\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":"client-adapter/launcher/src/main/java/com/alibaba/otter/canal/adapter/launcher/common/SyncSwitch.java"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"338003a3f21592997c9e3093183be88d3b98f7fd13e767b4cc030dc1abebd932"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): connector/core/src/main/java/com/alibaba/otter/canal/connector/core/filter/AviaterRegexFilter.java:113-123 | filter/src/main/java/com/alibaba/otter/canal/filter/aviater/AviaterRegexFilter.java:115-125 \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":"connector/core/src/main/java/com/alibaba/otter/canal/connector/core/filter/AviaterRegexFilter.java"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bbbaf84cd02743bbdedfdc9bbd06bbfe5ec92d81e410b3cc9bbc7a87c5394d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): connector/rabbitmq-connector/src/main/java/com/alibaba/otter/canal/connector/rabbitmq/consumer/CanalRabbitMQConsumer.java:145-155 | connector/rocketmq-connector/src/main/java/com/alibaba/otter/canal/connector/rocketmq/consumer/CanalRocketMQConsumer.java:166-176 \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 \u0060connector/rabbitmq-connector/src/main/java/com/alibaba/otter/canal/connector/rabbitmq/consumer/CanalRabbitMQConsumer.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":"connector/rabbitmq-connector/src/main/java/com/alibaba/otter/canal/connector/rabbitmq/consumer/CanalRabbitMQConsumer.java"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"01a72d4d79a5ac6ae395b859993c95746897788294d0e8ed5bb3dfe852d9a0e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): connector/rabbitmq-connector/src/main/java/com/alibaba/otter/canal/connector/rabbitmq/consumer/CanalRabbitMQConsumer.java:164-174 | connector/rocketmq-connector/src/main/java/com/alibaba/otter/canal/connector/rocketmq/consumer/CanalRocketMQConsumer.java:185-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060connector/rabbitmq-connector/src/main/java/com/alibaba/otter/canal/connector/rabbitmq/consumer/CanalRabbitMQConsumer.java:164\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"connector/rabbitmq-connector/src/main/java/com/alibaba/otter/canal/connector/rabbitmq/consumer/CanalRabbitMQConsumer.java"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"502ceb8dcb49429c2c3665af1a3199327ebfec298ca0c7a1f3d6e13235bb6d34"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): driver/src/main/java/com/alibaba/otter/canal/parse/driver/mysql/MysqlQueryExecutor.java:69-79 | driver/src/main/java/com/alibaba/otter/canal/parse/driver/mysql/MysqlQueryExecutor.java:117-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 \u0060driver/src/main/java/com/alibaba/otter/canal/parse/driver/mysql/MysqlQueryExecutor.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"driver/src/main/java/com/alibaba/otter/canal/parse/driver/mysql/MysqlQueryExecutor.java"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea5b7505db5c2f4865ad4e563a66933efdfe7986276cfddb670336f88e99b9df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): driver/src/main/java/com/alibaba/otter/canal/parse/driver/mysql/MysqlQueryExecutor.java:80-90 | driver/src/main/java/com/alibaba/otter/canal/parse/driver/mysql/MysqlQueryExecutor.java:130-140 \u2014 both copies are in the same file, so extract the block 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 \u0060driver/src/main/java/com/alibaba/otter/canal/parse/driver/mysql/MysqlQueryExecutor.java:80\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":"driver/src/main/java/com/alibaba/otter/canal/parse/driver/mysql/MysqlQueryExecutor.java"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"6acd05a3dc90950c5cde44d327dccbfd81fc2cdac1f847fe9f329190ce57ca83"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/dbsync/DirectLogFetcher.java:137-147 | dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/DirectLogFetcher.java:324-334 \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 \u0060parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/dbsync/DirectLogFetcher.java:137\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":"parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/dbsync/DirectLogFetcher.java"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7edd23f7f60611e1f1a8e1ec08a7edd7470793839fc2efabbcbd08e95863b99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/LocalBinLogConnection.java:192-202 | parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/LocalBinLogConnection.java:335-345 \u2014 both copies are in the same file, so extract the block 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 \u0060parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/LocalBinLogConnection.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":"parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/LocalBinLogConnection.java"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e4a4f4c65c7b5b308f0577d166f4c13150dbfa0d720827a00b8ebb499848835"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/MysqlConnection.java:168-178 | parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/MysqlConnection.java:195-205 \u2014 both copies are in the same file, so extract the block 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":"parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/MysqlConnection.java"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"a06e29c4e0065cf2a513082595d48715ad7e4416117dde115360b4c56b7603a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): instance/manager/src/main/java/com/alibaba/otter/canal/instance/manager/PlainCanalInstanceGenerator.java:54-64 | instance/spring/src/main/java/com/alibaba/otter/canal/instance/spring/SpringCanalInstanceGenerator.java:32-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 \u0060instance/manager/src/main/java/com/alibaba/otter/canal/instance/manager/PlainCanalInstanceGenerator.java:54\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":"instance/manager/src/main/java/com/alibaba/otter/canal/instance/manager/PlainCanalInstanceGenerator.java"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"cae1435378b9c91ce9ffcf76eec7ae93f90d3e11a0359242db2ec3ec05050421"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): client/src/main/java/com/alibaba/otter/canal/client/impl/ClusterCanalConnector.java:138-147 | client/src/main/java/com/alibaba/otter/canal/client/impl/ClusterCanalConnector.java:228-237 | client/src/main/java/com/alibaba/otter/canal/client/impl/ClusterCanalConnector.java:246-256 | client/src/main/java/com/alibaba/otter/canal/client/impl/ClusterCanalConnector.java:265-275 \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 \u0060client/src/main/java/com/alibaba/otter/canal/client/impl/ClusterCanalConnector.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":"client/src/main/java/com/alibaba/otter/canal/client/impl/ClusterCanalConnector.java"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f4f1a21d147b7f8d9a54409e2082776f1d88fdafd81b5956a93eb3e1e8a8b46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): admin/admin-web/src/main/java/com/alibaba/otter/canal/admin/controller/PollingConfigController.java:92-102 | deployer/src/main/java/com/alibaba/otter/canal/deployer/admin/CanalAdminController.java:87-96 | server/src/main/java/com/alibaba/otter/canal/server/embedded/CanalServerWithEmbedded.java:110-119 \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 \u0060admin/admin-web/src/main/java/com/alibaba/otter/canal/admin/controller/PollingConfigController.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. 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":"admin/admin-web/src/main/java/com/alibaba/otter/canal/admin/controller/PollingConfigController.java"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2f3d0df247397d4d86772e59d29732cd1455e6fd34177f26f5897da71c4e36f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/support/ES6xTemplate.java:220-229 | client-adapter/es7x/src/main/java/com/alibaba/otter/canal/client/adapter/es7x/support/ES7xTemplate.java:211-220 | client-adapter/es8x/src/main/java/com/alibaba/otter/canal/client/adapter/es8x/support/ES8xTemplate.java:211-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/support/ES6xTemplate.java:220\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":"client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/support/ES6xTemplate.java"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"83c7a9569bc72da1695f09c43eca59152fb5ac163eeab21af736a43b75cd22c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/support/ES6xTemplate.java:277-286 | client-adapter/es7x/src/main/java/com/alibaba/otter/canal/client/adapter/es7x/support/ES7xTemplate.java:267-276 | client-adapter/es8x/src/main/java/com/alibaba/otter/canal/client/adapter/es8x/support/ES8xTemplate.java:267-276 \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 \u0060client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/support/ES6xTemplate.java:277\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/support/ES6xTemplate.java"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"04ee6ec7c5a54ce5b4cdccf9019f49e21eb4f7485bbf6c2945a3958867437d24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/support/ES6xTemplate.java:326-335 | client-adapter/es7x/src/main/java/com/alibaba/otter/canal/client/adapter/es7x/support/ES7xTemplate.java:320-329 | client-adapter/es8x/src/main/java/com/alibaba/otter/canal/client/adapter/es8x/support/ES8xTemplate.java:316-325 \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 \u0060client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/support/ES6xTemplate.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":"client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/support/ES6xTemplate.java"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0e831966bf7167730614ec8187ed1bd69b2beb34aa9225e15e0ba5f238a8dfe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/support/ES6xTemplate.java:415-424 | client-adapter/es7x/src/main/java/com/alibaba/otter/canal/client/adapter/es7x/support/ES7xTemplate.java:407-416 | client-adapter/es8x/src/main/java/com/alibaba/otter/canal/client/adapter/es8x/support/ES8xTemplate.java:403-412 \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 \u0060client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/support/ES6xTemplate.java:415\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":"client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/support/ES6xTemplate.java"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"1029b1b7086a4867af87eef4496217afe3611b76cb6fa6ed4afe34ee103861c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/support/ES6xTemplate.java:466-475 | client-adapter/es7x/src/main/java/com/alibaba/otter/canal/client/adapter/es7x/support/ES7xTemplate.java:458-467 | client-adapter/es8x/src/main/java/com/alibaba/otter/canal/client/adapter/es8x/support/ES8xTemplate.java:454-463 \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 \u0060client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/support/ES6xTemplate.java:466\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":"client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/support/ES6xTemplate.java"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"48d9c657e16f5c471f841c9c37ad0597c06178fcb773dd34b4b93e83cd31509a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/support/ESConnection.java:475-484 | client-adapter/es7x/src/main/java/com/alibaba/otter/canal/client/adapter/es7x/support/ESConnection.java:210-219 | client-adapter/es8x/src/main/java/com/alibaba/otter/canal/client/adapter/es8x/support/ESConnection.java:199-208 \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 \u0060client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/support/ESConnection.java:475\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":"client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/support/ESConnection.java"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f51ec04cca50a4d0b3beb567582175c2f2d87797d768d3bc2decfbbab502a62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): client-adapter/kudu/src/main/java/com/alibaba/otter/canal/client/adapter/kudu/support/KuduTemplate.java:117-126 | client-adapter/kudu/src/main/java/com/alibaba/otter/canal/client/adapter/kudu/support/KuduTemplate.java:183-192 | client-adapter/kudu/src/main/java/com/alibaba/otter/canal/client/adapter/kudu/support/KuduTemplate.java:250-259 \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 \u0060client-adapter/kudu/src/main/java/com/alibaba/otter/canal/client/adapter/kudu/support/KuduTemplate.java:117\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":"client-adapter/kudu/src/main/java/com/alibaba/otter/canal/client/adapter/kudu/support/KuduTemplate.java"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ae1ec888d2b9d568b1805bd0638e7d51e26489f9cb332c0e33cea6323e0677a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): client-adapter/tablestore/src/main/java/com/alibaba/otter/canal/client/adapter/tablestore/service/TablestoreSyncService.java:107-116 | client-adapter/tablestore/src/main/java/com/alibaba/otter/canal/client/adapter/tablestore/service/TablestoreSyncService.java:142-151 | client-adapter/tablestore/src/main/java/com/alibaba/otter/canal/client/adapter/tablestore/service/TablestoreSyncService.java:357-366 \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":"client-adapter/tablestore/src/main/java/com/alibaba/otter/canal/client/adapter/tablestore/service/TablestoreSyncService.java"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"80f9e33d73191f0874e8da66e883f94f454a23455c758791f25a590e014cbf7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): admin/admin-web/src/main/java/com/alibaba/otter/canal/admin/connector/SimpleAdminConnector.java:71-80 | client/src/main/java/com/alibaba/otter/canal/client/impl/SimpleCanalConnector.java:155-164 \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":"admin/admin-web/src/main/java/com/alibaba/otter/canal/admin/connector/SimpleAdminConnector.java"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"cad80fc2a9b032e0a188adb0d7b9c3f9d36236bc2166e64f0328665e1a8ddf27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): admin/admin-web/src/main/java/com/alibaba/otter/canal/admin/connector/SimpleAdminConnector.java:91-100 | client/src/main/java/com/alibaba/otter/canal/client/impl/SimpleCanalConnector.java:177-186 \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 \u0060admin/admin-web/src/main/java/com/alibaba/otter/canal/admin/connector/SimpleAdminConnector.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":"admin/admin-web/src/main/java/com/alibaba/otter/canal/admin/connector/SimpleAdminConnector.java"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2bec4f56234da989498a1c8bf5f3e3fc56e026d9f3b9c47347ca203ecf8aeb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): server/src/main/java/com/alibaba/otter/canal/admin/netty/CanalAdminWithNetty.java:82-91 | server/src/main/java/com/alibaba/otter/canal/server/netty/CanalServerWithNetty.java:88-97 \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 \u0060server/src/main/java/com/alibaba/otter/canal/admin/netty/CanalAdminWithNetty.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/src/main/java/com/alibaba/otter/canal/admin/netty/CanalAdminWithNetty.java"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"54adfbbfe667e81ac74e3496787103ca55c60bdc93dd9632b947900cc9b3a599"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/support/SingleDml.java:85-94 | client-adapter/rdb/src/main/java/com/alibaba/otter/canal/client/adapter/rdb/support/SingleDml.java:85-94 \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 \u0060client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/support/SingleDml.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":"client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/support/SingleDml.java"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"67763bcec6208df5e7f300b317cbcda5fd33e803d7b6a0a6a428c72e1a5c2aec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/AbstractEtlService.java:66-75 | client-adapter/phoenix/src/main/java/com/alibaba/otter/canal/client/adapter/phoenix/service/PhoenixEtlService.java:184-193 \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 \u0060client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/AbstractEtlService.java:66\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":"client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/AbstractEtlService.java"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e72bee2e82b4ecf3b4bec17084b740401cd229b8d5dc0353d05fb671c9050e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/ExtensionLoader.java:309-318 | connector/core/src/main/java/com/alibaba/otter/canal/connector/core/spi/ExtensionLoader.java:313-322 \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 \u0060client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/ExtensionLoader.java:309\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/ExtensionLoader.java"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"a73dc386227152ac17ea6fc98229db3428d67521f231a57f8e1fb17bd79781ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/JdbcTypeUtil.java:140-149 | connector/core/src/main/java/com/alibaba/otter/canal/connector/core/util/JdbcTypeUtil.java:140-149 \u2014 before extracting anything, compare \u0060client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/JdbcTypeUtil.java\u0060 and \u0060connector/core/src/main/java/com/alibaba/otter/canal/connector/core/util/JdbcTypeUtil.java\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/JdbcTypeUtil.java:140\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":"client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/JdbcTypeUtil.java"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d7779ac24be5e6adbde53334b5fcb419cf1d329e0566aa6d90762d394a33bc2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): client-adapter/es7x/src/main/java/com/alibaba/otter/canal/client/adapter/es7x/etl/ESEtlService.java:121-130 | client-adapter/es8x/src/main/java/com/alibaba/otter/canal/client/adapter/es8x/etl/ESEtlService.java:121-130 \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 \u0060client-adapter/es7x/src/main/java/com/alibaba/otter/canal/client/adapter/es7x/etl/ESEtlService.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":"client-adapter/es7x/src/main/java/com/alibaba/otter/canal/client/adapter/es7x/etl/ESEtlService.java"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"d29ff878ccba647be0617caa4ea437183cf40462a53f0a76851e823e38fa1b6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): client-adapter/es7x/src/main/java/com/alibaba/otter/canal/client/adapter/es7x/support/ES7xTemplate.java:74-83 | client-adapter/es8x/src/main/java/com/alibaba/otter/canal/client/adapter/es8x/support/ES8xTemplate.java:74-83 \u2014 before extracting anything, compare \u0060client-adapter/es7x/src/main/java/com/alibaba/otter/canal/client/adapter/es7x/support/ES7xTemplate.java\u0060 and \u0060client-adapter/es8x/src/main/java/com/alibaba/otter/canal/client/adapter/es8x/support/ES8xTemplate.java\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 188 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060client-adapter/es7x/src/main/java/com/alibaba/otter/canal/client/adapter/es7x/support/ES7xTemplate.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":"client-adapter/es7x/src/main/java/com/alibaba/otter/canal/client/adapter/es7x/support/ES7xTemplate.java"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea303a1b3389aa540c913455cc643501e70e500621869aedce16e405af379b22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): client-adapter/escore/src/main/java/com/alibaba/otter/canal/client/adapter/es/core/service/ESSyncService.java:460-469 | client-adapter/escore/src/main/java/com/alibaba/otter/canal/client/adapter/es/core/service/ESSyncService.java:839-848 \u2014 both copies are in the same file, so extract the block 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 \u0060client-adapter/escore/src/main/java/com/alibaba/otter/canal/client/adapter/es/core/service/ESSyncService.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":"client-adapter/escore/src/main/java/com/alibaba/otter/canal/client/adapter/es/core/service/ESSyncService.java"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"83e61a6dcdb5d4d5312750b7c8fff4bb2ffb6f2a6cf6084e6451a69b62946b0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): client/src/main/java/com/alibaba/otter/canal/client/impl/ClusterCanalConnector.java:156-165 | client/src/main/java/com/alibaba/otter/canal/client/impl/ClusterCanalConnector.java:192-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 \u0060client/src/main/java/com/alibaba/otter/canal/client/impl/ClusterCanalConnector.java:156\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":"client/src/main/java/com/alibaba/otter/canal/client/impl/ClusterCanalConnector.java"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"3651b8d58af35608f0d4d003796d5fbd2aad3e4fd185474394f7d07fc2d782dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): client/src/main/java/com/alibaba/otter/canal/client/impl/ClusterCanalConnector.java:174-183 | client/src/main/java/com/alibaba/otter/canal/client/impl/ClusterCanalConnector.java:210-219 \u2014 both copies are in the same file, so extract the block 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 \u0060client/src/main/java/com/alibaba/otter/canal/client/impl/ClusterCanalConnector.java:174\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":"client/src/main/java/com/alibaba/otter/canal/client/impl/ClusterCanalConnector.java"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"0413a3d69b3caa4034009c322b8cb5c76b234ac3a3199918909ee6c069759f7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): client/src/main/java/com/alibaba/otter/canal/client/CanalMessageDeserializer.java:34-43 | connector/core/src/main/java/com/alibaba/otter/canal/connector/core/util/CanalMessageSerializerUtil.java:108-117 \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 \u0060client/src/main/java/com/alibaba/otter/canal/client/CanalMessageDeserializer.java:34\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":"client/src/main/java/com/alibaba/otter/canal/client/CanalMessageDeserializer.java"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a097eed5397f66e1939eb22da0cc26a1cb5d6140f5b5015e28b80ff1de53b5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): connector/pulsarmq-connector/src/main/java/com/alibaba/otter/canal/connector/pulsarmq/producer/CanalPulsarMQProducer.java:272-281 | connector/rocketmq-connector/src/main/java/com/alibaba/otter/canal/connector/rocketmq/producer/CanalRocketMQProducer.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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060connector/pulsarmq-connector/src/main/java/com/alibaba/otter/canal/connector/pulsarmq/producer/CanalPulsarMQProducer.java:272\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":"connector/pulsarmq-connector/src/main/java/com/alibaba/otter/canal/connector/pulsarmq/producer/CanalPulsarMQProducer.java"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd570ff0a247b979d256cf6b8b2c4efde0f19b46153d4cbafe61b54c79107fb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): driver/src/main/java/com/alibaba/otter/canal/parse/driver/mysql/packets/client/ClientAuthenticationPacket.java:77-86 | driver/src/main/java/com/alibaba/otter/canal/parse/driver/mysql/packets/client/ClientAuthenticationSHA2Packet.java:52-61 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060driver/src/main/java/com/alibaba/otter/canal/parse/driver/mysql/packets/client/ClientAuthenticationPacket.java:77\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":"driver/src/main/java/com/alibaba/otter/canal/parse/driver/mysql/packets/client/ClientAuthenticationPacket.java"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdab0da1728795c970a2ff8a4e07f68b257996035a650371b49ed5737ee94f02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): driver/src/main/java/com/alibaba/otter/canal/parse/driver/mysql/socket/BioSocketChannel.java:55-64 | driver/src/main/java/com/alibaba/otter/canal/parse/driver/mysql/socket/BioSocketChannel.java:80-89 \u2014 both copies are in the same file, so extract the block 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 \u0060driver/src/main/java/com/alibaba/otter/canal/parse/driver/mysql/socket/BioSocketChannel.java:55\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"driver/src/main/java/com/alibaba/otter/canal/parse/driver/mysql/socket/BioSocketChannel.java"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"07f3eb4165a26a4286f8aee6f8bf9bcb6f79ac15e6d7d86d54fb959ee3801e5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/rds/HttpHelper.java:115-124 | parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/rds/HttpHelper.java:174-183 \u2014 both copies are in the same file, so extract the block 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 \u0060parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/rds/HttpHelper.java:115\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":"parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/rds/HttpHelper.java"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"9095bd1c389265384cf8cc95af3027cfcd8e72ea12c7f696fd3569495ba4c0da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/rds/HttpHelper.java:135-144 | parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/rds/HttpHelper.java:196-205 \u2014 both copies are in the same file, so extract the block 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 \u0060parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/rds/HttpHelper.java:135\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/rds/HttpHelper.java"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"979266b5d5761e4f18fa5a1006ec81318c2ee519a1756af1c78e6c8d5c21aa4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/LocalBinLogConnection.java:100-109 | parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/LocalBinLogConnection.java:271-280 \u2014 both copies are in the same file, so extract the block 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 \u0060parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/LocalBinLogConnection.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/LocalBinLogConnection.java"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"41e74f9ff0c375e1e439018744f1ec60a11dc73352fff81b0c403a5aab51ec02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/MysqlConnection.java:270-279 | parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/MysqlConnection.java:297-306 \u2014 both copies are in the same file, so extract the block 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 \u0060parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/MysqlConnection.java:270\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":"parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/MysqlConnection.java"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"946b14a1a27de5ef04918bd4c01c568362cd6d970aac157a61181eac64cef240"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/MysqlEventParser.java:612-621 | parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/MysqlEventParser.java:632-641 \u2014 both copies are in the same file, so extract the block 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 \u0060parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/MysqlEventParser.java:612\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":"parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/MysqlEventParser.java"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee5e10cae1a0d302e4b81a980abfab73bd3342e885a6970569566a60f1c7281f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): parse/src/main/java/com/alibaba/otter/canal/parse/index/FileMixedLogPositionManager.java:80-89 | meta/src/main/java/com/alibaba/otter/canal/meta/FileMixedMetaManager.java:60-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060parse/src/main/java/com/alibaba/otter/canal/parse/index/FileMixedLogPositionManager.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"parse/src/main/java/com/alibaba/otter/canal/parse/index/FileMixedLogPositionManager.java"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"abbe3c11bec7fff10231c7b180b8344b7972d20b542f3c26735f2c01ba9269ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/monitor/ClickHouseConfigMonitor.java:71-80 | client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/monitor/HbaseConfigMonitor.java:59-67 | client-adapter/phoenix/src/main/java/com/alibaba/otter/canal/client/adapter/phoenix/monitor/PhoenixConfigMonitor.java:65-74 | client-adapter/rdb/src/main/java/com/alibaba/otter/canal/client/adapter/rdb/monitor/RdbConfigMonitor.java:62-71 \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 \u0060client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/monitor/ClickHouseConfigMonitor.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":"client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/monitor/ClickHouseConfigMonitor.java"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"344917ca668b398e374aaf2a88f2e96ee48edfd7ba9819255ee4b14dfdc6f160"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/monitor/ClickHouseConfigMonitor.java:98-107 | client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/monitor/HbaseConfigMonitor.java:86-94 | client-adapter/phoenix/src/main/java/com/alibaba/otter/canal/client/adapter/phoenix/monitor/PhoenixConfigMonitor.java:92-101 | client-adapter/rdb/src/main/java/com/alibaba/otter/canal/client/adapter/rdb/monitor/RdbConfigMonitor.java:89-98 \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":"client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/monitor/ClickHouseConfigMonitor.java"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"4512ef72abfb3f92ae74b918fe7124faab504a1655eec3736344e68d1ddc44ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): admin/admin-web/src/main/java/com/alibaba/otter/canal/admin/connector/SimpleAdminConnector.java:215-223 | admin/admin-web/src/main/java/com/alibaba/otter/canal/admin/connector/SimpleAdminConnector.java:239-247 | admin/admin-web/src/main/java/com/alibaba/otter/canal/admin/connector/SimpleAdminConnector.java:266-274 \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 \u0060admin/admin-web/src/main/java/com/alibaba/otter/canal/admin/connector/SimpleAdminConnector.java:215\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":"admin/admin-web/src/main/java/com/alibaba/otter/canal/admin/connector/SimpleAdminConnector.java"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"b50bde83a954bc9b187f04c41b26c23485388f31953a8985fad59af927c8d68a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/service/ClickHouseBatchSyncService.java:428-436 | client-adapter/phoenix/src/main/java/com/alibaba/otter/canal/client/adapter/phoenix/service/PhoenixSyncService.java:481-490 | client-adapter/rdb/src/main/java/com/alibaba/otter/canal/client/adapter/rdb/service/RdbSyncService.java:379-387 \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 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":"client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/service/ClickHouseBatchSyncService.java"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"e575e0854122cbf76968fffa4183a1dda7eeb087e3d9af6f585edf48ceb3b67f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/etl/ESEtlService.java:132-140 | client-adapter/es7x/src/main/java/com/alibaba/otter/canal/client/adapter/es7x/etl/ESEtlService.java:132-140 | client-adapter/es8x/src/main/java/com/alibaba/otter/canal/client/adapter/es8x/etl/ESEtlService.java:132-140 \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 \u0060client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/etl/ESEtlService.java:132\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":"client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/etl/ESEtlService.java"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fa42a9e74db8f0fccbfebdf99092c5de158686a011b942e71e39d6e478a7a18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/support/ES6xTemplate.java:82-90 | client-adapter/es7x/src/main/java/com/alibaba/otter/canal/client/adapter/es7x/support/ES7xTemplate.java:74-82 | client-adapter/es8x/src/main/java/com/alibaba/otter/canal/client/adapter/es8x/support/ES8xTemplate.java:74-82 \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 \u0060client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/support/ES6xTemplate.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. 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":"client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/support/ES6xTemplate.java"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"a535cba3af42f5a2f19d9c530f32d56efe14616473c627e54d233b75e9f1a080"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/support/ES6xTemplate.java:237-245 | client-adapter/es7x/src/main/java/com/alibaba/otter/canal/client/adapter/es7x/support/ES7xTemplate.java:228-236 | client-adapter/es8x/src/main/java/com/alibaba/otter/canal/client/adapter/es8x/support/ES8xTemplate.java:228-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 \u0060client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/support/ES6xTemplate.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. The matched lines also transfer control out of the body holding them, 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":"client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/support/ES6xTemplate.java"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"b81d2dff19a3d6b5a87651eb3285602b518b90d96dc6051e6bda89f5251a9375"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/support/ES6xTemplate.java:308-316 | client-adapter/es7x/src/main/java/com/alibaba/otter/canal/client/adapter/es7x/support/ES7xTemplate.java:298-306 | client-adapter/es8x/src/main/java/com/alibaba/otter/canal/client/adapter/es8x/support/ES8xTemplate.java:298-306 \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 \u0060client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/support/ES6xTemplate.java:308\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":"client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/support/ES6xTemplate.java"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8016c4c7261bcfbb5dfc67cd4753aed915e18ae36f134f02f2774dfef1becda"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java:1143-1151 | dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java:1177-1185 | dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java:1201-1209 \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":"dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java"},"region":{"startLine":1143}}}],"partialFingerprints":{"codehealthFindingId/v1":"d43e78c6c3e29c7b062bc66a67694c819ff5be0fa236bd92da49b9c0e04cc1ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/service/ClickHouseBatchSyncService.java:119-127 | client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/service/ClickHouseBatchSyncService.java:265-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 \u0060client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/service/ClickHouseBatchSyncService.java:119\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":"client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/service/ClickHouseBatchSyncService.java"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f9e14cbcc271fb74ea0fb9015083bd64ab7dffbca119e6621a8ebbeeb4354e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/service/ClickHouseMirrorDbBatchSyncService.java:89-97 | client-adapter/rdb/src/main/java/com/alibaba/otter/canal/client/adapter/rdb/service/RdbMirrorDbSyncService.java:79-87 \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 \u0060client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/service/ClickHouseMirrorDbBatchSyncService.java:89\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":"client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/service/ClickHouseMirrorDbBatchSyncService.java"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6089ce1ae16c717eee20a00c1c880198f8c1ebadcf214bebc171cf3ff0e143f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/service/ClickHouseMirrorDbBatchSyncService.java:110-118 | client-adapter/rdb/src/main/java/com/alibaba/otter/canal/client/adapter/rdb/service/RdbMirrorDbSyncService.java:100-108 \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":"client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/service/ClickHouseMirrorDbBatchSyncService.java"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f16856b9921e8f1427916c2275500a98b04c0f8b12039db6844bfab6b219566"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/ClickHouseAdapter.java:68-76 | client-adapter/rdb/src/main/java/com/alibaba/otter/canal/client/adapter/rdb/RdbAdapter.java:72-81 \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 \u0060client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/ClickHouseAdapter.java:68\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/ClickHouseAdapter.java"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ea6162e4f7f127936486e14ab2ea56ac1b59f91edfbb4b88f3abecb59c6622c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/ClickHouseAdapter.java:81-89 | client-adapter/rdb/src/main/java/com/alibaba/otter/canal/client/adapter/rdb/RdbAdapter.java:86-94 \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 \u0060client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/ClickHouseAdapter.java:81\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":"client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/ClickHouseAdapter.java"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"77d21a8217760ded1fef6d5f8a9d247a9fa754a64b8f12c1c865d069a073fb10"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/ExtensionLoader.java:75-83 | connector/core/src/main/java/com/alibaba/otter/canal/connector/core/spi/ExtensionLoader.java:73-81 \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":"client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/ExtensionLoader.java"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fb283de6c37a75a71ddb9de4a09aa06376dd9feac3f376550be98104e94dccd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/ExtensionLoader.java:167-175 | connector/core/src/main/java/com/alibaba/otter/canal/connector/core/spi/ExtensionLoader.java:170-178 \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 \u0060client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/ExtensionLoader.java:167\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":"client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/ExtensionLoader.java"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a9570c346446988c7f93c7a5ed33ea3d37a440947ab79dfff5d948b728d9054"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/ExtensionLoader.java:255-263 | connector/core/src/main/java/com/alibaba/otter/canal/connector/core/spi/ExtensionLoader.java:256-264 \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 \u0060client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/ExtensionLoader.java:255\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":"client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/ExtensionLoader.java"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ca4b6f7361dbaada3aacfbd02d3c7db05351a28f30d2b0ad60335b8ccc47242"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): client-adapter/es7x/src/main/java/com/alibaba/otter/canal/client/adapter/es7x/support/ES7xTemplate.java:361-369 | client-adapter/es8x/src/main/java/com/alibaba/otter/canal/client/adapter/es8x/support/ES8xTemplate.java:357-365 \u2014 before extracting anything, compare \u0060client-adapter/es7x/src/main/java/com/alibaba/otter/canal/client/adapter/es7x/support/ES7xTemplate.java\u0060 and \u0060client-adapter/es8x/src/main/java/com/alibaba/otter/canal/client/adapter/es8x/support/ES8xTemplate.java\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 188 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060client-adapter/es7x/src/main/java/com/alibaba/otter/canal/client/adapter/es7x/support/ES7xTemplate.java:361\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":"client-adapter/es7x/src/main/java/com/alibaba/otter/canal/client/adapter/es7x/support/ES7xTemplate.java"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"24feb78a1bf9e041b0c8958eef6f54f336bb4a76d24c83f89503ef2250b45f1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): client-adapter/escore/src/main/java/com/alibaba/otter/canal/client/adapter/es/core/service/ESSyncService.java:365-373 | client-adapter/escore/src/main/java/com/alibaba/otter/canal/client/adapter/es/core/service/ESSyncService.java:435-443 \u2014 both copies are in the same file, so extract the block 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":"client-adapter/escore/src/main/java/com/alibaba/otter/canal/client/adapter/es/core/service/ESSyncService.java"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"493469c09b6fce675c3f1f8eaf8d0fe9e773d93276996e02451a332f2535af3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/service/HbaseEtlService.java:132-140 | client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/service/HbaseSyncService.java:423-431 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/service/HbaseEtlService.java:132\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":"client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/service/HbaseEtlService.java"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcd61f2744ae50e8031761202792945e17a459e4d990c517ed2144e457c7c699"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/HbaseAdapter.java:118-126 | client-adapter/kudu/src/main/java/com/alibaba/otter/canal/client/adapter/kudu/KuduAdapter.java:102-110 \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 \u0060client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/HbaseAdapter.java:118\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":"client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/HbaseAdapter.java"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"9245b9003b2a3d0f43267b44e700c8dd31e4a8ccb8cd9eefd29d6c3d91863572"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): client-adapter/phoenix/src/main/java/com/alibaba/otter/canal/client/adapter/phoenix/service/PhoenixSyncService.java:56-64 | client-adapter/rdb/src/main/java/com/alibaba/otter/canal/client/adapter/rdb/service/RdbSyncService.java:72-80 \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 \u0060client-adapter/phoenix/src/main/java/com/alibaba/otter/canal/client/adapter/phoenix/service/PhoenixSyncService.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-adapter/phoenix/src/main/java/com/alibaba/otter/canal/client/adapter/phoenix/service/PhoenixSyncService.java"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc4881a9cc12710241b1ae422171be73bcfa2c69dc50ffaa5ca64101f2c149c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): client/src/main/java/com/alibaba/otter/canal/client/impl/SimpleCanalConnector.java:245-253 | client/src/main/java/com/alibaba/otter/canal/client/impl/SimpleCanalConnector.java:274-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060client/src/main/java/com/alibaba/otter/canal/client/impl/SimpleCanalConnector.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/otter/canal/client/impl/SimpleCanalConnector.java"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ca78f4c49a11c4e5a67e7d99b67c9e750678e72e10817489a5b6ff2ca317d82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): connector/core/src/main/java/com/alibaba/otter/canal/connector/core/filter/AviaterRegexFilter.java:162-170 | filter/src/main/java/com/alibaba/otter/canal/filter/aviater/AviaterRegexFilter.java:164-172 \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 \u0060connector/core/src/main/java/com/alibaba/otter/canal/connector/core/filter/AviaterRegexFilter.java:162\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":"connector/core/src/main/java/com/alibaba/otter/canal/connector/core/filter/AviaterRegexFilter.java"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2c8f0725e29a8a6dcb242895012899989b52a9ecded99e1e977e9ae9534ff82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): driver/src/main/java/com/alibaba/otter/canal/parse/driver/mysql/MysqlConnector.java:332-340 | parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/MysqlConnection.java:336-344 \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 \u0060driver/src/main/java/com/alibaba/otter/canal/parse/driver/mysql/MysqlConnector.java:332\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":"driver/src/main/java/com/alibaba/otter/canal/parse/driver/mysql/MysqlConnector.java"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"f98383b0b81df5addeb0f18e1fcecaac09868db88d7773b9e618d106f25490b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/rds/HttpHelper.java:90-98 | instance/manager/src/main/java/com/alibaba/otter/canal/instance/manager/plain/HttpHelper.java:73-81 \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 \u0060parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/rds/HttpHelper.java:90\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/rds/HttpHelper.java"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b93df6a69db58a78be688f030a86cffe973137e36db066ce1d54c9e377aad54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/MysqlConnection.java:517-525 | parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/MysqlConnection.java:541-549 \u2014 both copies are in the same file, so extract the block 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 \u0060parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/MysqlConnection.java:517\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/MysqlConnection.java"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fa12889099c58d0a5bcc82cb3102840ec06af61eba29cd5e26c1c97b93da49c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): instance/manager/src/main/java/com/alibaba/otter/canal/instance/manager/plain/HttpHelper.java:84-92 | instance/manager/src/main/java/com/alibaba/otter/canal/instance/manager/plain/HttpHelper.java:135-144 \u2014 both copies are in the same file, so extract the block 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 \u0060instance/manager/src/main/java/com/alibaba/otter/canal/instance/manager/plain/HttpHelper.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"instance/manager/src/main/java/com/alibaba/otter/canal/instance/manager/plain/HttpHelper.java"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"715da27ce564a375a1c02b6be997e12d1a96d4dcae5d9d943db96a988457f0c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): meta/src/main/java/com/alibaba/otter/canal/meta/ZooKeeperMetaManager.java:188-198 | meta/src/main/java/com/alibaba/otter/canal/meta/ZooKeeperMetaManager.java:278-286 \u2014 both copies are in the same file, so extract the block 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":"meta/src/main/java/com/alibaba/otter/canal/meta/ZooKeeperMetaManager.java"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e08f2962d81565c158486757272cba631c7e97bec3156c70875405ebc5d1076"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java:1799-1807 | dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java:1822-1830 \u2014 both copies are in the same file, so extract the block 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 \u0060dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java:1799\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":"dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java"},"region":{"startLine":1799}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e80b26ac0e33cadcd74e5679c454c3143eaf4dcc54b031d05a89e22baebd8f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 12): dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java:572-579 | dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java:589-596 | dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java:634-641 | dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java:666-673 | dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java:700-707 | dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java:718-725 | dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java:768-775 | dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java:786-793 | dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java:834-841 | dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java:866-873 | dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java:900-907 | dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java:919-926 \u2014 all 12 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. 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":"dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c1866c9b5402c18874b9cfd838921d7d071e424a76767b7b8c0fcf783282f90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5): dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java:270-277 | dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java:300-307 | dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java:388-395 | dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java:448-455 | dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java:508-515 \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. The matched lines also transfer control out of the body holding them, 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":"dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aeab8717f89a7019d8f1628248cb6ea6add2ac720fa4e82baab4b53e0e61cd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/ExtensionLoader.java:109-116 | client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/ExtensionLoader.java:134-141 | connector/core/src/main/java/com/alibaba/otter/canal/connector/core/spi/ExtensionLoader.java:112-119 | connector/core/src/main/java/com/alibaba/otter/canal/connector/core/spi/ExtensionLoader.java:137-144 \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 \u0060client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/ExtensionLoader.java:109\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/ExtensionLoader.java"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"be14525662c99b7206f9587a249e75ec150cdcc3a949a699ae58be012b327c76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/monitor/ClickHouseConfigMonitor.java:41-48 | client-adapter/phoenix/src/main/java/com/alibaba/otter/canal/client/adapter/phoenix/monitor/PhoenixConfigMonitor.java:35-42 | client-adapter/rdb/src/main/java/com/alibaba/otter/canal/client/adapter/rdb/monitor/RdbConfigMonitor.java:32-39 \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 \u0060client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/monitor/ClickHouseConfigMonitor.java:41\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/monitor/ClickHouseConfigMonitor.java"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a3ce189fd4f2019c5ae7c35afef599efe6cc2462ddae1ce939b823d85fd06d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/service/ClickHouseBatchSyncService.java:316-323 | client-adapter/phoenix/src/main/java/com/alibaba/otter/canal/client/adapter/phoenix/service/PhoenixSyncService.java:393-400 | client-adapter/rdb/src/main/java/com/alibaba/otter/canal/client/adapter/rdb/service/RdbSyncService.java:278-285 \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 \u0060client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/service/ClickHouseBatchSyncService.java:316\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/service/ClickHouseBatchSyncService.java"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"00db4b65cb647bf3dc5ad87a0180f1bb3c50e826bbf5e69ee39205ef092e8f74"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/support/BatchExecutor.java:59-66 | client-adapter/phoenix/src/main/java/com/alibaba/otter/canal/client/adapter/phoenix/support/BatchExecutor.java:71-78 | client-adapter/rdb/src/main/java/com/alibaba/otter/canal/client/adapter/rdb/support/BatchExecutor.java:59-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 \u0060client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/support/BatchExecutor.java:59\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":"client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/support/BatchExecutor.java"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"322cc1b2681963cf05fe92098cc0a0eeebe68efa85c17107139088bf17c11df6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/support/ES6xTemplate.java:369-376 | client-adapter/es7x/src/main/java/com/alibaba/otter/canal/client/adapter/es7x/support/ES7xTemplate.java:361-368 | client-adapter/es8x/src/main/java/com/alibaba/otter/canal/client/adapter/es8x/support/ES8xTemplate.java:357-364 \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 \u0060client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/support/ES6xTemplate.java:369\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":"client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/support/ES6xTemplate.java"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"f33d1cacc206ffc8652dc821183315097002de64b4c7d9c7248e04f188f3c2a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/support/ES6xTemplate.java:404-411 | client-adapter/es7x/src/main/java/com/alibaba/otter/canal/client/adapter/es7x/support/ES7xTemplate.java:396-403 | client-adapter/es8x/src/main/java/com/alibaba/otter/canal/client/adapter/es8x/support/ES8xTemplate.java:392-399 \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":"client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/support/ES6xTemplate.java"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"699da2f3ba539f0fb77249335e4259b2a707a5b7142cbe78e57d22688b9da08c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): client-adapter/kudu/src/main/java/com/alibaba/otter/canal/client/adapter/kudu/support/KuduTemplate.java:87-94 | client-adapter/kudu/src/main/java/com/alibaba/otter/canal/client/adapter/kudu/support/KuduTemplate.java:153-160 | client-adapter/kudu/src/main/java/com/alibaba/otter/canal/client/adapter/kudu/support/KuduTemplate.java:219-227 \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 \u0060client-adapter/kudu/src/main/java/com/alibaba/otter/canal/client/adapter/kudu/support/KuduTemplate.java:87\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-adapter/kudu/src/main/java/com/alibaba/otter/canal/client/adapter/kudu/support/KuduTemplate.java"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"f693b751a119ec7f144a56273d464b87fe71f939100cc8659f66d544f421540a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/service/ClickHouseBatchSyncService.java:305-312 | client-adapter/rdb/src/main/java/com/alibaba/otter/canal/client/adapter/rdb/service/RdbSyncService.java:268-275 \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":"client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/service/ClickHouseBatchSyncService.java"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"47426aa86c04d294e1d3d77e872110be5e756171be9e3e24816c5166ad91fa7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/service/ClickHouseBatchSyncService.java:524-531 | client-adapter/rdb/src/main/java/com/alibaba/otter/canal/client/adapter/rdb/service/RdbSyncService.java:475-482 \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 \u0060client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/service/ClickHouseBatchSyncService.java:524\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/service/ClickHouseBatchSyncService.java"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff57427415c8a500c7ffef8adc76146087f940a68d4f43ce84727c6e30c3f8b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/service/ClickHouseEtlService.java:187-194 | client-adapter/rdb/src/main/java/com/alibaba/otter/canal/client/adapter/rdb/service/RdbEtlService.java:183-190 \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 \u0060client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/service/ClickHouseEtlService.java:187\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":"client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/service/ClickHouseEtlService.java"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"74682fef5399c18ed14e637ef1c2e3c0f1ce4d2533e0d960265276d9630dabc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/service/ClickHouseMirrorDbBatchSyncService.java:133-140 | client-adapter/rdb/src/main/java/com/alibaba/otter/canal/client/adapter/rdb/service/RdbMirrorDbSyncService.java:123-130 \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 \u0060client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/service/ClickHouseMirrorDbBatchSyncService.java:133\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/service/ClickHouseMirrorDbBatchSyncService.java"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"09bb21430f63088110333d1975e82e8f19e0b18dd4f25bfaeb3ce86b8a6cfdb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/service/ClickHouseMirrorDbBatchSyncService.java:165-172 | client-adapter/rdb/src/main/java/com/alibaba/otter/canal/client/adapter/rdb/service/RdbMirrorDbSyncService.java:155-162 \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":"client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/service/ClickHouseMirrorDbBatchSyncService.java"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"7044a8d59f10d6eb81fa08a12298dd2df391f74414b1c8a4ceeaa046bb21319f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/support/SyncUtil.java:273-280 | client-adapter/rdb/src/main/java/com/alibaba/otter/canal/client/adapter/rdb/support/SyncUtil.java:289-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 \u0060client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/support/SyncUtil.java:273\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":"client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/support/SyncUtil.java"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a5c066ebdde5b66095411657326af65c8e04643e09c6e026ba464dd29dbbd2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/ClickHouseAdapter.java:291-298 | client-adapter/rdb/src/main/java/com/alibaba/otter/canal/client/adapter/rdb/RdbAdapter.java:292-299 \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 \u0060client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/ClickHouseAdapter.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":"client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/ClickHouseAdapter.java"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"976e5846fad6d68eedb2fb2e187d6da3fca37e53fcd5df79a73e7f47c62ffca9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/ExtensionLoader.java:186-193 | connector/core/src/main/java/com/alibaba/otter/canal/connector/core/spi/ExtensionLoader.java:188-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/ExtensionLoader.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":"client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/ExtensionLoader.java"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"77396bc5954b648084adbcd526ef4307be8647cc9370ed84264013260806a9ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/support/ESConnection.java:89-96 | client-adapter/es7x/src/main/java/com/alibaba/otter/canal/client/adapter/es7x/support/ESConnection.java:81-89 \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 \u0060client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/support/ESConnection.java:89\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":"client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/support/ESConnection.java"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7b3b00521773b6676d33e3716d36870ae53f5555a7dfb31eb2e3c80a97420a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): client-adapter/es7x/src/main/java/com/alibaba/otter/canal/client/adapter/es7x/support/ES7xTemplate.java:66-73 | client-adapter/es8x/src/main/java/com/alibaba/otter/canal/client/adapter/es8x/support/ES8xTemplate.java:66-73 \u2014 before extracting anything, compare \u0060client-adapter/es7x/src/main/java/com/alibaba/otter/canal/client/adapter/es7x/support/ES7xTemplate.java\u0060 and \u0060client-adapter/es8x/src/main/java/com/alibaba/otter/canal/client/adapter/es8x/support/ES8xTemplate.java\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 188 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060client-adapter/es7x/src/main/java/com/alibaba/otter/canal/client/adapter/es7x/support/ES7xTemplate.java:66\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":"client-adapter/es7x/src/main/java/com/alibaba/otter/canal/client/adapter/es7x/support/ES7xTemplate.java"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d3d007ffd92bb83665d48ad59b59c67c63e2d34e51b72662b208764562f2e87"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): client-adapter/es8x/src/main/java/com/alibaba/otter/canal/client/adapter/es8x/support/ES8xTemplate.java:87-94 | client-adapter/es8x/src/main/java/com/alibaba/otter/canal/client/adapter/es8x/support/ES8xTemplate.java:155-162 \u2014 both copies are in the same file, so extract the block 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 \u0060client-adapter/es8x/src/main/java/com/alibaba/otter/canal/client/adapter/es8x/support/ES8xTemplate.java:87\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":"client-adapter/es8x/src/main/java/com/alibaba/otter/canal/client/adapter/es8x/support/ES8xTemplate.java"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed496101ba0a29c89fc3c292de3a5df6faf5af3b897d441ac7cf9fedb2a8b51f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): client-adapter/escore/src/main/java/com/alibaba/otter/canal/client/adapter/es/core/service/ESSyncService.java:616-623 | client-adapter/escore/src/main/java/com/alibaba/otter/canal/client/adapter/es/core/service/ESSyncService.java:720-727 \u2014 both copies are in the same file, so extract the block 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 \u0060client-adapter/escore/src/main/java/com/alibaba/otter/canal/client/adapter/es/core/service/ESSyncService.java:616\u0060 it does not close everything it opens, so those exact 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":"client-adapter/escore/src/main/java/com/alibaba/otter/canal/client/adapter/es/core/service/ESSyncService.java"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"18cb03bed86dab6c6738ae7c72926b642bc6559fa01e63b278e520f435375794"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/service/HbaseSyncService.java:38-45 | client-adapter/kudu/src/main/java/com/alibaba/otter/canal/client/adapter/kudu/service/KuduSyncService.java:54-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/service/HbaseSyncService.java:38\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":"client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/service/HbaseSyncService.java"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0bab39a8f5c6b69f43c8f56cc4301cc2ffdc7b6c26f50b6a401c4747287b9ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/HbaseAdapter.java:102-109 | client-adapter/kudu/src/main/java/com/alibaba/otter/canal/client/adapter/kudu/KuduAdapter.java:86-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/HbaseAdapter.java"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fdc81f87e625925b6243d221271056de531ab3e438ffd3ac48db92317856918"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): client-adapter/phoenix/src/main/java/com/alibaba/otter/canal/client/adapter/phoenix/service/PhoenixSyncService.java:217-227 | client-adapter/rdb/src/main/java/com/alibaba/otter/canal/client/adapter/rdb/service/RdbSyncService.java:199-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060client-adapter/phoenix/src/main/java/com/alibaba/otter/canal/client/adapter/phoenix/service/PhoenixSyncService.java:217\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":"client-adapter/phoenix/src/main/java/com/alibaba/otter/canal/client/adapter/phoenix/service/PhoenixSyncService.java"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc9c788661d6a983ce038aa306c7656aaf62693aacc1266a4242f66e25ab4c6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): client-adapter/tablestore/src/main/java/com/alibaba/otter/canal/client/adapter/tablestore/service/TablestoreSyncService.java:124-133 | client-adapter/tablestore/src/main/java/com/alibaba/otter/canal/client/adapter/tablestore/service/TablestoreSyncService.java:273-280 \u2014 both copies are in the same file, so extract the block 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 \u0060client-adapter/tablestore/src/main/java/com/alibaba/otter/canal/client/adapter/tablestore/service/TablestoreSyncService.java:124\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":"client-adapter/tablestore/src/main/java/com/alibaba/otter/canal/client/adapter/tablestore/service/TablestoreSyncService.java"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cd9500897088a510dd42d0fc409d9e5242e6b2d2fc5620685534187d0007b3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): connector/core/src/main/java/com/alibaba/otter/canal/connector/core/util/CanalMessageSerializerUtil.java:48-55 | server/src/main/java/com/alibaba/otter/canal/server/netty/handler/SessionHandler.java:158-180 \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":"connector/core/src/main/java/com/alibaba/otter/canal/connector/core/util/CanalMessageSerializerUtil.java"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"107ad6f9f4c87f043c562fbdd08c14f1f2242f3dfc151d4d5fa7dfe987a40a64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): connector/pulsarmq-connector/src/main/java/com/alibaba/otter/canal/connector/pulsarmq/producer/CanalPulsarMQProducer.java:375-382 | connector/pulsarmq-connector/src/main/java/com/alibaba/otter/canal/connector/pulsarmq/producer/CanalPulsarMQProducer.java:410-417 \u2014 both copies are in the same file, so extract the block 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 \u0060connector/pulsarmq-connector/src/main/java/com/alibaba/otter/canal/connector/pulsarmq/producer/CanalPulsarMQProducer.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":"connector/pulsarmq-connector/src/main/java/com/alibaba/otter/canal/connector/pulsarmq/producer/CanalPulsarMQProducer.java"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff7612ae73d9d9d0cf496c07dcc8921562da42e3c1cae79ec04f71b21efbca7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): deployer/src/main/java/com/alibaba/otter/canal/deployer/CanalController.java:351-358 | deployer/src/main/java/com/alibaba/otter/canal/deployer/CanalController.java:424-431 \u2014 both copies are in the same file, so extract the block 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 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":"deployer/src/main/java/com/alibaba/otter/canal/deployer/CanalController.java"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"75955bd1ab4af197353efdd2cbc19790156311d30b12ca2d828153e79b0d1de0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/dbsync/LogEventConvert.java:1073-1080 | parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/dbsync/LogEventConvert.java:1085-1092 \u2014 both copies are in the same file, so extract the block 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 \u0060parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/dbsync/LogEventConvert.java:1073\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/dbsync/LogEventConvert.java"},"region":{"startLine":1073}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a41a5ae48b5443f3d13bd1f245321da12a9f6afabbe973b2422edbbb7ddc0c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/rds/HttpHelper.java:212-219 | parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/rds/HttpHelper.java:274-281 \u2014 both copies are in the same file, so extract the block 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 \u0060parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/rds/HttpHelper.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":"parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/rds/HttpHelper.java"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dad65c2bed698f2fdf5409ce07dc4c2f10ec6e99822b92a016f112a3a3c9abb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/LocalBinlogEventParser.java:57-64 | parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/MysqlEventParser.java:124-131 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/LocalBinlogEventParser.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/LocalBinlogEventParser.java"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"f956c595d872ab9c306e8545ad748a7416727898f804ef8b69704f89cebc0bff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/MysqlConnection.java:364-372 | parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/MysqlConnection.java:386-393 \u2014 both copies are in the same file, so extract the block 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":"parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/MysqlConnection.java"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"9599eddcf5c14c4e261c5c46a04a25663a5b4aa3ad4e188eac4cd16fa3b732f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): server/src/main/java/com/alibaba/otter/canal/server/embedded/CanalServerWithEmbedded.java:265-272 | server/src/main/java/com/alibaba/otter/canal/server/embedded/CanalServerWithEmbedded.java:348-355 \u2014 both copies are in the same file, so extract the block 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 \u0060server/src/main/java/com/alibaba/otter/canal/server/embedded/CanalServerWithEmbedded.java:265\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":"server/src/main/java/com/alibaba/otter/canal/server/embedded/CanalServerWithEmbedded.java"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ae517640c3ded4b0bb35d8e5dde1bab00f6123de2a2c08931a2e56d5484a16a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java:1273-1281 | dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java:1290-1297 \u2014 both copies are in the same file, so extract the block 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 \u0060dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java:1273\u0060 it does not close everything it opens, so those exact 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":"dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java"},"region":{"startLine":1273}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ae2689dca412bb509cebab11f6fcb570100e3304032d73196d7f8310d5cc27f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java:1352-1359 | dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java:1376-1383 \u2014 both copies are in the same file, so extract the block 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":"dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java"},"region":{"startLine":1352}}}],"partialFingerprints":{"codehealthFindingId/v1":"a23faf57e4923c3545147ded6f246181d080a7e8c785ef0c366b736defdb7472"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java:1464-1471 | dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java:1490-1497 \u2014 both copies are in the same file, so extract the block 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 \u0060dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java:1464\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":"dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java"},"region":{"startLine":1464}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aac11077e93defa3c607a19584d696ae8ddaab7905e685cb31f0bf92688c21b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/ClickHouseAdapter.java:323-329 | client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/HbaseAdapter.java:252-258 | client-adapter/phoenix/src/main/java/com/alibaba/otter/canal/client/adapter/phoenix/PhoenixAdapter.java:309-315 | client-adapter/rdb/src/main/java/com/alibaba/otter/canal/client/adapter/rdb/RdbAdapter.java:324-330 | client-adapter/tablestore/src/main/java/com/alibaba/otter/canal/client/adapter/tablestore/TablestoreAdapter.java:335-341 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/ClickHouseAdapter.java:323\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":"client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/ClickHouseAdapter.java"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"c17792774bfc3736b73a5e1f6e9cae2d5a67d9a7db3720b15ac2433113898fd8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java:330-336 | dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java:359-365 | dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java:418-425 | dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java:478-485 | dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java:525-532 \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. The matched lines also transfer control out of the body holding them, 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":"dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f467f19410ea5ef15986fb0b0ac68dc38c2271dafd9193e374bd8479e7db62c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/support/SyncUtil.java:263-269 | client-adapter/rdb/src/main/java/com/alibaba/otter/canal/client/adapter/rdb/support/SyncUtil.java:279-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 \u0060client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/support/SyncUtil.java:263\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":"client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/support/SyncUtil.java"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0afc492036b78d67d458a34affe350ace5904e98b61ed3da5e9b7ec66f3fab1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/support/ES6xTemplate.java:73-79 | client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/support/ES6xTemplate.java:360-366 \u2014 both copies are in the same file, so extract the block 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 \u0060client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/support/ES6xTemplate.java:73\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":"client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/support/ES6xTemplate.java"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2fb5cc7858ae80c76c07dd32fb3c637e9718b8d8b326b2485153318709878ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): client-adapter/es7x/src/main/java/com/alibaba/otter/canal/client/adapter/es7x/support/ES7xTemplate.java:147-153 | client-adapter/es8x/src/main/java/com/alibaba/otter/canal/client/adapter/es8x/support/ES8xTemplate.java:147-153 \u2014 before extracting anything, compare \u0060client-adapter/es7x/src/main/java/com/alibaba/otter/canal/client/adapter/es7x/support/ES7xTemplate.java\u0060 and \u0060client-adapter/es8x/src/main/java/com/alibaba/otter/canal/client/adapter/es8x/support/ES8xTemplate.java\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 188 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060client-adapter/es7x/src/main/java/com/alibaba/otter/canal/client/adapter/es7x/support/ES7xTemplate.java:147\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":"client-adapter/es7x/src/main/java/com/alibaba/otter/canal/client/adapter/es7x/support/ES7xTemplate.java"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffaa889ad8aac7815bba4e51132686161811f058999a7e6c44dc868ac8e41d2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): client-adapter/es7x/src/main/java/com/alibaba/otter/canal/client/adapter/es7x/support/ES7xTemplate.java:354-360 | client-adapter/es8x/src/main/java/com/alibaba/otter/canal/client/adapter/es8x/support/ES8xTemplate.java:350-356 \u2014 before extracting anything, compare \u0060client-adapter/es7x/src/main/java/com/alibaba/otter/canal/client/adapter/es7x/support/ES7xTemplate.java\u0060 and \u0060client-adapter/es8x/src/main/java/com/alibaba/otter/canal/client/adapter/es8x/support/ES8xTemplate.java\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 188 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060client-adapter/es7x/src/main/java/com/alibaba/otter/canal/client/adapter/es7x/support/ES7xTemplate.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-adapter/es7x/src/main/java/com/alibaba/otter/canal/client/adapter/es7x/support/ES7xTemplate.java"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"82ae2d51e3950ddad8fc72e80523cbca458eb3bf76e657898acaf36979cff14d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): client-adapter/escore/src/main/java/com/alibaba/otter/canal/client/adapter/es/core/service/ESSyncService.java:124-130 | client-adapter/escore/src/main/java/com/alibaba/otter/canal/client/adapter/es/core/service/ESSyncService.java:325-332 \u2014 both copies are in the same file, so extract the block 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 \u0060client-adapter/escore/src/main/java/com/alibaba/otter/canal/client/adapter/es/core/service/ESSyncService.java:124\u0060 it does not close everything it opens, so those exact 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":"client-adapter/escore/src/main/java/com/alibaba/otter/canal/client/adapter/es/core/service/ESSyncService.java"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a22b319846eea346d959e9cb72443b8b302cbb08304a2daef836de9e2fb9de1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): client-adapter/escore/src/main/java/com/alibaba/otter/canal/client/adapter/es/core/service/ESSyncService.java:624-630 | client-adapter/escore/src/main/java/com/alibaba/otter/canal/client/adapter/es/core/service/ESSyncService.java:728-734 \u2014 both copies are in the same file, so extract the block 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 \u0060client-adapter/escore/src/main/java/com/alibaba/otter/canal/client/adapter/es/core/service/ESSyncService.java:624\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-adapter/escore/src/main/java/com/alibaba/otter/canal/client/adapter/es/core/service/ESSyncService.java"},"region":{"startLine":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"e571806e1ffee9899ae1cf68e4c1230ddf10647deeaf04693841f0b71bf40aca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/monitor/HbaseConfigMonitor.java:30-36 | client-adapter/kudu/src/main/java/com/alibaba/otter/canal/client/adapter/kudu/monitor/KuduConfigMonitor.java:34-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/monitor/HbaseConfigMonitor.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/monitor/HbaseConfigMonitor.java"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d942bdcaa6c1326f4cd716627dce2a86429bb48e0a3d2214d21c8cacb378bbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/service/HbaseSyncService.java:85-91 | client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/service/HbaseSyncService.java:246-252 \u2014 both copies are in the same file, so extract the block 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":"client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/service/HbaseSyncService.java"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"47c14bf0dbfecc6319003a9515cdaafb0f04560f98f7b7b9b71defd19d62aca8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/service/HbaseSyncService.java:201-207 | client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/service/HbaseSyncService.java:284-291 \u2014 both copies are in the same file, so extract the block 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 \u0060client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/service/HbaseSyncService.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/service/HbaseSyncService.java"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"26be3ffc54979cc7b41d0f97ed2064306d256b6a467582be8251becf274a230b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): client-adapter/phoenix/src/main/java/com/alibaba/otter/canal/client/adapter/phoenix/service/PhoenixSyncService.java:617-623 | client-adapter/rdb/src/main/java/com/alibaba/otter/canal/client/adapter/rdb/service/RdbSyncService.java:508-514 \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 \u0060client-adapter/phoenix/src/main/java/com/alibaba/otter/canal/client/adapter/phoenix/service/PhoenixSyncService.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":"client-adapter/phoenix/src/main/java/com/alibaba/otter/canal/client/adapter/phoenix/service/PhoenixSyncService.java"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"429d739052ea9cd427e8c9328cf4c2cdb33f50fcb45c1678016a96ae9867de95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): client-adapter/tablestore/src/main/java/com/alibaba/otter/canal/client/adapter/tablestore/service/TablestoreSyncService.java:315-321 | client-adapter/tablestore/src/main/java/com/alibaba/otter/canal/client/adapter/tablestore/service/TablestoreSyncService.java:335-341 \u2014 both copies are in the same file, so extract the block 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 \u0060client-adapter/tablestore/src/main/java/com/alibaba/otter/canal/client/adapter/tablestore/service/TablestoreSyncService.java:315\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":"client-adapter/tablestore/src/main/java/com/alibaba/otter/canal/client/adapter/tablestore/service/TablestoreSyncService.java"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"65277956a3ee455dd18046cce3624b1ca59ca6b98e55795973011185d84b6547"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): connector/pulsarmq-connector/src/main/java/com/alibaba/otter/canal/connector/pulsarmq/producer/CanalPulsarMQProducer.java:174-180 | connector/rocketmq-connector/src/main/java/com/alibaba/otter/canal/connector/rocketmq/producer/CanalRocketMQProducer.java:153-159 \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 \u0060connector/pulsarmq-connector/src/main/java/com/alibaba/otter/canal/connector/pulsarmq/producer/CanalPulsarMQProducer.java:174\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"connector/pulsarmq-connector/src/main/java/com/alibaba/otter/canal/connector/pulsarmq/producer/CanalPulsarMQProducer.java"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"c45ed05e08339eeb29b9f4a3ff7ea969e3a62cbe55159ad386caf15c22638ae0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): driver/src/main/java/com/alibaba/otter/canal/parse/driver/mysql/utils/MySQLPasswordEncrypter.java:51-57 | protocol/src/main/java/com/alibaba/otter/canal/protocol/SecurityUtil.java:69-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"driver/src/main/java/com/alibaba/otter/canal/parse/driver/mysql/utils/MySQLPasswordEncrypter.java"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a73d3b3ab807c69d1ae04ced28cb9f1c075a2e600e3ca8ed632871b72d68b16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): driver/src/main/java/com/alibaba/otter/canal/parse/driver/mysql/MysqlConnector.java:250-258 | driver/src/main/java/com/alibaba/otter/canal/parse/driver/mysql/MysqlConnector.java:347-353 \u2014 both copies are in the same file, so extract the block 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":"driver/src/main/java/com/alibaba/otter/canal/parse/driver/mysql/MysqlConnector.java"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"3170e4e296b215bcc8309b6e7d83bf2c54e2ab8edd1172fca2fc08472a18abb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/dbsync/LogEventConvert.java:155-161 | parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/dbsync/LogEventConvert.java:164-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 \u0060parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/dbsync/LogEventConvert.java:155\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":"parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/dbsync/LogEventConvert.java"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"de86c96605f9b4cfe137e421125ba3afeb8f8a991ad38b36e4ddcd37dd3788d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/rds/BinlogDownloadQueue.java:182-188 | instance/manager/src/main/java/com/alibaba/otter/canal/instance/manager/plain/HttpHelper.java:60-66 \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 \u0060parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/rds/BinlogDownloadQueue.java:182\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":"parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/rds/BinlogDownloadQueue.java"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a63084de3bd088b66eeeb17d5d7f5b27c1bb6d0ffc4e32dd319c4bb65992f67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/MysqlConnection.java:323-330 | parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/MysqlConnection.java:351-357 \u2014 both copies are in the same file, so extract the block 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":"parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/MysqlConnection.java"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"1871530d1242eaa585a702b16db1a0a0804a8016cf1e8a1a563a520226d0911b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/event/FormatDescriptionLogEvent.java:256-262 | dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/event/FormatDescriptionLogEvent.java:284-290 \u2014 both copies are in the same file, so extract the block 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":"dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/event/FormatDescriptionLogEvent.java"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"865ddc82395b5fd5cd80ee3bf31d9c211410313f3bc6fb56d2a51db93bbf4047"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/event/RowsLogBuffer.java:750-756 | dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/JsonConversion.java:352-358 \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 \u0060dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/event/RowsLogBuffer.java:750\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":"dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/event/RowsLogBuffer.java"},"region":{"startLine":750}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0236d077bcaf6bb9a402a85fb3fec5af85e20c3b19e93c3e62cfaeb1126d7cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/JsonConversion.java:332-338 | dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/JsonConversion.java:367-374 \u2014 both copies are in the same file, so extract the block 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 \u0060dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/JsonConversion.java:332\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/JsonConversion.java"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"105a11e1929e1d3464442c3f3243297cc5cce121b346dac3c21e7c4656687e9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java:1483-1489 | dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java:1520-1526 \u2014 both copies are in the same file, so extract the block 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 \u0060dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java:1483\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":"dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java"},"region":{"startLine":1483}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dbaf8b0a628f893f091e56a2e87f615921c3cfe99a4584ecb2c4bb63897a3ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 6): dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java:606-611 | dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java:650-655 | dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java:736-741 | dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java:804-809 | dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java:851-856 | dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java:938-943 \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. The matched lines also transfer control out of the body holding them, 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":"dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"767308370a4dc8be7f11025b3f9f35866198ee8342d8ce017ed9b647567ac7a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): client-adapter/es8x/src/main/java/com/alibaba/otter/canal/client/adapter/es8x/etl/ESEtlService.java:141-147 | client-adapter/es8x/src/main/java/com/alibaba/otter/canal/client/adapter/es8x/support/ES8xTemplate.java:83-89 | client-adapter/es8x/src/main/java/com/alibaba/otter/canal/client/adapter/es8x/support/ES8xTemplate.java:152-157 | client-adapter/es8x/src/main/java/com/alibaba/otter/canal/client/adapter/es8x/support/ES8xTemplate.java:365-370 \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 \u0060client-adapter/es8x/src/main/java/com/alibaba/otter/canal/client/adapter/es8x/etl/ESEtlService.java:141\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":"client-adapter/es8x/src/main/java/com/alibaba/otter/canal/client/adapter/es8x/etl/ESEtlService.java"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"6095303755eedd7d4c3dd573a0897817941123883a708f3853b468352309874a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java:316-321 | dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java:404-409 | dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java:464-469 | dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java:542-547 \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. The matched lines also transfer control out of the body holding them, 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":"dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"10aa5b3fbf2586201f43bfe6c755299d2b4cc101f7d5a27f499818d79a002dcc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java:621-626 | dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java:684-689 | dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java:820-825 | dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java:883-888 \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. The matched lines also transfer control out of the body holding them, 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":"dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java"},"region":{"startLine":621}}}],"partialFingerprints":{"codehealthFindingId/v1":"af06c579271dc1515686769ff2ac2f8aa221bb477a070bd4d96977abf9edb486"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/support/ESConnection.java:514-519 | client-adapter/es7x/src/main/java/com/alibaba/otter/canal/client/adapter/es7x/support/ESConnection.java:177-183 | client-adapter/es8x/src/main/java/com/alibaba/otter/canal/client/adapter/es8x/support/ESConnection.java:170-176 \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 \u0060client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/support/ESConnection.java:514\u0060 it does not close everything it opens, so those exact 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":"client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/support/ESConnection.java"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"a75de90785833c514c8d37d8080ac1d15b3a4ae3328c39a69d2a72f07d2ead57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): client-adapter/kudu/src/main/java/com/alibaba/otter/canal/client/adapter/kudu/service/KuduSyncService.java:70-75 | client-adapter/kudu/src/main/java/com/alibaba/otter/canal/client/adapter/kudu/service/KuduSyncService.java:133-138 | client-adapter/kudu/src/main/java/com/alibaba/otter/canal/client/adapter/kudu/service/KuduSyncService.java:175-180 \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 \u0060client-adapter/kudu/src/main/java/com/alibaba/otter/canal/client/adapter/kudu/service/KuduSyncService.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-adapter/kudu/src/main/java/com/alibaba/otter/canal/client/adapter/kudu/service/KuduSyncService.java"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfdb554d27e31a630a620fe803d08c524f6b9aa3c8e6d6f40bff3085de2d6563"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): client-adapter/tablestore/src/main/java/com/alibaba/otter/canal/client/adapter/tablestore/service/TablestoreSyncService.java:89-94 | client-adapter/tablestore/src/main/java/com/alibaba/otter/canal/client/adapter/tablestore/service/TablestoreSyncService.java:210-215 | client-adapter/tablestore/src/main/java/com/alibaba/otter/canal/client/adapter/tablestore/service/TablestoreSyncService.java:263-268 \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 \u0060client-adapter/tablestore/src/main/java/com/alibaba/otter/canal/client/adapter/tablestore/service/TablestoreSyncService.java:89\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-adapter/tablestore/src/main/java/com/alibaba/otter/canal/client/adapter/tablestore/service/TablestoreSyncService.java"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"f85cbae2f5083cb3ae3d0db7290a4414bfd690f8d3fb07e45282206b2d600531"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): server/src/main/java/com/alibaba/otter/canal/admin/handler/ClientAuthenticationHandler.java:45-50 | server/src/main/java/com/alibaba/otter/canal/server/netty/handler/ClientAuthenticationHandler.java:49-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060server/src/main/java/com/alibaba/otter/canal/admin/handler/ClientAuthenticationHandler.java:45\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/src/main/java/com/alibaba/otter/canal/admin/handler/ClientAuthenticationHandler.java"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"845503d7e9aa299da73873ed4a427e54afbbaa9d9c12c558f5642eafff5f50c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): server/src/main/java/com/alibaba/otter/canal/admin/handler/HandshakeInitializationHandler.java:49-54 | server/src/main/java/com/alibaba/otter/canal/server/netty/handler/HandshakeInitializationHandler.java:48-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060server/src/main/java/com/alibaba/otter/canal/admin/handler/HandshakeInitializationHandler.java:49\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":"server/src/main/java/com/alibaba/otter/canal/admin/handler/HandshakeInitializationHandler.java"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"603145f0a3e8bee6ecd02d7a661c26e365b48c8a80c0419261f1c99758d67a1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): admin/admin-web/src/main/java/com/alibaba/otter/canal/admin/service/impl/CanalInstanceServiceImpl.java:174-179 | admin/admin-web/src/main/java/com/alibaba/otter/canal/admin/service/impl/CanalInstanceServiceImpl.java:208-213 \u2014 both copies are in the same file, so extract the block 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 \u0060admin/admin-web/src/main/java/com/alibaba/otter/canal/admin/service/impl/CanalInstanceServiceImpl.java:174\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"admin/admin-web/src/main/java/com/alibaba/otter/canal/admin/service/impl/CanalInstanceServiceImpl.java"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8a25851377c69886db0aecf4109eb15e420887ca6d7c1e166a4a5cbf9ba84bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/config/MappingConfig.java:86-91 | client-adapter/rdb/src/main/java/com/alibaba/otter/canal/client/adapter/rdb/config/MappingConfig.java:84-89 \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 \u0060client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/config/MappingConfig.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":"client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/config/MappingConfig.java"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"0996b62381a0cb05e4b17fcbd50f3b10e87540c2dbcb32133e4e3fc577d71cec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/etl/ESEtlService.java:119-125 | client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/support/ES6xTemplate.java:358-363 \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 \u0060client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/etl/ESEtlService.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/etl/ESEtlService.java"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"35425f6e554bba50b946ed9401b99c65257f7fef1b155e9903241f928f44e120"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/support/ES6xTemplate.java:397-402 | client-adapter/es7x/src/main/java/com/alibaba/otter/canal/client/adapter/es7x/support/ES7xTemplate.java:389-394 \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 \u0060client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/support/ES6xTemplate.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. The matched lines also transfer control out of the body holding them, 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":"client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/support/ES6xTemplate.java"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"9019cf13351d756ec5ca82d16c1214395aa5e33893ff58ceb9d1879a1559c533"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/ES6xAdapter.java:39-44 | client-adapter/es7x/src/main/java/com/alibaba/otter/canal/client/adapter/es7x/ES7xAdapter.java:39-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 \u0060client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/ES6xAdapter.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/ES6xAdapter.java"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b4387c0e2a1267fa42e729fbe0ebba5df7bb87518101bf867068af16e8d9082"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): client-adapter/es7x/src/main/java/com/alibaba/otter/canal/client/adapter/es7x/ES7xAdapter.java:64-69 | client-adapter/es8x/src/main/java/com/alibaba/otter/canal/client/adapter/es8x/ES8xAdapter.java:60-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 \u0060client-adapter/es7x/src/main/java/com/alibaba/otter/canal/client/adapter/es7x/ES7xAdapter.java:64\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":"client-adapter/es7x/src/main/java/com/alibaba/otter/canal/client/adapter/es7x/ES7xAdapter.java"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a9d1e69e2e92bd0c10077b598ddd3dc3fea29badd956331ed5ec5b2ce6f6869"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): client-adapter/es8x/src/main/java/com/alibaba/otter/canal/client/adapter/es8x/etl/ESEtlService.java:119-126 | client-adapter/es8x/src/main/java/com/alibaba/otter/canal/client/adapter/es8x/support/ES8xTemplate.java:348-353 \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 \u0060client-adapter/es8x/src/main/java/com/alibaba/otter/canal/client/adapter/es8x/etl/ESEtlService.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-adapter/es8x/src/main/java/com/alibaba/otter/canal/client/adapter/es8x/etl/ESEtlService.java"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"19fc2c4f61545f714ddd16ac32f3315179b04f8ffe848319996aef4f2f9536e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): client-adapter/escore/src/main/java/com/alibaba/otter/canal/client/adapter/es/core/service/ESSyncService.java:93-98 | client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/service/HbaseSyncService.java:33-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060client-adapter/escore/src/main/java/com/alibaba/otter/canal/client/adapter/es/core/service/ESSyncService.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":"client-adapter/escore/src/main/java/com/alibaba/otter/canal/client/adapter/es/core/service/ESSyncService.java"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"27adc28af24c663f5d21a93769e83876989f60b4f2d416892e19944debf1a687"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): client-adapter/escore/src/main/java/com/alibaba/otter/canal/client/adapter/es/core/service/ESSyncService.java:650-655 | client-adapter/escore/src/main/java/com/alibaba/otter/canal/client/adapter/es/core/service/ESSyncService.java:767-772 \u2014 both copies are in the same file, so extract the block 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 \u0060client-adapter/escore/src/main/java/com/alibaba/otter/canal/client/adapter/es/core/service/ESSyncService.java:650\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":"client-adapter/escore/src/main/java/com/alibaba/otter/canal/client/adapter/es/core/service/ESSyncService.java"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"69c1fbf94b6386fd71034ff288ca552a688172a566d3162dd5a3fcc04591e96e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/support/PhType.java:37-42 | client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/support/Type.java:47-52 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/support/PhType.java:37\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":"client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/support/PhType.java"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"475baf5c30f8ca3949900c58a6063b78144f319c5140bc7342b4fb2def021ce8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/HbaseAdapter.java:111-116 | client-adapter/kudu/src/main/java/com/alibaba/otter/canal/client/adapter/kudu/KuduAdapter.java:95-100 \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 \u0060client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/HbaseAdapter.java:111\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":"client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/HbaseAdapter.java"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d4e3c50ca2f3f47b8e9d560a7ae34e3a087b21d3be8d0adcecd4a12efb6ea76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): client-adapter/phoenix/src/main/java/com/alibaba/otter/canal/client/adapter/phoenix/service/PhoenixSyncService.java:248-253 | client-adapter/rdb/src/main/java/com/alibaba/otter/canal/client/adapter/rdb/service/RdbSyncService.java:222-227 \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 \u0060client-adapter/phoenix/src/main/java/com/alibaba/otter/canal/client/adapter/phoenix/service/PhoenixSyncService.java:248\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-adapter/phoenix/src/main/java/com/alibaba/otter/canal/client/adapter/phoenix/service/PhoenixSyncService.java"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"f15a571c5c78feaa2db3b3f6bd3a45875cece7d3e579b28546c6d258d6b5608a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): client-adapter/phoenix/src/main/java/com/alibaba/otter/canal/client/adapter/phoenix/service/PhoenixSyncService.java:540-545 | client-adapter/phoenix/src/main/java/com/alibaba/otter/canal/client/adapter/phoenix/service/PhoenixSyncService.java:560-565 \u2014 both copies are in the same file, so extract the block 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 \u0060client-adapter/phoenix/src/main/java/com/alibaba/otter/canal/client/adapter/phoenix/service/PhoenixSyncService.java:540\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-adapter/phoenix/src/main/java/com/alibaba/otter/canal/client/adapter/phoenix/service/PhoenixSyncService.java"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"013bcaa2853ac6338d66538228415d804541c436419ccc57066475cf1636a74a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): client-adapter/tablestore/src/main/java/com/alibaba/otter/canal/client/adapter/tablestore/service/TablestoreSyncService.java:174-179 | client-adapter/tablestore/src/main/java/com/alibaba/otter/canal/client/adapter/tablestore/service/TablestoreSyncService.java:285-290 \u2014 both copies are in the same file, so extract the block 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 \u0060client-adapter/tablestore/src/main/java/com/alibaba/otter/canal/client/adapter/tablestore/service/TablestoreSyncService.java:174\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-adapter/tablestore/src/main/java/com/alibaba/otter/canal/client/adapter/tablestore/service/TablestoreSyncService.java"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"66092ccbd418e4639f3bb22d7cd9d5e1d43acbe8e939ab013c53b2e7ee4f9b72"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): client/src/main/java/com/alibaba/otter/canal/client/rabbitmq/RabbitMQCanalConnector.java:68-73 | connector/rabbitmq-connector/src/main/java/com/alibaba/otter/canal/connector/rabbitmq/consumer/CanalRabbitMQConsumer.java:83-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 \u0060client/src/main/java/com/alibaba/otter/canal/client/rabbitmq/RabbitMQCanalConnector.java:68\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/otter/canal/client/rabbitmq/RabbitMQCanalConnector.java"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a31c029afa032771e1c5f60786862c477c45f70e3fac85bd5841cfd0b6b88af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): client-adapter/launcher/src/main/java/com/alibaba/otter/canal/adapter/launcher/monitor/remote/DbRemoteConfigLoader.java:149-154 | client-adapter/launcher/src/main/java/com/alibaba/otter/canal/adapter/launcher/monitor/remote/DbRemoteConfigLoader.java:183-188 \u2014 both copies are in the same file, so extract the block 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 \u0060client-adapter/launcher/src/main/java/com/alibaba/otter/canal/adapter/launcher/monitor/remote/DbRemoteConfigLoader.java:149\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-adapter/launcher/src/main/java/com/alibaba/otter/canal/adapter/launcher/monitor/remote/DbRemoteConfigLoader.java"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"336ec6901a627240bb15be9ae139746834cee5f29a6ee98399d1c0164cdc295e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): connector/kafka-connector/src/main/java/com/alibaba/otter/canal/connector/kafka/consumer/CanalKafkaConsumer.java:53-58 | connector/kafka-connector/src/main/java/com/alibaba/otter/canal/connector/kafka/producer/CanalKafkaProducer.java:101-106 \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 \u0060connector/kafka-connector/src/main/java/com/alibaba/otter/canal/connector/kafka/consumer/CanalKafkaConsumer.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":"connector/kafka-connector/src/main/java/com/alibaba/otter/canal/connector/kafka/consumer/CanalKafkaConsumer.java"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"27495c2c0e6b579cd126fa8c8d64ec45a99567117de79e280d375e62bde7e85a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): connector/rocketmq-connector/src/main/java/com/alibaba/otter/canal/connector/rocketmq/producer/CanalRocketMQProducer.java:267-274 | connector/rocketmq-connector/src/main/java/com/alibaba/otter/canal/connector/rocketmq/producer/CanalRocketMQProducer.java:284-289 \u2014 both copies are in the same file, so extract the block 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 \u0060connector/rocketmq-connector/src/main/java/com/alibaba/otter/canal/connector/rocketmq/producer/CanalRocketMQProducer.java:267\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":"connector/rocketmq-connector/src/main/java/com/alibaba/otter/canal/connector/rocketmq/producer/CanalRocketMQProducer.java"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eaac408be67411dc9bdc95b499049b01027515597c3497865c3c6492bb7feab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/tsdb/DatabaseTableMeta.java:194-199 | parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/tsdb/DatabaseTableMeta.java:209-215 \u2014 both copies are in the same file, so extract the block 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 \u0060parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/tsdb/DatabaseTableMeta.java:194\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":"parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/tsdb/DatabaseTableMeta.java"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ad88b0dc9bd0628fb918ff1244cf206ea0e87a98cfd29a9854653b8e2669385"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/tsdb/DatabaseTableMeta.java:420-425 | parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/tsdb/DatabaseTableMeta.java:507-512 \u2014 both copies are in the same file, so extract the block 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 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":"parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/tsdb/DatabaseTableMeta.java"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"974a85d964e326d38680c3f86208057724b9e43f9da44371a7191adb5107f81c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/MysqlConnection.java:353-358 | parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/MysqlConnection.java:389-394 \u2014 both copies are in the same file, so extract the block 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":"parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/MysqlConnection.java"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"357d9e4674792aecd8088bf488423e196df1488cd4fdbd0cad99f5ca72801f9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/event/TableMapLogEvent.java:617-622 | dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/event/TableMapLogEvent.java:666-671 \u2014 both copies are in the same file, so extract the block 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":"dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/event/TableMapLogEvent.java"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"d002ac065b025d0c5e8bd3d7eee7bef0b5bdb7d75da85fdee861478e3c27c581"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/JsonConversion.java:358-364 | dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/JsonConversion.java:396-401 \u2014 both copies are in the same file, so extract the block 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 \u0060dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/JsonConversion.java:358\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":"dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/JsonConversion.java"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceb8bfbfa0fd261136dc43372686b4537e23d16a4e03fb2dd1fd6b375f95a63b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java:434-439 | dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java:557-562 \u2014 both copies are in the same file, so extract the block 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. 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":"dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"429f98070573980e620c1a76c570504e1c26ab341923efa86eda43676536a71b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java:752-757 | dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java:955-960 \u2014 both copies are in the same file, so extract the block 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":"dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java"},"region":{"startLine":752}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ccef10b308f8d8cb05ac042bb1b67c1ededc3640ef93b327fe03e01dbe7195f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java:1475-1480 | dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java:1513-1518 \u2014 both copies are in the same file, so extract the block 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 \u0060dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java:1475\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java"},"region":{"startLine":1475}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b64312030d72d6b17993be2a473ad916af244f1ce7a9c434779a338a6fe942d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 7): client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/ClickHouseAdapter.java:332-336 | client-adapter/escore/src/main/java/com/alibaba/otter/canal/client/adapter/es/core/ESAdapter.java:194-198 | client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/HbaseAdapter.java:261-265 | client-adapter/kudu/src/main/java/com/alibaba/otter/canal/client/adapter/kudu/KuduAdapter.java:235-239 | client-adapter/phoenix/src/main/java/com/alibaba/otter/canal/client/adapter/phoenix/PhoenixAdapter.java:318-322 | client-adapter/rdb/src/main/java/com/alibaba/otter/canal/client/adapter/rdb/RdbAdapter.java:333-337 | client-adapter/tablestore/src/main/java/com/alibaba/otter/canal/client/adapter/tablestore/TablestoreAdapter.java:344-348 \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 \u0060client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/ClickHouseAdapter.java:332\u0060 it does not close everything it opens, so those exact 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":"client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/ClickHouseAdapter.java"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"afb1b9d74cf23a6882d99a8a9a80fea0e8e793455f12c6f2624690e7ea6e803b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/service/ClickHouseBatchSyncService.java:470-474 | client-adapter/phoenix/src/main/java/com/alibaba/otter/canal/client/adapter/phoenix/service/PhoenixSyncService.java:529-533 | client-adapter/rdb/src/main/java/com/alibaba/otter/canal/client/adapter/rdb/service/RdbSyncService.java:421-425 \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 \u0060client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/service/ClickHouseBatchSyncService.java:470\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/service/ClickHouseBatchSyncService.java"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"1461f6c300d1d9d0b904c0c05065bda7656024076c82831aff1265c7ee056693"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/support/ES6xTemplate.java:106-110 | client-adapter/es7x/src/main/java/com/alibaba/otter/canal/client/adapter/es7x/support/ES7xTemplate.java:98-102 | client-adapter/es8x/src/main/java/com/alibaba/otter/canal/client/adapter/es8x/support/ES8xTemplate.java:98-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 \u0060client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/support/ES6xTemplate.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":"client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/support/ES6xTemplate.java"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"6123ff9caa4b2ec6cc1ebb5ec2ad04f110cb93298d9574ccef38e396fb7ebcc2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): client-adapter/phoenix/src/main/java/com/alibaba/otter/canal/client/adapter/phoenix/service/PhoenixEtlService.java:70-74 | client-adapter/phoenix/src/main/java/com/alibaba/otter/canal/client/adapter/phoenix/service/PhoenixSyncService.java:541-545 | client-adapter/phoenix/src/main/java/com/alibaba/otter/canal/client/adapter/phoenix/service/PhoenixSyncService.java:561-565 \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 \u0060client-adapter/phoenix/src/main/java/com/alibaba/otter/canal/client/adapter/phoenix/service/PhoenixEtlService.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-adapter/phoenix/src/main/java/com/alibaba/otter/canal/client/adapter/phoenix/service/PhoenixEtlService.java"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f2aaf577003c2570dc49385b0bd00e36851d78818a77784a9ad1eda0981aa85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/service/ClickHouseBatchSyncService.java:453-457 | client-adapter/rdb/src/main/java/com/alibaba/otter/canal/client/adapter/rdb/service/RdbSyncService.java:404-408 \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 \u0060client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/service/ClickHouseBatchSyncService.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/service/ClickHouseBatchSyncService.java"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c445d86a6573079931a319e540a0d4584fbab0088b191def4272324737b15ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/MappingConfigsLoader.java:18-22 | client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/MappingConfigsLoader.java:49-53 \u2014 both copies are in the same file, so extract the block 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 \u0060client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/MappingConfigsLoader.java:18\u0060 it does not close everything it opens, so those exact 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":"client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/MappingConfigsLoader.java"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9177229aaabab5eae50734ee0be248bdad4c607ec28d22de06c9bb9ddd05d9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/service/HbaseSyncService.java:165-170 | client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/service/HbaseSyncService.java:308-312 \u2014 both copies are in the same file, so extract the block 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":"client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/service/HbaseSyncService.java"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3fb4890e7e424c0f2ce96f11f9a339f2aaa383cbb4e4f94b6cad66bb2fe4ca5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/support/PhTypeUtil.java:174-178 | client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/support/PhTypeUtil.java:215-219 \u2014 both copies are in the same file, so extract the block 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 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":"client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/support/PhTypeUtil.java"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"348040aa95d14a4be1e3ee057427d36cc2dd8673f9c4c8cc82d4c589b5f80670"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): client-adapter/phoenix/src/main/java/com/alibaba/otter/canal/client/adapter/phoenix/service/PhoenixSyncService.java:255-259 | client-adapter/rdb/src/main/java/com/alibaba/otter/canal/client/adapter/rdb/service/RdbSyncService.java:229-233 \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 \u0060client-adapter/phoenix/src/main/java/com/alibaba/otter/canal/client/adapter/phoenix/service/PhoenixSyncService.java:255\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":"client-adapter/phoenix/src/main/java/com/alibaba/otter/canal/client/adapter/phoenix/service/PhoenixSyncService.java"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4dee1c8f43bf5d21bda24b25bfc1994af6e09235837e5c7ac5b893727dff627"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): client-adapter/phoenix/src/main/java/com/alibaba/otter/canal/client/adapter/phoenix/service/PhoenixSyncService.java:346-350 | client-adapter/phoenix/src/main/java/com/alibaba/otter/canal/client/adapter/phoenix/service/PhoenixSyncService.java:353-357 \u2014 both copies are in the same file, so extract the block 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 \u0060client-adapter/phoenix/src/main/java/com/alibaba/otter/canal/client/adapter/phoenix/service/PhoenixSyncService.java:346\u0060 it does not close everything it opens, so those exact 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":"client-adapter/phoenix/src/main/java/com/alibaba/otter/canal/client/adapter/phoenix/service/PhoenixSyncService.java"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"88956dc1ca1ed45809f3bee154f24132e8f4ac2995256d8cf71f0e0fd86a475b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): client/src/main/java/com/alibaba/otter/canal/client/kafka/KafkaCanalConnector.java:190-194 | connector/kafka-connector/src/main/java/com/alibaba/otter/canal/connector/kafka/consumer/CanalKafkaConsumer.java:87-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060client/src/main/java/com/alibaba/otter/canal/client/kafka/KafkaCanalConnector.java:190\u0060 it does not close everything it opens, so those exact 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":"client/src/main/java/com/alibaba/otter/canal/client/kafka/KafkaCanalConnector.java"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f3397c2a2b72153a097a80397ece7ac8387e99fb57991baaaade58d345dc537"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): client/src/main/java/com/alibaba/otter/canal/client/kafka/KafkaCanalConnector.java:227-231 | connector/kafka-connector/src/main/java/com/alibaba/otter/canal/connector/kafka/consumer/CanalKafkaConsumer.java:101-105 \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 \u0060client/src/main/java/com/alibaba/otter/canal/client/kafka/KafkaCanalConnector.java:227\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/otter/canal/client/kafka/KafkaCanalConnector.java"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"51fb3e5636560b9e2d95150051c6cba0fab11e9125696622df91777fcf23c8b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): client/src/main/java/com/alibaba/otter/canal/client/kafka/KafkaCanalConnector.java:249-253 | connector/kafka-connector/src/main/java/com/alibaba/otter/canal/connector/kafka/consumer/CanalKafkaConsumer.java:119-123 \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 \u0060client/src/main/java/com/alibaba/otter/canal/client/kafka/KafkaCanalConnector.java:249\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":"client/src/main/java/com/alibaba/otter/canal/client/kafka/KafkaCanalConnector.java"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"8164fcfbf2d3428327a8fcf600a54c5b44eeb9b238e7f81ea6157548a2b9ba6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/tsdb/DatabaseTableMeta.java:540-544 | parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/tsdb/DatabaseTableMeta.java:550-554 \u2014 both copies are in the same file, so extract the block 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 \u0060parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/tsdb/DatabaseTableMeta.java:540\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":"parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/tsdb/DatabaseTableMeta.java"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa6f4428897abdfe653b851a92f26426b8191cbb0ea611da792a4c59667627a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/event/TableMapLogEvent.java:653-657 | dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/event/TableMapLogEvent.java:721-726 \u2014 both copies are in the same file, so extract the block 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 \u0060dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/event/TableMapLogEvent.java:653\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/event/TableMapLogEvent.java"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"16971f81acb675496d2aecaaaa8176a7f2aaa64bb4f95e4266dfd57ecc06ce31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java:1794-1798 | dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java:1817-1821 \u2014 both copies are in the same file, so extract the block 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 \u0060dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java:1794\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/LogBuffer.java"},"region":{"startLine":1794}}}],"partialFingerprints":{"codehealthFindingId/v1":"140cac4307441332781edf1ebf571d53ada2a9df7de8d2e7f68341fbfafaca9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/HbaseAdapter.java:212-227 | client-adapter/kudu/src/main/java/com/alibaba/otter/canal/client/adapter/kudu/KuduAdapter.java:188-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/HbaseAdapter.java"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"afaf3570bfaaa6a5d52b3f35ccae1b4ffd6b52f4adf0aaa55e1e25e080ffbc21"}},{"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":"02573c5c7eaf1088c13f55d3cf13a3f46a90b67297048c0edccddb11ef6691b1"},"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"}}]},{"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":"9201f040f8ace14119889d7310126a0e1f4ea13202a2370c06ad91260fed4655"},"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"}}]},{"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":"240a6346611bb926b70af444816c302d71dfbc74b990105d9c67d03375c60b0d"},"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"}}]},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 9 significant file(s) lose their only recent owner: dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/event/QueryLogEvent.java, client-adapter/phoenix/src/main/java/com/alibaba/otter/canal/client/adapter/phoenix/service/PhoenixEtlService.java, client-adapter/escore/src/main/java/com/alibaba/otter/canal/client/adapter/es/core/support/ESSyncUtil.java, admin/admin-web/src/main/java/com/alibaba/otter/canal/admin/config/WebConfig.java, server/src/main/java/com/alibaba/otter/canal/admin/handler/ClientAuthenticationHandler.java, admin/admin-web/src/main/java/com/alibaba/otter/canal/admin/controller/UserController.java, admin/admin-web/src/main/java/com/alibaba/otter/canal/admin/service/impl/UserServiceImpl.java, client-adapter/launcher/src/main/java/com/alibaba/otter/canal/adapter/launcher/monitor/ApplicationConfigMonitor.java (\u002B1 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0d0fd9c348703fccf2189f7c8205ff1d012f429dfdce39962d6f20be23de8090"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #2: If anonymized user #2 becomes unavailable, 4 significant file(s) lose their only recent owner: dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/event/TableMapLogEvent.java, parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/rds/BinlogDownloadQueue.java, filter/src/main/java/com/alibaba/otter/canal/filter/aviater/AviaterRegexFilter.java, connector/core/src/main/java/com/alibaba/otter/canal/connector/core/filter/AviaterRegexFilter.java. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"1049fb4cd759676c4fcbf91530b24033ed80da63cdd2a87e7cd461e97e84dbcd"}},{"ruleId":"D28","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":"e29ea8e5b2169a290ef052889a6a65a4ec51eadbc749bd46b90acd48ec509c81"}},{"ruleId":"D28","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":"dc36d17310d129ae21ae75484d1e7702e72083ca8fbb264377b8f14eef880086"}},{"ruleId":"D28","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":"fb6e40ef09ebf953d80ba261d1889ccf42fc9e71b21d34222429ea49a9377c3e"}},{"ruleId":"D28","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":"a54ab5f28c32c80c764fd5f23afa7c91da7f97c6f674e4b4b4a09d23056d42c3"}},{"ruleId":"D28","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":"af0df24b5f9dab5fa29cf17ae2f4de2cb6d079b3e562dc141987c5d1b078c1e5"}},{"ruleId":"D28","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":"a1081c1757463ee085240469a7665c4802a09e26c237675fa68fdc3747bbef7b"}},{"ruleId":"D28","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":"89de7fb4bea7aea7a0456f5620706572c4f346ce4a2d1211bd2388e60712dfea"}},{"ruleId":"D28","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":"c6568a912a50724e69a70b85ec9ad9dcfe2b98003eb4e8769af53aa8992da592"}},{"ruleId":"D28","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":"3cdfd7beb31b791ae18dcb425e21eb157c842e7bbcd522cc330573c1a6538db1"}},{"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":"223d16291defb0acdb4bce500b7f3ffb883a270501a0c69b27d58792ddfa855a"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"1f7c313058a32af6b4a0ba9c02cd1974a81bffe7d8f505627427c97ad7285de1"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"2714657726d1cbdac4c97f10a932e34152786838bda10249b12ee6c3a0af8d52"},"taxa":[{"id":"CWE-326","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"97641943de8c39b1ac2e6aeab3692063db1a828d51322412329bdb1e4684ca34"},"taxa":[{"id":"CWE-328","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"cb8cb870462b49c8da3eb4247d8d288c1587a5fc36806738229f22584273c011"},"taxa":[{"id":"CWE-327","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"5f9ff841cbd2a3d1174163727e4b989f68267b07ea1e569e8f26a90be417537f"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"233a26bef7fe37fcfe0622550797df72a6d727683f2e93cdc80e4930df9b2aff"},"taxa":[{"id":"CWE-328","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"1bc8c08ed9b4748f0e2f91f443d98f49560ac4ca66b07bf90dd0e9783b91b488"},"taxa":[{"id":"CWE-328","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"b2dcae6a9cd2a269573baa6d0dd830bf1d14caaca3d388b4bd96f3de2a7aeb43"},"taxa":[{"id":"CWE-328","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"81793bbf11aee71374874704ab098ef88153f56a545a3d906e51756e8fbdb9ca"},"taxa":[{"id":"CWE-328","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"5f89f4fb0913c0aa593465ce403759e715f1625408da28a8f737b2201b3f5d53"},"taxa":[{"id":"CWE-328","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"ccb85be6ba3e5f31634c2ccc14b5ebd0439349a0f71f7692b5a907ae3dae2375"},"taxa":[{"id":"CWE-183","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"20580114d395188c808f79c428198d5f576b5357f0ff53aa1bd223d2483ad496"},"taxa":[{"id":"CWE-295","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"ff57548a30bd30afd7097c6fd815201d28ebf4219560fc2a769e07581aa6c3c1"},"taxa":[{"id":"CWE-295","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"d61ca92c8f76ab0cfef7c09f2bbbc25ce1910dcecd527abcb5e0f7660b4f6aab"},"taxa":[{"id":"CWE-295","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D31","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":"f73d0fe408d61d028c93a1af445a10aef52c66b7eb113e6ab1c76251c87b767d"}},{"ruleId":"D31","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":"0fc2a270846594a8c1f9683aa4cec44bab588d2eb019ff04e9d9a852c2b7ffa7"}},{"ruleId":"D31","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":"f9deb0b3e9568df1171bacf908174d514cb7e71041f1c1975b38340d1bde8fc0"}},{"ruleId":"D31","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":"a1a36a14e3d4759936340626d834173f41818285ccfc7dd14e1bee71328f49a7"}},{"ruleId":"D31","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":"a48ce174a6dd679066d4cfd67869b5611ea7a7c3e30029742b674cb60778dde4"}},{"ruleId":"D31","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":"09b6ec576c5075c164d6f37e61c36b6df87ee899a6f9c781039763cdb5a72bf5"}},{"ruleId":"D31","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":"0d1191b7e6817180558671a6c0350c93324c023cc8f12d0d9d85189551681952"}},{"ruleId":"D31","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":"4c574b5ba820365252f15ee0a6bea7f4259984c3998516215eeadb22482b4ac6"}},{"ruleId":"D31","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":"b7bb8cfc7471f96285b87a837d7b19ef4a083dbc2783fafa7d4a6a8e95e4bc41"}},{"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":"d44b1746ad1e3ef4a7c783e7446311c7180e2c535ceadf6a01e7bf1d537cbd2d"}},{"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":"b80fcaf91e4782e52723b08fd9109f941168d6dd013da3baa5eb06c06243887e"}},{"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":"ba7d825878bfced72ee8b80e6e5c89ae5260c738426c7fcc7c424712561148fd"}},{"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":"7882bf6c4d9dfe701623b4f500f39ce8b27a4673f632c19344cf694ea76d2a4f"}},{"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":"885c2ed0d843a1fc2bbd932b287394bb2df0d4fd68567a7f81896b3761c32136"}},{"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":"159cabe42fae378a47bad069cd39f25f977f7702cb6a8c06761124eb7bcba2de"}},{"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":"5977ba83467993907f308dabcb84f99729d564c9c23763c75d17c5dbf3c6d0a8"}},{"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":"893bbabef33c9da8ed543914937fc94e5d7184bdb6bcdb2889e9a1d3f656ab34"}},{"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":"d336e6b516396bf5eab80018f84b20814c745311edf4fa61d2109fc323ff945d"}},{"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":"bd7a77c19460d686242e31b375c838ccf31f1bb67dcf02338aa9150088cc66a0"}},{"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":"99cbf691e0b059a0d6069768a9e28e254b64293742696b60e310ab21933ce425"}},{"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":"11931079a5ace988696d6a25d6af5876fd660c5d5b40f3a9e2e9bee2550060e7"}},{"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":"bc34a4af0cdb4f6935c67cbf1c9c1e039b3ae22f7dddaa5fedbb22fe1b7b290e"}},{"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":"3770ede0bc725241b5959127b5dd42bb1edd74899a769badb3595f9b3288e528"}},{"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":"6ebc75df3035d51c6100d89085595cf566b574861e4e84ee83fdf9bd99592991"}},{"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":"2648d9c2541d546963a8fb6dc906cf4bdea026b727589ee639a768c6fa649ab7"}},{"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":"e899d02481b4236d5d707898aff49dbbe0600fa355a7a8ac9d15a141458609e9"}},{"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":"6023d732e839786dba34754d0bad1c29bfc0e04eb4a27cc5a5fc9dbc2fd8abaa"}},{"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":"21ca38310c74574404412522088d0713734b9c29952e98216b97c18ad60c291d"}},{"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":"9f688a0f9b5f3452a803829280a71c6bb2a086f84e42d38b9ba526ced63f7914"}},{"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":"fa06518a905ae331d213ea3541c5428dc9793e22ad80a107a5cf7ccd1160ca7d"}},{"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":"01874c9a4887ad7d7438886eb681b5d8c5491a792eb615230cd70b3f326ad653"}},{"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":"b331c01af908c9b7749a5e75ba9d4b4edf3ce00aa592e86b3b2739b39dc5f425"}},{"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":"871ac9bf25532b2489a5536a71c420187e8bca2417d6531e19eb518c9b866a09"}},{"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":"3f56eab12f303f277aaccabddeae9552fa2303a830e3e6261c6961d6f9eeefd5"}},{"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":"f7124720d4d31dc9e7dc3ddf3e6dedb72cfc722e3757a39621b5b984b6061768"}},{"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":"ccc0cc717a360059224d480b2bc872b7f88a881960a07fa78798e15be3c752b9"}},{"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":"client-adapter/phoenix/src/main/java/com/alibaba/otter/canal/client/adapter/phoenix/service/PhoenixSyncService.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"207da56668f45273b41f2840ff3e851cd61e3b298cbd5727bae3cb17a57782a0"}},{"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":"client-adapter/clickhouse/src/main/java/com/alibaba/otter/canal/client/adapter/clickhouse/service/ClickHouseBatchSyncService.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fa4893b5018141fea06615cb011cee1862803eaf55fccd6b3fe6ce0c7ebc3f3"}},{"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":"client-adapter/hbase/src/main/java/com/alibaba/otter/canal/client/adapter/hbase/support/PhTypeUtil.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"194b2fc069275ad06c34bd0d418e85f511c3f841519d582faecffae1cfc09b4a"}},{"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":"client-adapter/es6x/src/main/java/com/alibaba/otter/canal/client/adapter/es6x/support/ES6xTemplate.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"57be02e95a9abc01629078c107df6a9c808d4e1e7f1f6c36fb9f04fab6c1db99"}},{"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":"connector/pulsarmq-connector/src/main/java/com/alibaba/otter/canal/connector/pulsarmq/producer/CanalPulsarMQProducer.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a5a3ba79fd13023acf593a7687f8a9aa300eee6cbb80123d1353c1c2bf17263"}},{"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":"client-adapter/rdb/src/main/java/com/alibaba/otter/canal/client/adapter/rdb/service/RdbSyncService.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd07db3a03431a2cf506a0740dcdafa93597ff1d7d518c3732d9f9bb20052cd0"}},{"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":"connector/core/src/main/java/com/alibaba/otter/canal/connector/core/spi/ExtensionLoader.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d48e5dfb9b8c78f69dea38f8cd804d5c11a5217d6cf830ade3e1905b5e7579bb"}},{"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":"client-adapter/es7x/src/main/java/com/alibaba/otter/canal/client/adapter/es7x/support/ES7xTemplate.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"801d803ecde9132e04acd7d1367437f3b84a21bbb356eda62b69bf958c7c4219"}},{"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":"client-adapter/es8x/src/main/java/com/alibaba/otter/canal/client/adapter/es8x/support/ES8xTemplate.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"751c46935ab376c5fce05419931f154fd6255a92ac9ec3aeef5d81ae1afa24ae"}},{"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":"client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/support/ExtensionLoader.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a7b711c970958207690acf56176e9e0c51a702b12a29a676bec9428fa25f812"}},{"ruleId":"D34","level":"note","message":{"text":"Further orphaned files (smaller): 92 smaller file(s) also have no living knowledge \u2014 folded into the freshness score and metrics rather than listed individually (102 orphaned of 283 analysed files in total, counted over production source files of roughly 100 lines or more, excluding tests, vendored, generated and example/demo trees, largest first)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"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"}},{"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"}},{"ruleId":"D40","level":"note","message":{"text":"No network policy: No Kubernetes NetworkPolicy (or Cilium policy) found. Without one, every pod can talk to every other pod and reach out to the internet by default. Add a default-deny policy and open only the flows you need."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"295828650a2aaa1b03ae9b32ae6843a0c38011e5a70b1926442c4fa7187de5f0"}},{"ruleId":"D41","level":"note","message":{"text":"No seccomp profile: Workloads do not set a seccomp profile (RuntimeDefault or a Localhost profile). Seccomp blocks the syscalls a container never needs, shrinking the kernel attack surface a container escape would use."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"3f418e9f76c3ac90484e0e94a454bfe9b08e914e1cdd218e1fc9e3b261a3bf6e"}},{"ruleId":"D41","level":"note","message":{"text":"No AppArmor/SELinux confinement: Workloads declare no AppArmor or SELinux profile. A mandatory-access-control profile confines what a compromised container can touch on the host, complementing seccomp\u0027s syscall filter."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"e83fbc31033373d6c51983ed230eb4ba61f7775ed02afb30f5fc1840bde01d4f"}}],"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-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-183","guid":"41617325-2bb9-145f-89c9-8ad38769b7ee","name":"CWE-183","shortDescription":{"text":"CWE-183"},"helpUri":"https://cwe.mitre.org/data/definitions/183.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-295","guid":"a706c4e2-1232-8859-ae2e-17aa2d41f8e2","name":"CWE-295","shortDescription":{"text":"CWE-295"},"helpUri":"https://cwe.mitre.org/data/definitions/295.html"},{"id":"CWE-319","guid":"7af97476-9f0d-4458-9163-3d2043918a1a","name":"CWE-319","shortDescription":{"text":"CWE-319"},"helpUri":"https://cwe.mitre.org/data/definitions/319.html"},{"id":"CWE-326","guid":"7ee78bef-7589-f65f-a9d7-619f3485e844","name":"CWE-326","shortDescription":{"text":"CWE-326"},"helpUri":"https://cwe.mitre.org/data/definitions/326.html"},{"id":"CWE-327","guid":"e51910ff-67b5-3c51-aa3d-92837d9eab90","name":"CWE-327","shortDescription":{"text":"CWE-327"},"helpUri":"https://cwe.mitre.org/data/definitions/327.html"},{"id":"CWE-328","guid":"f0ffc869-97c3-dc5c-8825-be1159f1fc5f","name":"CWE-328","shortDescription":{"text":"CWE-328"},"helpUri":"https://cwe.mitre.org/data/definitions/328.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-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":"Command Injection","shortDescription":{"text":"Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"OS Command Injection","shortDescription":{"text":"OS Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Cross-site Scripting (XSS)","shortDescription":{"text":"Cross-site Scripting (XSS)"},"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":"SQL Injection","shortDescription":{"text":"SQL Injection"},"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":"Code Injection","shortDescription":{"text":"Code Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]}],"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":65,"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."]}]}